Class OSProfile
java.lang.Object
com.azure.resourcemanager.baremetalinfrastructure.models.OSProfile
Specifies the operating system settings for the AzureBareMetal instance.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the computerName property: Specifies the host OS name of the AzureBareMetal instance.osType()
Get the osType property: This property allows you to specify the type of the OS.Get the sshPublicKey property: Specifies the SSH public key used to access the operating system.void
validate()
Validates the instance.version()
Get the version property: Specifies version of operating system.withComputerName
(String computerName) Set the computerName property: Specifies the host OS name of the AzureBareMetal instance.withSshPublicKey
(String sshPublicKey) Set the sshPublicKey property: Specifies the SSH public key used to access the operating system.
-
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 AzureBareMetal instance.- Returns:
- the computerName value.
-
withComputerName
Set the computerName property: Specifies the host OS name of the AzureBareMetal instance.- Parameters:
computerName
- the computerName value to set.- Returns:
- the OSProfile object itself.
-
osType
Get the osType property: This property allows you to specify the type of the OS.- Returns:
- the osType value.
-
version
Get the version property: Specifies version of operating system.- Returns:
- the version value.
-
sshPublicKey
Get the sshPublicKey property: Specifies the SSH public key used to access the operating system.- Returns:
- the sshPublicKey value.
-
withSshPublicKey
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-