PurchasePlan Class
- java.
lang. Object - com.
microsoft. azure. management. containerservice. PurchasePlan
- com.
public class PurchasePlan
Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
name()
Get the plan ID. |
String |
product()
Get specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. |
String |
promotionCode()
Get the promotion code. |
String |
publisher()
Get the plan ID. |
Purchase |
withName(String name)
Set the plan ID. |
Purchase |
withProduct(String product)
Set specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. |
Purchase |
withPromotionCode(String promotionCode)
Set the promotion code. |
Purchase |
withPublisher(String publisher)
Set the plan ID. |
Method Details
name
public String name()
Get the plan ID.
Returns:
product
public String product()
Get specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
Returns:
promotionCode
public String promotionCode()
Get the promotion code.
Returns:
publisher
public String publisher()
Get the plan ID.
Returns:
withName
public PurchasePlan withName(String name)
Set the plan ID.
Parameters:
Returns:
withProduct
public PurchasePlan withProduct(String product)
Set specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
Parameters:
Returns:
withPromotionCode
public PurchasePlan withPromotionCode(String promotionCode)
Set the promotion code.
Parameters:
Returns:
withPublisher
public PurchasePlan withPublisher(String publisher)
Set the plan ID.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for