@Generated(value="software.amazon.awssdk:codegen") public final class AllocateAddressRequest extends Ec2Request implements ToCopyableBuilder<AllocateAddressRequest.Builder,AllocateAddressRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
AllocateAddressRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
address()
[EC2-VPC] The Elastic IP address to recover or an IPv4 address from an address pool.
|
static AllocateAddressRequest.Builder |
builder() |
String |
customerOwnedIpv4Pool()
The ID of a customer-owned address pool.
|
DomainType |
domain()
Set to
vpc to allocate the address for use with instances in a VPC. |
String |
domainAsString()
Set to
vpc to allocate the address for use with instances in a VPC. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
networkBorderGroup()
The location from which the IP address is advertised.
|
String |
publicIpv4Pool()
The ID of an address pool that you own.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AllocateAddressRequest.Builder> |
serializableBuilderClass() |
AllocateAddressRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic DomainType domain()
Set to vpc to allocate the address for use with instances in a VPC.
Default: The address is for use with instances in EC2-Classic.
If the service returns an enum value that is not available in the current SDK version, domain will
return DomainType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
domainAsString().
vpc to allocate the address for use with instances in a VPC.
Default: The address is for use with instances in EC2-Classic.
DomainTypepublic String domainAsString()
Set to vpc to allocate the address for use with instances in a VPC.
Default: The address is for use with instances in EC2-Classic.
If the service returns an enum value that is not available in the current SDK version, domain will
return DomainType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
domainAsString().
vpc to allocate the address for use with instances in a VPC.
Default: The address is for use with instances in EC2-Classic.
DomainTypepublic String address()
[EC2-VPC] The Elastic IP address to recover or an IPv4 address from an address pool.
public 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.
Address parameter
instead.public String networkBorderGroup()
The location from which the IP address is advertised. Use this parameter to limit the address to this location.
A network border group is a unique set of Availability Zones or Local Zones from where AWS advertises IP addresses and limits the addresses to the group. 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 will
receive an InvalidParameterCombination error. For more information, see Error Codes.
A network border group is a unique set of Availability Zones or Local Zones from where AWS advertises IP addresses and limits the addresses to the group. 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
will receive an InvalidParameterCombination error. For more information, see Error Codes.
public 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.
public AllocateAddressRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AllocateAddressRequest.Builder,AllocateAddressRequest>toBuilder in class Ec2Requestpublic static AllocateAddressRequest.Builder builder()
public static Class<? extends AllocateAddressRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2020. All rights reserved.