Class VirtualMachineScaleSetUpdateOSProfile
java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachineScaleSetUpdateOSProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineScaleSetUpdateOSProfile>
public final class VirtualMachineScaleSetUpdateOSProfile
extends Object
implements com.azure.json.JsonSerializable<VirtualMachineScaleSetUpdateOSProfile>
Describes a virtual machine scale set OS profile.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineScaleSetUpdateOSProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet the customData property: A base-64 encoded string of custom data.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineScaleSetUpdateOSProfile from the JsonReader.Get the linuxConfiguration property: The Linux Configuration of the OS profile.secrets()Get the secrets property: The List of certificates for addition to the VM.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the windowsConfiguration property: The Windows Configuration of the OS profile.withCustomData(String customData) Set the customData property: A base-64 encoded string of custom data.withLinuxConfiguration(LinuxConfiguration linuxConfiguration) Set the linuxConfiguration property: The Linux Configuration of the OS profile.withSecrets(List<VaultSecretGroup> secrets) Set the secrets property: The List of certificates for addition to the VM.withWindowsConfiguration(WindowsConfiguration windowsConfiguration) Set the windowsConfiguration property: The Windows Configuration of the OS profile.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
-
VirtualMachineScaleSetUpdateOSProfile
public VirtualMachineScaleSetUpdateOSProfile()Creates an instance of VirtualMachineScaleSetUpdateOSProfile class.
-
-
Method Details
-
customData
Get the customData property: A base-64 encoded string of custom data.- Returns:
- the customData value.
-
withCustomData
Set the customData property: A base-64 encoded string of custom data.- Parameters:
customData- the customData value to set.- Returns:
- the VirtualMachineScaleSetUpdateOSProfile object itself.
-
windowsConfiguration
Get the windowsConfiguration property: The Windows Configuration of the OS profile.- Returns:
- the windowsConfiguration value.
-
withWindowsConfiguration
public VirtualMachineScaleSetUpdateOSProfile withWindowsConfiguration(WindowsConfiguration windowsConfiguration) Set the windowsConfiguration property: The Windows Configuration of the OS profile.- Parameters:
windowsConfiguration- the windowsConfiguration value to set.- Returns:
- the VirtualMachineScaleSetUpdateOSProfile object itself.
-
linuxConfiguration
Get the linuxConfiguration property: The Linux Configuration of the OS profile.- Returns:
- the linuxConfiguration value.
-
withLinuxConfiguration
public VirtualMachineScaleSetUpdateOSProfile withLinuxConfiguration(LinuxConfiguration linuxConfiguration) Set the linuxConfiguration property: The Linux Configuration of the OS profile.- Parameters:
linuxConfiguration- the linuxConfiguration value to set.- Returns:
- the VirtualMachineScaleSetUpdateOSProfile object itself.
-
secrets
Get the secrets property: The List of certificates for addition to the VM.- Returns:
- the secrets value.
-
withSecrets
Set the secrets property: The List of certificates for addition to the VM.- Parameters:
secrets- the secrets value to set.- Returns:
- the VirtualMachineScaleSetUpdateOSProfile 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<VirtualMachineScaleSetUpdateOSProfile>- Throws:
IOException
-
fromJson
public static VirtualMachineScaleSetUpdateOSProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualMachineScaleSetUpdateOSProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualMachineScaleSetUpdateOSProfile 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 VirtualMachineScaleSetUpdateOSProfile.
-