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

com.pulumi.azurenative.cache.RedisEnterpriseArgs 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.azurenative.cache.enums.TlsVersion;
import com.pulumi.azurenative.cache.inputs.ClusterPropertiesEncryptionArgs;
import com.pulumi.azurenative.cache.inputs.EnterpriseSkuArgs;
import com.pulumi.azurenative.cache.inputs.ManagedServiceIdentityArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final RedisEnterpriseArgs Empty = new RedisEnterpriseArgs();

    /**
     * The name of the RedisEnterprise cluster.
     * 
     */
    @Import(name="clusterName")
    private @Nullable Output clusterName;

    /**
     * @return The name of the RedisEnterprise cluster.
     * 
     */
    public Optional> clusterName() {
        return Optional.ofNullable(this.clusterName);
    }

    /**
     * Encryption-at-rest configuration for the cluster.
     * 
     */
    @Import(name="encryption")
    private @Nullable Output encryption;

    /**
     * @return Encryption-at-rest configuration for the cluster.
     * 
     */
    public Optional> encryption() {
        return Optional.ofNullable(this.encryption);
    }

    /**
     * The identity of the resource.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return The identity of the resource.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The minimum TLS version for the cluster to support, e.g. '1.2'
     * 
     */
    @Import(name="minimumTlsVersion")
    private @Nullable Output> minimumTlsVersion;

    /**
     * @return The minimum TLS version for the cluster to support, e.g. '1.2'
     * 
     */
    public Optional>> minimumTlsVersion() {
        return Optional.ofNullable(this.minimumTlsVersion);
    }

    /**
     * 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;
    }

    /**
     * The SKU to create, which affects price, performance, and features.
     * 
     */
    @Import(name="sku", required=true)
    private Output sku;

    /**
     * @return The SKU to create, which affects price, performance, and features.
     * 
     */
    public Output sku() {
        return this.sku;
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The Availability Zones where this cluster will be deployed.
     * 
     */
    @Import(name="zones")
    private @Nullable Output> zones;

    /**
     * @return The Availability Zones where this cluster will be deployed.
     * 
     */
    public Optional>> zones() {
        return Optional.ofNullable(this.zones);
    }

    private RedisEnterpriseArgs() {}

    private RedisEnterpriseArgs(RedisEnterpriseArgs $) {
        this.clusterName = $.clusterName;
        this.encryption = $.encryption;
        this.identity = $.identity;
        this.location = $.location;
        this.minimumTlsVersion = $.minimumTlsVersion;
        this.resourceGroupName = $.resourceGroupName;
        this.sku = $.sku;
        this.tags = $.tags;
        this.zones = $.zones;
    }

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

    public static final class Builder {
        private RedisEnterpriseArgs $;

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

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

        /**
         * @param clusterName The name of the RedisEnterprise cluster.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(@Nullable Output clusterName) {
            $.clusterName = clusterName;
            return this;
        }

        /**
         * @param clusterName The name of the RedisEnterprise cluster.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(String clusterName) {
            return clusterName(Output.of(clusterName));
        }

        /**
         * @param encryption Encryption-at-rest configuration for the cluster.
         * 
         * @return builder
         * 
         */
        public Builder encryption(@Nullable Output encryption) {
            $.encryption = encryption;
            return this;
        }

        /**
         * @param encryption Encryption-at-rest configuration for the cluster.
         * 
         * @return builder
         * 
         */
        public Builder encryption(ClusterPropertiesEncryptionArgs encryption) {
            return encryption(Output.of(encryption));
        }

        /**
         * @param identity The identity of the resource.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity The identity of the resource.
         * 
         * @return builder
         * 
         */
        public Builder identity(ManagedServiceIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param minimumTlsVersion The minimum TLS version for the cluster to support, e.g. '1.2'
         * 
         * @return builder
         * 
         */
        public Builder minimumTlsVersion(@Nullable Output> minimumTlsVersion) {
            $.minimumTlsVersion = minimumTlsVersion;
            return this;
        }

        /**
         * @param minimumTlsVersion The minimum TLS version for the cluster to support, e.g. '1.2'
         * 
         * @return builder
         * 
         */
        public Builder minimumTlsVersion(Either minimumTlsVersion) {
            return minimumTlsVersion(Output.of(minimumTlsVersion));
        }

        /**
         * @param minimumTlsVersion The minimum TLS version for the cluster to support, e.g. '1.2'
         * 
         * @return builder
         * 
         */
        public Builder minimumTlsVersion(String minimumTlsVersion) {
            return minimumTlsVersion(Either.ofLeft(minimumTlsVersion));
        }

        /**
         * @param minimumTlsVersion The minimum TLS version for the cluster to support, e.g. '1.2'
         * 
         * @return builder
         * 
         */
        public Builder minimumTlsVersion(TlsVersion minimumTlsVersion) {
            return minimumTlsVersion(Either.ofRight(minimumTlsVersion));
        }

        /**
         * @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));
        }

        /**
         * @param sku The SKU to create, which affects price, performance, and features.
         * 
         * @return builder
         * 
         */
        public Builder sku(Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku The SKU to create, which affects price, performance, and features.
         * 
         * @return builder
         * 
         */
        public Builder sku(EnterpriseSkuArgs sku) {
            return sku(Output.of(sku));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param zones The Availability Zones where this cluster will be deployed.
         * 
         * @return builder
         * 
         */
        public Builder zones(@Nullable Output> zones) {
            $.zones = zones;
            return this;
        }

        /**
         * @param zones The Availability Zones where this cluster will be deployed.
         * 
         * @return builder
         * 
         */
        public Builder zones(List zones) {
            return zones(Output.of(zones));
        }

        /**
         * @param zones The Availability Zones where this cluster will be deployed.
         * 
         * @return builder
         * 
         */
        public Builder zones(String... zones) {
            return zones(List.of(zones));
        }

        public RedisEnterpriseArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("RedisEnterpriseArgs", "resourceGroupName");
            }
            if ($.sku == null) {
                throw new MissingRequiredPropertyException("RedisEnterpriseArgs", "sku");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy