Struct aws_sdk_globalaccelerator::operation::create_accelerator::builders::CreateAcceleratorInputBuilder
source · #[non_exhaustive]pub struct CreateAcceleratorInputBuilder { /* private fields */ }
Expand description
A builder for CreateAcceleratorInput
.
Implementations§
source§impl CreateAcceleratorInputBuilder
impl CreateAcceleratorInputBuilder
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 ip_addresses(self, input: impl Into<String>) -> Self
pub fn ip_addresses(self, input: impl Into<String>) -> Self
Appends an item to ip_addresses
.
To override the contents of this collection use set_ip_addresses
.
Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose an IPv4 address from your own pool to use for the accelerator's static IPv4 address when you create an accelerator.
After you bring an address range to Amazon Web Services, it appears in your account as an address pool. When you create an accelerator, you can assign one IPv4 address from your range to it. Global Accelerator assigns you a second static IPv4 address from an Amazon IP address range. If you bring two IPv4 address ranges to Amazon Web Services, you can assign one IPv4 address from each range to your accelerator. This restriction is because Global Accelerator assigns each address range to a different network zone, for high availability.
You can specify one or two addresses, separated by a space. Do not include the /32 suffix.
Note that you can't update IP addresses for an existing accelerator. To change them, you must create a new accelerator with the new addresses.
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.
sourcepub fn set_ip_addresses(self, input: Option<Vec<String>>) -> Self
pub fn set_ip_addresses(self, input: Option<Vec<String>>) -> Self
Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose an IPv4 address from your own pool to use for the accelerator's static IPv4 address when you create an accelerator.
After you bring an address range to Amazon Web Services, it appears in your account as an address pool. When you create an accelerator, you can assign one IPv4 address from your range to it. Global Accelerator assigns you a second static IPv4 address from an Amazon IP address range. If you bring two IPv4 address ranges to Amazon Web Services, you can assign one IPv4 address from each range to your accelerator. This restriction is because Global Accelerator assigns each address range to a different network zone, for high availability.
You can specify one or two addresses, separated by a space. Do not include the /32 suffix.
Note that you can't update IP addresses for an existing accelerator. To change them, you must create a new accelerator with the new addresses.
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.
sourcepub fn get_ip_addresses(&self) -> &Option<Vec<String>>
pub fn get_ip_addresses(&self) -> &Option<Vec<String>>
Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose an IPv4 address from your own pool to use for the accelerator's static IPv4 address when you create an accelerator.
After you bring an address range to Amazon Web Services, it appears in your account as an address pool. When you create an accelerator, you can assign one IPv4 address from your range to it. Global Accelerator assigns you a second static IPv4 address from an Amazon IP address range. If you bring two IPv4 address ranges to Amazon Web Services, you can assign one IPv4 address from each range to your accelerator. This restriction is because Global Accelerator assigns each address range to a different network zone, for high availability.
You can specify one or two addresses, separated by a space. Do not include the /32 suffix.
Note that you can't update IP addresses for an existing accelerator. To change them, you must create a new accelerator with the new addresses.
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.
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, an 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, an 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, an accelerator cannot be deleted. If set to false, the accelerator can be deleted.
sourcepub fn idempotency_token(self, input: impl Into<String>) -> Self
pub fn idempotency_token(self, input: impl Into<String>) -> Self
A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of an accelerator.
sourcepub fn set_idempotency_token(self, input: Option<String>) -> Self
pub fn set_idempotency_token(self, input: Option<String>) -> Self
A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of an accelerator.
sourcepub fn get_idempotency_token(&self) -> &Option<String>
pub fn get_idempotency_token(&self) -> &Option<String>
A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of an accelerator.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Create tags for an accelerator.
For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.
Create tags for an accelerator.
For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.
Create tags for an accelerator.
For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.
sourcepub fn build(self) -> Result<CreateAcceleratorInput, BuildError>
pub fn build(self) -> Result<CreateAcceleratorInput, BuildError>
Consumes the builder and constructs a CreateAcceleratorInput
.
source§impl CreateAcceleratorInputBuilder
impl CreateAcceleratorInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateAcceleratorOutput, SdkError<CreateAcceleratorError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateAcceleratorOutput, SdkError<CreateAcceleratorError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateAcceleratorInputBuilder
impl Clone for CreateAcceleratorInputBuilder
source§fn clone(&self) -> CreateAcceleratorInputBuilder
fn clone(&self) -> CreateAcceleratorInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateAcceleratorInputBuilder
impl Default for CreateAcceleratorInputBuilder
source§fn default() -> CreateAcceleratorInputBuilder
fn default() -> CreateAcceleratorInputBuilder
source§impl PartialEq<CreateAcceleratorInputBuilder> for CreateAcceleratorInputBuilder
impl PartialEq<CreateAcceleratorInputBuilder> for CreateAcceleratorInputBuilder
source§fn eq(&self, other: &CreateAcceleratorInputBuilder) -> bool
fn eq(&self, other: &CreateAcceleratorInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.