@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) |
Boolean |
getAssociatePublicIpAddress()
Indicates whether to assign a public IPv4 address to a network interface.
|
NetworkInterfaceAttachmentChanges |
getAttachment()
Information about the interface attachment.
|
ConnectionTrackingSpecificationRequest |
getConnectionTrackingSpecification()
A connection tracking specification.
|
String |
getDescription()
A description for the network interface.
|
Request<ModifyNetworkInterfaceAttributeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Boolean |
getEnablePrimaryIpv6()
If you’re modifying a network interface in a dual-stack or IPv6-only subnet, you have the option to assign a
primary IPv6 IP address.
|
EnaSrdSpecification |
getEnaSrdSpecification()
Updates the ENA Express configuration for the network interface that’s attached to the instance.
|
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 |
isAssociatePublicIpAddress()
Indicates whether to assign a public IPv4 address to a network interface.
|
Boolean |
isEnablePrimaryIpv6()
If you’re modifying a network interface in a dual-stack or IPv6-only subnet, you have the option to assign a
primary IPv6 IP address.
|
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 |
setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether to assign a public IPv4 address to a network interface.
|
void |
setAttachment(NetworkInterfaceAttachmentChanges attachment)
Information about the interface attachment.
|
void |
setConnectionTrackingSpecification(ConnectionTrackingSpecificationRequest connectionTrackingSpecification)
A connection tracking specification.
|
void |
setDescription(String description)
A description for the network interface.
|
void |
setEnablePrimaryIpv6(Boolean enablePrimaryIpv6)
If you’re modifying a network interface in a dual-stack or IPv6-only subnet, you have the option to assign a
primary IPv6 IP address.
|
void |
setEnaSrdSpecification(EnaSrdSpecification enaSrdSpecification)
Updates the ENA Express configuration for the network interface that’s attached to the instance.
|
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 |
withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether to assign a public IPv4 address to a network interface.
|
ModifyNetworkInterfaceAttributeRequest |
withAttachment(NetworkInterfaceAttachmentChanges attachment)
Information about the interface attachment.
|
ModifyNetworkInterfaceAttributeRequest |
withConnectionTrackingSpecification(ConnectionTrackingSpecificationRequest connectionTrackingSpecification)
A connection tracking specification.
|
ModifyNetworkInterfaceAttributeRequest |
withDescription(String description)
A description for the network interface.
|
ModifyNetworkInterfaceAttributeRequest |
withEnablePrimaryIpv6(Boolean enablePrimaryIpv6)
If you’re modifying a network interface in a dual-stack or IPv6-only subnet, you have the option to assign a
primary IPv6 IP address.
|
ModifyNetworkInterfaceAttributeRequest |
withEnaSrdSpecification(EnaSrdSpecification enaSrdSpecification)
Updates the ENA Express configuration for the network interface that’s attached to the instance.
|
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.
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 void setEnaSrdSpecification(EnaSrdSpecification enaSrdSpecification)
Updates the ENA Express configuration for the network interface that’s attached to the instance.
enaSrdSpecification
- Updates the ENA Express configuration for the network interface that’s attached to the instance.public EnaSrdSpecification getEnaSrdSpecification()
Updates the ENA Express configuration for the network interface that’s attached to the instance.
public ModifyNetworkInterfaceAttributeRequest withEnaSrdSpecification(EnaSrdSpecification enaSrdSpecification)
Updates the ENA Express configuration for the network interface that’s attached to the instance.
enaSrdSpecification
- Updates the ENA Express configuration for the network interface that’s attached to the instance.public void setEnablePrimaryIpv6(Boolean enablePrimaryIpv6)
If you’re modifying a network interface in a dual-stack or IPv6-only subnet, you have the option to assign a primary IPv6 IP address. A primary IPv6 address is an IPv6 GUA address associated with an ENI that you have enabled to use a primary IPv6 address. Use this option if the instance that this ENI will be attached to relies on its IPv6 address not changing. Amazon Web Services will automatically assign an IPv6 address associated with the ENI attached to your instance to be the primary IPv6 address. Once you enable an IPv6 GUA address to be a primary IPv6, you cannot disable it. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. If you have multiple IPv6 addresses associated with an ENI attached to your instance and you enable a primary IPv6 address, the first IPv6 GUA address associated with the ENI becomes the primary IPv6 address.
enablePrimaryIpv6
- If you’re modifying a network interface in a dual-stack or IPv6-only subnet, you have the option to assign
a primary IPv6 IP address. A primary IPv6 address is an IPv6 GUA address associated with an ENI that you
have enabled to use a primary IPv6 address. Use this option if the instance that this ENI will be attached
to relies on its IPv6 address not changing. Amazon Web Services will automatically assign an IPv6 address
associated with the ENI attached to your instance to be the primary IPv6 address. Once you enable an IPv6
GUA address to be a primary IPv6, you cannot disable it. When you enable an IPv6 GUA address to be a
primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or
the network interface is detached. If you have multiple IPv6 addresses associated with an ENI attached to
your instance and you enable a primary IPv6 address, the first IPv6 GUA address associated with the ENI
becomes the primary IPv6 address.public Boolean getEnablePrimaryIpv6()
If you’re modifying a network interface in a dual-stack or IPv6-only subnet, you have the option to assign a primary IPv6 IP address. A primary IPv6 address is an IPv6 GUA address associated with an ENI that you have enabled to use a primary IPv6 address. Use this option if the instance that this ENI will be attached to relies on its IPv6 address not changing. Amazon Web Services will automatically assign an IPv6 address associated with the ENI attached to your instance to be the primary IPv6 address. Once you enable an IPv6 GUA address to be a primary IPv6, you cannot disable it. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. If you have multiple IPv6 addresses associated with an ENI attached to your instance and you enable a primary IPv6 address, the first IPv6 GUA address associated with the ENI becomes the primary IPv6 address.
public ModifyNetworkInterfaceAttributeRequest withEnablePrimaryIpv6(Boolean enablePrimaryIpv6)
If you’re modifying a network interface in a dual-stack or IPv6-only subnet, you have the option to assign a primary IPv6 IP address. A primary IPv6 address is an IPv6 GUA address associated with an ENI that you have enabled to use a primary IPv6 address. Use this option if the instance that this ENI will be attached to relies on its IPv6 address not changing. Amazon Web Services will automatically assign an IPv6 address associated with the ENI attached to your instance to be the primary IPv6 address. Once you enable an IPv6 GUA address to be a primary IPv6, you cannot disable it. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. If you have multiple IPv6 addresses associated with an ENI attached to your instance and you enable a primary IPv6 address, the first IPv6 GUA address associated with the ENI becomes the primary IPv6 address.
enablePrimaryIpv6
- If you’re modifying a network interface in a dual-stack or IPv6-only subnet, you have the option to assign
a primary IPv6 IP address. A primary IPv6 address is an IPv6 GUA address associated with an ENI that you
have enabled to use a primary IPv6 address. Use this option if the instance that this ENI will be attached
to relies on its IPv6 address not changing. Amazon Web Services will automatically assign an IPv6 address
associated with the ENI attached to your instance to be the primary IPv6 address. Once you enable an IPv6
GUA address to be a primary IPv6, you cannot disable it. When you enable an IPv6 GUA address to be a
primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or
the network interface is detached. If you have multiple IPv6 addresses associated with an ENI attached to
your instance and you enable a primary IPv6 address, the first IPv6 GUA address associated with the ENI
becomes the primary IPv6 address.public Boolean isEnablePrimaryIpv6()
If you’re modifying a network interface in a dual-stack or IPv6-only subnet, you have the option to assign a primary IPv6 IP address. A primary IPv6 address is an IPv6 GUA address associated with an ENI that you have enabled to use a primary IPv6 address. Use this option if the instance that this ENI will be attached to relies on its IPv6 address not changing. Amazon Web Services will automatically assign an IPv6 address associated with the ENI attached to your instance to be the primary IPv6 address. Once you enable an IPv6 GUA address to be a primary IPv6, you cannot disable it. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. If you have multiple IPv6 addresses associated with an ENI attached to your instance and you enable a primary IPv6 address, the first IPv6 GUA address associated with the ENI becomes the primary IPv6 address.
public void setConnectionTrackingSpecification(ConnectionTrackingSpecificationRequest connectionTrackingSpecification)
A connection tracking specification.
connectionTrackingSpecification
- A connection tracking specification.public ConnectionTrackingSpecificationRequest getConnectionTrackingSpecification()
A connection tracking specification.
public ModifyNetworkInterfaceAttributeRequest withConnectionTrackingSpecification(ConnectionTrackingSpecificationRequest connectionTrackingSpecification)
A connection tracking specification.
connectionTrackingSpecification
- A connection tracking specification.public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether to assign a public IPv4 address to a network interface. This option can be enabled for any network interface but will only apply to the primary network interface (eth0).
associatePublicIpAddress
- Indicates whether to assign a public IPv4 address to a network interface. This option can be enabled for
any network interface but will only apply to the primary network interface (eth0).public Boolean getAssociatePublicIpAddress()
Indicates whether to assign a public IPv4 address to a network interface. This option can be enabled for any network interface but will only apply to the primary network interface (eth0).
public ModifyNetworkInterfaceAttributeRequest withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether to assign a public IPv4 address to a network interface. This option can be enabled for any network interface but will only apply to the primary network interface (eth0).
associatePublicIpAddress
- Indicates whether to assign a public IPv4 address to a network interface. This option can be enabled for
any network interface but will only apply to the primary network interface (eth0).public Boolean isAssociatePublicIpAddress()
Indicates whether to assign a public IPv4 address to a network interface. This option can be enabled for any network interface but will only apply to the primary network interface (eth0).
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()