public final class PurchasePlan extends Object
| Constructor and Description |
|---|
PurchasePlan() |
| Modifier and Type | Method and Description |
|---|---|
String |
name()
Get the name property: The plan ID.
|
String |
product()
Get the product property: Specifies the product of the image from the marketplace.
|
String |
promotionCode()
Get the promotionCode property: The promotion code.
|
String |
publisher()
Get the publisher property: The plan ID.
|
void |
validate()
Validates the instance.
|
PurchasePlan |
withName(String name)
Set the name property: The plan ID.
|
PurchasePlan |
withProduct(String product)
Set the product property: Specifies the product of the image from the marketplace.
|
PurchasePlan |
withPromotionCode(String promotionCode)
Set the promotionCode property: The promotion code.
|
PurchasePlan |
withPublisher(String publisher)
Set the publisher property: The plan ID.
|
public String name()
public PurchasePlan withName(String name)
name - the name value to set.public String product()
public PurchasePlan withProduct(String product)
product - the product value to set.public String promotionCode()
public PurchasePlan withPromotionCode(String promotionCode)
promotionCode - the promotionCode value to set.public String publisher()
public PurchasePlan withPublisher(String publisher)
publisher - the publisher value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.