@Generated(value="software.amazon.awssdk:codegen") public final class AssociateAddressRequest extends Ec2Request implements ToCopyableBuilder<AssociateAddressRequest.Builder,AssociateAddressRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
AssociateAddressRequest.Builder |
Modifier and Type | Method and Description |
---|---|
String |
allocationId()
The allocation ID.
|
Boolean |
allowReassociation()
Reassociation is automatic, but you can specify false to ensure the operation fails if the Elastic IP address is
already associated with another resource.
|
static AssociateAddressRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
instanceId()
The ID of the instance.
|
String |
networkInterfaceId()
The ID of the network interface.
|
String |
privateIpAddress()
The primary or secondary private IP address to associate with the Elastic IP address.
|
String |
publicIp()
Deprecated.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AssociateAddressRequest.Builder> |
serializableBuilderClass() |
AssociateAddressRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfiguration
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String allocationId()
The allocation ID. This is required.
public final String instanceId()
The ID of the instance. The instance must have exactly one attached network interface. You can specify either the instance ID or the network interface ID, but not both.
public final String publicIp()
Deprecated.
public final Boolean allowReassociation()
Reassociation is automatic, but you can specify false to ensure the operation fails if the Elastic IP address is already associated with another resource.
public final String networkInterfaceId()
The ID of the network interface. If the instance has more than one network interface, you must specify a network interface ID.
You can specify either the instance ID or the network interface ID, but not both.
You can specify either the instance ID or the network interface ID, but not both.
public final String privateIpAddress()
The primary or secondary private IP address to associate with the Elastic IP address. If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.
public AssociateAddressRequest.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<AssociateAddressRequest.Builder,AssociateAddressRequest>
toBuilder
in class Ec2Request
public static AssociateAddressRequest.Builder builder()
public static Class<? extends AssociateAddressRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode
in class AwsRequest
public final boolean equals(Object obj)
equals
in class AwsRequest
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkRequest
Copyright © 2023. All rights reserved.