/** * 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.implementation; import com.microsoft.azure.SubResource; import com.microsoft.azure.management.compute.ImageStorageProfile; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.Resource; /** * Describes an Image. */ @JsonFlatten public class ImageInner extends Resource { /** * The source virtual machine from which Image is created. */ @JsonProperty(value = "properties.sourceVirtualMachine") private SubResource sourceVirtualMachine; /** * The storage profile. */ @JsonProperty(value = "properties.storageProfile") private ImageStorageProfile storageProfile; /** * The provisioning state. */ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) private String provisioningState; /** * Get the sourceVirtualMachine value. * * @return the sourceVirtualMachine value */ public SubResource sourceVirtualMachine() { return this.sourceVirtualMachine; } /** * Set the sourceVirtualMachine value. * * @param sourceVirtualMachine the sourceVirtualMachine value to set * @return the ImageInner object itself. */ public ImageInner withSourceVirtualMachine(SubResource sourceVirtualMachine) { this.sourceVirtualMachine = sourceVirtualMachine; return this; } /** * Get the storageProfile value. * * @return the storageProfile value */ public ImageStorageProfile storageProfile() { return this.storageProfile; } /** * Set the storageProfile value. * * @param storageProfile the storageProfile value to set * @return the ImageInner object itself. */ public ImageInner withStorageProfile(ImageStorageProfile storageProfile) { this.storageProfile = storageProfile; return this; } /** * Get the provisioningState value. * * @return the provisioningState value */ public String provisioningState() { return this.provisioningState; } }