OsProfileForVmInstance Class
- java.
lang. Object - com.
azure. resourcemanager. scvmm. models. OsProfileForVmInstance
- com.
Implements
public final class OsProfileForVmInstance
implements JsonSerializable<OsProfileForVmInstance>
Defines the resource properties.
Constructor Summary
| Constructor | Description |
|---|---|
| OsProfileForVmInstance() |
Creates an instance of Os |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
adminPassword()
Get the admin |
| String |
computerName()
Get the computer |
|
static
Os |
fromJson(JsonReader jsonReader)
Reads an instance of Os |
| String |
osSku()
Get the os |
|
Os |
osType()
Get the os |
| String |
osVersion()
Get the os |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Os |
withAdminPassword(String adminPassword)
Set the admin |
|
Os |
withComputerName(String computerName)
Set the computer |
Methods inherited from java.lang.Object
Constructor Details
OsProfileForVmInstance
public OsProfileForVmInstance()
Creates an instance of OsProfileForVmInstance class.
Method Details
adminPassword
public String adminPassword()
Get the adminPassword property: Admin password of the virtual machine.
Returns:
computerName
public String computerName()
Get the computerName property: Gets or sets computer name.
Returns:
fromJson
public static OsProfileForVmInstance fromJson(JsonReader jsonReader)
Reads an instance of OsProfileForVmInstance from the JsonReader.
Parameters:
Returns:
Throws:
osSku
public String osSku()
Get the osSku property: Gets os sku.
Returns:
osType
public OsType osType()
Get the osType property: Gets the type of the os.
Returns:
osVersion
public String osVersion()
Get the osVersion property: Gets os version.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAdminPassword
public OsProfileForVmInstance withAdminPassword(String adminPassword)
Set the adminPassword property: Admin password of the virtual machine.
Parameters:
Returns:
withComputerName
public OsProfileForVmInstance withComputerName(String computerName)
Set the computerName property: Gets or sets computer name.
Parameters:
Returns: