@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AllocateAddressRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<AllocateAddressRequest>
NOOP
Constructor and Description |
---|
AllocateAddressRequest() |
Modifier and Type | Method and Description |
---|---|
AllocateAddressRequest |
clone() |
boolean |
equals(Object obj) |
String |
getAddress()
[EC2-VPC] The Elastic IP address to recover or an IPv4 address from an address pool.
|
String |
getCustomerOwnedIpv4Pool()
The ID of a customer-owned address pool.
|
String |
getDomain()
Indicates whether the Elastic IP address is for use with instances in a VPC or instances in EC2-Classic.
|
Request<AllocateAddressRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getNetworkBorderGroup()
A unique set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services advertises IP
addresses.
|
String |
getPublicIpv4Pool()
The ID of an address pool that you own.
|
List<TagSpecification> |
getTagSpecifications()
The tags to assign to the Elastic IP address.
|
int |
hashCode() |
void |
setAddress(String address)
[EC2-VPC] The Elastic IP address to recover or an IPv4 address from an address pool.
|
void |
setCustomerOwnedIpv4Pool(String customerOwnedIpv4Pool)
The ID of a customer-owned address pool.
|
void |
setDomain(DomainType domain)
Indicates whether the Elastic IP address is for use with instances in a VPC or instances in EC2-Classic.
|
void |
setDomain(String domain)
Indicates whether the Elastic IP address is for use with instances in a VPC or instances in EC2-Classic.
|
void |
setNetworkBorderGroup(String networkBorderGroup)
A unique set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services advertises IP
addresses.
|
void |
setPublicIpv4Pool(String publicIpv4Pool)
The ID of an address pool that you own.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the Elastic IP address.
|
String |
toString()
Returns a string representation of this object.
|
AllocateAddressRequest |
withAddress(String address)
[EC2-VPC] The Elastic IP address to recover or an IPv4 address from an address pool.
|
AllocateAddressRequest |
withCustomerOwnedIpv4Pool(String customerOwnedIpv4Pool)
The ID of a customer-owned address pool.
|
AllocateAddressRequest |
withDomain(DomainType domain)
Indicates whether the Elastic IP address is for use with instances in a VPC or instances in EC2-Classic.
|
AllocateAddressRequest |
withDomain(String domain)
Indicates whether the Elastic IP address is for use with instances in a VPC or instances in EC2-Classic.
|
AllocateAddressRequest |
withNetworkBorderGroup(String networkBorderGroup)
A unique set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services advertises IP
addresses.
|
AllocateAddressRequest |
withPublicIpv4Pool(String publicIpv4Pool)
The ID of an address pool that you own.
|
AllocateAddressRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the Elastic IP address.
|
AllocateAddressRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to assign to the Elastic IP address.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setDomain(String domain)
Indicates whether the Elastic IP address is for use with instances in a VPC or instances in EC2-Classic.
Default: If the Region supports EC2-Classic, the default is standard
. Otherwise, the default is
vpc
.
domain
- Indicates whether the Elastic IP address is for use with instances in a VPC or instances in
EC2-Classic.
Default: If the Region supports EC2-Classic, the default is standard
. Otherwise, the default
is vpc
.
DomainType
public String getDomain()
Indicates whether the Elastic IP address is for use with instances in a VPC or instances in EC2-Classic.
Default: If the Region supports EC2-Classic, the default is standard
. Otherwise, the default is
vpc
.
Default: If the Region supports EC2-Classic, the default is standard
. Otherwise, the default
is vpc
.
DomainType
public AllocateAddressRequest withDomain(String domain)
Indicates whether the Elastic IP address is for use with instances in a VPC or instances in EC2-Classic.
Default: If the Region supports EC2-Classic, the default is standard
. Otherwise, the default is
vpc
.
domain
- Indicates whether the Elastic IP address is for use with instances in a VPC or instances in
EC2-Classic.
Default: If the Region supports EC2-Classic, the default is standard
. Otherwise, the default
is vpc
.
DomainType
public void setDomain(DomainType domain)
Indicates whether the Elastic IP address is for use with instances in a VPC or instances in EC2-Classic.
Default: If the Region supports EC2-Classic, the default is standard
. Otherwise, the default is
vpc
.
domain
- Indicates whether the Elastic IP address is for use with instances in a VPC or instances in
EC2-Classic.
Default: If the Region supports EC2-Classic, the default is standard
. Otherwise, the default
is vpc
.
DomainType
public AllocateAddressRequest withDomain(DomainType domain)
Indicates whether the Elastic IP address is for use with instances in a VPC or instances in EC2-Classic.
Default: If the Region supports EC2-Classic, the default is standard
. Otherwise, the default is
vpc
.
domain
- Indicates whether the Elastic IP address is for use with instances in a VPC or instances in
EC2-Classic.
Default: If the Region supports EC2-Classic, the default is standard
. Otherwise, the default
is vpc
.
DomainType
public void setAddress(String address)
[EC2-VPC] The Elastic IP address to recover or an IPv4 address from an address pool.
address
- [EC2-VPC] The Elastic IP address to recover or an IPv4 address from an address pool.public String getAddress()
[EC2-VPC] The Elastic IP address to recover or an IPv4 address from an address pool.
public AllocateAddressRequest withAddress(String address)
[EC2-VPC] The Elastic IP address to recover or an IPv4 address from an address pool.
address
- [EC2-VPC] The Elastic IP address to recover or an IPv4 address from an address pool.public void setPublicIpv4Pool(String publicIpv4Pool)
The ID of an address pool that you own. Use this parameter to let Amazon EC2 select an address from the address
pool. To specify a specific address from the address pool, use the Address
parameter instead.
publicIpv4Pool
- The ID of an address pool that you own. Use this parameter to let Amazon EC2 select an address from the
address pool. To specify a specific address from the address pool, use the Address
parameter
instead.public String getPublicIpv4Pool()
The ID of an address pool that you own. Use this parameter to let Amazon EC2 select an address from the address
pool. To specify a specific address from the address pool, use the Address
parameter instead.
Address
parameter
instead.public AllocateAddressRequest withPublicIpv4Pool(String publicIpv4Pool)
The ID of an address pool that you own. Use this parameter to let Amazon EC2 select an address from the address
pool. To specify a specific address from the address pool, use the Address
parameter instead.
publicIpv4Pool
- The ID of an address pool that you own. Use this parameter to let Amazon EC2 select an address from the
address pool. To specify a specific address from the address pool, use the Address
parameter
instead.public void setNetworkBorderGroup(String networkBorderGroup)
A unique set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services advertises IP addresses. Use this parameter to limit the IP address to this location. IP addresses cannot move between network border groups.
Use DescribeAvailabilityZones to view the network border groups.
You cannot use a network border group with EC2 Classic. If you attempt this operation on EC2 Classic, you receive
an InvalidParameterCombination
error.
networkBorderGroup
- A unique set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services
advertises IP addresses. Use this parameter to limit the IP address to this location. IP addresses cannot
move between network border groups.
Use DescribeAvailabilityZones to view the network border groups.
You cannot use a network border group with EC2 Classic. If you attempt this operation on EC2 Classic, you
receive an InvalidParameterCombination
error.
public String getNetworkBorderGroup()
A unique set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services advertises IP addresses. Use this parameter to limit the IP address to this location. IP addresses cannot move between network border groups.
Use DescribeAvailabilityZones to view the network border groups.
You cannot use a network border group with EC2 Classic. If you attempt this operation on EC2 Classic, you receive
an InvalidParameterCombination
error.
Use DescribeAvailabilityZones to view the network border groups.
You cannot use a network border group with EC2 Classic. If you attempt this operation on EC2 Classic, you
receive an InvalidParameterCombination
error.
public AllocateAddressRequest withNetworkBorderGroup(String networkBorderGroup)
A unique set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services advertises IP addresses. Use this parameter to limit the IP address to this location. IP addresses cannot move between network border groups.
Use DescribeAvailabilityZones to view the network border groups.
You cannot use a network border group with EC2 Classic. If you attempt this operation on EC2 Classic, you receive
an InvalidParameterCombination
error.
networkBorderGroup
- A unique set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services
advertises IP addresses. Use this parameter to limit the IP address to this location. IP addresses cannot
move between network border groups.
Use DescribeAvailabilityZones to view the network border groups.
You cannot use a network border group with EC2 Classic. If you attempt this operation on EC2 Classic, you
receive an InvalidParameterCombination
error.
public void setCustomerOwnedIpv4Pool(String customerOwnedIpv4Pool)
The ID of a customer-owned address pool. Use this parameter to let Amazon EC2 select an address from the address pool. Alternatively, specify a specific address from the address pool.
customerOwnedIpv4Pool
- The ID of a customer-owned address pool. Use this parameter to let Amazon EC2 select an address from the
address pool. Alternatively, specify a specific address from the address pool.public String getCustomerOwnedIpv4Pool()
The ID of a customer-owned address pool. Use this parameter to let Amazon EC2 select an address from the address pool. Alternatively, specify a specific address from the address pool.
public AllocateAddressRequest withCustomerOwnedIpv4Pool(String customerOwnedIpv4Pool)
The ID of a customer-owned address pool. Use this parameter to let Amazon EC2 select an address from the address pool. Alternatively, specify a specific address from the address pool.
customerOwnedIpv4Pool
- The ID of a customer-owned address pool. Use this parameter to let Amazon EC2 select an address from the
address pool. Alternatively, specify a specific address from the address pool.public List<TagSpecification> getTagSpecifications()
The tags to assign to the Elastic IP address.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the Elastic IP address.
tagSpecifications
- The tags to assign to the Elastic IP address.public AllocateAddressRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to assign to the Elastic IP address.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection)
or withTagSpecifications(java.util.Collection)
if
you want to override the existing values.
tagSpecifications
- The tags to assign to the Elastic IP address.public AllocateAddressRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the Elastic IP address.
tagSpecifications
- The tags to assign to the Elastic IP address.public Request<AllocateAddressRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<AllocateAddressRequest>
public String toString()
toString
in class Object
Object.toString()
public AllocateAddressRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2022. All rights reserved.