Class ModifyNetworkInterfaceAttributeRequest

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

public class ModifyNetworkInterfaceAttributeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ModifyNetworkInterfaceAttributeRequest>

Contains the parameters for ModifyNetworkInterfaceAttribute.

See Also:
  • Constructor Details

    • ModifyNetworkInterfaceAttributeRequest

      public ModifyNetworkInterfaceAttributeRequest()
  • Method Details

    • setNetworkInterfaceId

      public void setNetworkInterfaceId(String networkInterfaceId)

      The ID of the network interface.

      Parameters:
      networkInterfaceId - The ID of the network interface.
    • getNetworkInterfaceId

      public String getNetworkInterfaceId()

      The ID of the network interface.

      Returns:
      The ID of the network interface.
    • withNetworkInterfaceId

      public ModifyNetworkInterfaceAttributeRequest withNetworkInterfaceId(String networkInterfaceId)

      The ID of the network interface.

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

      public void setDescription(String description)

      A description for the network interface.

      Parameters:
      description - A description for the network interface.
    • getDescription

      public String getDescription()

      A description for the network interface.

      Returns:
      A description for the network interface.
    • withDescription

      public ModifyNetworkInterfaceAttributeRequest withDescription(String description)

      A description for the network interface.

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

      public void setSourceDestCheck(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.
    • getSourceDestCheck

      public 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.
    • withSourceDestCheck

      public ModifyNetworkInterfaceAttributeRequest withSourceDestCheck(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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isSourceDestCheck

      public 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.
    • getGroups

      public List<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(Collection<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(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.

      NOTE: This method appends the values to the existing list (if any). Use setGroups(java.util.Collection) or withGroups(java.util.Collection) if you want to override the existing values.

      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:
      Returns a reference to this object so that method calls can be chained together.
    • withGroups

      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setAttachment

      public void setAttachment(NetworkInterfaceAttachmentChanges attachment)

      Information about the interface attachment. If modifying the 'delete on termination' attribute, you must specify the ID of the interface attachment.

      Parameters:
      attachment - Information about the interface attachment. If modifying the 'delete on termination' attribute, you must specify the ID of the interface attachment.
    • getAttachment

      public NetworkInterfaceAttachmentChanges getAttachment()

      Information about the interface attachment. If modifying the 'delete on termination' attribute, you must specify the ID of the interface attachment.

      Returns:
      Information about the interface attachment. If modifying the 'delete on termination' attribute, you must specify the ID of the interface attachment.
    • withAttachment

      Information about the interface attachment. If modifying the 'delete on termination' attribute, you must specify the ID of the interface attachment.

      Parameters:
      attachment - Information about the interface attachment. If modifying the 'delete on termination' attribute, you must specify the ID of the interface attachment.
      Returns:
      Returns a reference to this 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 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:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: