@Generated(value="software.amazon.awssdk:codegen") public class ModifySubnetAttributeRequest extends EC2Request implements ToCopyableBuilder<ModifySubnetAttributeRequest.Builder,ModifySubnetAttributeRequest>
Contains the parameters for ModifySubnetAttribute.
Modifier and Type | Class and Description |
---|---|
static interface |
ModifySubnetAttributeRequest.Builder |
Modifier and Type | Method and Description |
---|---|
Boolean |
assignIpv6AddressOnCreation()
Specify
true to indicate that network interfaces created in the specified subnet should be assigned
an IPv6 address. |
static ModifySubnetAttributeRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
Boolean |
mapPublicIpOnLaunch()
Specify
true to indicate that network interfaces created in the specified subnet should be assigned
a public IPv4 address. |
static Class<? extends ModifySubnetAttributeRequest.Builder> |
serializableBuilderClass() |
String |
subnetId()
The ID of the subnet.
|
ModifySubnetAttributeRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
requestOverrideConfig
copy
public Boolean assignIpv6AddressOnCreation()
Specify true
to indicate that network interfaces created in the specified subnet should be assigned
an IPv6 address. This includes a network interface that's created when launching an instance into the subnet (the
instance therefore receives an IPv6 address).
If you enable the IPv6 addressing feature for your subnet, your network interface or instance only receives an
IPv6 address if it's created using version 2016-11-15
or later of the Amazon EC2 API.
true
to indicate that network interfaces created in the specified subnet should be
assigned an IPv6 address. This includes a network interface that's created when launching an instance
into the subnet (the instance therefore receives an IPv6 address).
If you enable the IPv6 addressing feature for your subnet, your network interface or instance only
receives an IPv6 address if it's created using version 2016-11-15
or later of the Amazon EC2
API.
public Boolean mapPublicIpOnLaunch()
Specify true
to indicate that network interfaces created in the specified subnet should be assigned
a public IPv4 address. This includes a network interface that's created when launching an instance into the
subnet (the instance therefore receives a public IPv4 address).
true
to indicate that network interfaces created in the specified subnet should be
assigned a public IPv4 address. This includes a network interface that's created when launching an
instance into the subnet (the instance therefore receives a public IPv4 address).public String subnetId()
The ID of the subnet.
public ModifySubnetAttributeRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ModifySubnetAttributeRequest.Builder,ModifySubnetAttributeRequest>
toBuilder
in class EC2Request
public static ModifySubnetAttributeRequest.Builder builder()
public static Class<? extends ModifySubnetAttributeRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.