@Generated(value="software.amazon.awssdk:codegen") public final class DetachNetworkInterfaceRequest extends Ec2Request implements ToCopyableBuilder<DetachNetworkInterfaceRequest.Builder,DetachNetworkInterfaceRequest>
Contains the parameters for DetachNetworkInterface.
Modifier and Type | Class and Description |
---|---|
static interface |
DetachNetworkInterfaceRequest.Builder |
Modifier and Type | Method and Description |
---|---|
String |
attachmentId()
The ID of the attachment.
|
static DetachNetworkInterfaceRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Boolean |
force()
Specifies whether to force a detachment.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends DetachNetworkInterfaceRequest.Builder> |
serializableBuilderClass() |
DetachNetworkInterfaceRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfiguration
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public String attachmentId()
The ID of the attachment.
public Boolean force()
Specifies whether to force a detachment.
Use the Force
parameter only as a last resort to detach a network interface from a failed instance.
If you use the Force
parameter to detach a network interface, you might not be able to attach a
different network interface to the same index on the instance without first stopping and starting the instance.
If you force the detachment of a network interface, the instance metadata might not get updated. This means that the attributes associated with the detached network interface might still be visible. The instance metadata will get updated when you stop and start the instance.
Use the Force
parameter only as a last resort to detach a network interface from a failed
instance.
If you use the Force
parameter to detach a network interface, you might not be able to
attach a different network interface to the same index on the instance without first stopping and
starting the instance.
If you force the detachment of a network interface, the instance metadata might not get updated. This means that the attributes associated with the detached network interface might still be visible. The instance metadata will get updated when you stop and start the instance.
public DetachNetworkInterfaceRequest.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<DetachNetworkInterfaceRequest.Builder,DetachNetworkInterfaceRequest>
toBuilder
in class Ec2Request
public static DetachNetworkInterfaceRequest.Builder builder()
public static Class<? extends DetachNetworkInterfaceRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode
in class AwsRequest
public boolean equals(Object obj)
equals
in class AwsRequest
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkRequest
Copyright © 2020. All rights reserved.