public class AttachNetworkInterfaceRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<AttachNetworkInterfaceRequest>
Contains the parameters for AttachNetworkInterface.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
deviceIndex
The index of the device for the network interface attachment.
|
private java.lang.String |
instanceId
The ID of the instance.
|
private java.lang.String |
networkInterfaceId
The ID of the network interface.
|
NOOP
Constructor and Description |
---|
AttachNetworkInterfaceRequest() |
Modifier and Type | Method and Description |
---|---|
AttachNetworkInterfaceRequest |
clone()
Creates a shallow clone of this request.
|
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.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String networkInterfaceId
The ID of the network interface.
private java.lang.String instanceId
The ID of the instance.
private java.lang.Integer deviceIndex
The index of the device for the network interface attachment.
public void setNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public java.lang.String getNetworkInterfaceId()
The ID of the network interface.
public AttachNetworkInterfaceRequest withNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public void setInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public java.lang.String getInstanceId()
The ID of the instance.
public AttachNetworkInterfaceRequest withInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setDeviceIndex(java.lang.Integer deviceIndex)
The index of the device for the network interface attachment.
deviceIndex
- The index of the device for the network interface attachment.public java.lang.Integer getDeviceIndex()
The index of the device for the network interface attachment.
public AttachNetworkInterfaceRequest withDeviceIndex(java.lang.Integer deviceIndex)
The index of the device for the network interface attachment.
deviceIndex
- The index of the device for the network interface attachment.public Request<AttachNetworkInterfaceRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<AttachNetworkInterfaceRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AttachNetworkInterfaceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()