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

com.pulumi.azure.eventhub.inputs.EventHubNamespaceState 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.eventhub.inputs;

import com.pulumi.azure.eventhub.inputs.EventHubNamespaceIdentityArgs;
import com.pulumi.azure.eventhub.inputs.EventHubNamespaceNetworkRulesetsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final EventHubNamespaceState Empty = new EventHubNamespaceState();

    /**
     * Is Auto Inflate enabled for the EventHub Namespace?
     * 
     */
    @Import(name="autoInflateEnabled")
    private @Nullable Output autoInflateEnabled;

    /**
     * @return Is Auto Inflate enabled for the EventHub Namespace?
     * 
     */
    public Optional> autoInflateEnabled() {
        return Optional.ofNullable(this.autoInflateEnabled);
    }

    /**
     * Specifies the Capacity / Throughput Units for a `Standard` SKU namespace. Default capacity has a maximum of `2`, but can be increased in blocks of 2 on a committed purchase basis. Defaults to `1`.
     * 
     */
    @Import(name="capacity")
    private @Nullable Output capacity;

    /**
     * @return Specifies the Capacity / Throughput Units for a `Standard` SKU namespace. Default capacity has a maximum of `2`, but can be increased in blocks of 2 on a committed purchase basis. Defaults to `1`.
     * 
     */
    public Optional> capacity() {
        return Optional.ofNullable(this.capacity);
    }

    /**
     * Specifies the ID of the EventHub Dedicated Cluster where this Namespace should created. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="dedicatedClusterId")
    private @Nullable Output dedicatedClusterId;

    /**
     * @return Specifies the ID of the EventHub Dedicated Cluster where this Namespace should created. Changing this forces a new resource to be created.
     * 
     */
    public Optional> dedicatedClusterId() {
        return Optional.ofNullable(this.dedicatedClusterId);
    }

    /**
     * The primary connection string for the authorization rule `RootManageSharedAccessKey`.
     * 
     */
    @Import(name="defaultPrimaryConnectionString")
    private @Nullable Output defaultPrimaryConnectionString;

    /**
     * @return The primary connection string for the authorization rule `RootManageSharedAccessKey`.
     * 
     */
    public Optional> defaultPrimaryConnectionString() {
        return Optional.ofNullable(this.defaultPrimaryConnectionString);
    }

    /**
     * The alias of the primary connection string for the authorization rule `RootManageSharedAccessKey`, which is generated when disaster recovery is enabled.
     * 
     */
    @Import(name="defaultPrimaryConnectionStringAlias")
    private @Nullable Output defaultPrimaryConnectionStringAlias;

    /**
     * @return The alias of the primary connection string for the authorization rule `RootManageSharedAccessKey`, which is generated when disaster recovery is enabled.
     * 
     */
    public Optional> defaultPrimaryConnectionStringAlias() {
        return Optional.ofNullable(this.defaultPrimaryConnectionStringAlias);
    }

    /**
     * The primary access key for the authorization rule `RootManageSharedAccessKey`.
     * 
     */
    @Import(name="defaultPrimaryKey")
    private @Nullable Output defaultPrimaryKey;

    /**
     * @return The primary access key for the authorization rule `RootManageSharedAccessKey`.
     * 
     */
    public Optional> defaultPrimaryKey() {
        return Optional.ofNullable(this.defaultPrimaryKey);
    }

    /**
     * The secondary connection string for the authorization rule `RootManageSharedAccessKey`.
     * 
     */
    @Import(name="defaultSecondaryConnectionString")
    private @Nullable Output defaultSecondaryConnectionString;

    /**
     * @return The secondary connection string for the authorization rule `RootManageSharedAccessKey`.
     * 
     */
    public Optional> defaultSecondaryConnectionString() {
        return Optional.ofNullable(this.defaultSecondaryConnectionString);
    }

    /**
     * The alias of the secondary connection string for the authorization rule `RootManageSharedAccessKey`, which is generated when disaster recovery is enabled.
     * 
     */
    @Import(name="defaultSecondaryConnectionStringAlias")
    private @Nullable Output defaultSecondaryConnectionStringAlias;

    /**
     * @return The alias of the secondary connection string for the authorization rule `RootManageSharedAccessKey`, which is generated when disaster recovery is enabled.
     * 
     */
    public Optional> defaultSecondaryConnectionStringAlias() {
        return Optional.ofNullable(this.defaultSecondaryConnectionStringAlias);
    }

    /**
     * The secondary access key for the authorization rule `RootManageSharedAccessKey`.
     * 
     */
    @Import(name="defaultSecondaryKey")
    private @Nullable Output defaultSecondaryKey;

    /**
     * @return The secondary access key for the authorization rule `RootManageSharedAccessKey`.
     * 
     */
    public Optional> defaultSecondaryKey() {
        return Optional.ofNullable(this.defaultSecondaryKey);
    }

    /**
     * An `identity` block as defined below.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return An `identity` block as defined below.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * Is SAS authentication enabled for the EventHub Namespace? Defaults to `true`.
     * 
     */
    @Import(name="localAuthenticationEnabled")
    private @Nullable Output localAuthenticationEnabled;

    /**
     * @return Is SAS authentication enabled for the EventHub Namespace? Defaults to `true`.
     * 
     */
    public Optional> localAuthenticationEnabled() {
        return Optional.ofNullable(this.localAuthenticationEnabled);
    }

    /**
     * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Specifies the maximum number of throughput units when Auto Inflate is Enabled. Valid values range from `1` - `20`.
     * 
     */
    @Import(name="maximumThroughputUnits")
    private @Nullable Output maximumThroughputUnits;

    /**
     * @return Specifies the maximum number of throughput units when Auto Inflate is Enabled. Valid values range from `1` - `20`.
     * 
     */
    public Optional> maximumThroughputUnits() {
        return Optional.ofNullable(this.maximumThroughputUnits);
    }

    /**
     * The minimum supported TLS version for this EventHub Namespace. Valid values are: `1.0`, `1.1` and `1.2`. Defaults to `1.2`.
     * 
     */
    @Import(name="minimumTlsVersion")
    private @Nullable Output minimumTlsVersion;

    /**
     * @return The minimum supported TLS version for this EventHub Namespace. Valid values are: `1.0`, `1.1` and `1.2`. Defaults to `1.2`.
     * 
     */
    public Optional> minimumTlsVersion() {
        return Optional.ofNullable(this.minimumTlsVersion);
    }

    /**
     * Specifies the name of the EventHub Namespace resource. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Specifies the name of the EventHub Namespace resource. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * A `network_rulesets` block as defined below.
     * 
     */
    @Import(name="networkRulesets")
    private @Nullable Output networkRulesets;

    /**
     * @return A `network_rulesets` block as defined below.
     * 
     */
    public Optional> networkRulesets() {
        return Optional.ofNullable(this.networkRulesets);
    }

    /**
     * Is public network access enabled for the EventHub Namespace? Defaults to `true`.
     * 
     */
    @Import(name="publicNetworkAccessEnabled")
    private @Nullable Output publicNetworkAccessEnabled;

    /**
     * @return Is public network access enabled for the EventHub Namespace? Defaults to `true`.
     * 
     */
    public Optional> publicNetworkAccessEnabled() {
        return Optional.ofNullable(this.publicNetworkAccessEnabled);
    }

    /**
     * The name of the resource group in which to create the namespace. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName")
    private @Nullable Output resourceGroupName;

    /**
     * @return The name of the resource group in which to create the namespace. Changing this forces a new resource to be created.
     * 
     */
    public Optional> resourceGroupName() {
        return Optional.ofNullable(this.resourceGroupName);
    }

    /**
     * Defines which tier to use. Valid options are `Basic`, `Standard`, and `Premium`. Please note that setting this field to `Premium` will force the creation of a new resource.
     * 
     */
    @Import(name="sku")
    private @Nullable Output sku;

    /**
     * @return Defines which tier to use. Valid options are `Basic`, `Standard`, and `Premium`. Please note that setting this field to `Premium` will force the creation of a new resource.
     * 
     */
    public Optional> sku() {
        return Optional.ofNullable(this.sku);
    }

    /**
     * A mapping of tags to assign to the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags to assign to the resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private EventHubNamespaceState() {}

    private EventHubNamespaceState(EventHubNamespaceState $) {
        this.autoInflateEnabled = $.autoInflateEnabled;
        this.capacity = $.capacity;
        this.dedicatedClusterId = $.dedicatedClusterId;
        this.defaultPrimaryConnectionString = $.defaultPrimaryConnectionString;
        this.defaultPrimaryConnectionStringAlias = $.defaultPrimaryConnectionStringAlias;
        this.defaultPrimaryKey = $.defaultPrimaryKey;
        this.defaultSecondaryConnectionString = $.defaultSecondaryConnectionString;
        this.defaultSecondaryConnectionStringAlias = $.defaultSecondaryConnectionStringAlias;
        this.defaultSecondaryKey = $.defaultSecondaryKey;
        this.identity = $.identity;
        this.localAuthenticationEnabled = $.localAuthenticationEnabled;
        this.location = $.location;
        this.maximumThroughputUnits = $.maximumThroughputUnits;
        this.minimumTlsVersion = $.minimumTlsVersion;
        this.name = $.name;
        this.networkRulesets = $.networkRulesets;
        this.publicNetworkAccessEnabled = $.publicNetworkAccessEnabled;
        this.resourceGroupName = $.resourceGroupName;
        this.sku = $.sku;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private EventHubNamespaceState $;

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

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

        /**
         * @param autoInflateEnabled Is Auto Inflate enabled for the EventHub Namespace?
         * 
         * @return builder
         * 
         */
        public Builder autoInflateEnabled(@Nullable Output autoInflateEnabled) {
            $.autoInflateEnabled = autoInflateEnabled;
            return this;
        }

        /**
         * @param autoInflateEnabled Is Auto Inflate enabled for the EventHub Namespace?
         * 
         * @return builder
         * 
         */
        public Builder autoInflateEnabled(Boolean autoInflateEnabled) {
            return autoInflateEnabled(Output.of(autoInflateEnabled));
        }

        /**
         * @param capacity Specifies the Capacity / Throughput Units for a `Standard` SKU namespace. Default capacity has a maximum of `2`, but can be increased in blocks of 2 on a committed purchase basis. Defaults to `1`.
         * 
         * @return builder
         * 
         */
        public Builder capacity(@Nullable Output capacity) {
            $.capacity = capacity;
            return this;
        }

        /**
         * @param capacity Specifies the Capacity / Throughput Units for a `Standard` SKU namespace. Default capacity has a maximum of `2`, but can be increased in blocks of 2 on a committed purchase basis. Defaults to `1`.
         * 
         * @return builder
         * 
         */
        public Builder capacity(Integer capacity) {
            return capacity(Output.of(capacity));
        }

        /**
         * @param dedicatedClusterId Specifies the ID of the EventHub Dedicated Cluster where this Namespace should created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder dedicatedClusterId(@Nullable Output dedicatedClusterId) {
            $.dedicatedClusterId = dedicatedClusterId;
            return this;
        }

        /**
         * @param dedicatedClusterId Specifies the ID of the EventHub Dedicated Cluster where this Namespace should created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder dedicatedClusterId(String dedicatedClusterId) {
            return dedicatedClusterId(Output.of(dedicatedClusterId));
        }

        /**
         * @param defaultPrimaryConnectionString The primary connection string for the authorization rule `RootManageSharedAccessKey`.
         * 
         * @return builder
         * 
         */
        public Builder defaultPrimaryConnectionString(@Nullable Output defaultPrimaryConnectionString) {
            $.defaultPrimaryConnectionString = defaultPrimaryConnectionString;
            return this;
        }

        /**
         * @param defaultPrimaryConnectionString The primary connection string for the authorization rule `RootManageSharedAccessKey`.
         * 
         * @return builder
         * 
         */
        public Builder defaultPrimaryConnectionString(String defaultPrimaryConnectionString) {
            return defaultPrimaryConnectionString(Output.of(defaultPrimaryConnectionString));
        }

        /**
         * @param defaultPrimaryConnectionStringAlias The alias of the primary connection string for the authorization rule `RootManageSharedAccessKey`, which is generated when disaster recovery is enabled.
         * 
         * @return builder
         * 
         */
        public Builder defaultPrimaryConnectionStringAlias(@Nullable Output defaultPrimaryConnectionStringAlias) {
            $.defaultPrimaryConnectionStringAlias = defaultPrimaryConnectionStringAlias;
            return this;
        }

        /**
         * @param defaultPrimaryConnectionStringAlias The alias of the primary connection string for the authorization rule `RootManageSharedAccessKey`, which is generated when disaster recovery is enabled.
         * 
         * @return builder
         * 
         */
        public Builder defaultPrimaryConnectionStringAlias(String defaultPrimaryConnectionStringAlias) {
            return defaultPrimaryConnectionStringAlias(Output.of(defaultPrimaryConnectionStringAlias));
        }

        /**
         * @param defaultPrimaryKey The primary access key for the authorization rule `RootManageSharedAccessKey`.
         * 
         * @return builder
         * 
         */
        public Builder defaultPrimaryKey(@Nullable Output defaultPrimaryKey) {
            $.defaultPrimaryKey = defaultPrimaryKey;
            return this;
        }

        /**
         * @param defaultPrimaryKey The primary access key for the authorization rule `RootManageSharedAccessKey`.
         * 
         * @return builder
         * 
         */
        public Builder defaultPrimaryKey(String defaultPrimaryKey) {
            return defaultPrimaryKey(Output.of(defaultPrimaryKey));
        }

        /**
         * @param defaultSecondaryConnectionString The secondary connection string for the authorization rule `RootManageSharedAccessKey`.
         * 
         * @return builder
         * 
         */
        public Builder defaultSecondaryConnectionString(@Nullable Output defaultSecondaryConnectionString) {
            $.defaultSecondaryConnectionString = defaultSecondaryConnectionString;
            return this;
        }

        /**
         * @param defaultSecondaryConnectionString The secondary connection string for the authorization rule `RootManageSharedAccessKey`.
         * 
         * @return builder
         * 
         */
        public Builder defaultSecondaryConnectionString(String defaultSecondaryConnectionString) {
            return defaultSecondaryConnectionString(Output.of(defaultSecondaryConnectionString));
        }

        /**
         * @param defaultSecondaryConnectionStringAlias The alias of the secondary connection string for the authorization rule `RootManageSharedAccessKey`, which is generated when disaster recovery is enabled.
         * 
         * @return builder
         * 
         */
        public Builder defaultSecondaryConnectionStringAlias(@Nullable Output defaultSecondaryConnectionStringAlias) {
            $.defaultSecondaryConnectionStringAlias = defaultSecondaryConnectionStringAlias;
            return this;
        }

        /**
         * @param defaultSecondaryConnectionStringAlias The alias of the secondary connection string for the authorization rule `RootManageSharedAccessKey`, which is generated when disaster recovery is enabled.
         * 
         * @return builder
         * 
         */
        public Builder defaultSecondaryConnectionStringAlias(String defaultSecondaryConnectionStringAlias) {
            return defaultSecondaryConnectionStringAlias(Output.of(defaultSecondaryConnectionStringAlias));
        }

        /**
         * @param defaultSecondaryKey The secondary access key for the authorization rule `RootManageSharedAccessKey`.
         * 
         * @return builder
         * 
         */
        public Builder defaultSecondaryKey(@Nullable Output defaultSecondaryKey) {
            $.defaultSecondaryKey = defaultSecondaryKey;
            return this;
        }

        /**
         * @param defaultSecondaryKey The secondary access key for the authorization rule `RootManageSharedAccessKey`.
         * 
         * @return builder
         * 
         */
        public Builder defaultSecondaryKey(String defaultSecondaryKey) {
            return defaultSecondaryKey(Output.of(defaultSecondaryKey));
        }

        /**
         * @param identity An `identity` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity An `identity` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder identity(EventHubNamespaceIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param localAuthenticationEnabled Is SAS authentication enabled for the EventHub Namespace? Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder localAuthenticationEnabled(@Nullable Output localAuthenticationEnabled) {
            $.localAuthenticationEnabled = localAuthenticationEnabled;
            return this;
        }

        /**
         * @param localAuthenticationEnabled Is SAS authentication enabled for the EventHub Namespace? Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder localAuthenticationEnabled(Boolean localAuthenticationEnabled) {
            return localAuthenticationEnabled(Output.of(localAuthenticationEnabled));
        }

        /**
         * @param location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param maximumThroughputUnits Specifies the maximum number of throughput units when Auto Inflate is Enabled. Valid values range from `1` - `20`.
         * 
         * @return builder
         * 
         */
        public Builder maximumThroughputUnits(@Nullable Output maximumThroughputUnits) {
            $.maximumThroughputUnits = maximumThroughputUnits;
            return this;
        }

        /**
         * @param maximumThroughputUnits Specifies the maximum number of throughput units when Auto Inflate is Enabled. Valid values range from `1` - `20`.
         * 
         * @return builder
         * 
         */
        public Builder maximumThroughputUnits(Integer maximumThroughputUnits) {
            return maximumThroughputUnits(Output.of(maximumThroughputUnits));
        }

        /**
         * @param minimumTlsVersion The minimum supported TLS version for this EventHub Namespace. Valid values are: `1.0`, `1.1` and `1.2`. Defaults to `1.2`.
         * 
         * @return builder
         * 
         */
        public Builder minimumTlsVersion(@Nullable Output minimumTlsVersion) {
            $.minimumTlsVersion = minimumTlsVersion;
            return this;
        }

        /**
         * @param minimumTlsVersion The minimum supported TLS version for this EventHub Namespace. Valid values are: `1.0`, `1.1` and `1.2`. Defaults to `1.2`.
         * 
         * @return builder
         * 
         */
        public Builder minimumTlsVersion(String minimumTlsVersion) {
            return minimumTlsVersion(Output.of(minimumTlsVersion));
        }

        /**
         * @param name Specifies the name of the EventHub Namespace resource. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name of the EventHub Namespace resource. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param networkRulesets A `network_rulesets` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder networkRulesets(@Nullable Output networkRulesets) {
            $.networkRulesets = networkRulesets;
            return this;
        }

        /**
         * @param networkRulesets A `network_rulesets` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder networkRulesets(EventHubNamespaceNetworkRulesetsArgs networkRulesets) {
            return networkRulesets(Output.of(networkRulesets));
        }

        /**
         * @param publicNetworkAccessEnabled Is public network access enabled for the EventHub Namespace? Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccessEnabled(@Nullable Output publicNetworkAccessEnabled) {
            $.publicNetworkAccessEnabled = publicNetworkAccessEnabled;
            return this;
        }

        /**
         * @param publicNetworkAccessEnabled Is public network access enabled for the EventHub Namespace? Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccessEnabled(Boolean publicNetworkAccessEnabled) {
            return publicNetworkAccessEnabled(Output.of(publicNetworkAccessEnabled));
        }

        /**
         * @param resourceGroupName The name of the resource group in which to create the namespace. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(@Nullable Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group in which to create the namespace. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param sku Defines which tier to use. Valid options are `Basic`, `Standard`, and `Premium`. Please note that setting this field to `Premium` will force the creation of a new resource.
         * 
         * @return builder
         * 
         */
        public Builder sku(@Nullable Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku Defines which tier to use. Valid options are `Basic`, `Standard`, and `Premium`. Please note that setting this field to `Premium` will force the creation of a new resource.
         * 
         * @return builder
         * 
         */
        public Builder sku(String sku) {
            return sku(Output.of(sku));
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public EventHubNamespaceState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy