Class WindowsConfiguration
java.lang.Object
com.azure.resourcemanager.compute.models.WindowsConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WindowsConfiguration>
public final class WindowsConfiguration
extends Object
implements com.azure.json.JsonSerializable<WindowsConfiguration>
Specifies Windows operating system settings on the virtual machine.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalUnattendContent property: Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup.Get the enableAutomaticUpdates property: Indicates whether Automatic Updates is enabled for the Windows virtual machine.Get the enableVMAgentPlatformUpdates property: Indicates whether VMAgent Platform Updates are enabled for the Windows Virtual Machine.static WindowsConfigurationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WindowsConfiguration from the JsonReader.Get the patchSettings property: [Preview Feature] Specifies settings related to VM Guest Patching on Windows.Get the provisionVMAgent property: Indicates whether virtual machine agent should be provisioned on the virtual machine.timeZone()Get the timeZone property: Specifies the time zone of the virtual machine. e.g.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.winRM()Get the winRM property: Specifies the Windows Remote Management listeners.withAdditionalUnattendContent(List<AdditionalUnattendContent> additionalUnattendContent) Set the additionalUnattendContent property: Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup.withEnableAutomaticUpdates(Boolean enableAutomaticUpdates) Set the enableAutomaticUpdates property: Indicates whether Automatic Updates is enabled for the Windows virtual machine.withPatchSettings(PatchSettings patchSettings) Set the patchSettings property: [Preview Feature] Specifies settings related to VM Guest Patching on Windows.withProvisionVMAgent(Boolean provisionVMAgent) Set the provisionVMAgent property: Indicates whether virtual machine agent should be provisioned on the virtual machine.withTimeZone(String timeZone) Set the timeZone property: Specifies the time zone of the virtual machine. e.g.withWinRM(WinRMConfiguration winRM) Set the winRM property: Specifies the Windows Remote Management listeners.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WindowsConfiguration
public WindowsConfiguration()Creates an instance of WindowsConfiguration class.
-
-
Method Details
-
provisionVMAgent
Get the provisionVMAgent property: Indicates whether virtual machine agent should be provisioned on the virtual machine. When this property is not specified in the request body, it is set to true by default. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later.- Returns:
- the provisionVMAgent value.
-
withProvisionVMAgent
Set the provisionVMAgent property: Indicates whether virtual machine agent should be provisioned on the virtual machine. When this property is not specified in the request body, it is set to true by default. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later.- Parameters:
provisionVMAgent- the provisionVMAgent value to set.- Returns:
- the WindowsConfiguration object itself.
-
enableAutomaticUpdates
Get the enableAutomaticUpdates property: Indicates whether Automatic Updates is enabled for the Windows virtual machine. Default value is true. For virtual machine scale sets, this property can be updated and updates will take effect on OS reprovisioning.- Returns:
- the enableAutomaticUpdates value.
-
withEnableAutomaticUpdates
Set the enableAutomaticUpdates property: Indicates whether Automatic Updates is enabled for the Windows virtual machine. Default value is true. For virtual machine scale sets, this property can be updated and updates will take effect on OS reprovisioning.- Parameters:
enableAutomaticUpdates- the enableAutomaticUpdates value to set.- Returns:
- the WindowsConfiguration object itself.
-
timeZone
Get the timeZone property: Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time". Possible values can be [TimeZoneInfo.Id](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id) value from time zones returned by [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones).- Returns:
- the timeZone value.
-
withTimeZone
Set the timeZone property: Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time". Possible values can be [TimeZoneInfo.Id](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id) value from time zones returned by [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones).- Parameters:
timeZone- the timeZone value to set.- Returns:
- the WindowsConfiguration object itself.
-
additionalUnattendContent
Get the additionalUnattendContent property: Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup.- Returns:
- the additionalUnattendContent value.
-
withAdditionalUnattendContent
public WindowsConfiguration withAdditionalUnattendContent(List<AdditionalUnattendContent> additionalUnattendContent) Set the additionalUnattendContent property: Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup.- Parameters:
additionalUnattendContent- the additionalUnattendContent value to set.- Returns:
- the WindowsConfiguration object itself.
-
patchSettings
Get the patchSettings property: [Preview Feature] Specifies settings related to VM Guest Patching on Windows.- Returns:
- the patchSettings value.
-
withPatchSettings
Set the patchSettings property: [Preview Feature] Specifies settings related to VM Guest Patching on Windows.- Parameters:
patchSettings- the patchSettings value to set.- Returns:
- the WindowsConfiguration object itself.
-
winRM
Get the winRM property: Specifies the Windows Remote Management listeners. This enables remote Windows PowerShell.- Returns:
- the winRM value.
-
withWinRM
Set the winRM property: Specifies the Windows Remote Management listeners. This enables remote Windows PowerShell.- Parameters:
winRM- the winRM value to set.- Returns:
- the WindowsConfiguration object itself.
-
enableVMAgentPlatformUpdates
Get the enableVMAgentPlatformUpdates property: Indicates whether VMAgent Platform Updates are enabled for the Windows Virtual Machine.- Returns:
- the enableVMAgentPlatformUpdates value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<WindowsConfiguration>- Throws:
IOException
-
fromJson
public static WindowsConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of WindowsConfiguration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WindowsConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the WindowsConfiguration.
-