All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.keyvault.outputs.AccessPolicyEntry Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** 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.azurenative.keyvault.outputs;

import com.pulumi.azurenative.keyvault.outputs.Permissions;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AccessPolicyEntry {
    /**
     * @return  Application ID of the client making request on behalf of a principal
     * 
     */
    private @Nullable String applicationId;
    /**
     * @return 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.
     * 
     */
    private String objectId;
    /**
     * @return Permissions the identity has for keys, secrets and certificates.
     * 
     */
    private Permissions permissions;
    /**
     * @return The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.
     * 
     */
    private String tenantId;

    private AccessPolicyEntry() {}
    /**
     * @return  Application ID of the client making request on behalf of a principal
     * 
     */
    public Optional applicationId() {
        return Optional.ofNullable(this.applicationId);
    }
    /**
     * @return 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.
     * 
     */
    public String objectId() {
        return this.objectId;
    }
    /**
     * @return Permissions the identity has for keys, secrets and certificates.
     * 
     */
    public Permissions permissions() {
        return this.permissions;
    }
    /**
     * @return The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.
     * 
     */
    public String tenantId() {
        return this.tenantId;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(AccessPolicyEntry defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String applicationId;
        private String objectId;
        private Permissions permissions;
        private String tenantId;
        public Builder() {}
        public Builder(AccessPolicyEntry defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.applicationId = defaults.applicationId;
    	      this.objectId = defaults.objectId;
    	      this.permissions = defaults.permissions;
    	      this.tenantId = defaults.tenantId;
        }

        @CustomType.Setter
        public Builder applicationId(@Nullable String applicationId) {

            this.applicationId = applicationId;
            return this;
        }
        @CustomType.Setter
        public Builder objectId(String objectId) {
            if (objectId == null) {
              throw new MissingRequiredPropertyException("AccessPolicyEntry", "objectId");
            }
            this.objectId = objectId;
            return this;
        }
        @CustomType.Setter
        public Builder permissions(Permissions permissions) {
            if (permissions == null) {
              throw new MissingRequiredPropertyException("AccessPolicyEntry", "permissions");
            }
            this.permissions = permissions;
            return this;
        }
        @CustomType.Setter
        public Builder tenantId(String tenantId) {
            if (tenantId == null) {
              throw new MissingRequiredPropertyException("AccessPolicyEntry", "tenantId");
            }
            this.tenantId = tenantId;
            return this;
        }
        public AccessPolicyEntry build() {
            final var _resultValue = new AccessPolicyEntry();
            _resultValue.applicationId = applicationId;
            _resultValue.objectId = objectId;
            _resultValue.permissions = permissions;
            _resultValue.tenantId = tenantId;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy