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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description ModifyNetworkInterfaceAttributeRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModifyNetworkInterfaceAttributeRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
NetworkInterfaceAttachmentChanges
getAttachment()
Information about the interface attachment.String
getDescription()
A description for the network interface.Request<ModifyNetworkInterfaceAttributeRequest>
getDryRunRequest()
This method is intended for internal use only.List<String>
getGroups()
Changes the security groups for the network interface.String
getNetworkInterfaceId()
The ID of the network interface.Boolean
getSourceDestCheck()
Indicates whether source/destination checking is enabled.int
hashCode()
Boolean
isSourceDestCheck()
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.String
toString()
Returns a string representation of this object; useful for testing and debugging.ModifyNetworkInterfaceAttributeRequest
withAttachment(NetworkInterfaceAttachmentChanges attachment)
Information about the interface attachment.ModifyNetworkInterfaceAttributeRequest
withDescription(String description)
A description for the network interface.ModifyNetworkInterfaceAttributeRequest
withGroups(String... groups)
Changes the security groups for the network interface.ModifyNetworkInterfaceAttributeRequest
withGroups(Collection<String> groups)
Changes the security groups for the network interface.ModifyNetworkInterfaceAttributeRequest
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.ModifyNetworkInterfaceAttributeRequest
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
-
-
-
-
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, 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
public Boolean 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
public ModifyNetworkInterfaceAttributeRequest withSourceDestCheck(Boolean sourceDestCheck)
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
public Boolean 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
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)
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
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.
-
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 interfaceDryRunSupportedRequest<ModifyNetworkInterfaceAttributeRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ModifyNetworkInterfaceAttributeRequest 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:
Object.clone()
-
-