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

com.pulumi.azure.redis.inputs.CacheAccessPolicyState Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 6.15.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.azure.redis.inputs;

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


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

    public static final CacheAccessPolicyState Empty = new CacheAccessPolicyState();

    /**
     * The name of the Redis Cache Access Policy. Changing this forces a new Redis Cache Access Policy to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the Redis Cache Access Policy. Changing this forces a new Redis Cache Access Policy to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Permissions that are going to be assigned to this Redis Cache Access Policy.
     * 
     */
    @Import(name="permissions")
    private @Nullable Output permissions;

    /**
     * @return Permissions that are going to be assigned to this Redis Cache Access Policy.
     * 
     */
    public Optional> permissions() {
        return Optional.ofNullable(this.permissions);
    }

    /**
     * The ID of the Redis Cache. Changing this forces a new Redis Cache Access Policy to be created.
     * 
     */
    @Import(name="redisCacheId")
    private @Nullable Output redisCacheId;

    /**
     * @return The ID of the Redis Cache. Changing this forces a new Redis Cache Access Policy to be created.
     * 
     */
    public Optional> redisCacheId() {
        return Optional.ofNullable(this.redisCacheId);
    }

    private CacheAccessPolicyState() {}

    private CacheAccessPolicyState(CacheAccessPolicyState $) {
        this.name = $.name;
        this.permissions = $.permissions;
        this.redisCacheId = $.redisCacheId;
    }

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

    public static final class Builder {
        private CacheAccessPolicyState $;

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

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

        /**
         * @param name The name of the Redis Cache Access Policy. Changing this forces a new Redis Cache Access Policy to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the Redis Cache Access Policy. Changing this forces a new Redis Cache Access Policy to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param permissions Permissions that are going to be assigned to this Redis Cache Access Policy.
         * 
         * @return builder
         * 
         */
        public Builder permissions(@Nullable Output permissions) {
            $.permissions = permissions;
            return this;
        }

        /**
         * @param permissions Permissions that are going to be assigned to this Redis Cache Access Policy.
         * 
         * @return builder
         * 
         */
        public Builder permissions(String permissions) {
            return permissions(Output.of(permissions));
        }

        /**
         * @param redisCacheId The ID of the Redis Cache. Changing this forces a new Redis Cache Access Policy to be created.
         * 
         * @return builder
         * 
         */
        public Builder redisCacheId(@Nullable Output redisCacheId) {
            $.redisCacheId = redisCacheId;
            return this;
        }

        /**
         * @param redisCacheId The ID of the Redis Cache. Changing this forces a new Redis Cache Access Policy to be created.
         * 
         * @return builder
         * 
         */
        public Builder redisCacheId(String redisCacheId) {
            return redisCacheId(Output.of(redisCacheId));
        }

        public CacheAccessPolicyState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy