Class VirtualMachineInstallPatchesParameters
java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachineInstallPatchesParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineInstallPatchesParameters>
public final class VirtualMachineInstallPatchesParameters
extends Object
implements com.azure.json.JsonSerializable<VirtualMachineInstallPatchesParameters>
Input for InstallPatches as directly received by the API.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineInstallPatchesParameters class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineInstallPatchesParameters from the JsonReader.Get the linuxParameters property: Input for InstallPatches on a Linux VM, as directly received by the API.Get the maximumDuration property: Specifies the maximum amount of time that the operation will run.Get the rebootSetting property: Defines when it is acceptable to reboot a VM during a software update operation.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the windowsParameters property: Input for InstallPatches on a Windows VM, as directly received by the API.withLinuxParameters(LinuxParameters linuxParameters) Set the linuxParameters property: Input for InstallPatches on a Linux VM, as directly received by the API.withMaximumDuration(String maximumDuration) Set the maximumDuration property: Specifies the maximum amount of time that the operation will run.withRebootSetting(VMGuestPatchRebootSetting rebootSetting) Set the rebootSetting property: Defines when it is acceptable to reboot a VM during a software update operation.withWindowsParameters(WindowsParameters windowsParameters) Set the windowsParameters property: Input for InstallPatches on a Windows VM, as directly received by the API.Methods inherited from class 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
-
VirtualMachineInstallPatchesParameters
public VirtualMachineInstallPatchesParameters()Creates an instance of VirtualMachineInstallPatchesParameters class.
-
-
Method Details
-
maximumDuration
Get the maximumDuration property: Specifies the maximum amount of time that the operation will run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours).- Returns:
- the maximumDuration value.
-
withMaximumDuration
Set the maximumDuration property: Specifies the maximum amount of time that the operation will run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours).- Parameters:
maximumDuration- the maximumDuration value to set.- Returns:
- the VirtualMachineInstallPatchesParameters object itself.
-
rebootSetting
Get the rebootSetting property: Defines when it is acceptable to reboot a VM during a software update operation.- Returns:
- the rebootSetting value.
-
withRebootSetting
public VirtualMachineInstallPatchesParameters withRebootSetting(VMGuestPatchRebootSetting rebootSetting) Set the rebootSetting property: Defines when it is acceptable to reboot a VM during a software update operation.- Parameters:
rebootSetting- the rebootSetting value to set.- Returns:
- the VirtualMachineInstallPatchesParameters object itself.
-
windowsParameters
Get the windowsParameters property: Input for InstallPatches on a Windows VM, as directly received by the API.- Returns:
- the windowsParameters value.
-
withWindowsParameters
public VirtualMachineInstallPatchesParameters withWindowsParameters(WindowsParameters windowsParameters) Set the windowsParameters property: Input for InstallPatches on a Windows VM, as directly received by the API.- Parameters:
windowsParameters- the windowsParameters value to set.- Returns:
- the VirtualMachineInstallPatchesParameters object itself.
-
linuxParameters
Get the linuxParameters property: Input for InstallPatches on a Linux VM, as directly received by the API.- Returns:
- the linuxParameters value.
-
withLinuxParameters
Set the linuxParameters property: Input for InstallPatches on a Linux VM, as directly received by the API.- Parameters:
linuxParameters- the linuxParameters value to set.- Returns:
- the VirtualMachineInstallPatchesParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VirtualMachineInstallPatchesParameters>- Throws:
IOException
-
fromJson
public static VirtualMachineInstallPatchesParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualMachineInstallPatchesParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualMachineInstallPatchesParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the VirtualMachineInstallPatchesParameters.
-