Class FirewallPolicySnat
java.lang.Object
com.azure.resourcemanager.network.models.FirewallPolicySnat
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FirewallPolicySnat>
public final class FirewallPolicySnat
extends Object
implements com.azure.json.JsonSerializable<FirewallPolicySnat>
The private IP addresses/IP ranges to which traffic will not be SNAT.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the autoLearnPrivateRanges property: The operation mode for automatically learning private ranges to not be SNAT.static FirewallPolicySnatfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FirewallPolicySnat from the JsonReader.Get the privateRanges property: List of private IP addresses/IP address ranges to not be SNAT.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAutoLearnPrivateRanges(AutoLearnPrivateRangesMode autoLearnPrivateRanges) Set the autoLearnPrivateRanges property: The operation mode for automatically learning private ranges to not be SNAT.withPrivateRanges(List<String> privateRanges) Set the privateRanges property: List of private IP addresses/IP address ranges to not be SNAT.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
FirewallPolicySnat
public FirewallPolicySnat()Creates an instance of FirewallPolicySnat class.
-
-
Method Details
-
privateRanges
Get the privateRanges property: List of private IP addresses/IP address ranges to not be SNAT.- Returns:
- the privateRanges value.
-
withPrivateRanges
Set the privateRanges property: List of private IP addresses/IP address ranges to not be SNAT.- Parameters:
privateRanges- the privateRanges value to set.- Returns:
- the FirewallPolicySnat object itself.
-
autoLearnPrivateRanges
Get the autoLearnPrivateRanges property: The operation mode for automatically learning private ranges to not be SNAT.- Returns:
- the autoLearnPrivateRanges value.
-
withAutoLearnPrivateRanges
public FirewallPolicySnat withAutoLearnPrivateRanges(AutoLearnPrivateRangesMode autoLearnPrivateRanges) Set the autoLearnPrivateRanges property: The operation mode for automatically learning private ranges to not be SNAT.- Parameters:
autoLearnPrivateRanges- the autoLearnPrivateRanges value to set.- Returns:
- the FirewallPolicySnat object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<FirewallPolicySnat>- Throws:
IOException
-
fromJson
Reads an instance of FirewallPolicySnat from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FirewallPolicySnat if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the FirewallPolicySnat.
-