Secret Class
- java.
lang. Object - com.
azure. resourcemanager. appcontainers. models. Secret
- com.
Implements
public final class Secret
implements JsonSerializable<Secret>
Secret definition.
Constructor Summary
Constructor | Description |
---|---|
Secret() |
Creates an instance of Secret class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static Secret |
fromJson(JsonReader jsonReader)
Reads an instance of Secret from the Json |
String |
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. |
String |
keyVaultUrl()
Get the key |
String |
name()
Get the name property: Secret Name. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
String |
value()
Get the value property: Secret Value. |
Secret |
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. |
Secret |
withKeyVaultUrl(String keyVaultUrl)
Set the key |
Secret |
withName(String name)
Set the name property: Secret Name. |
Secret |
withValue(String value)
Set the value property: Secret Value. |
Methods inherited from java.lang.Object
Constructor Details
Secret
public Secret()
Creates an instance of Secret class.
Method Details
fromJson
public static Secret fromJson(JsonReader jsonReader)
Reads an instance of Secret from the JsonReader.
Parameters:
Returns:
Throws:
identity
public String 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:
keyVaultUrl
public String keyVaultUrl()
Get the keyVaultUrl property: Azure Key Vault URL pointing to the secret referenced by the container app.
Returns:
name
public String name()
Get the name property: Secret Name.
Returns:
toJson
validate
public void validate()
Validates the instance.
value
public String value()
Get the value property: Secret Value.
Returns:
withIdentity
public Secret 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.
Parameters:
Returns:
withKeyVaultUrl
public Secret withKeyVaultUrl(String keyVaultUrl)
Set the keyVaultUrl property: Azure Key Vault URL pointing to the secret referenced by the container app.
Parameters:
Returns:
withName
public Secret withName(String name)
Set the name property: Secret Name.
Parameters:
Returns:
withValue
public Secret withValue(String value)
Set the value property: Secret Value.
Parameters:
Returns:
Applies to
Azure SDK for Java