PublicIpAddressSku Class

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

Implements

public final class PublicIpAddressSku
implements JsonSerializable<PublicIpAddressSku>

Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible.

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: Specify public IP sku name.

PublicIpAddressSkuTier tier()

Get the tier property: Specify public IP sku tier.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PublicIpAddressSku withName(PublicIpAddressSkuName name)

Set the name property: Specify public IP sku name.

PublicIpAddressSku withTier(PublicIpAddressSkuTier tier)

Set the tier property: Specify public IP sku tier.

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: Specify public IP sku name.

Returns:

the name value.

tier

public PublicIpAddressSkuTier tier()

Get the tier property: Specify public IP sku tier.

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: Specify public IP sku name.

Parameters:

name - the name value to set.

Returns:

the PublicIpAddressSku object itself.

withTier

public PublicIpAddressSku withTier(PublicIpAddressSkuTier tier)

Set the tier property: Specify public IP sku tier.

Parameters:

tier - the tier value to set.

Returns:

the PublicIpAddressSku object itself.

Applies to