Class CloudServiceConfiguration
java.lang.Object
com.azure.resourcemanager.batch.models.CloudServiceConfiguration
The configuration for nodes in a pool based on the Azure Cloud Services platform.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CloudServiceConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionosFamily()Get the osFamily property: The Azure Guest OS family to be installed on the virtual machines in the pool.Get the osVersion property: The Azure Guest OS version to be installed on the virtual machines in the pool.voidvalidate()Validates the instance.withOsFamily(String osFamily) Set the osFamily property: The Azure Guest OS family to be installed on the virtual machines in the pool.withOsVersion(String osVersion) Set the osVersion property: The Azure Guest OS version to be installed on the virtual machines in the pool.
-
Constructor Details
-
CloudServiceConfiguration
public CloudServiceConfiguration()Creates an instance of CloudServiceConfiguration class.
-
-
Method Details
-
osFamily
Get the osFamily property: The Azure Guest OS family to be installed on the virtual machines in the pool. Possible values are: 2 - OS Family 2, equivalent to Windows Server 2008 R2 SP1. 3 - OS Family 3, equivalent to Windows Server 2012. 4 - OS Family 4, equivalent to Windows Server 2012 R2. 5 - OS Family 5, equivalent to Windows Server 2016. 6 - OS Family 6, equivalent to Windows Server 2019. For more information, see Azure Guest OS Releases (https://azure.microsoft.com/documentation/articles/cloud-services-guestos-update-matrix/#releases).- Returns:
- the osFamily value.
-
withOsFamily
Set the osFamily property: The Azure Guest OS family to be installed on the virtual machines in the pool. Possible values are: 2 - OS Family 2, equivalent to Windows Server 2008 R2 SP1. 3 - OS Family 3, equivalent to Windows Server 2012. 4 - OS Family 4, equivalent to Windows Server 2012 R2. 5 - OS Family 5, equivalent to Windows Server 2016. 6 - OS Family 6, equivalent to Windows Server 2019. For more information, see Azure Guest OS Releases (https://azure.microsoft.com/documentation/articles/cloud-services-guestos-update-matrix/#releases).- Parameters:
osFamily- the osFamily value to set.- Returns:
- the CloudServiceConfiguration object itself.
-
osVersion
Get the osVersion property: 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.- Returns:
- the osVersion value.
-
withOsVersion
Set the osVersion property: 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.- Parameters:
osVersion- the osVersion value to set.- Returns:
- the CloudServiceConfiguration object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-