Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.keyvault; import java.util.UUID; import com.fasterxml.jackson.annotation.JsonProperty;
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.
/** * 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. */
public class AccessPolicyEntry {
The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.
/** * The Azure Active Directory tenant ID that should be used for * authenticating requests to the key vault. */
@JsonProperty(value = "tenantId", required = true) private UUID tenantId;
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.
/** * 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. */
@JsonProperty(value = "objectId", required = true) private String objectId;
Application ID of the client making request on behalf of a principal.
/** * Application ID of the client making request on behalf of a principal. */
@JsonProperty(value = "applicationId") private UUID applicationId;
Permissions the identity has for keys, secrets and certificates.
/** * Permissions the identity has for keys, secrets and certificates. */
@JsonProperty(value = "permissions", required = true) private Permissions permissions;
Get the tenantId value.
Returns:the tenantId value
/** * Get the tenantId value. * * @return the tenantId value */
public UUID tenantId() { return this.tenantId; }
Set the tenantId value.
Params:
  • tenantId – the tenantId value to set
Returns:the AccessPolicyEntry object itself.
/** * Set the tenantId value. * * @param tenantId the tenantId value to set * @return the AccessPolicyEntry object itself. */
public AccessPolicyEntry withTenantId(UUID tenantId) { this.tenantId = tenantId; return this; }
Get the objectId value.
Returns:the objectId value
/** * Get the objectId value. * * @return the objectId value */
public String objectId() { return this.objectId; }
Set the objectId value.
Params:
  • objectId – the objectId value to set
Returns:the AccessPolicyEntry object itself.
/** * Set the objectId value. * * @param objectId the objectId value to set * @return the AccessPolicyEntry object itself. */
public AccessPolicyEntry withObjectId(String objectId) { this.objectId = objectId; return this; }
Get the applicationId value.
Returns:the applicationId value
/** * Get the applicationId value. * * @return the applicationId value */
public UUID applicationId() { return this.applicationId; }
Set the applicationId value.
Params:
  • applicationId – the applicationId value to set
Returns:the AccessPolicyEntry object itself.
/** * Set the applicationId value. * * @param applicationId the applicationId value to set * @return the AccessPolicyEntry object itself. */
public AccessPolicyEntry withApplicationId(UUID applicationId) { this.applicationId = applicationId; return this; }
Get the permissions value.
Returns:the permissions value
/** * Get the permissions value. * * @return the permissions value */
public Permissions permissions() { return this.permissions; }
Set the permissions value.
Params:
  • permissions – the permissions value to set
Returns:the AccessPolicyEntry object itself.
/** * Set the permissions value. * * @param permissions the permissions value to set * @return the AccessPolicyEntry object itself. */
public AccessPolicyEntry withPermissions(Permissions permissions) { this.permissions = permissions; return this; } }