1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateCustomRoutingAccelerator`](crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`accelerator_arn(impl Into<String>)`](crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder::accelerator_arn) / [`set_accelerator_arn(Option<String>)`](crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder::set_accelerator_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the accelerator to update.</p><br>
    ///   - [`name(impl Into<String>)`](crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder::set_name):<br>required: **false**<br><p>The name of the accelerator. The name can have a maximum of 64 characters, must contain only alphanumeric characters, periods (.), or hyphens (-), and must not begin or end with a hyphen or period.</p><br>
    ///   - [`ip_address_type(IpAddressType)`](crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder::ip_address_type) / [`set_ip_address_type(Option<IpAddressType>)`](crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder::set_ip_address_type):<br>required: **false**<br><p>The IP address type that an accelerator supports. For a custom routing accelerator, the value must be IPV4.</p><br>
    ///   - [`enabled(bool)`](crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder::enabled) / [`set_enabled(Option<bool>)`](crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder::set_enabled):<br>required: **false**<br><p>Indicates whether an accelerator is enabled. The value is true or false. The default value is true.</p> <p>If the value is set to true, the accelerator cannot be deleted. If set to false, the accelerator can be deleted.</p><br>
    /// - On success, responds with [`UpdateCustomRoutingAcceleratorOutput`](crate::operation::update_custom_routing_accelerator::UpdateCustomRoutingAcceleratorOutput) with field(s):
    ///   - [`accelerator(Option<CustomRoutingAccelerator>)`](crate::operation::update_custom_routing_accelerator::UpdateCustomRoutingAcceleratorOutput::accelerator): <p>Information about the updated custom routing accelerator.</p>
    /// - On failure, responds with [`SdkError<UpdateCustomRoutingAcceleratorError>`](crate::operation::update_custom_routing_accelerator::UpdateCustomRoutingAcceleratorError)
    pub fn update_custom_routing_accelerator(
        &self,
    ) -> crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder {
        crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder::new(self.handle.clone())
    }
}