Struct aws_sdk_globalaccelerator::model::accelerator::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for Accelerator.
Implementations
sourceimpl Builder
impl Builder
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.
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.
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 must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.
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 must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.
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 enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
Indicates whether the 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, accelerator can be deleted.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Indicates whether the 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, accelerator can be deleted.
sourcepub fn ip_sets(self, input: IpSet) -> Self
pub fn ip_sets(self, input: IpSet) -> Self
Appends an item to ip_sets.
To override the contents of this collection use set_ip_sets.
The static IP addresses that Global Accelerator associates with the accelerator.
sourcepub fn set_ip_sets(self, input: Option<Vec<IpSet>>) -> Self
pub fn set_ip_sets(self, input: Option<Vec<IpSet>>) -> Self
The static IP addresses that Global Accelerator associates with the accelerator.
sourcepub fn dns_name(self, input: impl Into<String>) -> Self
pub fn dns_name(self, input: impl Into<String>) -> Self
The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses.
The naming convention for the DNS name for an accelerator is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com.
If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName, that points to both the A record and the AAAA record for all four static addresses for the accelerator (two IPv4 addresses and two IPv6 addresses).
For more information about the default DNS name, see Support for DNS Addressing in Global Accelerator in the Global Accelerator Developer Guide.
sourcepub fn set_dns_name(self, input: Option<String>) -> Self
pub fn set_dns_name(self, input: Option<String>) -> Self
The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses.
The naming convention for the DNS name for an accelerator is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com.
If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName, that points to both the A record and the AAAA record for all four static addresses for the accelerator (two IPv4 addresses and two IPv6 addresses).
For more information about the default DNS name, see Support for DNS Addressing in Global Accelerator in the Global Accelerator Developer Guide.
sourcepub fn status(self, input: AcceleratorStatus) -> Self
pub fn status(self, input: AcceleratorStatus) -> Self
Describes the deployment status of the accelerator.
sourcepub fn set_status(self, input: Option<AcceleratorStatus>) -> Self
pub fn set_status(self, input: Option<AcceleratorStatus>) -> Self
Describes the deployment status of the accelerator.
sourcepub fn created_time(self, input: DateTime) -> Self
pub fn created_time(self, input: DateTime) -> Self
The date and time that the accelerator was created.
sourcepub fn set_created_time(self, input: Option<DateTime>) -> Self
pub fn set_created_time(self, input: Option<DateTime>) -> Self
The date and time that the accelerator was created.
sourcepub fn last_modified_time(self, input: DateTime) -> Self
pub fn last_modified_time(self, input: DateTime) -> Self
The date and time that the accelerator was last modified.
sourcepub fn set_last_modified_time(self, input: Option<DateTime>) -> Self
pub fn set_last_modified_time(self, input: Option<DateTime>) -> Self
The date and time that the accelerator was last modified.
sourcepub fn dual_stack_dns_name(self, input: impl Into<String>) -> Self
pub fn dual_stack_dns_name(self, input: impl Into<String>) -> Self
The Domain Name System (DNS) name that Global Accelerator creates that points to a dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.
The naming convention for the dual-stack DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .dualstack.awsglobalaccelerator.com. For example: a1234567890abcdef.dualstack.awsglobalaccelerator.com.
Note: Global Accelerator also assigns a default DNS name, DnsName, to your accelerator that points just to the static IPv4 addresses.
For more information, see Support for DNS Addressing in Global Accelerator in the Global Accelerator Developer Guide.
sourcepub fn set_dual_stack_dns_name(self, input: Option<String>) -> Self
pub fn set_dual_stack_dns_name(self, input: Option<String>) -> Self
The Domain Name System (DNS) name that Global Accelerator creates that points to a dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.
The naming convention for the dual-stack DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .dualstack.awsglobalaccelerator.com. For example: a1234567890abcdef.dualstack.awsglobalaccelerator.com.
Note: Global Accelerator also assigns a default DNS name, DnsName, to your accelerator that points just to the static IPv4 addresses.
For more information, see Support for DNS Addressing in Global Accelerator in the Global Accelerator Developer Guide.
sourcepub fn events(self, input: AcceleratorEvent) -> Self
pub fn events(self, input: AcceleratorEvent) -> Self
Appends an item to events.
To override the contents of this collection use set_events.
A history of changes that you make to an accelerator in Global Accelerator.
sourcepub fn set_events(self, input: Option<Vec<AcceleratorEvent>>) -> Self
pub fn set_events(self, input: Option<Vec<AcceleratorEvent>>) -> Self
A history of changes that you make to an accelerator in Global Accelerator.
sourcepub fn build(self) -> Accelerator
pub fn build(self) -> Accelerator
Consumes the builder and constructs a Accelerator.