PublicIpAddressSku Class

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

Implements

public final class PublicIpAddressSku
implements JsonSerializable<PublicIpAddressSku>

SKU of a public IP address.

Constructor Summary

Constructor Description
PublicIpAddressSku()

Creates an instance of PublicIpAddressSku class.

Method Summary

Modifier and Type Method and Description
static PublicIpAddressSku fromJson(JsonReader jsonReader)

Reads an instance of PublicIpAddressSku from the JsonReader.

PublicIpAddressSkuName name()

Get the name property: Name of a public IP address SKU.

PublicIpAddressSkuTier tier()

Get the tier property: Tier of a public IP address SKU.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PublicIpAddressSku withName(PublicIpAddressSkuName name)

Set the name property: Name of a public IP address SKU.

PublicIpAddressSku withTier(PublicIpAddressSkuTier tier)

Set the tier property: Tier of a public IP address SKU.

Methods inherited from java.lang.Object

Constructor Details

PublicIpAddressSku

public PublicIpAddressSku()

Creates an instance of PublicIpAddressSku class.

Method Details

fromJson

public static PublicIpAddressSku fromJson(JsonReader jsonReader)

Reads an instance of PublicIpAddressSku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PublicIpAddressSku 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 PublicIpAddressSku.

name

public PublicIpAddressSkuName name()

Get the name property: Name of a public IP address SKU.

Returns:

the name value.

tier

public PublicIpAddressSkuTier tier()

Get the tier property: Tier of a public IP address SKU.

Returns:

the tier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public PublicIpAddressSku withName(PublicIpAddressSkuName name)

Set the name property: Name of a public IP address SKU.

Parameters:

name - the name value to set.

Returns:

the PublicIpAddressSku object itself.

withTier

public PublicIpAddressSku withTier(PublicIpAddressSkuTier tier)

Set the tier property: Tier of a public IP address SKU.

Parameters:

tier - the tier value to set.

Returns:

the PublicIpAddressSku object itself.

Applies to