/** * 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.batch.protocol.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * The configuration for nodes in a pool based on the Azure Cloud Services * platform. */ public class CloudServiceConfiguration { /** * The Azure Guest OS family to be installed on the virtual machines in * the pool. */ @JsonProperty(required = true) private String osFamily; /** * The Azure Guest OS version to be installed on the virtual machines in * the pool. * The default value is * which specifies the latest operating system * version for the specified OS family. */ private String targetOSVersion; /** * The Azure Guest OS Version currently installed on the virtual machines * in the pool. This may differ from targetOSVersion if the pool state is * Upgrading. */ private String currentOSVersion; /** * Get the osFamily value. * * @return the osFamily value */ public String osFamily() { return this.osFamily; } /** * Set the osFamily value. * * @param osFamily the osFamily value to set * @return the CloudServiceConfiguration object itself. */ public CloudServiceConfiguration withOsFamily(String osFamily) { this.osFamily = osFamily; return this; } /** * Get the targetOSVersion value. * * @return the targetOSVersion value */ public String targetOSVersion() { return this.targetOSVersion; } /** * Set the targetOSVersion value. * * @param targetOSVersion the targetOSVersion value to set * @return the CloudServiceConfiguration object itself. */ public CloudServiceConfiguration withTargetOSVersion(String targetOSVersion) { this.targetOSVersion = targetOSVersion; return this; } /** * Get the currentOSVersion value. * * @return the currentOSVersion value */ public String currentOSVersion() { return this.currentOSVersion; } /** * Set the currentOSVersion value. * * @param currentOSVersion the currentOSVersion value to set * @return the CloudServiceConfiguration object itself. */ public CloudServiceConfiguration withCurrentOSVersion(String currentOSVersion) { this.currentOSVersion = currentOSVersion; return this; } }