FirewallPolicySnat Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.FirewallPolicySnat

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 FirewallPolicySnat class.

Method Summary

Modifier and Type Method and Description
AutoLearnPrivateRangesMode autoLearnPrivateRanges()

Get the autoLearnPrivateRanges property: The operation mode for automatically learning private ranges to not be SNAT.

static FirewallPolicySnat fromJson(JsonReader jsonReader)

Reads an instance of FirewallPolicySnat from the JsonReader.

List<String> privateRanges()

Get the privateRanges property: List of private IP addresses/IP address ranges to not be SNAT.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

FirewallPolicySnat withAutoLearnPrivateRanges(AutoLearnPrivateRangesMode autoLearnPrivateRanges)

Set the autoLearnPrivateRanges property: The operation mode for automatically learning private ranges to not be SNAT.

FirewallPolicySnat withPrivateRanges(List<String> privateRanges)

Set the privateRanges property: List of private IP addresses/IP address ranges to not be SNAT.

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:

the autoLearnPrivateRanges value.

fromJson

public static FirewallPolicySnat fromJson(JsonReader jsonReader)

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.

privateRanges

public List privateRanges()

Get the privateRanges property: List of private IP addresses/IP address ranges to not be SNAT.

Returns:

the privateRanges value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

autoLearnPrivateRanges - the autoLearnPrivateRanges value to set.

Returns:

the FirewallPolicySnat object itself.

withPrivateRanges

public FirewallPolicySnat withPrivateRanges(List privateRanges)

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.

Applies to