Class ModifyNetworkInterfaceAttributeRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<ModifyNetworkInterfaceAttributeRequest>
,Serializable
,Cloneable
Contains the parameters for ModifyNetworkInterfaceAttribute.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
Information about the interface attachment.A description for the network interface.This method is intended for internal use only.Changes the security groups for the network interface.The ID of the network interface.Indicates whether source/destination checking is enabled.int
hashCode()
Indicates whether source/destination checking is enabled.void
setAttachment
(NetworkInterfaceAttachmentChanges attachment) Information about the interface attachment.void
setDescription
(String description) A description for the network interface.void
setGroups
(Collection<String> groups) Changes the security groups for the network interface.void
setNetworkInterfaceId
(String networkInterfaceId) The ID of the network interface.void
setSourceDestCheck
(Boolean sourceDestCheck) Indicates whether source/destination checking is enabled.toString()
Returns a string representation of this object; useful for testing and debugging.withAttachment
(NetworkInterfaceAttachmentChanges attachment) Information about the interface attachment.withDescription
(String description) A description for the network interface.withGroups
(String... groups) Changes the security groups for the network interface.withGroups
(Collection<String> groups) Changes the security groups for the network interface.withNetworkInterfaceId
(String networkInterfaceId) The ID of the network interface.withSourceDestCheck
(Boolean sourceDestCheck) Indicates whether source/destination checking is enabled.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
Constructor Details
-
ModifyNetworkInterfaceAttributeRequest
public ModifyNetworkInterfaceAttributeRequest()
-
-
Method Details
-
setNetworkInterfaceId
The ID of the network interface.
- Parameters:
networkInterfaceId
- The ID of the network interface.
-
getNetworkInterfaceId
The ID of the network interface.
- Returns:
- The ID of the network interface.
-
withNetworkInterfaceId
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
A description for the network interface.
- Parameters:
description
- A description for the network interface.
-
getDescription
A description for the network interface.
- Returns:
- A description for the network interface.
-
withDescription
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
Indicates whether source/destination checking is enabled. A value of
true
means checking is enabled, andfalse
means checking is disabled. This value must befalse
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 oftrue
means checking is enabled, andfalse
means checking is disabled. This value must befalse
for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.
-
getSourceDestCheck
Indicates whether source/destination checking is enabled. A value of
true
means checking is enabled, andfalse
means checking is disabled. This value must befalse
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, andfalse
means checking is disabled. This value must befalse
for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.
-
withSourceDestCheck
Indicates whether source/destination checking is enabled. A value of
true
means checking is enabled, andfalse
means checking is disabled. This value must befalse
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 oftrue
means checking is enabled, andfalse
means checking is disabled. This value must befalse
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
Indicates whether source/destination checking is enabled. A value of
true
means checking is enabled, andfalse
means checking is disabled. This value must befalse
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, andfalse
means checking is disabled. This value must befalse
for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.
-
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
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
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)
orwithGroups(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
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
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.
-
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 interfaceDryRunSupportedRequest<ModifyNetworkInterfaceAttributeRequest>
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
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 classAmazonWebServiceRequest
- See Also:
-