OsProfileForVmInstance Class

  • java.lang.Object
    • com.azure.resourcemanager.scvmm.models.OsProfileForVmInstance

Implements

public final class OsProfileForVmInstance
implements JsonSerializable<OsProfileForVmInstance>

Defines the resource properties.

Constructor Summary

Constructor Description
OsProfileForVmInstance()

Creates an instance of OsProfileForVmInstance class.

Method Summary

Modifier and Type Method and Description
String adminPassword()

Get the adminPassword property: Admin password of the virtual machine.

String computerName()

Get the computerName property: Gets or sets computer name.

static OsProfileForVmInstance fromJson(JsonReader jsonReader)

Reads an instance of OsProfileForVmInstance from the JsonReader.

String osSku()

Get the osSku property: Gets os sku.

OsType osType()

Get the osType property: Gets the type of the os.

String osVersion()

Get the osVersion property: Gets os version.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OsProfileForVmInstance withAdminPassword(String adminPassword)

Set the adminPassword property: Admin password of the virtual machine.

OsProfileForVmInstance withComputerName(String computerName)

Set the computerName property: Gets or sets computer name.

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:

the adminPassword value.

computerName

public String computerName()

Get the computerName property: Gets or sets computer name.

Returns:

the computerName value.

fromJson

public static OsProfileForVmInstance fromJson(JsonReader jsonReader)

Reads an instance of OsProfileForVmInstance from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OsProfileForVmInstance 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 OsProfileForVmInstance.

osSku

public String osSku()

Get the osSku property: Gets os sku.

Returns:

the osSku value.

osType

public OsType osType()

Get the osType property: Gets the type of the os.

Returns:

the osType value.

osVersion

public String osVersion()

Get the osVersion property: Gets os version.

Returns:

the osVersion value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdminPassword

public OsProfileForVmInstance withAdminPassword(String adminPassword)

Set the adminPassword property: Admin password of the virtual machine.

Parameters:

adminPassword - the adminPassword value to set.

Returns:

the OsProfileForVmInstance object itself.

withComputerName

public OsProfileForVmInstance withComputerName(String computerName)

Set the computerName property: Gets or sets computer name.

Parameters:

computerName - the computerName value to set.

Returns:

the OsProfileForVmInstance object itself.

Applies to