com.amazonaws.services.ec2.model
Class AttachNetworkInterfaceRequest

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

public class AttachNetworkInterfaceRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<AttachNetworkInterfaceRequest>

Container for the parameters to the AttachNetworkInterface operation.

Attaches a network interface to an instance.

See Also:
AmazonEC2.attachNetworkInterface(AttachNetworkInterfaceRequest), Serialized Form

Constructor Summary
AttachNetworkInterfaceRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Integer getDeviceIndex()
          The index of the device for the network interface attachment.
 Request<AttachNetworkInterfaceRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.String getInstanceId()
          The ID of the instance.
 java.lang.String getNetworkInterfaceId()
          The ID of the network interface.
 int hashCode()
           
 void setDeviceIndex(java.lang.Integer deviceIndex)
          The index of the device for the network interface attachment.
 void setInstanceId(java.lang.String instanceId)
          The ID of the instance.
 void setNetworkInterfaceId(java.lang.String networkInterfaceId)
          The ID of the network interface.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AttachNetworkInterfaceRequest withDeviceIndex(java.lang.Integer deviceIndex)
          The index of the device for the network interface attachment.
 AttachNetworkInterfaceRequest withInstanceId(java.lang.String instanceId)
          The ID of the instance.
 AttachNetworkInterfaceRequest withNetworkInterfaceId(java.lang.String networkInterfaceId)
          The ID of the network interface.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttachNetworkInterfaceRequest

public AttachNetworkInterfaceRequest()
Method Detail

getNetworkInterfaceId

public java.lang.String getNetworkInterfaceId()
The ID of the network interface.

Returns:
The ID of the network interface.

setNetworkInterfaceId

public void setNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.

Parameters:
networkInterfaceId - The ID of the network interface.

withNetworkInterfaceId

public AttachNetworkInterfaceRequest withNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.

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

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

getInstanceId

public java.lang.String getInstanceId()
The ID of the instance.

Returns:
The ID of the instance.

setInstanceId

public void setInstanceId(java.lang.String instanceId)
The ID of the instance.

Parameters:
instanceId - The ID of the instance.

withInstanceId

public AttachNetworkInterfaceRequest withInstanceId(java.lang.String instanceId)
The ID of the instance.

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

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

getDeviceIndex

public java.lang.Integer getDeviceIndex()
The index of the device for the network interface attachment.

Returns:
The index of the device for the network interface attachment.

setDeviceIndex

public void setDeviceIndex(java.lang.Integer deviceIndex)
The index of the device for the network interface attachment.

Parameters:
deviceIndex - The index of the device for the network interface attachment.

withDeviceIndex

public AttachNetworkInterfaceRequest withDeviceIndex(java.lang.Integer deviceIndex)
The index of the device for the network interface attachment.

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

Parameters:
deviceIndex - The index of the device for the network interface attachment.
Returns:
A reference to this updated object so that method calls can be chained together.

getDryRunRequest

public Request<AttachNetworkInterfaceRequest> 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<AttachNetworkInterfaceRequest>

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.