VaultAccessPolicyProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.keyvault.models.VaultAccessPolicyProperties

Implements

public final class VaultAccessPolicyProperties
implements JsonSerializable<VaultAccessPolicyProperties>

Properties of the vault access policy.

Constructor Summary

Constructor Description
VaultAccessPolicyProperties()

Creates an instance of VaultAccessPolicyProperties class.

Method Summary

Modifier and Type Method and Description
List<AccessPolicyEntry> accessPolicies()

Get the accessPolicies property: An array of 0 to 16 identities that have access to the key vault.

static VaultAccessPolicyProperties fromJson(JsonReader jsonReader)

Reads an instance of VaultAccessPolicyProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VaultAccessPolicyProperties withAccessPolicies(List<AccessPolicyEntry> accessPolicies)

Set the accessPolicies property: An array of 0 to 16 identities that have access to the key vault.

Methods inherited from java.lang.Object

Constructor Details

VaultAccessPolicyProperties

public VaultAccessPolicyProperties()

Creates an instance of VaultAccessPolicyProperties class.

Method Details

accessPolicies

public List accessPolicies()

Get the accessPolicies property: An array of 0 to 16 identities that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID.

Returns:

the accessPolicies value.

fromJson

public static VaultAccessPolicyProperties fromJson(JsonReader jsonReader)

Reads an instance of VaultAccessPolicyProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VaultAccessPolicyProperties 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAccessPolicies

public VaultAccessPolicyProperties withAccessPolicies(List accessPolicies)

Set the accessPolicies property: An array of 0 to 16 identities that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID.

Parameters:

accessPolicies - the accessPolicies value to set.

Returns:

the VaultAccessPolicyProperties object itself.

Applies to