@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SubnetMapping extends Object implements Serializable, Cloneable, StructuredPojo
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.
| Constructor and Description |
|---|
SubnetMapping() |
| Modifier and Type | Method and Description |
|---|---|
SubnetMapping |
clone() |
boolean |
equals(Object obj) |
String |
getIPAddressType()
The subnet's IP address type.
|
String |
getSubnetId()
The unique identifier for the subnet.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setIPAddressType(String iPAddressType)
The subnet's IP address type.
|
void |
setSubnetId(String subnetId)
The unique identifier for the subnet.
|
String |
toString()
Returns a string representation of this object.
|
SubnetMapping |
withIPAddressType(IPAddressType iPAddressType)
The subnet's IP address type.
|
SubnetMapping |
withIPAddressType(String iPAddressType)
The subnet's IP address type.
|
SubnetMapping |
withSubnetId(String subnetId)
The unique identifier for the subnet.
|
public void setSubnetId(String subnetId)
The unique identifier for the subnet.
subnetId - The unique identifier for the subnet.public String getSubnetId()
The unique identifier for the subnet.
public SubnetMapping withSubnetId(String subnetId)
The unique identifier for the subnet.
subnetId - The unique identifier for the subnet.public void setIPAddressType(String iPAddressType)
The subnet's IP address type. You can't change the IP address type after you create the subnet.
iPAddressType - The subnet's IP address type. You can't change the IP address type after you create the subnet.IPAddressTypepublic String getIPAddressType()
The subnet's IP address type. You can't change the IP address type after you create the subnet.
IPAddressTypepublic SubnetMapping withIPAddressType(String iPAddressType)
The subnet's IP address type. You can't change the IP address type after you create the subnet.
iPAddressType - The subnet's IP address type. You can't change the IP address type after you create the subnet.IPAddressTypepublic SubnetMapping withIPAddressType(IPAddressType iPAddressType)
The subnet's IP address type. You can't change the IP address type after you create the subnet.
iPAddressType - The subnet's IP address type. You can't change the IP address type after you create the subnet.IPAddressTypepublic String toString()
toString in class ObjectObject.toString()public SubnetMapping clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.