com.pulumi.azure.keyvault.outputs.GetKeyVaultAccessPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azure.keyvault.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetKeyVaultAccessPolicy {
/**
* @return The Object ID of a Azure Active Directory Application.
*
*/
private String applicationId;
/**
* @return A list of certificate permissions applicable to this Access Policy.
*
*/
private List certificatePermissions;
/**
* @return A list of key permissions applicable to this Access Policy.
*
*/
private List keyPermissions;
/**
* @return An Object ID of a User, Service Principal or Security Group.
*
*/
private String objectId;
/**
* @return A list of secret permissions applicable to this Access Policy.
*
*/
private List secretPermissions;
/**
* @return A list of storage permissions applicable to this Access Policy.
*
*/
private List storagePermissions;
/**
* @return The Azure Active Directory Tenant ID used to authenticate requests for this Key Vault.
*
*/
private String tenantId;
private GetKeyVaultAccessPolicy() {}
/**
* @return The Object ID of a Azure Active Directory Application.
*
*/
public String applicationId() {
return this.applicationId;
}
/**
* @return A list of certificate permissions applicable to this Access Policy.
*
*/
public List certificatePermissions() {
return this.certificatePermissions;
}
/**
* @return A list of key permissions applicable to this Access Policy.
*
*/
public List keyPermissions() {
return this.keyPermissions;
}
/**
* @return An Object ID of a User, Service Principal or Security Group.
*
*/
public String objectId() {
return this.objectId;
}
/**
* @return A list of secret permissions applicable to this Access Policy.
*
*/
public List secretPermissions() {
return this.secretPermissions;
}
/**
* @return A list of storage permissions applicable to this Access Policy.
*
*/
public List storagePermissions() {
return this.storagePermissions;
}
/**
* @return The Azure Active Directory Tenant ID used to authenticate requests for this Key Vault.
*
*/
public String tenantId() {
return this.tenantId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetKeyVaultAccessPolicy defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String applicationId;
private List certificatePermissions;
private List keyPermissions;
private String objectId;
private List secretPermissions;
private List storagePermissions;
private String tenantId;
public Builder() {}
public Builder(GetKeyVaultAccessPolicy defaults) {
Objects.requireNonNull(defaults);
this.applicationId = defaults.applicationId;
this.certificatePermissions = defaults.certificatePermissions;
this.keyPermissions = defaults.keyPermissions;
this.objectId = defaults.objectId;
this.secretPermissions = defaults.secretPermissions;
this.storagePermissions = defaults.storagePermissions;
this.tenantId = defaults.tenantId;
}
@CustomType.Setter
public Builder applicationId(String applicationId) {
if (applicationId == null) {
throw new MissingRequiredPropertyException("GetKeyVaultAccessPolicy", "applicationId");
}
this.applicationId = applicationId;
return this;
}
@CustomType.Setter
public Builder certificatePermissions(List certificatePermissions) {
if (certificatePermissions == null) {
throw new MissingRequiredPropertyException("GetKeyVaultAccessPolicy", "certificatePermissions");
}
this.certificatePermissions = certificatePermissions;
return this;
}
public Builder certificatePermissions(String... certificatePermissions) {
return certificatePermissions(List.of(certificatePermissions));
}
@CustomType.Setter
public Builder keyPermissions(List keyPermissions) {
if (keyPermissions == null) {
throw new MissingRequiredPropertyException("GetKeyVaultAccessPolicy", "keyPermissions");
}
this.keyPermissions = keyPermissions;
return this;
}
public Builder keyPermissions(String... keyPermissions) {
return keyPermissions(List.of(keyPermissions));
}
@CustomType.Setter
public Builder objectId(String objectId) {
if (objectId == null) {
throw new MissingRequiredPropertyException("GetKeyVaultAccessPolicy", "objectId");
}
this.objectId = objectId;
return this;
}
@CustomType.Setter
public Builder secretPermissions(List secretPermissions) {
if (secretPermissions == null) {
throw new MissingRequiredPropertyException("GetKeyVaultAccessPolicy", "secretPermissions");
}
this.secretPermissions = secretPermissions;
return this;
}
public Builder secretPermissions(String... secretPermissions) {
return secretPermissions(List.of(secretPermissions));
}
@CustomType.Setter
public Builder storagePermissions(List storagePermissions) {
if (storagePermissions == null) {
throw new MissingRequiredPropertyException("GetKeyVaultAccessPolicy", "storagePermissions");
}
this.storagePermissions = storagePermissions;
return this;
}
public Builder storagePermissions(String... storagePermissions) {
return storagePermissions(List.of(storagePermissions));
}
@CustomType.Setter
public Builder tenantId(String tenantId) {
if (tenantId == null) {
throw new MissingRequiredPropertyException("GetKeyVaultAccessPolicy", "tenantId");
}
this.tenantId = tenantId;
return this;
}
public GetKeyVaultAccessPolicy build() {
final var _resultValue = new GetKeyVaultAccessPolicy();
_resultValue.applicationId = applicationId;
_resultValue.certificatePermissions = certificatePermissions;
_resultValue.keyPermissions = keyPermissions;
_resultValue.objectId = objectId;
_resultValue.secretPermissions = secretPermissions;
_resultValue.storagePermissions = storagePermissions;
_resultValue.tenantId = tenantId;
return _resultValue;
}
}
}