Class SecretProperties

java.lang.Object
com.azure.resourcemanager.cdn.models.AfdStateProperties
com.azure.resourcemanager.cdn.fluent.models.SecretProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<AfdStateProperties>

public final class SecretProperties extends AfdStateProperties
The JSON object that contains the properties of the Secret to create.
  • Constructor Details

    • SecretProperties

      public SecretProperties()
      Creates an instance of SecretProperties class.
  • Method Details

    • profileName

      public String profileName()
      Get the profileName property: The name of the profile which holds the secret.
      Returns:
      the profileName value.
    • parameters

      public SecretParameters parameters()
      Get the parameters property: object which contains secret parameters.
      Returns:
      the parameters value.
    • withParameters

      public SecretProperties withParameters(SecretParameters parameters)
      Set the parameters property: object which contains secret parameters.
      Parameters:
      parameters - the parameters value to set.
      Returns:
      the SecretProperties object itself.
    • deploymentStatus

      public DeploymentStatus deploymentStatus()
      Get the deploymentStatus property: The deploymentStatus property.
      Overrides:
      deploymentStatus in class AfdStateProperties
      Returns:
      the deploymentStatus value.
    • provisioningState

      public AfdProvisioningState provisioningState()
      Get the provisioningState property: Provisioning status.
      Overrides:
      provisioningState in class AfdStateProperties
      Returns:
      the provisioningState value.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class AfdStateProperties
      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<AfdStateProperties>
      Overrides:
      toJson in class AfdStateProperties
      Throws:
      IOException
    • fromJson

      public static SecretProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SecretProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SecretProperties 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 SecretProperties.