Class VaultAccessPolicyProperties
java.lang.Object
com.azure.resourcemanager.keyvault.models.VaultAccessPolicyProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VaultAccessPolicyProperties>
public final class VaultAccessPolicyProperties
extends Object
implements com.azure.json.JsonSerializable<VaultAccessPolicyProperties>
Properties of the vault access policy.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VaultAccessPolicyProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the accessPolicies property: An array of 0 to 16 identities that have access to the key vault.static VaultAccessPolicyPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VaultAccessPolicyProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VaultAccessPolicyProperties
public VaultAccessPolicyProperties()Creates an instance of VaultAccessPolicyProperties class.
-
-
Method Details
-
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.
-
withAccessPolicies
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VaultAccessPolicyProperties>- Throws:
IOException
-
fromJson
public static VaultAccessPolicyProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the VaultAccessPolicyProperties.
-