Share via


AzurePlan Class

  • java.lang.Object
    • com.azure.resourcemanager.billing.models.AzurePlan

Implements

public final class AzurePlan
implements JsonSerializable<AzurePlan>

Details of the Azure plan.

Constructor Summary

Constructor Description
AzurePlan()

Creates an instance of AzurePlan class.

Method Summary

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

Reads an instance of AzurePlan from the JsonReader.

String productId()

Get the productId property: The ID that uniquely identifies a product.

String skuDescription()

Get the skuDescription property: The sku description.

String skuId()

Get the skuId property: The ID that uniquely identifies a sku.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AzurePlan withProductId(String productId)

Set the productId property: The ID that uniquely identifies a product.

AzurePlan withSkuDescription(String skuDescription)

Set the skuDescription property: The sku description.

AzurePlan withSkuId(String skuId)

Set the skuId property: The ID that uniquely identifies a sku.

Methods inherited from java.lang.Object

Constructor Details

AzurePlan

public AzurePlan()

Creates an instance of AzurePlan class.

Method Details

fromJson

public static AzurePlan fromJson(JsonReader jsonReader)

Reads an instance of AzurePlan from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

productId

public String productId()

Get the productId property: The ID that uniquely identifies a product.

Returns:

the productId value.

skuDescription

public String skuDescription()

Get the skuDescription property: The sku description.

Returns:

the skuDescription value.

skuId

public String skuId()

Get the skuId property: The ID that uniquely identifies a sku.

Returns:

the skuId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withProductId

public AzurePlan withProductId(String productId)

Set the productId property: The ID that uniquely identifies a product.

Parameters:

productId - the productId value to set.

Returns:

the AzurePlan object itself.

withSkuDescription

public AzurePlan withSkuDescription(String skuDescription)

Set the skuDescription property: The sku description.

Parameters:

skuDescription - the skuDescription value to set.

Returns:

the AzurePlan object itself.

withSkuId

public AzurePlan withSkuId(String skuId)

Set the skuId property: The ID that uniquely identifies a sku.

Parameters:

skuId - the skuId value to set.

Returns:

the AzurePlan object itself.

Applies to