Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.compute; import com.fasterxml.jackson.annotation.JsonProperty;
Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.
/** * Used for establishing the purchase context of any 3rd Party artifact through * MarketPlace. */
public class PurchasePlan {
The publisher ID.
/** * The publisher ID. */
@JsonProperty(value = "publisher", required = true) private String publisher;
The plan ID.
/** * The plan ID. */
@JsonProperty(value = "name", required = true) private String name;
Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
/** * Specifies the product of the image from the marketplace. This is the * same value as Offer under the imageReference element. */
@JsonProperty(value = "product", required = true) private String product;
The Offer Promotion Code.
/** * The Offer Promotion Code. */
@JsonProperty(value = "promotionCode") private String promotionCode;
Get the publisher ID.
Returns:the publisher value
/** * Get the publisher ID. * * @return the publisher value */
public String publisher() { return this.publisher; }
Set the publisher ID.
Params:
  • publisher – the publisher value to set
Returns:the PurchasePlan object itself.
/** * Set the publisher ID. * * @param publisher the publisher value to set * @return the PurchasePlan object itself. */
public PurchasePlan withPublisher(String publisher) { this.publisher = publisher; return this; }
Get the plan ID.
Returns:the name value
/** * Get the plan ID. * * @return the name value */
public String name() { return this.name; }
Set the plan ID.
Params:
  • name – the name value to set
Returns:the PurchasePlan object itself.
/** * Set the plan ID. * * @param name the name value to set * @return the PurchasePlan object itself. */
public PurchasePlan withName(String name) { this.name = name; return this; }
Get specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
Returns:the product value
/** * Get specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. * * @return the product value */
public String product() { return this.product; }
Set specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
Params:
  • product – the product value to set
Returns:the PurchasePlan object itself.
/** * Set specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. * * @param product the product value to set * @return the PurchasePlan object itself. */
public PurchasePlan withProduct(String product) { this.product = product; return this; }
Get the Offer Promotion Code.
Returns:the promotionCode value
/** * Get the Offer Promotion Code. * * @return the promotionCode value */
public String promotionCode() { return this.promotionCode; }
Set the Offer Promotion Code.
Params:
  • promotionCode – the promotionCode value to set
Returns:the PurchasePlan object itself.
/** * Set the Offer Promotion Code. * * @param promotionCode the promotionCode value to set * @return the PurchasePlan object itself. */
public PurchasePlan withPromotionCode(String promotionCode) { this.promotionCode = promotionCode; return this; } }