public static final class CfnEIPProps.Builder
extends java.lang.Object
CfnEIPProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnEIPProps |
build()
Builds the configured instance.
|
CfnEIPProps.Builder |
domain(java.lang.String domain)
Sets the value of
CfnEIPProps.getDomain() |
CfnEIPProps.Builder |
instanceId(java.lang.String instanceId)
Sets the value of
CfnEIPProps.getInstanceId() |
CfnEIPProps.Builder |
publicIpv4Pool(java.lang.String publicIpv4Pool)
Sets the value of
CfnEIPProps.getPublicIpv4Pool() |
CfnEIPProps.Builder |
tags(java.util.List<? extends CfnTag> tags)
Sets the value of
CfnEIPProps.getTags() |
public CfnEIPProps.Builder domain(java.lang.String domain)
CfnEIPProps.getDomain()
domain
- Indicates whether the Elastic IP address is for use with instances in a VPC or instance in EC2-Classic.
Default: If the Region supports EC2-Classic, the default is standard
. Otherwise, the default is vpc
.
Use when allocating an address for use with a VPC if the Region supports EC2-Classic.
If you define an Elastic IP address and associate it with a VPC that is defined in the same template, you must declare a dependency on the VPC-gateway attachment by using the DependsOn Attribute on this resource.
this
public CfnEIPProps.Builder instanceId(java.lang.String instanceId)
CfnEIPProps.getInstanceId()
instanceId
- The ID of the instance.
Updates to the
InstanceId
property may require some interruptions . Updates on an EIP reassociates the address on its associated resource.
this
public CfnEIPProps.Builder publicIpv4Pool(java.lang.String publicIpv4Pool)
CfnEIPProps.getPublicIpv4Pool()
publicIpv4Pool
- The ID of an address pool that you own.
Use this parameter to let Amazon EC2 select an address from the address pool.
Updates to the
PublicIpv4Pool
property may require some interruptions . Updates on an EIP reassociates the address on its associated resource.
this
public CfnEIPProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnEIPProps.getTags()
tags
- Any tags assigned to the Elastic IP address.
Updates to the
Tags
property may require some interruptions . Updates on an EIP reassociates the address on its associated resource.
this
public CfnEIPProps build()
CfnEIPProps
java.lang.NullPointerException
- if any required attribute was not provided