Freigeben über


Secret Class

  • java.lang.Object
    • com.azure.resourcemanager.appcontainers.models.Secret

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 JsonReader.

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 keyVaultUrl property: Azure Key Vault URL pointing to the secret referenced by the container app.

String name()

Get the name property: Secret Name.

JsonWriter 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 keyVaultUrl property: Azure Key Vault URL pointing to the secret referenced by the container app.

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:

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.

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:

the identity value.

keyVaultUrl

public String keyVaultUrl()

Get the keyVaultUrl property: Azure Key Vault URL pointing to the secret referenced by the container app.

Returns:

the keyVaultUrl value.

name

public String name()

Get the name property: Secret Name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: Secret Value.

Returns:

the value value.

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:

identity - the identity value to set.

Returns:

the Secret object itself.

withKeyVaultUrl

public Secret withKeyVaultUrl(String keyVaultUrl)

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.

withName

public Secret withName(String name)

Set the name property: Secret Name.

Parameters:

name - the name value to set.

Returns:

the Secret object itself.

withValue

public Secret withValue(String value)

Set the value property: Secret Value.

Parameters:

value - the value value to set.

Returns:

the Secret object itself.

Applies to