AddressPrefixSetPropertiesFormat Class

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

Implements

public final class AddressPrefixSetPropertiesFormat
implements JsonSerializable<AddressPrefixSetPropertiesFormat>

Properties of address prefix set.

Constructor Summary

Constructor Description
AddressPrefixSetPropertiesFormat()

Creates an instance of AddressPrefixSetPropertiesFormat class.

Method Summary

Modifier and Type Method and Description
List<String> addressPrefixes()

Get the addressPrefixes property: The list of address prefixes in CIDR notation.

static AddressPrefixSetPropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of AddressPrefixSetPropertiesFormat from the JsonReader.

CommonProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the address prefix set resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AddressPrefixSetPropertiesFormat withAddressPrefixes(List<String> addressPrefixes)

Set the addressPrefixes property: The list of address prefixes in CIDR notation.

Methods inherited from java.lang.Object

Constructor Details

AddressPrefixSetPropertiesFormat

public AddressPrefixSetPropertiesFormat()

Creates an instance of AddressPrefixSetPropertiesFormat class.

Method Details

addressPrefixes

public List<String> addressPrefixes()

Get the addressPrefixes property: The list of address prefixes in CIDR notation. Supports both IPv4 and IPv6 CIDR notation (e.g. '10.0.0.0/16', '2001:db8::/32').

Returns:

the addressPrefixes value.

fromJson

public static AddressPrefixSetPropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of AddressPrefixSetPropertiesFormat from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AddressPrefixSetPropertiesFormat if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

provisioningState

public CommonProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the address prefix set resource.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAddressPrefixes

public AddressPrefixSetPropertiesFormat withAddressPrefixes(List<String> addressPrefixes)

Set the addressPrefixes property: The list of address prefixes in CIDR notation. Supports both IPv4 and IPv6 CIDR notation (e.g. '10.0.0.0/16', '2001:db8::/32').

Parameters:

addressPrefixes - the addressPrefixes value to set.

Returns:

the AddressPrefixSetPropertiesFormat object itself.

Applies to