Class CloudServiceOsProfile
java.lang.Object
com.azure.resourcemanager.compute.models.CloudServiceOsProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CloudServiceOsProfile>
public final class CloudServiceOsProfile
extends Object
implements com.azure.json.JsonSerializable<CloudServiceOsProfile>
Describes the OS profile for the cloud service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CloudServiceOsProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CloudServiceOsProfile from the JsonReader.secrets()Get the secrets property: Specifies set of certificates that should be installed onto the role instances.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withSecrets(List<CloudServiceVaultSecretGroup> secrets) Set the secrets property: Specifies set of certificates that should be installed onto the role instances.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
-
CloudServiceOsProfile
public CloudServiceOsProfile()Creates an instance of CloudServiceOsProfile class.
-
-
Method Details
-
secrets
Get the secrets property: Specifies set of certificates that should be installed onto the role instances.- Returns:
- the secrets value.
-
withSecrets
Set the secrets property: Specifies set of certificates that should be installed onto the role instances.- Parameters:
secrets- the secrets value to set.- Returns:
- the CloudServiceOsProfile 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<CloudServiceOsProfile>- Throws:
IOException
-
fromJson
public static CloudServiceOsProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CloudServiceOsProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CloudServiceOsProfile 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 CloudServiceOsProfile.
-