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 org.joda.time.DateTime;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
Specifies information about the gallery Image Definition that you want to
update.
/**
* Specifies information about the gallery Image Definition that you want to
* update.
*/
@JsonFlatten
public class GalleryImageUpdate extends UpdateResourceDefinition {
The description of this gallery Image Definition resource. This property
is updatable.
/**
* The description of this gallery Image Definition resource. This property
* is updatable.
*/
@JsonProperty(value = "properties.description")
private String description;
The Eula agreement for the gallery Image Definition.
/**
* The Eula agreement for the gallery Image Definition.
*/
@JsonProperty(value = "properties.eula")
private String eula;
The privacy statement uri.
/**
* The privacy statement uri.
*/
@JsonProperty(value = "properties.privacyStatementUri")
private String privacyStatementUri;
The release note uri.
/**
* The release note uri.
*/
@JsonProperty(value = "properties.releaseNoteUri")
private String releaseNoteUri;
This property allows you to specify the type of the OS that is included
in the disk when creating a VM from a managed image.
<br><br> Possible values are: <br><br>
**Windows** <br><br> **Linux**. Possible values include:
'Windows', 'Linux'.
/**
* This property allows you to specify the type of the OS that is included
* in the disk when creating a VM from a managed image.
* <br><br> Possible values are: <br><br>
* **Windows** <br><br> **Linux**. Possible values include:
* 'Windows', 'Linux'.
*/
@JsonProperty(value = "properties.osType", required = true)
private OperatingSystemTypes osType;
This property allows the user to specify whether the virtual machines
created under this image are 'Generalized' or 'Specialized'. Possible
values include: 'Generalized', 'Specialized'.
/**
* This property allows the user to specify whether the virtual machines
* created under this image are 'Generalized' or 'Specialized'. Possible
* values include: 'Generalized', 'Specialized'.
*/
@JsonProperty(value = "properties.osState", required = true)
private OperatingSystemStateTypes osState;
The hypervisor generation of the Virtual Machine. Applicable to OS disks
only. Possible values include: 'V1', 'V2'.
/**
* The hypervisor generation of the Virtual Machine. Applicable to OS disks
* only. Possible values include: 'V1', 'V2'.
*/
@JsonProperty(value = "properties.hyperVGeneration")
private HyperVGeneration hyperVGeneration;
The end of life date of the gallery Image Definition. This property can
be used for decommissioning purposes. This property is updatable.
/**
* The end of life date of the gallery Image Definition. This property can
* be used for decommissioning purposes. This property is updatable.
*/
@JsonProperty(value = "properties.endOfLifeDate")
private DateTime endOfLifeDate;
The identifier property.
/**
* The identifier property.
*/
@JsonProperty(value = "properties.identifier", required = true)
private GalleryImageIdentifier identifier;
The recommended property.
/**
* The recommended property.
*/
@JsonProperty(value = "properties.recommended")
private RecommendedMachineConfiguration recommended;
The disallowed property.
/**
* The disallowed property.
*/
@JsonProperty(value = "properties.disallowed")
private Disallowed disallowed;
The purchasePlan property.
/**
* The purchasePlan property.
*/
@JsonProperty(value = "properties.purchasePlan")
private ImagePurchasePlan purchasePlan;
The current state of the gallery Image Definition.
The provisioning state, which only appears in the response. Possible
values include: 'Creating', 'Updating', 'Failed', 'Succeeded',
'Deleting', 'Migrating'.
/**
* The current state of the gallery Image Definition.
* The provisioning state, which only appears in the response. Possible
* values include: 'Creating', 'Updating', 'Failed', 'Succeeded',
* 'Deleting', 'Migrating'.
*/
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private String provisioningState;
Get the description of this gallery Image Definition resource. This property is updatable.
Returns: the description value
/**
* Get the description of this gallery Image Definition resource. This property is updatable.
*
* @return the description value
*/
public String description() {
return this.description;
}
Set the description of this gallery Image Definition resource. This property is updatable.
Params: - description – the description value to set
Returns: the GalleryImageUpdate object itself.
/**
* Set the description of this gallery Image Definition resource. This property is updatable.
*
* @param description the description value to set
* @return the GalleryImageUpdate object itself.
*/
public GalleryImageUpdate withDescription(String description) {
this.description = description;
return this;
}
Get the Eula agreement for the gallery Image Definition.
Returns: the eula value
/**
* Get the Eula agreement for the gallery Image Definition.
*
* @return the eula value
*/
public String eula() {
return this.eula;
}
Set the Eula agreement for the gallery Image Definition.
Params: - eula – the eula value to set
Returns: the GalleryImageUpdate object itself.
/**
* Set the Eula agreement for the gallery Image Definition.
*
* @param eula the eula value to set
* @return the GalleryImageUpdate object itself.
*/
public GalleryImageUpdate withEula(String eula) {
this.eula = eula;
return this;
}
Get the privacy statement uri.
Returns: the privacyStatementUri value
/**
* Get the privacy statement uri.
*
* @return the privacyStatementUri value
*/
public String privacyStatementUri() {
return this.privacyStatementUri;
}
Set the privacy statement uri.
Params: - privacyStatementUri – the privacyStatementUri value to set
Returns: the GalleryImageUpdate object itself.
/**
* Set the privacy statement uri.
*
* @param privacyStatementUri the privacyStatementUri value to set
* @return the GalleryImageUpdate object itself.
*/
public GalleryImageUpdate withPrivacyStatementUri(String privacyStatementUri) {
this.privacyStatementUri = privacyStatementUri;
return this;
}
Get the release note uri.
Returns: the releaseNoteUri value
/**
* Get the release note uri.
*
* @return the releaseNoteUri value
*/
public String releaseNoteUri() {
return this.releaseNoteUri;
}
Set the release note uri.
Params: - releaseNoteUri – the releaseNoteUri value to set
Returns: the GalleryImageUpdate object itself.
/**
* Set the release note uri.
*
* @param releaseNoteUri the releaseNoteUri value to set
* @return the GalleryImageUpdate object itself.
*/
public GalleryImageUpdate withReleaseNoteUri(String releaseNoteUri) {
this.releaseNoteUri = releaseNoteUri;
return this;
}
Get this property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'.
Returns: the osType value
/**
* Get this property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'.
*
* @return the osType value
*/
public OperatingSystemTypes osType() {
return this.osType;
}
Set this property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'.
Params: - osType – the osType value to set
Returns: the GalleryImageUpdate object itself.
/**
* Set this property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'.
*
* @param osType the osType value to set
* @return the GalleryImageUpdate object itself.
*/
public GalleryImageUpdate withOsType(OperatingSystemTypes osType) {
this.osType = osType;
return this;
}
Get this property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. Possible values include: 'Generalized', 'Specialized'.
Returns: the osState value
/**
* Get this property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. Possible values include: 'Generalized', 'Specialized'.
*
* @return the osState value
*/
public OperatingSystemStateTypes osState() {
return this.osState;
}
Set this property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. Possible values include: 'Generalized', 'Specialized'.
Params: - osState – the osState value to set
Returns: the GalleryImageUpdate object itself.
/**
* Set this property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. Possible values include: 'Generalized', 'Specialized'.
*
* @param osState the osState value to set
* @return the GalleryImageUpdate object itself.
*/
public GalleryImageUpdate withOsState(OperatingSystemStateTypes osState) {
this.osState = osState;
return this;
}
Get the hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values include: 'V1', 'V2'.
Returns: the hyperVGeneration value
/**
* Get the hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values include: 'V1', 'V2'.
*
* @return the hyperVGeneration value
*/
public HyperVGeneration hyperVGeneration() {
return this.hyperVGeneration;
}
Set the hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values include: 'V1', 'V2'.
Params: - hyperVGeneration – the hyperVGeneration value to set
Returns: the GalleryImageUpdate object itself.
/**
* Set the hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values include: 'V1', 'V2'.
*
* @param hyperVGeneration the hyperVGeneration value to set
* @return the GalleryImageUpdate object itself.
*/
public GalleryImageUpdate withHyperVGeneration(HyperVGeneration hyperVGeneration) {
this.hyperVGeneration = hyperVGeneration;
return this;
}
Get the end of life date of the gallery Image Definition. This property can be used for decommissioning purposes. This property is updatable.
Returns: the endOfLifeDate value
/**
* Get the end of life date of the gallery Image Definition. This property can be used for decommissioning purposes. This property is updatable.
*
* @return the endOfLifeDate value
*/
public DateTime endOfLifeDate() {
return this.endOfLifeDate;
}
Set the end of life date of the gallery Image Definition. This property can be used for decommissioning purposes. This property is updatable.
Params: - endOfLifeDate – the endOfLifeDate value to set
Returns: the GalleryImageUpdate object itself.
/**
* Set the end of life date of the gallery Image Definition. This property can be used for decommissioning purposes. This property is updatable.
*
* @param endOfLifeDate the endOfLifeDate value to set
* @return the GalleryImageUpdate object itself.
*/
public GalleryImageUpdate withEndOfLifeDate(DateTime endOfLifeDate) {
this.endOfLifeDate = endOfLifeDate;
return this;
}
Get the identifier value.
Returns: the identifier value
/**
* Get the identifier value.
*
* @return the identifier value
*/
public GalleryImageIdentifier identifier() {
return this.identifier;
}
Set the identifier value.
Params: - identifier – the identifier value to set
Returns: the GalleryImageUpdate object itself.
/**
* Set the identifier value.
*
* @param identifier the identifier value to set
* @return the GalleryImageUpdate object itself.
*/
public GalleryImageUpdate withIdentifier(GalleryImageIdentifier identifier) {
this.identifier = identifier;
return this;
}
Get the recommended value.
Returns: the recommended value
/**
* Get the recommended value.
*
* @return the recommended value
*/
public RecommendedMachineConfiguration recommended() {
return this.recommended;
}
Set the recommended value.
Params: - recommended – the recommended value to set
Returns: the GalleryImageUpdate object itself.
/**
* Set the recommended value.
*
* @param recommended the recommended value to set
* @return the GalleryImageUpdate object itself.
*/
public GalleryImageUpdate withRecommended(RecommendedMachineConfiguration recommended) {
this.recommended = recommended;
return this;
}
Get the disallowed value.
Returns: the disallowed value
/**
* Get the disallowed value.
*
* @return the disallowed value
*/
public Disallowed disallowed() {
return this.disallowed;
}
Set the disallowed value.
Params: - disallowed – the disallowed value to set
Returns: the GalleryImageUpdate object itself.
/**
* Set the disallowed value.
*
* @param disallowed the disallowed value to set
* @return the GalleryImageUpdate object itself.
*/
public GalleryImageUpdate withDisallowed(Disallowed disallowed) {
this.disallowed = disallowed;
return this;
}
Get the purchasePlan value.
Returns: the purchasePlan value
/**
* Get the purchasePlan value.
*
* @return the purchasePlan value
*/
public ImagePurchasePlan purchasePlan() {
return this.purchasePlan;
}
Set the purchasePlan value.
Params: - purchasePlan – the purchasePlan value to set
Returns: the GalleryImageUpdate object itself.
/**
* Set the purchasePlan value.
*
* @param purchasePlan the purchasePlan value to set
* @return the GalleryImageUpdate object itself.
*/
public GalleryImageUpdate withPurchasePlan(ImagePurchasePlan purchasePlan) {
this.purchasePlan = purchasePlan;
return this;
}
Get the provisioning state, which only appears in the response. Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', 'Migrating'.
Returns: the provisioningState value
/**
* Get the provisioning state, which only appears in the response. Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', 'Migrating'.
*
* @return the provisioningState value
*/
public String provisioningState() {
return this.provisioningState;
}
}