Class OSProfile
java.lang.Object
com.azure.resourcemanager.hybridcompute.models.OSProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OSProfile>
Specifies the operating system settings for the hybrid machine.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the computerName property: Specifies the host OS name of the hybrid machine.static OSProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OSProfile from the JsonReader.Get the linuxConfiguration property: Specifies the linux configuration for update management.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the windowsConfiguration property: Specifies the windows configuration for update management.withLinuxConfiguration(OSProfileLinuxConfiguration linuxConfiguration) Set the linuxConfiguration property: Specifies the linux configuration for update management.withWindowsConfiguration(OSProfileWindowsConfiguration windowsConfiguration) Set the windowsConfiguration property: Specifies the windows configuration for update management.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
-
OSProfile
public OSProfile()Creates an instance of OSProfile class.
-
-
Method Details
-
computerName
Get the computerName property: Specifies the host OS name of the hybrid machine.- Returns:
- the computerName value.
-
windowsConfiguration
Get the windowsConfiguration property: Specifies the windows configuration for update management.- Returns:
- the windowsConfiguration value.
-
withWindowsConfiguration
Set the windowsConfiguration property: Specifies the windows configuration for update management.- Parameters:
windowsConfiguration- the windowsConfiguration value to set.- Returns:
- the OSProfile object itself.
-
linuxConfiguration
Get the linuxConfiguration property: Specifies the linux configuration for update management.- Returns:
- the linuxConfiguration value.
-
withLinuxConfiguration
Set the linuxConfiguration property: Specifies the linux configuration for update management.- Parameters:
linuxConfiguration- the linuxConfiguration value to set.- Returns:
- the OSProfile 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<OSProfile>- Throws:
IOException
-
fromJson
Reads an instance of OSProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OSProfile 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 OSProfile.
-