public class ModifyNetworkInterfaceAttributeRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<ModifyNetworkInterfaceAttributeRequest>
ModifyNetworkInterfaceAttribute operation
.
Modifies the specified network interface attribute. You can specify only one attribute at a time.
NOOP
Constructor and Description |
---|
ModifyNetworkInterfaceAttributeRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
NetworkInterfaceAttachmentChanges |
getAttachment()
The ID of 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)
The ID of 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)
The ID of 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)
Indicates whether source/destination checking is enabled.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public ModifyNetworkInterfaceAttributeRequest()
public String getNetworkInterfaceId()
public void setNetworkInterfaceId(String networkInterfaceId)
networkInterfaceId
- The ID of the network interface.public ModifyNetworkInterfaceAttributeRequest withNetworkInterfaceId(String networkInterfaceId)
Returns a reference to this object so that method calls can be chained together.
networkInterfaceId
- The ID of the network interface.public String getDescription()
public void setDescription(String description)
description
- A description for the network interface.public ModifyNetworkInterfaceAttributeRequest withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description
- A description for the network interface.public 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(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(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 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 List<String> getGroups()
public void setGroups(Collection<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(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(Collection<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
- 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
- The ID of the interface attachment.public Request<ModifyNetworkInterfaceAttributeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ModifyNetworkInterfaceAttributeRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.