Class AssociateAddressRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<AssociateAddressRequest.Builder,AssociateAddressRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe allocation ID.final BooleanReassociation is automatic, but you can specify false to ensure the operation fails if the Elastic IP address is already associated with another resource.builder()final BooleandryRun()Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringThe ID of the instance.final StringThe ID of the network interface.final StringThe primary or secondary private IP address to associate with the Elastic IP address.final StringpublicIp()Deprecated.static Class<? extends AssociateAddressRequest.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
allocationId
The allocation ID. This is required.
- Returns:
- The allocation ID. This is required.
-
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.
- Returns:
- 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.
-
publicIp
Deprecated.
- Returns:
- Deprecated.
-
dryRun
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.- Returns:
- Checks whether you have the required permissions for the action, without actually making the request, and
provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.
-
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.
- Returns:
- 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.
-
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.
- Returns:
- 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.
-
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.
- Returns:
- Reassociation is automatic, but you can specify false to ensure the operation fails if the Elastic IP address is already associated with another resource.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<AssociateAddressRequest.Builder,AssociateAddressRequest> - Specified by:
toBuilderin classEc2Request
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-