Class ModifyNetworkInterfaceAttributeRequest

    • Constructor Detail

      • ModifyNetworkInterfaceAttributeRequest

        public ModifyNetworkInterfaceAttributeRequest()
    • Method Detail

      • 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

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

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