Class SubnetMapping
- java.lang.Object
-
- software.amazon.awssdk.services.networkfirewall.model.SubnetMapping
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SubnetMapping.Builder,SubnetMapping>
@Generated("software.amazon.awssdk:codegen") public final class SubnetMapping extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SubnetMapping.Builder,SubnetMapping>
The ID for a subnet that you want to associate with the firewall. This is used with CreateFirewall and AssociateSubnets. Network Firewall creates an instance of the associated firewall in each subnet that you specify, to filter traffic in the subnet's Availability Zone.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSubnetMapping.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubnetMapping.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IPAddressTypeipAddressType()The subnet's IP address type.StringipAddressTypeAsString()The subnet's IP address type.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SubnetMapping.Builder>serializableBuilderClass()StringsubnetId()The unique identifier for the subnet.SubnetMapping.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
subnetId
public final String subnetId()
The unique identifier for the subnet.
- Returns:
- The unique identifier for the subnet.
-
ipAddressType
public final IPAddressType ipAddressType()
The subnet's IP address type. You can't change the IP address type after you create the subnet.
If the service returns an enum value that is not available in the current SDK version,
ipAddressTypewill returnIPAddressType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromipAddressTypeAsString().- Returns:
- The subnet's IP address type. You can't change the IP address type after you create the subnet.
- See Also:
IPAddressType
-
ipAddressTypeAsString
public final String ipAddressTypeAsString()
The subnet's IP address type. You can't change the IP address type after you create the subnet.
If the service returns an enum value that is not available in the current SDK version,
ipAddressTypewill returnIPAddressType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromipAddressTypeAsString().- Returns:
- The subnet's IP address type. You can't change the IP address type after you create the subnet.
- See Also:
IPAddressType
-
toBuilder
public SubnetMapping.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SubnetMapping.Builder,SubnetMapping>
-
builder
public static SubnetMapping.Builder builder()
-
serializableBuilderClass
public static Class<? extends SubnetMapping.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-