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 Summary
ConstructorsConstructorDescriptionCreates an instance of KeyVaultReferenceWithStatus class. -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyVaultReferenceWithStatusfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KeyVaultReferenceWithStatus from the JsonReader.Get the referenceStatus property: Reference status of the key vault secret.Get the secretUri property: Key vault secret URI.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withReferenceStatus(String referenceStatus) Set the referenceStatus property: Reference status of the key vault secret.withSecretUri(String secretUri) Set the secretUri property: Key vault secret URI.Methods inherited from class 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
-
KeyVaultReferenceWithStatus
public KeyVaultReferenceWithStatus()Creates an instance of KeyVaultReferenceWithStatus class.
-
-
Method Details
-
secretUri
Get the secretUri property: Key vault secret URI.- Returns:
- the secretUri value.
-
withSecretUri
Set the secretUri property: Key vault secret URI.- Parameters:
secretUri- the secretUri value to set.- Returns:
- the KeyVaultReferenceWithStatus object itself.
-
referenceStatus
Get the referenceStatus property: Reference status of the key vault secret.- Returns:
- the referenceStatus value.
-
withReferenceStatus
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
- Specified by:
toJsonin interfacecom.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.
-