OsProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.largeinstance.models.OsProfile

Implements

public final class OsProfile
implements JsonSerializable<OsProfile>

Specifies the operating system settings for the Azure Large Instance.

Constructor Summary

Constructor Description
OsProfile()

Creates an instance of OsProfile class.

Method Summary

Modifier and Type Method and Description
String computerName()

Get the computerName property: Specifies the host OS name of the Azure Large Instance.

static OsProfile fromJson(JsonReader jsonReader)

Reads an instance of OsProfile from the JsonReader.

String osType()

Get the osType property: This property allows you to specify the type of the OS.

String sshPublicKey()

Get the sshPublicKey property: Specifies the SSH public key used to access the operating system.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String version()

Get the version property: Specifies version of operating system.

OsProfile withComputerName(String computerName)

Set the computerName property: Specifies the host OS name of the Azure Large Instance.

OsProfile withSshPublicKey(String sshPublicKey)

Set the sshPublicKey property: Specifies the SSH public key used to access the operating system.

Methods inherited from java.lang.Object

Constructor Details

OsProfile

public OsProfile()

Creates an instance of OsProfile class.

Method Details

computerName

public String computerName()

Get the computerName property: Specifies the host OS name of the Azure Large Instance.

Returns:

the computerName value.

fromJson

public static OsProfile fromJson(JsonReader jsonReader)

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.

osType

public String osType()

Get the osType property: This property allows you to specify the type of the OS.

Returns:

the osType value.

sshPublicKey

public String sshPublicKey()

Get the sshPublicKey property: Specifies the SSH public key used to access the operating system.

Returns:

the sshPublicKey value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

version

public String version()

Get the version property: Specifies version of operating system.

Returns:

the version value.

withComputerName

public OsProfile withComputerName(String computerName)

Set the computerName property: Specifies the host OS name of the Azure Large Instance.

Parameters:

computerName - the computerName value to set.

Returns:

the OsProfile object itself.

withSshPublicKey

public OsProfile withSshPublicKey(String sshPublicKey)

Set the sshPublicKey property: Specifies the SSH public key used to access the operating system.

Parameters:

sshPublicKey - the sshPublicKey value to set.

Returns:

the OsProfile object itself.

Applies to