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 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.