@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.IPAddressType
public String getIPAddressType()
The subnet's IP address type. You can't change the IP address type after you create the subnet.
IPAddressType
public 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.IPAddressType
public 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.IPAddressType
public String toString()
toString
in class Object
Object.toString()
public SubnetMapping clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.