Class AcceleratorAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.globalaccelerator.AcceleratorAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AcceleratorAttributes>
- Enclosing interface:
AcceleratorAttributes
@Stability(Stable)
public static final class AcceleratorAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<AcceleratorAttributes>
A builder for
AcceleratorAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceleratorArn(String acceleratorArn) Sets the value ofAcceleratorAttributes.getAcceleratorArn()build()Builds the configured instance.Sets the value ofAcceleratorAttributes.getDnsName()dualStackDnsName(String dualStackDnsName) Sets the value ofAcceleratorAttributes.getDualStackDnsName()ipv4Addresses(List<String> ipv4Addresses) Sets the value ofAcceleratorAttributes.getIpv4Addresses()ipv6Addresses(List<String> ipv6Addresses) Sets the value ofAcceleratorAttributes.getIpv6Addresses()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
acceleratorArn
Sets the value ofAcceleratorAttributes.getAcceleratorArn()- Parameters:
acceleratorArn- The ARN of the accelerator. This parameter is required.- Returns:
this
-
dnsName
Sets the value ofAcceleratorAttributes.getDnsName()- Parameters:
dnsName- The DNS name of the accelerator. This parameter is required.- Returns:
this
-
dualStackDnsName
Sets the value ofAcceleratorAttributes.getDualStackDnsName()- Parameters:
dualStackDnsName- The DNS name that points to the dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.- Returns:
this
-
ipv4Addresses
Sets the value ofAcceleratorAttributes.getIpv4Addresses()- Parameters:
ipv4Addresses- The array of IPv4 addresses in the IP address set.- Returns:
this
-
ipv6Addresses
Sets the value ofAcceleratorAttributes.getIpv6Addresses()- Parameters:
ipv6Addresses- The array of IPv6 addresses in the IP address set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AcceleratorAttributes>- Returns:
- a new instance of
AcceleratorAttributes - Throws:
NullPointerException- if any required attribute was not provided
-