@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ModifyNetworkInterfaceAttributeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ModifyNetworkInterfaceAttributeRequest>
Contains the parameters for ModifyNetworkInterfaceAttribute.
NOOP
Constructor and Description |
---|
ModifyNetworkInterfaceAttributeRequest() |
Modifier and Type | Method and Description |
---|---|
ModifyNetworkInterfaceAttributeRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
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()
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives.
|
int |
hashCode() |
Boolean |
isSourceDestCheck()
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives.
|
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)
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives.
|
String |
toString()
Returns a string representation of this object.
|
ModifyNetworkInterfaceAttributeRequest |
withAttachment(NetworkInterfaceAttachmentChanges attachment)
Information about the interface attachment.
|
ModifyNetworkInterfaceAttributeRequest |
withDescription(String description)
A description for the network interface.
|
ModifyNetworkInterfaceAttributeRequest |
withGroups(Collection<String> groups)
Changes the security groups for the network interface.
|
ModifyNetworkInterfaceAttributeRequest |
withGroups(String... groups)
Changes the security groups for the network interface.
|
ModifyNetworkInterfaceAttributeRequest |
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
ModifyNetworkInterfaceAttributeRequest |
withSourceDestCheck(Boolean sourceDestCheck)
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public ModifyNetworkInterfaceAttributeRequest()
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.
attachment
- Information about the interface attachment. If modifying the 'delete on termination' attribute, you must
specify the ID of the interface attachment.public NetworkInterfaceAttachmentChanges getAttachment()
Information about the interface attachment. If modifying the 'delete on termination' attribute, you must specify the ID of the interface attachment.
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.
attachment
- Information about the interface attachment. If modifying the 'delete on termination' attribute, you must
specify the ID of the interface attachment.public void setDescription(String description)
A description for the network interface.
description
- A description for the network interface.public String getDescription()
A description for the network interface.
public ModifyNetworkInterfaceAttributeRequest withDescription(String description)
A description for the network interface.
description
- A description for the network interface.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.
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.
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.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.
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.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.
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.public void setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public String getNetworkInterfaceId()
The ID of the network interface.
public ModifyNetworkInterfaceAttributeRequest withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public void setSourceDestCheck(Boolean sourceDestCheck)
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives. If the value is true
, source/destination checks are
enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.
sourceDestCheck
- Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives. If the value is true
, source/destination checks
are enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.public Boolean getSourceDestCheck()
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives. If the value is true
, source/destination checks are
enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.
true
, source/destination checks
are enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.public ModifyNetworkInterfaceAttributeRequest withSourceDestCheck(Boolean sourceDestCheck)
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives. If the value is true
, source/destination checks are
enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.
sourceDestCheck
- Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives. If the value is true
, source/destination checks
are enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.public Boolean isSourceDestCheck()
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives. If the value is true
, source/destination checks are
enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.
true
, source/destination checks
are enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.public Request<ModifyNetworkInterfaceAttributeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ModifyNetworkInterfaceAttributeRequest>
public String toString()
toString
in class Object
Object.toString()
public ModifyNetworkInterfaceAttributeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()