com.amazonaws.services.ec2.model
Class ModifyNetworkInterfaceAttributeRequest

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

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

Container for the parameters to the ModifyNetworkInterfaceAttribute operation.

Modifies the specified network interface attribute. You can specify only one attribute at a time.

See Also:
AmazonEC2.modifyNetworkInterfaceAttribute(ModifyNetworkInterfaceAttributeRequest), Serialized Form

Constructor Summary
ModifyNetworkInterfaceAttributeRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 NetworkInterfaceAttachmentChanges getAttachment()
          The ID of the interface attachment.
 java.lang.String getDescription()
          A description for the network interface.
 Request<ModifyNetworkInterfaceAttributeRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.util.List<java.lang.String> getGroups()
          Changes the security groups for the network interface.
 java.lang.String getNetworkInterfaceId()
          The ID of the network interface.
 java.lang.Boolean getSourceDestCheck()
          Indicates whether source/destination checking is enabled.
 int hashCode()
           
 java.lang.Boolean isSourceDestCheck()
          Indicates whether source/destination checking is enabled.
 void setAttachment(NetworkInterfaceAttachmentChanges attachment)
          The ID of the interface attachment.
 void setDescription(java.lang.String description)
          A description for the network interface.
 void setGroups(java.util.Collection<java.lang.String> groups)
          Changes the security groups for the network interface.
 void setNetworkInterfaceId(java.lang.String networkInterfaceId)
          The ID of the network interface.
 void setSourceDestCheck(java.lang.Boolean sourceDestCheck)
          Indicates whether source/destination checking is enabled.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ModifyNetworkInterfaceAttributeRequest withAttachment(NetworkInterfaceAttachmentChanges attachment)
          The ID of the interface attachment.
 ModifyNetworkInterfaceAttributeRequest withDescription(java.lang.String description)
          A description for the network interface.
 ModifyNetworkInterfaceAttributeRequest withGroups(java.util.Collection<java.lang.String> groups)
          Changes the security groups for the network interface.
 ModifyNetworkInterfaceAttributeRequest withGroups(java.lang.String... groups)
          Changes the security groups for the network interface.
 ModifyNetworkInterfaceAttributeRequest withNetworkInterfaceId(java.lang.String networkInterfaceId)
          The ID of the network interface.
 ModifyNetworkInterfaceAttributeRequest withSourceDestCheck(java.lang.Boolean sourceDestCheck)
          Indicates whether source/destination checking is enabled.
 
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

ModifyNetworkInterfaceAttributeRequest

public ModifyNetworkInterfaceAttributeRequest()
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 ModifyNetworkInterfaceAttributeRequest 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.

getDescription

public java.lang.String getDescription()
A description for the network interface.

Returns:
A description for the network interface.

setDescription

public void setDescription(java.lang.String description)
A description for the network interface.

Parameters:
description - A description for the network interface.

withDescription

public ModifyNetworkInterfaceAttributeRequest withDescription(java.lang.String description)
A description for the network interface.

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

Parameters:
description - A description for the network interface.
Returns:
A reference to this updated object so that method calls can be chained together.

isSourceDestCheck

public java.lang.Boolean isSourceDestCheck()
Indicates whether source/destination checking is enabled. A value of true means checking is enabled, and false means checking is disabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.

Returns:
Indicates whether source/destination checking is enabled. A value of true means checking is enabled, and false means checking is disabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.

setSourceDestCheck

public void setSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled. A value of true means checking is enabled, and false means checking is disabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.

Parameters:
sourceDestCheck - Indicates whether source/destination checking is enabled. A value of true means checking is enabled, and false means checking is disabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.

withSourceDestCheck

public ModifyNetworkInterfaceAttributeRequest withSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled. A value of true means checking is enabled, and false means checking is disabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.

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

Parameters:
sourceDestCheck - Indicates whether source/destination checking is enabled. A value of true means checking is enabled, and false means checking is disabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.
Returns:
A reference to this updated object so that method calls can be chained together.

getSourceDestCheck

public java.lang.Boolean getSourceDestCheck()
Indicates whether source/destination checking is enabled. A value of true means checking is enabled, and false means checking is disabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.

Returns:
Indicates whether source/destination checking is enabled. A value of true means checking is enabled, and false means checking is disabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.

getGroups

public java.util.List<java.lang.String> getGroups()
Changes the security groups for the network interface. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name.

Returns:
Changes the security groups for the network interface. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name.

setGroups

public void setGroups(java.util.Collection<java.lang.String> groups)
Changes the security groups for the network interface. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name.

Parameters:
groups - Changes the security groups for the network interface. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name.

withGroups

public ModifyNetworkInterfaceAttributeRequest withGroups(java.lang.String... groups)
Changes the security groups for the network interface. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name.

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

Parameters:
groups - Changes the security groups for the network interface. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name.
Returns:
A reference to this updated object so that method calls can be chained together.

withGroups

public ModifyNetworkInterfaceAttributeRequest withGroups(java.util.Collection<java.lang.String> groups)
Changes the security groups for the network interface. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name.

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

Parameters:
groups - Changes the security groups for the network interface. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name.
Returns:
A reference to this updated object so that method calls can be chained together.

getAttachment

public NetworkInterfaceAttachmentChanges getAttachment()
The ID of the interface attachment.

Returns:
The ID of the interface attachment.

setAttachment

public void setAttachment(NetworkInterfaceAttachmentChanges attachment)
The ID of the interface attachment.

Parameters:
attachment - The ID of the interface attachment.

withAttachment

public ModifyNetworkInterfaceAttributeRequest withAttachment(NetworkInterfaceAttachmentChanges attachment)
The ID of the interface attachment.

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

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

getDryRunRequest

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

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.