com.amazonaws.services.ec2.model
Class DetachNetworkInterfaceRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.DetachNetworkInterfaceRequest
All Implemented Interfaces:
DryRunSupportedRequest<DetachNetworkInterfaceRequest>, Serializable

public class DetachNetworkInterfaceRequest
extends AmazonWebServiceRequest
implements Serializable, DryRunSupportedRequest<DetachNetworkInterfaceRequest>

Container for the parameters to the DetachNetworkInterface operation.

Detaches a network interface from an instance.

See Also:
AmazonEC2.detachNetworkInterface(DetachNetworkInterfaceRequest), Serialized Form

Constructor Summary
DetachNetworkInterfaceRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAttachmentId()
          The ID of the attachment.
 Request<DetachNetworkInterfaceRequest> getDryRunRequest()
          This method is intended for internal use only.
 Boolean getForce()
          Specifies whether to force a detachment.
 int hashCode()
           
 Boolean isForce()
          Specifies whether to force a detachment.
 void setAttachmentId(String attachmentId)
          The ID of the attachment.
 void setForce(Boolean force)
          Specifies whether to force a detachment.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DetachNetworkInterfaceRequest withAttachmentId(String attachmentId)
          The ID of the attachment.
 DetachNetworkInterfaceRequest withForce(Boolean force)
          Specifies whether to force a detachment.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DetachNetworkInterfaceRequest

public DetachNetworkInterfaceRequest()
Method Detail

getAttachmentId

public String getAttachmentId()
The ID of the attachment.

Returns:
The ID of the attachment.

setAttachmentId

public void setAttachmentId(String attachmentId)
The ID of the attachment.

Parameters:
attachmentId - The ID of the attachment.

withAttachmentId

public DetachNetworkInterfaceRequest withAttachmentId(String attachmentId)
The ID of the attachment.

Returns a reference to this object so that method calls can be chained together.

Parameters:
attachmentId - The ID of the attachment.
Returns:
A reference to this updated object so that method calls can be chained together.

isForce

public Boolean isForce()
Specifies whether to force a detachment.

Returns:
Specifies whether to force a detachment.

setForce

public void setForce(Boolean force)
Specifies whether to force a detachment.

Parameters:
force - Specifies whether to force a detachment.

withForce

public DetachNetworkInterfaceRequest withForce(Boolean force)
Specifies whether to force a detachment.

Returns a reference to this object so that method calls can be chained together.

Parameters:
force - Specifies whether to force a detachment.
Returns:
A reference to this updated object so that method calls can be chained together.

getForce

public Boolean getForce()
Specifies whether to force a detachment.

Returns:
Specifies whether to force a detachment.

getDryRunRequest

public Request<DetachNetworkInterfaceRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<DetachNetworkInterfaceRequest>

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.