ArmPlan Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.ArmPlan

Implements

public final class ArmPlan
implements JsonSerializable<ArmPlan>

The plan object in Azure Resource Manager, represents a marketplace plan.

Constructor Summary

Constructor Description
ArmPlan()

Creates an instance of ArmPlan class.

Method Summary

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

Reads an instance of ArmPlan from the JsonReader.

String name()

Get the name property: The name.

String product()

Get the product property: The product.

String promotionCode()

Get the promotionCode property: The promotion code.

String publisher()

Get the publisher property: The publisher.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String version()

Get the version property: Version of product.

ArmPlan withName(String name)

Set the name property: The name.

ArmPlan withProduct(String product)

Set the product property: The product.

ArmPlan withPromotionCode(String promotionCode)

Set the promotionCode property: The promotion code.

ArmPlan withPublisher(String publisher)

Set the publisher property: The publisher.

ArmPlan withVersion(String version)

Set the version property: Version of product.

Methods inherited from java.lang.Object

Constructor Details

ArmPlan

public ArmPlan()

Creates an instance of ArmPlan class.

Method Details

fromJson

public static ArmPlan fromJson(JsonReader jsonReader)

Reads an instance of ArmPlan from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name.

Returns:

the name value.

product

public String product()

Get the product property: The product.

Returns:

the product value.

promotionCode

public String promotionCode()

Get the promotionCode property: The promotion code.

Returns:

the promotionCode value.

publisher

public String publisher()

Get the publisher property: The publisher.

Returns:

the publisher value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

version

public String version()

Get the version property: Version of product.

Returns:

the version value.

withName

public ArmPlan withName(String name)

Set the name property: The name.

Parameters:

name - the name value to set.

Returns:

the ArmPlan object itself.

withProduct

public ArmPlan withProduct(String product)

Set the product property: The product.

Parameters:

product - the product value to set.

Returns:

the ArmPlan object itself.

withPromotionCode

public ArmPlan withPromotionCode(String promotionCode)

Set the promotionCode property: The promotion code.

Parameters:

promotionCode - the promotionCode value to set.

Returns:

the ArmPlan object itself.

withPublisher

public ArmPlan withPublisher(String publisher)

Set the publisher property: The publisher.

Parameters:

publisher - the publisher value to set.

Returns:

the ArmPlan object itself.

withVersion

public ArmPlan withVersion(String version)

Set the version property: Version of product.

Parameters:

version - the version value to set.

Returns:

the ArmPlan object itself.

Applies to