Class AccessPolicyEntry
java.lang.Object
com.azure.resourcemanager.keyvault.models.AccessPolicyEntry
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AccessPolicyEntry>
public final class AccessPolicyEntry
extends Object
implements com.azure.json.JsonSerializable<AccessPolicyEntry>
An identity 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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the applicationId property: Application ID of the client making request on behalf of a principal.static AccessPolicyEntryfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AccessPolicyEntry from the JsonReader.objectId()Get the objectId property: The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault.Get the permissions property: Permissions the identity has for keys, secrets and certificates.tenantId()Get the tenantId property: The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withApplicationId(UUID applicationId) Set the applicationId property: Application ID of the client making request on behalf of a principal.withObjectId(String objectId) Set the objectId property: The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault.withPermissions(Permissions permissions) Set the permissions property: Permissions the identity has for keys, secrets and certificates.withTenantId(UUID tenantId) Set the tenantId property: The Azure Active Directory tenant ID that should be used for authenticating requests 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
-
AccessPolicyEntry
public AccessPolicyEntry()Creates an instance of AccessPolicyEntry class.
-
-
Method Details
-
tenantId
Get the tenantId property: The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.- Returns:
- the tenantId value.
-
withTenantId
Set the tenantId property: The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.- Parameters:
tenantId- the tenantId value to set.- Returns:
- the AccessPolicyEntry object itself.
-
objectId
Get the objectId property: The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies.- Returns:
- the objectId value.
-
withObjectId
Set the objectId property: The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies.- Parameters:
objectId- the objectId value to set.- Returns:
- the AccessPolicyEntry object itself.
-
applicationId
Get the applicationId property: Application ID of the client making request on behalf of a principal.- Returns:
- the applicationId value.
-
withApplicationId
Set the applicationId property: Application ID of the client making request on behalf of a principal.- Parameters:
applicationId- the applicationId value to set.- Returns:
- the AccessPolicyEntry object itself.
-
permissions
Get the permissions property: Permissions the identity has for keys, secrets and certificates.- Returns:
- the permissions value.
-
withPermissions
Set the permissions property: Permissions the identity has for keys, secrets and certificates.- Parameters:
permissions- the permissions value to set.- Returns:
- the AccessPolicyEntry 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<AccessPolicyEntry>- Throws:
IOException
-
fromJson
Reads an instance of AccessPolicyEntry from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AccessPolicyEntry 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 AccessPolicyEntry.
-