Struct aws_sdk_globalaccelerator::operation::update_accelerator::builders::UpdateAcceleratorInputBuilder
source · #[non_exhaustive]pub struct UpdateAcceleratorInputBuilder { /* private fields */ }
Expand description
A builder for UpdateAcceleratorInput
.
Implementations§
source§impl UpdateAcceleratorInputBuilder
impl UpdateAcceleratorInputBuilder
sourcepub fn accelerator_arn(self, input: impl Into<String>) -> Self
pub fn accelerator_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the accelerator to update.
This field is required.sourcepub fn set_accelerator_arn(self, input: Option<String>) -> Self
pub fn set_accelerator_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the accelerator to update.
sourcepub fn get_accelerator_arn(&self) -> &Option<String>
pub fn get_accelerator_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the accelerator to update.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
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.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
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.
sourcepub fn ip_address_type(self, input: IpAddressType) -> Self
pub fn ip_address_type(self, input: IpAddressType) -> Self
The IP address type that an accelerator supports. For a standard accelerator, the value can be IPV4 or DUAL_STACK.
sourcepub fn set_ip_address_type(self, input: Option<IpAddressType>) -> Self
pub fn set_ip_address_type(self, input: Option<IpAddressType>) -> Self
The IP address type that an accelerator supports. For a standard accelerator, the value can be IPV4 or DUAL_STACK.
sourcepub fn get_ip_address_type(&self) -> &Option<IpAddressType>
pub fn get_ip_address_type(&self) -> &Option<IpAddressType>
The IP address type that an accelerator supports. For a standard accelerator, the value can be IPV4 or DUAL_STACK.
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
Indicates whether an accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, the accelerator can be deleted.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Indicates whether an accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, the accelerator can be deleted.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
Indicates whether an accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, the accelerator can be deleted.
sourcepub fn build(self) -> Result<UpdateAcceleratorInput, BuildError>
pub fn build(self) -> Result<UpdateAcceleratorInput, BuildError>
Consumes the builder and constructs a UpdateAcceleratorInput
.
source§impl UpdateAcceleratorInputBuilder
impl UpdateAcceleratorInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateAcceleratorOutput, SdkError<UpdateAcceleratorError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateAcceleratorOutput, SdkError<UpdateAcceleratorError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateAcceleratorInputBuilder
impl Clone for UpdateAcceleratorInputBuilder
source§fn clone(&self) -> UpdateAcceleratorInputBuilder
fn clone(&self) -> UpdateAcceleratorInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateAcceleratorInputBuilder
impl Default for UpdateAcceleratorInputBuilder
source§fn default() -> UpdateAcceleratorInputBuilder
fn default() -> UpdateAcceleratorInputBuilder
source§impl PartialEq for UpdateAcceleratorInputBuilder
impl PartialEq for UpdateAcceleratorInputBuilder
source§fn eq(&self, other: &UpdateAcceleratorInputBuilder) -> bool
fn eq(&self, other: &UpdateAcceleratorInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.