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

com.pulumi.azurenative.eventhub.NamespaceArgs 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.eventhub;

import com.pulumi.azurenative.eventhub.enums.PublicNetworkAccess;
import com.pulumi.azurenative.eventhub.enums.TlsVersion;
import com.pulumi.azurenative.eventhub.inputs.EncryptionArgs;
import com.pulumi.azurenative.eventhub.inputs.IdentityArgs;
import com.pulumi.azurenative.eventhub.inputs.PrivateEndpointConnectionArgs;
import com.pulumi.azurenative.eventhub.inputs.SkuArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
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 NamespaceArgs extends com.pulumi.resources.ResourceArgs {

    public static final NamespaceArgs Empty = new NamespaceArgs();

    /**
     * Alternate name specified when alias and namespace names are same.
     * 
     */
    @Import(name="alternateName")
    private @Nullable Output alternateName;

    /**
     * @return Alternate name specified when alias and namespace names are same.
     * 
     */
    public Optional> alternateName() {
        return Optional.ofNullable(this.alternateName);
    }

    /**
     * Cluster ARM ID of the Namespace.
     * 
     */
    @Import(name="clusterArmId")
    private @Nullable Output clusterArmId;

    /**
     * @return Cluster ARM ID of the Namespace.
     * 
     */
    public Optional> clusterArmId() {
        return Optional.ofNullable(this.clusterArmId);
    }

    /**
     * This property disables SAS authentication for the Event Hubs namespace.
     * 
     */
    @Import(name="disableLocalAuth")
    private @Nullable Output disableLocalAuth;

    /**
     * @return This property disables SAS authentication for the Event Hubs namespace.
     * 
     */
    public Optional> disableLocalAuth() {
        return Optional.ofNullable(this.disableLocalAuth);
    }

    /**
     * Properties of BYOK Encryption description
     * 
     */
    @Import(name="encryption")
    private @Nullable Output encryption;

    /**
     * @return Properties of BYOK Encryption description
     * 
     */
    public Optional> encryption() {
        return Optional.ofNullable(this.encryption);
    }

    /**
     * Properties of BYOK Identity description
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return Properties of BYOK Identity description
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * Value that indicates whether AutoInflate is enabled for eventhub namespace.
     * 
     */
    @Import(name="isAutoInflateEnabled")
    private @Nullable Output isAutoInflateEnabled;

    /**
     * @return Value that indicates whether AutoInflate is enabled for eventhub namespace.
     * 
     */
    public Optional> isAutoInflateEnabled() {
        return Optional.ofNullable(this.isAutoInflateEnabled);
    }

    /**
     * Value that indicates whether Kafka is enabled for eventhub namespace.
     * 
     */
    @Import(name="kafkaEnabled")
    private @Nullable Output kafkaEnabled;

    /**
     * @return Value that indicates whether Kafka is enabled for eventhub namespace.
     * 
     */
    public Optional> kafkaEnabled() {
        return Optional.ofNullable(this.kafkaEnabled);
    }

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

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

    /**
     * Upper limit of throughput units when AutoInflate is enabled, value should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true)
     * 
     */
    @Import(name="maximumThroughputUnits")
    private @Nullable Output maximumThroughputUnits;

    /**
     * @return Upper limit of throughput units when AutoInflate is enabled, value should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true)
     * 
     */
    public Optional> maximumThroughputUnits() {
        return Optional.ofNullable(this.maximumThroughputUnits);
    }

    /**
     * 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 Namespace name
     * 
     */
    @Import(name="namespaceName")
    private @Nullable Output namespaceName;

    /**
     * @return The Namespace name
     * 
     */
    public Optional> namespaceName() {
        return Optional.ofNullable(this.namespaceName);
    }

    /**
     * List of private endpoint connections.
     * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
     * 
     */
    @Import(name="privateEndpointConnections")
    private @Nullable Output> privateEndpointConnections;

    /**
     * @return List of private endpoint connections.
     * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
     * 
     */
    public Optional>> privateEndpointConnections() {
        return Optional.ofNullable(this.privateEndpointConnections);
    }

    /**
     * This determines if traffic is allowed over public network. By default it is enabled.
     * 
     */
    @Import(name="publicNetworkAccess")
    private @Nullable Output> publicNetworkAccess;

    /**
     * @return This determines if traffic is allowed over public network. By default it is enabled.
     * 
     */
    public Optional>> publicNetworkAccess() {
        return Optional.ofNullable(this.publicNetworkAccess);
    }

    /**
     * Name of the resource group within the azure subscription.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of the resource group within the azure subscription.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Properties of sku resource
     * 
     */
    @Import(name="sku")
    private @Nullable Output sku;

    /**
     * @return Properties of sku resource
     * 
     */
    public Optional> sku() {
        return Optional.ofNullable(this.sku);
    }

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

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

    /**
     * Enabling this property creates a Standard Event Hubs Namespace in regions supported availability zones.
     * 
     */
    @Import(name="zoneRedundant")
    private @Nullable Output zoneRedundant;

    /**
     * @return Enabling this property creates a Standard Event Hubs Namespace in regions supported availability zones.
     * 
     */
    public Optional> zoneRedundant() {
        return Optional.ofNullable(this.zoneRedundant);
    }

    private NamespaceArgs() {}

    private NamespaceArgs(NamespaceArgs $) {
        this.alternateName = $.alternateName;
        this.clusterArmId = $.clusterArmId;
        this.disableLocalAuth = $.disableLocalAuth;
        this.encryption = $.encryption;
        this.identity = $.identity;
        this.isAutoInflateEnabled = $.isAutoInflateEnabled;
        this.kafkaEnabled = $.kafkaEnabled;
        this.location = $.location;
        this.maximumThroughputUnits = $.maximumThroughputUnits;
        this.minimumTlsVersion = $.minimumTlsVersion;
        this.namespaceName = $.namespaceName;
        this.privateEndpointConnections = $.privateEndpointConnections;
        this.publicNetworkAccess = $.publicNetworkAccess;
        this.resourceGroupName = $.resourceGroupName;
        this.sku = $.sku;
        this.tags = $.tags;
        this.zoneRedundant = $.zoneRedundant;
    }

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

    public static final class Builder {
        private NamespaceArgs $;

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

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

        /**
         * @param alternateName Alternate name specified when alias and namespace names are same.
         * 
         * @return builder
         * 
         */
        public Builder alternateName(@Nullable Output alternateName) {
            $.alternateName = alternateName;
            return this;
        }

        /**
         * @param alternateName Alternate name specified when alias and namespace names are same.
         * 
         * @return builder
         * 
         */
        public Builder alternateName(String alternateName) {
            return alternateName(Output.of(alternateName));
        }

        /**
         * @param clusterArmId Cluster ARM ID of the Namespace.
         * 
         * @return builder
         * 
         */
        public Builder clusterArmId(@Nullable Output clusterArmId) {
            $.clusterArmId = clusterArmId;
            return this;
        }

        /**
         * @param clusterArmId Cluster ARM ID of the Namespace.
         * 
         * @return builder
         * 
         */
        public Builder clusterArmId(String clusterArmId) {
            return clusterArmId(Output.of(clusterArmId));
        }

        /**
         * @param disableLocalAuth This property disables SAS authentication for the Event Hubs namespace.
         * 
         * @return builder
         * 
         */
        public Builder disableLocalAuth(@Nullable Output disableLocalAuth) {
            $.disableLocalAuth = disableLocalAuth;
            return this;
        }

        /**
         * @param disableLocalAuth This property disables SAS authentication for the Event Hubs namespace.
         * 
         * @return builder
         * 
         */
        public Builder disableLocalAuth(Boolean disableLocalAuth) {
            return disableLocalAuth(Output.of(disableLocalAuth));
        }

        /**
         * @param encryption Properties of BYOK Encryption description
         * 
         * @return builder
         * 
         */
        public Builder encryption(@Nullable Output encryption) {
            $.encryption = encryption;
            return this;
        }

        /**
         * @param encryption Properties of BYOK Encryption description
         * 
         * @return builder
         * 
         */
        public Builder encryption(EncryptionArgs encryption) {
            return encryption(Output.of(encryption));
        }

        /**
         * @param identity Properties of BYOK Identity description
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity Properties of BYOK Identity description
         * 
         * @return builder
         * 
         */
        public Builder identity(IdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param isAutoInflateEnabled Value that indicates whether AutoInflate is enabled for eventhub namespace.
         * 
         * @return builder
         * 
         */
        public Builder isAutoInflateEnabled(@Nullable Output isAutoInflateEnabled) {
            $.isAutoInflateEnabled = isAutoInflateEnabled;
            return this;
        }

        /**
         * @param isAutoInflateEnabled Value that indicates whether AutoInflate is enabled for eventhub namespace.
         * 
         * @return builder
         * 
         */
        public Builder isAutoInflateEnabled(Boolean isAutoInflateEnabled) {
            return isAutoInflateEnabled(Output.of(isAutoInflateEnabled));
        }

        /**
         * @param kafkaEnabled Value that indicates whether Kafka is enabled for eventhub namespace.
         * 
         * @return builder
         * 
         */
        public Builder kafkaEnabled(@Nullable Output kafkaEnabled) {
            $.kafkaEnabled = kafkaEnabled;
            return this;
        }

        /**
         * @param kafkaEnabled Value that indicates whether Kafka is enabled for eventhub namespace.
         * 
         * @return builder
         * 
         */
        public Builder kafkaEnabled(Boolean kafkaEnabled) {
            return kafkaEnabled(Output.of(kafkaEnabled));
        }

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

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

        /**
         * @param maximumThroughputUnits Upper limit of throughput units when AutoInflate is enabled, value should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true)
         * 
         * @return builder
         * 
         */
        public Builder maximumThroughputUnits(@Nullable Output maximumThroughputUnits) {
            $.maximumThroughputUnits = maximumThroughputUnits;
            return this;
        }

        /**
         * @param maximumThroughputUnits Upper limit of throughput units when AutoInflate is enabled, value should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true)
         * 
         * @return builder
         * 
         */
        public Builder maximumThroughputUnits(Integer maximumThroughputUnits) {
            return maximumThroughputUnits(Output.of(maximumThroughputUnits));
        }

        /**
         * @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 namespaceName The Namespace name
         * 
         * @return builder
         * 
         */
        public Builder namespaceName(@Nullable Output namespaceName) {
            $.namespaceName = namespaceName;
            return this;
        }

        /**
         * @param namespaceName The Namespace name
         * 
         * @return builder
         * 
         */
        public Builder namespaceName(String namespaceName) {
            return namespaceName(Output.of(namespaceName));
        }

        /**
         * @param privateEndpointConnections List of private endpoint connections.
         * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
         * 
         * @return builder
         * 
         */
        public Builder privateEndpointConnections(@Nullable Output> privateEndpointConnections) {
            $.privateEndpointConnections = privateEndpointConnections;
            return this;
        }

        /**
         * @param privateEndpointConnections List of private endpoint connections.
         * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
         * 
         * @return builder
         * 
         */
        public Builder privateEndpointConnections(List privateEndpointConnections) {
            return privateEndpointConnections(Output.of(privateEndpointConnections));
        }

        /**
         * @param privateEndpointConnections List of private endpoint connections.
         * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
         * 
         * @return builder
         * 
         */
        public Builder privateEndpointConnections(PrivateEndpointConnectionArgs... privateEndpointConnections) {
            return privateEndpointConnections(List.of(privateEndpointConnections));
        }

        /**
         * @param publicNetworkAccess This determines if traffic is allowed over public network. By default it is enabled.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(@Nullable Output> publicNetworkAccess) {
            $.publicNetworkAccess = publicNetworkAccess;
            return this;
        }

        /**
         * @param publicNetworkAccess This determines if traffic is allowed over public network. By default it is enabled.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(Either publicNetworkAccess) {
            return publicNetworkAccess(Output.of(publicNetworkAccess));
        }

        /**
         * @param publicNetworkAccess This determines if traffic is allowed over public network. By default it is enabled.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(String publicNetworkAccess) {
            return publicNetworkAccess(Either.ofLeft(publicNetworkAccess));
        }

        /**
         * @param publicNetworkAccess This determines if traffic is allowed over public network. By default it is enabled.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
            return publicNetworkAccess(Either.ofRight(publicNetworkAccess));
        }

        /**
         * @param resourceGroupName Name of the resource group within the azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of the resource group within the azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

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

        /**
         * @param sku Properties of sku resource
         * 
         * @return builder
         * 
         */
        public Builder sku(SkuArgs 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 zoneRedundant Enabling this property creates a Standard Event Hubs Namespace in regions supported availability zones.
         * 
         * @return builder
         * 
         */
        public Builder zoneRedundant(@Nullable Output zoneRedundant) {
            $.zoneRedundant = zoneRedundant;
            return this;
        }

        /**
         * @param zoneRedundant Enabling this property creates a Standard Event Hubs Namespace in regions supported availability zones.
         * 
         * @return builder
         * 
         */
        public Builder zoneRedundant(Boolean zoneRedundant) {
            return zoneRedundant(Output.of(zoneRedundant));
        }

        public NamespaceArgs build() {
            $.publicNetworkAccess = Codegen.stringProp("publicNetworkAccess").left(PublicNetworkAccess.class).output().arg($.publicNetworkAccess).def("Enabled").getNullable();
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("NamespaceArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy