FirewallPolicySnat Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. FirewallPolicySnat
- com.
Implements
public final class FirewallPolicySnat
implements JsonSerializable<FirewallPolicySnat>
The private IP addresses/IP ranges to which traffic will not be SNAT.
Constructor Summary
Constructor | Description |
---|---|
FirewallPolicySnat() |
Creates an instance of Firewall |
Method Summary
Modifier and Type | Method and Description |
---|---|
Auto |
autoLearnPrivateRanges()
Get the auto |
static
Firewall |
fromJson(JsonReader jsonReader)
Reads an instance of Firewall |
List<String> |
privateRanges()
Get the private |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Firewall |
withAutoLearnPrivateRanges(AutoLearnPrivateRangesMode autoLearnPrivateRanges)
Set the auto |
Firewall |
withPrivateRanges(List<String> privateRanges)
Set the private |
Methods inherited from java.lang.Object
Constructor Details
FirewallPolicySnat
public FirewallPolicySnat()
Creates an instance of FirewallPolicySnat class.
Method Details
autoLearnPrivateRanges
public AutoLearnPrivateRangesMode autoLearnPrivateRanges()
Get the autoLearnPrivateRanges property: The operation mode for automatically learning private ranges to not be SNAT.
Returns:
fromJson
public static FirewallPolicySnat fromJson(JsonReader jsonReader)
Reads an instance of FirewallPolicySnat from the JsonReader.
Parameters:
Returns:
Throws:
privateRanges
public List
Get the privateRanges property: List of private IP addresses/IP address ranges to not be SNAT.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAutoLearnPrivateRanges
public FirewallPolicySnat withAutoLearnPrivateRanges(AutoLearnPrivateRangesMode autoLearnPrivateRanges)
Set the autoLearnPrivateRanges property: The operation mode for automatically learning private ranges to not be SNAT.
Parameters:
Returns:
withPrivateRanges
public FirewallPolicySnat withPrivateRanges(List
Set the privateRanges property: List of private IP addresses/IP address ranges to not be SNAT.
Parameters:
Returns:
Applies to
Azure SDK for Java