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

com.pulumi.azurenative.cache.AccessPolicyAssignmentArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.cache;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class AccessPolicyAssignmentArgs extends com.pulumi.resources.ResourceArgs {

    public static final AccessPolicyAssignmentArgs Empty = new AccessPolicyAssignmentArgs();

    /**
     * The name of the access policy assignment.
     * 
     */
    @Import(name="accessPolicyAssignmentName")
    private @Nullable Output accessPolicyAssignmentName;

    /**
     * @return The name of the access policy assignment.
     * 
     */
    public Optional> accessPolicyAssignmentName() {
        return Optional.ofNullable(this.accessPolicyAssignmentName);
    }

    /**
     * The name of the access policy that is being assigned
     * 
     */
    @Import(name="accessPolicyName", required=true)
    private Output accessPolicyName;

    /**
     * @return The name of the access policy that is being assigned
     * 
     */
    public Output accessPolicyName() {
        return this.accessPolicyName;
    }

    /**
     * The name of the Redis cache.
     * 
     */
    @Import(name="cacheName", required=true)
    private Output cacheName;

    /**
     * @return The name of the Redis cache.
     * 
     */
    public Output cacheName() {
        return this.cacheName;
    }

    /**
     * Object Id to assign access policy to
     * 
     */
    @Import(name="objectId", required=true)
    private Output objectId;

    /**
     * @return Object Id to assign access policy to
     * 
     */
    public Output objectId() {
        return this.objectId;
    }

    /**
     * User friendly name for object id. Also represents username for token based authentication
     * 
     */
    @Import(name="objectIdAlias", required=true)
    private Output objectIdAlias;

    /**
     * @return User friendly name for object id. Also represents username for token based authentication
     * 
     */
    public Output objectIdAlias() {
        return this.objectIdAlias;
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private AccessPolicyAssignmentArgs() {}

    private AccessPolicyAssignmentArgs(AccessPolicyAssignmentArgs $) {
        this.accessPolicyAssignmentName = $.accessPolicyAssignmentName;
        this.accessPolicyName = $.accessPolicyName;
        this.cacheName = $.cacheName;
        this.objectId = $.objectId;
        this.objectIdAlias = $.objectIdAlias;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private AccessPolicyAssignmentArgs $;

        public Builder() {
            $ = new AccessPolicyAssignmentArgs();
        }

        public Builder(AccessPolicyAssignmentArgs defaults) {
            $ = new AccessPolicyAssignmentArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param accessPolicyAssignmentName The name of the access policy assignment.
         * 
         * @return builder
         * 
         */
        public Builder accessPolicyAssignmentName(@Nullable Output accessPolicyAssignmentName) {
            $.accessPolicyAssignmentName = accessPolicyAssignmentName;
            return this;
        }

        /**
         * @param accessPolicyAssignmentName The name of the access policy assignment.
         * 
         * @return builder
         * 
         */
        public Builder accessPolicyAssignmentName(String accessPolicyAssignmentName) {
            return accessPolicyAssignmentName(Output.of(accessPolicyAssignmentName));
        }

        /**
         * @param accessPolicyName The name of the access policy that is being assigned
         * 
         * @return builder
         * 
         */
        public Builder accessPolicyName(Output accessPolicyName) {
            $.accessPolicyName = accessPolicyName;
            return this;
        }

        /**
         * @param accessPolicyName The name of the access policy that is being assigned
         * 
         * @return builder
         * 
         */
        public Builder accessPolicyName(String accessPolicyName) {
            return accessPolicyName(Output.of(accessPolicyName));
        }

        /**
         * @param cacheName The name of the Redis cache.
         * 
         * @return builder
         * 
         */
        public Builder cacheName(Output cacheName) {
            $.cacheName = cacheName;
            return this;
        }

        /**
         * @param cacheName The name of the Redis cache.
         * 
         * @return builder
         * 
         */
        public Builder cacheName(String cacheName) {
            return cacheName(Output.of(cacheName));
        }

        /**
         * @param objectId Object Id to assign access policy to
         * 
         * @return builder
         * 
         */
        public Builder objectId(Output objectId) {
            $.objectId = objectId;
            return this;
        }

        /**
         * @param objectId Object Id to assign access policy to
         * 
         * @return builder
         * 
         */
        public Builder objectId(String objectId) {
            return objectId(Output.of(objectId));
        }

        /**
         * @param objectIdAlias User friendly name for object id. Also represents username for token based authentication
         * 
         * @return builder
         * 
         */
        public Builder objectIdAlias(Output objectIdAlias) {
            $.objectIdAlias = objectIdAlias;
            return this;
        }

        /**
         * @param objectIdAlias User friendly name for object id. Also represents username for token based authentication
         * 
         * @return builder
         * 
         */
        public Builder objectIdAlias(String objectIdAlias) {
            return objectIdAlias(Output.of(objectIdAlias));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        public AccessPolicyAssignmentArgs build() {
            if ($.accessPolicyName == null) {
                throw new MissingRequiredPropertyException("AccessPolicyAssignmentArgs", "accessPolicyName");
            }
            if ($.cacheName == null) {
                throw new MissingRequiredPropertyException("AccessPolicyAssignmentArgs", "cacheName");
            }
            if ($.objectId == null) {
                throw new MissingRequiredPropertyException("AccessPolicyAssignmentArgs", "objectId");
            }
            if ($.objectIdAlias == null) {
                throw new MissingRequiredPropertyException("AccessPolicyAssignmentArgs", "objectIdAlias");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("AccessPolicyAssignmentArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy