Class Secret
java.lang.Object
com.azure.resourcemanager.appcontainers.models.Secret
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Secret>
Secret definition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SecretfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Secret from the JsonReader.identity()Get the identity property: Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.Get the keyVaultUrl property: Azure Key Vault URL pointing to the secret referenced by the container app.name()Get the name property: Secret Name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.value()Get the value property: Secret Value.withIdentity(String identity) Set the identity property: Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.withKeyVaultUrl(String keyVaultUrl) Set the keyVaultUrl property: Azure Key Vault URL pointing to the secret referenced by the container app.Set the name property: Secret Name.Set the value property: Secret Value.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
-
Secret
public Secret()Creates an instance of Secret class.
-
-
Method Details
-
name
Get the name property: Secret Name.- Returns:
- the name value.
-
withName
Set the name property: Secret Name.- Parameters:
name- the name value to set.- Returns:
- the Secret object itself.
-
value
Get the value property: Secret Value.- Returns:
- the value value.
-
withValue
Set the value property: Secret Value.- Parameters:
value- the value value to set.- Returns:
- the Secret object itself.
-
identity
Get the identity property: Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.- Returns:
- the identity value.
-
withIdentity
Set the identity property: Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.- Parameters:
identity- the identity value to set.- Returns:
- the Secret object itself.
-
keyVaultUrl
Get the keyVaultUrl property: Azure Key Vault URL pointing to the secret referenced by the container app.- Returns:
- the keyVaultUrl value.
-
withKeyVaultUrl
Set the keyVaultUrl property: Azure Key Vault URL pointing to the secret referenced by the container app.- Parameters:
keyVaultUrl- the keyVaultUrl value to set.- Returns:
- the Secret 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<Secret>- Throws:
IOException
-
fromJson
Reads an instance of Secret from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of Secret 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 Secret.
-