Class CfnAcceleratorProps.Builder
java.lang.Object
software.amazon.awscdk.services.globalaccelerator.CfnAcceleratorProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAcceleratorProps>
- Enclosing interface:
CfnAcceleratorProps
@Stability(Stable)
public static final class CfnAcceleratorProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAcceleratorProps>
A builder for
CfnAcceleratorProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnAcceleratorProps.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnAcceleratorProps.getEnabled()
ipAddresses
(List<String> ipAddresses) Sets the value ofCfnAcceleratorProps.getIpAddresses()
ipAddressType
(String ipAddressType) Sets the value ofCfnAcceleratorProps.getIpAddressType()
Sets the value ofCfnAcceleratorProps.getName()
Sets the value ofCfnAcceleratorProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnAcceleratorProps.getName()
- Parameters:
name
- The name of the accelerator. This parameter is required. The name must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.- Returns:
this
-
enabled
Sets the value ofCfnAcceleratorProps.getEnabled()
- Parameters:
enabled
- 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.- Returns:
this
-
enabled
Sets the value ofCfnAcceleratorProps.getEnabled()
- Parameters:
enabled
- 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.- Returns:
this
-
ipAddresses
Sets the value ofCfnAcceleratorProps.getIpAddresses()
- Parameters:
ipAddresses
- Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose IP addresses from your own pool to use for the accelerator's static IP addresses when you create an accelerator. You can specify one or two addresses, separated by a comma. Do not include the /32 suffix.Only one IP address from each of your IP address ranges can be used for each accelerator. If you specify only one IP address from your IP address range, Global Accelerator assigns a second static IP address for the accelerator from the AWS IP address pool.
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 AWS Global Accelerator Developer Guide .
- Returns:
this
-
ipAddressType
Sets the value ofCfnAcceleratorProps.getIpAddressType()
- Parameters:
ipAddressType
- The IP address type that an accelerator supports. For a standard accelerator, the value can be IPV4 or DUAL_STACK.- Returns:
this
-
tags
Sets the value ofCfnAcceleratorProps.getTags()
- Parameters:
tags
- Create tags for an accelerator. For more information, see Tagging in the AWS Global Accelerator Developer Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAcceleratorProps>
- Returns:
- a new instance of
CfnAcceleratorProps
- Throws:
NullPointerException
- if any required attribute was not provided
-