public class ModifyNetworkInterfaceAttributeRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<ModifyNetworkInterfaceAttributeRequest>
ModifyNetworkInterfaceAttribute operation
.
Modifies the specified network interface attribute. You can specify only one attribute at a time.
Constructor and Description |
---|
ModifyNetworkInterfaceAttributeRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
NetworkInterfaceAttachmentChanges |
getAttachment()
Information about the interface attachment.
|
java.lang.String |
getDescription()
A description for the network interface.
|
Request<ModifyNetworkInterfaceAttributeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.util.List<java.lang.String> |
getGroups()
Changes the security groups for the network interface.
|
java.lang.String |
getNetworkInterfaceId()
The ID of the network interface.
|
java.lang.Boolean |
getSourceDestCheck()
Indicates whether source/destination checking is enabled.
|
int |
hashCode() |
java.lang.Boolean |
isSourceDestCheck()
Indicates whether source/destination checking is enabled.
|
void |
setAttachment(NetworkInterfaceAttachmentChanges attachment)
Information about the interface attachment.
|
void |
setDescription(java.lang.String description)
A description for the network interface.
|
void |
setGroups(java.util.Collection<java.lang.String> groups)
Changes the security groups for the network interface.
|
void |
setNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
|
void |
setSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
|
java.lang.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(java.lang.String description)
A description for the network interface.
|
ModifyNetworkInterfaceAttributeRequest |
withGroups(java.util.Collection<java.lang.String> groups)
Changes the security groups for the network interface.
|
ModifyNetworkInterfaceAttributeRequest |
withGroups(java.lang.String... groups)
Changes the security groups for the network interface.
|
ModifyNetworkInterfaceAttributeRequest |
withNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
|
ModifyNetworkInterfaceAttributeRequest |
withSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public ModifyNetworkInterfaceAttributeRequest()
public java.lang.String getNetworkInterfaceId()
public void setNetworkInterfaceId(java.lang.String networkInterfaceId)
networkInterfaceId
- The ID of the network interface.public ModifyNetworkInterfaceAttributeRequest withNetworkInterfaceId(java.lang.String networkInterfaceId)
Returns a reference to this object so that method calls can be chained together.
networkInterfaceId
- The ID of the network interface.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- A description for the network interface.public ModifyNetworkInterfaceAttributeRequest withDescription(java.lang.String description)
Returns a reference to this object so that method calls can be chained together.
description
- A description for the network interface.public java.lang.Boolean isSourceDestCheck()
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.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.public void setSourceDestCheck(java.lang.Boolean sourceDestCheck)
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.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.public ModifyNetworkInterfaceAttributeRequest withSourceDestCheck(java.lang.Boolean sourceDestCheck)
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 a reference to this object so that method calls can be chained together.
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.public java.lang.Boolean getSourceDestCheck()
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.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.public java.util.List<java.lang.String> getGroups()
public void setGroups(java.util.Collection<java.lang.String> groups)
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(java.lang.String... groups)
Returns a reference to this object so that method calls can be chained together.
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(java.util.Collection<java.lang.String> groups)
Returns a reference to this object so that method calls can be chained together.
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 NetworkInterfaceAttachmentChanges getAttachment()
public void setAttachment(NetworkInterfaceAttachmentChanges attachment)
attachment
- 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)
Returns a reference to this object so that method calls can be chained together.
attachment
- Information about the interface attachment. If modifying the 'delete
on termination' attribute, you must specify the ID of the interface
attachment.public Request<ModifyNetworkInterfaceAttributeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ModifyNetworkInterfaceAttributeRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.