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;
Describes the gallery Image Definition purchase plan. This is used by
marketplace images.
/**
* Describes the gallery Image Definition purchase plan. This is used by
* marketplace images.
*/
public class ImagePurchasePlan {
The plan ID.
/**
* The plan ID.
*/
@JsonProperty(value = "name")
private String name;
The publisher ID.
/**
* The publisher ID.
*/
@JsonProperty(value = "publisher")
private String publisher;
The product ID.
/**
* The product ID.
*/
@JsonProperty(value = "product")
private String product;
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 ImagePurchasePlan object itself.
/**
* Set the plan ID.
*
* @param name the name value to set
* @return the ImagePurchasePlan object itself.
*/
public ImagePurchasePlan withName(String name) {
this.name = name;
return this;
}
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 ImagePurchasePlan object itself.
/**
* Set the publisher ID.
*
* @param publisher the publisher value to set
* @return the ImagePurchasePlan object itself.
*/
public ImagePurchasePlan withPublisher(String publisher) {
this.publisher = publisher;
return this;
}
Get the product ID.
Returns: the product value
/**
* Get the product ID.
*
* @return the product value
*/
public String product() {
return this.product;
}
Set the product ID.
Params: - product – the product value to set
Returns: the ImagePurchasePlan object itself.
/**
* Set the product ID.
*
* @param product the product value to set
* @return the ImagePurchasePlan object itself.
*/
public ImagePurchasePlan withProduct(String product) {
this.product = product;
return this;
}
}