@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.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String attachmentId()
The ID of the attachment.
public final 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 Ec2Requestpublic static DetachNetworkInterfaceRequest.Builder builder()
public static Class<? extends DetachNetworkInterfaceRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2022. All rights reserved.