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

com.pulumi.azure.apimanagement.RedisCacheArgs 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.10.0-alpha.1731737215
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.apimanagement;

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 RedisCacheArgs extends com.pulumi.resources.ResourceArgs {

    public static final RedisCacheArgs Empty = new RedisCacheArgs();

    /**
     * The resource ID of the API Management Service from which to create this external cache. Changing this forces a new API Management Redis Cache to be created.
     * 
     */
    @Import(name="apiManagementId", required=true)
    private Output apiManagementId;

    /**
     * @return The resource ID of the API Management Service from which to create this external cache. Changing this forces a new API Management Redis Cache to be created.
     * 
     */
    public Output apiManagementId() {
        return this.apiManagementId;
    }

    /**
     * The location where to use cache from. Possible values are `default` and valid Azure regions. Defaults to `default`.
     * 
     */
    @Import(name="cacheLocation")
    private @Nullable Output cacheLocation;

    /**
     * @return The location where to use cache from. Possible values are `default` and valid Azure regions. Defaults to `default`.
     * 
     */
    public Optional> cacheLocation() {
        return Optional.ofNullable(this.cacheLocation);
    }

    /**
     * The connection string to the Cache for Redis.
     * 
     */
    @Import(name="connectionString", required=true)
    private Output connectionString;

    /**
     * @return The connection string to the Cache for Redis.
     * 
     */
    public Output connectionString() {
        return this.connectionString;
    }

    /**
     * The description of the API Management Redis Cache.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of the API Management Redis Cache.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The name which should be used for this API Management Redis Cache. Changing this forces a new API Management Redis Cache to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this API Management Redis Cache. Changing this forces a new API Management Redis Cache to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The resource ID of the Cache for Redis.
     * 
     */
    @Import(name="redisCacheId")
    private @Nullable Output redisCacheId;

    /**
     * @return The resource ID of the Cache for Redis.
     * 
     */
    public Optional> redisCacheId() {
        return Optional.ofNullable(this.redisCacheId);
    }

    private RedisCacheArgs() {}

    private RedisCacheArgs(RedisCacheArgs $) {
        this.apiManagementId = $.apiManagementId;
        this.cacheLocation = $.cacheLocation;
        this.connectionString = $.connectionString;
        this.description = $.description;
        this.name = $.name;
        this.redisCacheId = $.redisCacheId;
    }

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

    public static final class Builder {
        private RedisCacheArgs $;

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

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

        /**
         * @param apiManagementId The resource ID of the API Management Service from which to create this external cache. Changing this forces a new API Management Redis Cache to be created.
         * 
         * @return builder
         * 
         */
        public Builder apiManagementId(Output apiManagementId) {
            $.apiManagementId = apiManagementId;
            return this;
        }

        /**
         * @param apiManagementId The resource ID of the API Management Service from which to create this external cache. Changing this forces a new API Management Redis Cache to be created.
         * 
         * @return builder
         * 
         */
        public Builder apiManagementId(String apiManagementId) {
            return apiManagementId(Output.of(apiManagementId));
        }

        /**
         * @param cacheLocation The location where to use cache from. Possible values are `default` and valid Azure regions. Defaults to `default`.
         * 
         * @return builder
         * 
         */
        public Builder cacheLocation(@Nullable Output cacheLocation) {
            $.cacheLocation = cacheLocation;
            return this;
        }

        /**
         * @param cacheLocation The location where to use cache from. Possible values are `default` and valid Azure regions. Defaults to `default`.
         * 
         * @return builder
         * 
         */
        public Builder cacheLocation(String cacheLocation) {
            return cacheLocation(Output.of(cacheLocation));
        }

        /**
         * @param connectionString The connection string to the Cache for Redis.
         * 
         * @return builder
         * 
         */
        public Builder connectionString(Output connectionString) {
            $.connectionString = connectionString;
            return this;
        }

        /**
         * @param connectionString The connection string to the Cache for Redis.
         * 
         * @return builder
         * 
         */
        public Builder connectionString(String connectionString) {
            return connectionString(Output.of(connectionString));
        }

        /**
         * @param description The description of the API Management Redis Cache.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of the API Management Redis Cache.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param name The name which should be used for this API Management Redis Cache. Changing this forces a new API Management Redis Cache to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this API Management Redis Cache. Changing this forces a new API Management Redis Cache to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param redisCacheId The resource ID of the Cache for Redis.
         * 
         * @return builder
         * 
         */
        public Builder redisCacheId(@Nullable Output redisCacheId) {
            $.redisCacheId = redisCacheId;
            return this;
        }

        /**
         * @param redisCacheId The resource ID of the Cache for Redis.
         * 
         * @return builder
         * 
         */
        public Builder redisCacheId(String redisCacheId) {
            return redisCacheId(Output.of(redisCacheId));
        }

        public RedisCacheArgs build() {
            if ($.apiManagementId == null) {
                throw new MissingRequiredPropertyException("RedisCacheArgs", "apiManagementId");
            }
            if ($.connectionString == null) {
                throw new MissingRequiredPropertyException("RedisCacheArgs", "connectionString");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy