SecretReference Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.SecretReference

Implements

public final class SecretReference
implements JsonSerializable<SecretReference>

A secret reference.

Constructor Summary

Constructor Description
SecretReference()

Creates an instance of SecretReference class.

Method Summary

Modifier and Type Method and Description
static SecretReference fromJson(JsonReader jsonReader)

Reads an instance of SecretReference from the JsonReader.

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 secretReferenceUri property: The URI to the secret in key vault.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

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.

SecretReference withName(String name)

Set the name property: The identifier of the secret reference.

SecretReference withSecretReferenceUri(String secretReferenceUri)

Set the secretReferenceUri property: The URI to the secret in key vault.

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:

jsonReader - The JsonReader being read.

Returns:

An instance of SecretReference if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

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:

the identity value.

name

public String name()

Get the name property: The identifier of the secret reference.

Returns:

the name value.

secretReferenceUri

public String secretReferenceUri()

Get the secretReferenceUri property: The URI to the secret in key vault.

Returns:

the secretReferenceUri value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

identity - the identity value to set.

Returns:

the SecretReference object itself.

withName

public SecretReference withName(String name)

Set the name property: The identifier of the secret reference.

Parameters:

name - the name value to set.

Returns:

the SecretReference object itself.

withSecretReferenceUri

public SecretReference withSecretReferenceUri(String secretReferenceUri)

Set the secretReferenceUri property: The URI to the secret in key vault.

Parameters:

secretReferenceUri - the secretReferenceUri value to set.

Returns:

the SecretReference object itself.

Applies to