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

com.pulumi.azurenative.storagecache.CacheArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.storagecache.inputs.CacheDirectorySettingsArgs;
import com.pulumi.azurenative.storagecache.inputs.CacheEncryptionSettingsArgs;
import com.pulumi.azurenative.storagecache.inputs.CacheIdentityArgs;
import com.pulumi.azurenative.storagecache.inputs.CacheNetworkSettingsArgs;
import com.pulumi.azurenative.storagecache.inputs.CacheSecuritySettingsArgs;
import com.pulumi.azurenative.storagecache.inputs.CacheSkuArgs;
import com.pulumi.azurenative.storagecache.inputs.CacheUpgradeSettingsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
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 CacheArgs extends com.pulumi.resources.ResourceArgs {

    public static final CacheArgs Empty = new CacheArgs();

    /**
     * Name of cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
     * 
     */
    @Import(name="cacheName")
    private @Nullable Output cacheName;

    /**
     * @return Name of cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
     * 
     */
    public Optional> cacheName() {
        return Optional.ofNullable(this.cacheName);
    }

    /**
     * The size of this Cache, in GB.
     * 
     */
    @Import(name="cacheSizeGB")
    private @Nullable Output cacheSizeGB;

    /**
     * @return The size of this Cache, in GB.
     * 
     */
    public Optional> cacheSizeGB() {
        return Optional.ofNullable(this.cacheSizeGB);
    }

    /**
     * Specifies Directory Services settings of the cache.
     * 
     */
    @Import(name="directoryServicesSettings")
    private @Nullable Output directoryServicesSettings;

    /**
     * @return Specifies Directory Services settings of the cache.
     * 
     */
    public Optional> directoryServicesSettings() {
        return Optional.ofNullable(this.directoryServicesSettings);
    }

    /**
     * Specifies encryption settings of the cache.
     * 
     */
    @Import(name="encryptionSettings")
    private @Nullable Output encryptionSettings;

    /**
     * @return Specifies encryption settings of the cache.
     * 
     */
    public Optional> encryptionSettings() {
        return Optional.ofNullable(this.encryptionSettings);
    }

    /**
     * The identity of the cache, if configured.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return The identity of the cache, if configured.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * Region name string.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Region name string.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Specifies network settings of the cache.
     * 
     */
    @Import(name="networkSettings")
    private @Nullable Output networkSettings;

    /**
     * @return Specifies network settings of the cache.
     * 
     */
    public Optional> networkSettings() {
        return Optional.ofNullable(this.networkSettings);
    }

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

    /**
     * Specifies security settings of the cache.
     * 
     */
    @Import(name="securitySettings")
    private @Nullable Output securitySettings;

    /**
     * @return Specifies security settings of the cache.
     * 
     */
    public Optional> securitySettings() {
        return Optional.ofNullable(this.securitySettings);
    }

    /**
     * SKU for the cache.
     * 
     */
    @Import(name="sku")
    private @Nullable Output sku;

    /**
     * @return SKU for the cache.
     * 
     */
    public Optional> sku() {
        return Optional.ofNullable(this.sku);
    }

    /**
     * Subnet used for the cache.
     * 
     */
    @Import(name="subnet")
    private @Nullable Output subnet;

    /**
     * @return Subnet used for the cache.
     * 
     */
    public Optional> subnet() {
        return Optional.ofNullable(this.subnet);
    }

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

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

    /**
     * Upgrade settings of the cache.
     * 
     */
    @Import(name="upgradeSettings")
    private @Nullable Output upgradeSettings;

    /**
     * @return Upgrade settings of the cache.
     * 
     */
    public Optional> upgradeSettings() {
        return Optional.ofNullable(this.upgradeSettings);
    }

    /**
     * Availability zones for resources. This field should only contain a single element in the array.
     * 
     */
    @Import(name="zones")
    private @Nullable Output> zones;

    /**
     * @return Availability zones for resources. This field should only contain a single element in the array.
     * 
     */
    public Optional>> zones() {
        return Optional.ofNullable(this.zones);
    }

    private CacheArgs() {}

    private CacheArgs(CacheArgs $) {
        this.cacheName = $.cacheName;
        this.cacheSizeGB = $.cacheSizeGB;
        this.directoryServicesSettings = $.directoryServicesSettings;
        this.encryptionSettings = $.encryptionSettings;
        this.identity = $.identity;
        this.location = $.location;
        this.networkSettings = $.networkSettings;
        this.resourceGroupName = $.resourceGroupName;
        this.securitySettings = $.securitySettings;
        this.sku = $.sku;
        this.subnet = $.subnet;
        this.tags = $.tags;
        this.upgradeSettings = $.upgradeSettings;
        this.zones = $.zones;
    }

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

    public static final class Builder {
        private CacheArgs $;

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

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

        /**
         * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
         * 
         * @return builder
         * 
         */
        public Builder cacheName(@Nullable Output cacheName) {
            $.cacheName = cacheName;
            return this;
        }

        /**
         * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
         * 
         * @return builder
         * 
         */
        public Builder cacheName(String cacheName) {
            return cacheName(Output.of(cacheName));
        }

        /**
         * @param cacheSizeGB The size of this Cache, in GB.
         * 
         * @return builder
         * 
         */
        public Builder cacheSizeGB(@Nullable Output cacheSizeGB) {
            $.cacheSizeGB = cacheSizeGB;
            return this;
        }

        /**
         * @param cacheSizeGB The size of this Cache, in GB.
         * 
         * @return builder
         * 
         */
        public Builder cacheSizeGB(Integer cacheSizeGB) {
            return cacheSizeGB(Output.of(cacheSizeGB));
        }

        /**
         * @param directoryServicesSettings Specifies Directory Services settings of the cache.
         * 
         * @return builder
         * 
         */
        public Builder directoryServicesSettings(@Nullable Output directoryServicesSettings) {
            $.directoryServicesSettings = directoryServicesSettings;
            return this;
        }

        /**
         * @param directoryServicesSettings Specifies Directory Services settings of the cache.
         * 
         * @return builder
         * 
         */
        public Builder directoryServicesSettings(CacheDirectorySettingsArgs directoryServicesSettings) {
            return directoryServicesSettings(Output.of(directoryServicesSettings));
        }

        /**
         * @param encryptionSettings Specifies encryption settings of the cache.
         * 
         * @return builder
         * 
         */
        public Builder encryptionSettings(@Nullable Output encryptionSettings) {
            $.encryptionSettings = encryptionSettings;
            return this;
        }

        /**
         * @param encryptionSettings Specifies encryption settings of the cache.
         * 
         * @return builder
         * 
         */
        public Builder encryptionSettings(CacheEncryptionSettingsArgs encryptionSettings) {
            return encryptionSettings(Output.of(encryptionSettings));
        }

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

        /**
         * @param identity The identity of the cache, if configured.
         * 
         * @return builder
         * 
         */
        public Builder identity(CacheIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param location Region name string.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Region name string.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param networkSettings Specifies network settings of the cache.
         * 
         * @return builder
         * 
         */
        public Builder networkSettings(@Nullable Output networkSettings) {
            $.networkSettings = networkSettings;
            return this;
        }

        /**
         * @param networkSettings Specifies network settings of the cache.
         * 
         * @return builder
         * 
         */
        public Builder networkSettings(CacheNetworkSettingsArgs networkSettings) {
            return networkSettings(Output.of(networkSettings));
        }

        /**
         * @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 securitySettings Specifies security settings of the cache.
         * 
         * @return builder
         * 
         */
        public Builder securitySettings(@Nullable Output securitySettings) {
            $.securitySettings = securitySettings;
            return this;
        }

        /**
         * @param securitySettings Specifies security settings of the cache.
         * 
         * @return builder
         * 
         */
        public Builder securitySettings(CacheSecuritySettingsArgs securitySettings) {
            return securitySettings(Output.of(securitySettings));
        }

        /**
         * @param sku SKU for the cache.
         * 
         * @return builder
         * 
         */
        public Builder sku(@Nullable Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku SKU for the cache.
         * 
         * @return builder
         * 
         */
        public Builder sku(CacheSkuArgs sku) {
            return sku(Output.of(sku));
        }

        /**
         * @param subnet Subnet used for the cache.
         * 
         * @return builder
         * 
         */
        public Builder subnet(@Nullable Output subnet) {
            $.subnet = subnet;
            return this;
        }

        /**
         * @param subnet Subnet used for the cache.
         * 
         * @return builder
         * 
         */
        public Builder subnet(String subnet) {
            return subnet(Output.of(subnet));
        }

        /**
         * @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 upgradeSettings Upgrade settings of the cache.
         * 
         * @return builder
         * 
         */
        public Builder upgradeSettings(@Nullable Output upgradeSettings) {
            $.upgradeSettings = upgradeSettings;
            return this;
        }

        /**
         * @param upgradeSettings Upgrade settings of the cache.
         * 
         * @return builder
         * 
         */
        public Builder upgradeSettings(CacheUpgradeSettingsArgs upgradeSettings) {
            return upgradeSettings(Output.of(upgradeSettings));
        }

        /**
         * @param zones Availability zones for resources. This field should only contain a single element in the array.
         * 
         * @return builder
         * 
         */
        public Builder zones(@Nullable Output> zones) {
            $.zones = zones;
            return this;
        }

        /**
         * @param zones Availability zones for resources. This field should only contain a single element in the array.
         * 
         * @return builder
         * 
         */
        public Builder zones(List zones) {
            return zones(Output.of(zones));
        }

        /**
         * @param zones Availability zones for resources. This field should only contain a single element in the array.
         * 
         * @return builder
         * 
         */
        public Builder zones(String... zones) {
            return zones(List.of(zones));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy