Class KeyVaultReferenceWithStatus

java.lang.Object
com.azure.resourcemanager.appservice.models.KeyVaultReferenceWithStatus
All Implemented Interfaces:
com.azure.json.JsonSerializable<KeyVaultReferenceWithStatus>

public final class KeyVaultReferenceWithStatus extends Object implements com.azure.json.JsonSerializable<KeyVaultReferenceWithStatus>
Object to hold key vault reference and the resolution status.
  • Constructor Details

    • KeyVaultReferenceWithStatus

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

    • secretUri

      public String secretUri()
      Get the secretUri property: Key vault secret URI.
      Returns:
      the secretUri value.
    • withSecretUri

      public KeyVaultReferenceWithStatus withSecretUri(String secretUri)
      Set the secretUri property: Key vault secret URI.
      Parameters:
      secretUri - the secretUri value to set.
      Returns:
      the KeyVaultReferenceWithStatus object itself.
    • referenceStatus

      public String referenceStatus()
      Get the referenceStatus property: Reference status of the key vault secret.
      Returns:
      the referenceStatus value.
    • withReferenceStatus

      public KeyVaultReferenceWithStatus withReferenceStatus(String referenceStatus)
      Set the referenceStatus property: Reference status of the key vault secret.
      Parameters:
      referenceStatus - the referenceStatus value to set.
      Returns:
      the KeyVaultReferenceWithStatus 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<KeyVaultReferenceWithStatus>
      Throws:
      IOException
    • fromJson

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