com.microsoft.azure.management.keyvault.AccessPolicyEntry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-keyvault Show documentation
Show all versions of azure-mgmt-keyvault Show documentation
This package contains Microsoft Azure Key Vault Management SDK. This package has been deprecated. A replacement package com.azure.resourcemanager:azure-resourcemanager-keyvault is available as of 31-March-2022. We strongly encourage you to upgrade to continue receiving updates. See Migration Guide https://aka.ms/java-track2-migration-guide for guidance on upgrading. Refer to our deprecation policy https://azure.github.io/azure-sdk/policies_support.html for more details.
/**
* 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.
*/
public class AccessPolicyEntry {
/**
* 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.
*/
@JsonProperty(value = "objectId", required = true)
private String objectId;
/**
* 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.
*/
@JsonProperty(value = "permissions", required = true)
private Permissions permissions;
/**
* Get the tenantId value.
*
* @return the tenantId value
*/
public UUID tenantId() {
return this.tenantId;
}
/**
* 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.
*
* @return the objectId value
*/
public String objectId() {
return this.objectId;
}
/**
* 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.
*
* @return the applicationId value
*/
public UUID applicationId() {
return this.applicationId;
}
/**
* 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.
*
* @return the permissions value
*/
public Permissions permissions() {
return this.permissions;
}
/**
* 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;
}
}