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

com.pulumi.azurenative.cache.inputs.GetAccessPolicyArgs 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.inputs;

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


public final class GetAccessPolicyArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetAccessPolicyArgs Empty = new GetAccessPolicyArgs();

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

    /**
     * @return The name of the access policy that is being added to the Redis cache.
     * 
     */
    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;
    }

    /**
     * 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 GetAccessPolicyArgs() {}

    private GetAccessPolicyArgs(GetAccessPolicyArgs $) {
        this.accessPolicyName = $.accessPolicyName;
        this.cacheName = $.cacheName;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private GetAccessPolicyArgs $;

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

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

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

        /**
         * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
         * 
         * @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 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 GetAccessPolicyArgs build() {
            if ($.accessPolicyName == null) {
                throw new MissingRequiredPropertyException("GetAccessPolicyArgs", "accessPolicyName");
            }
            if ($.cacheName == null) {
                throw new MissingRequiredPropertyException("GetAccessPolicyArgs", "cacheName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("GetAccessPolicyArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy