SecretReference Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. SecretReference
- com.
Implements
public final class SecretReference
implements JsonSerializable<SecretReference>
A secret reference.
Constructor Summary
| Constructor | Description |
|---|---|
| SecretReference() |
Creates an instance of Secret |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Secret |
fromJson(JsonReader jsonReader)
Reads an instance of Secret |
| String |
identity()
Get the identity property: The ARM resource id of the managed identity that has access to the secret in the key vault. |
| String |
name()
Get the name property: The identifier of the secret reference. |
| String |
secretReferenceUri()
Get the secret |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Secret |
withIdentity(String identity)
Set the identity property: The ARM resource id of the managed identity that has access to the secret in the key vault. |
|
Secret |
withName(String name)
Set the name property: The identifier of the secret reference. |
|
Secret |
withSecretReferenceUri(String secretReferenceUri)
Set the secret |
Methods inherited from java.lang.Object
Constructor Details
SecretReference
public SecretReference()
Creates an instance of SecretReference class.
Method Details
fromJson
public static SecretReference fromJson(JsonReader jsonReader)
Reads an instance of SecretReference from the JsonReader.
Parameters:
Returns:
Throws:
identity
public String identity()
Get the identity property: The ARM resource id of the managed identity that has access to the secret in the key vault.
Returns:
name
public String name()
Get the name property: The identifier of the secret reference.
Returns:
secretReferenceUri
public String secretReferenceUri()
Get the secretReferenceUri property: The URI to the secret in key vault.
Returns:
toJson
validate
public void validate()
Validates the instance.
withIdentity
public SecretReference withIdentity(String identity)
Set the identity property: The ARM resource id of the managed identity that has access to the secret in the key vault.
Parameters:
Returns:
withName
public SecretReference withName(String name)
Set the name property: The identifier of the secret reference.
Parameters:
Returns:
withSecretReferenceUri
public SecretReference withSecretReferenceUri(String secretReferenceUri)
Set the secretReferenceUri property: The URI to the secret in key vault.
Parameters:
Returns: