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

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

import com.pulumi.azurenative.eventgrid.enums.PublicNetworkAccess;
import com.pulumi.azurenative.eventgrid.enums.TlsVersion;
import com.pulumi.azurenative.eventgrid.inputs.IdentityInfoArgs;
import com.pulumi.azurenative.eventgrid.inputs.InboundIpRuleArgs;
import com.pulumi.azurenative.eventgrid.inputs.NamespaceSkuArgs;
import com.pulumi.azurenative.eventgrid.inputs.PrivateEndpointConnectionArgs;
import com.pulumi.azurenative.eventgrid.inputs.TopicSpacesConfigurationArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
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();

    /**
     * Identity information for the Namespace resource.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return Identity information for the Namespace resource.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
     * 
     */
    @Import(name="inboundIpRules")
    private @Nullable Output> inboundIpRules;

    /**
     * @return This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
     * 
     */
    public Optional>> inboundIpRules() {
        return Optional.ofNullable(this.inboundIpRules);
    }

    /**
     * Allows the user to specify if the service is zone-redundant. This is a required property and user needs to specify this value explicitly.
     * Once specified, this property cannot be updated.
     * 
     */
    @Import(name="isZoneRedundant")
    private @Nullable Output isZoneRedundant;

    /**
     * @return Allows the user to specify if the service is zone-redundant. This is a required property and user needs to specify this value explicitly.
     * Once specified, this property cannot be updated.
     * 
     */
    public Optional> isZoneRedundant() {
        return Optional.ofNullable(this.isZoneRedundant);
    }

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

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

    /**
     * Minimum TLS version of the publisher allowed to publish to this namespace. Only TLS version 1.2 is supported.
     * 
     */
    @Import(name="minimumTlsVersionAllowed")
    private @Nullable Output> minimumTlsVersionAllowed;

    /**
     * @return Minimum TLS version of the publisher allowed to publish to this namespace. Only TLS version 1.2 is supported.
     * 
     */
    public Optional>> minimumTlsVersionAllowed() {
        return Optional.ofNullable(this.minimumTlsVersionAllowed);
    }

    /**
     * Name of the namespace.
     * 
     */
    @Import(name="namespaceName")
    private @Nullable Output namespaceName;

    /**
     * @return Name of the namespace.
     * 
     */
    public Optional> namespaceName() {
        return Optional.ofNullable(this.namespaceName);
    }

    @Import(name="privateEndpointConnections")
    private @Nullable Output> privateEndpointConnections;

    public Optional>> privateEndpointConnections() {
        return Optional.ofNullable(this.privateEndpointConnections);
    }

    /**
     * This determines if traffic is allowed over public network. By default it is enabled.
     * You can further restrict to specific IPs by configuring <seealso cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PubSub.NamespaceProperties.InboundIpRules" />
     * 
     */
    @Import(name="publicNetworkAccess")
    private @Nullable Output> publicNetworkAccess;

    /**
     * @return This determines if traffic is allowed over public network. By default it is enabled.
     * You can further restrict to specific IPs by configuring <seealso cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PubSub.NamespaceProperties.InboundIpRules" />
     * 
     */
    public Optional>> publicNetworkAccess() {
        return Optional.ofNullable(this.publicNetworkAccess);
    }

    /**
     * The name of the resource group within the user's subscription.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group within the user's subscription.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Represents available Sku pricing tiers.
     * 
     */
    @Import(name="sku")
    private @Nullable Output sku;

    /**
     * @return Represents available Sku pricing tiers.
     * 
     */
    public Optional> sku() {
        return Optional.ofNullable(this.sku);
    }

    /**
     * Tags of the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

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

    /**
     * Topic spaces configuration information for the namespace resource
     * 
     */
    @Import(name="topicSpacesConfiguration")
    private @Nullable Output topicSpacesConfiguration;

    /**
     * @return Topic spaces configuration information for the namespace resource
     * 
     */
    public Optional> topicSpacesConfiguration() {
        return Optional.ofNullable(this.topicSpacesConfiguration);
    }

    private NamespaceArgs() {}

    private NamespaceArgs(NamespaceArgs $) {
        this.identity = $.identity;
        this.inboundIpRules = $.inboundIpRules;
        this.isZoneRedundant = $.isZoneRedundant;
        this.location = $.location;
        this.minimumTlsVersionAllowed = $.minimumTlsVersionAllowed;
        this.namespaceName = $.namespaceName;
        this.privateEndpointConnections = $.privateEndpointConnections;
        this.publicNetworkAccess = $.publicNetworkAccess;
        this.resourceGroupName = $.resourceGroupName;
        this.sku = $.sku;
        this.tags = $.tags;
        this.topicSpacesConfiguration = $.topicSpacesConfiguration;
    }

    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 identity Identity information for the Namespace resource.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity Identity information for the Namespace resource.
         * 
         * @return builder
         * 
         */
        public Builder identity(IdentityInfoArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param inboundIpRules This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
         * 
         * @return builder
         * 
         */
        public Builder inboundIpRules(@Nullable Output> inboundIpRules) {
            $.inboundIpRules = inboundIpRules;
            return this;
        }

        /**
         * @param inboundIpRules This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
         * 
         * @return builder
         * 
         */
        public Builder inboundIpRules(List inboundIpRules) {
            return inboundIpRules(Output.of(inboundIpRules));
        }

        /**
         * @param inboundIpRules This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
         * 
         * @return builder
         * 
         */
        public Builder inboundIpRules(InboundIpRuleArgs... inboundIpRules) {
            return inboundIpRules(List.of(inboundIpRules));
        }

        /**
         * @param isZoneRedundant Allows the user to specify if the service is zone-redundant. This is a required property and user needs to specify this value explicitly.
         * Once specified, this property cannot be updated.
         * 
         * @return builder
         * 
         */
        public Builder isZoneRedundant(@Nullable Output isZoneRedundant) {
            $.isZoneRedundant = isZoneRedundant;
            return this;
        }

        /**
         * @param isZoneRedundant Allows the user to specify if the service is zone-redundant. This is a required property and user needs to specify this value explicitly.
         * Once specified, this property cannot be updated.
         * 
         * @return builder
         * 
         */
        public Builder isZoneRedundant(Boolean isZoneRedundant) {
            return isZoneRedundant(Output.of(isZoneRedundant));
        }

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

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

        /**
         * @param minimumTlsVersionAllowed Minimum TLS version of the publisher allowed to publish to this namespace. Only TLS version 1.2 is supported.
         * 
         * @return builder
         * 
         */
        public Builder minimumTlsVersionAllowed(@Nullable Output> minimumTlsVersionAllowed) {
            $.minimumTlsVersionAllowed = minimumTlsVersionAllowed;
            return this;
        }

        /**
         * @param minimumTlsVersionAllowed Minimum TLS version of the publisher allowed to publish to this namespace. Only TLS version 1.2 is supported.
         * 
         * @return builder
         * 
         */
        public Builder minimumTlsVersionAllowed(Either minimumTlsVersionAllowed) {
            return minimumTlsVersionAllowed(Output.of(minimumTlsVersionAllowed));
        }

        /**
         * @param minimumTlsVersionAllowed Minimum TLS version of the publisher allowed to publish to this namespace. Only TLS version 1.2 is supported.
         * 
         * @return builder
         * 
         */
        public Builder minimumTlsVersionAllowed(String minimumTlsVersionAllowed) {
            return minimumTlsVersionAllowed(Either.ofLeft(minimumTlsVersionAllowed));
        }

        /**
         * @param minimumTlsVersionAllowed Minimum TLS version of the publisher allowed to publish to this namespace. Only TLS version 1.2 is supported.
         * 
         * @return builder
         * 
         */
        public Builder minimumTlsVersionAllowed(TlsVersion minimumTlsVersionAllowed) {
            return minimumTlsVersionAllowed(Either.ofRight(minimumTlsVersionAllowed));
        }

        /**
         * @param namespaceName Name of the namespace.
         * 
         * @return builder
         * 
         */
        public Builder namespaceName(@Nullable Output namespaceName) {
            $.namespaceName = namespaceName;
            return this;
        }

        /**
         * @param namespaceName Name of the namespace.
         * 
         * @return builder
         * 
         */
        public Builder namespaceName(String namespaceName) {
            return namespaceName(Output.of(namespaceName));
        }

        public Builder privateEndpointConnections(@Nullable Output> privateEndpointConnections) {
            $.privateEndpointConnections = privateEndpointConnections;
            return this;
        }

        public Builder privateEndpointConnections(List privateEndpointConnections) {
            return privateEndpointConnections(Output.of(privateEndpointConnections));
        }

        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.
         * You can further restrict to specific IPs by configuring <seealso cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PubSub.NamespaceProperties.InboundIpRules" />
         * 
         * @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.
         * You can further restrict to specific IPs by configuring <seealso cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PubSub.NamespaceProperties.InboundIpRules" />
         * 
         * @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.
         * You can further restrict to specific IPs by configuring <seealso cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PubSub.NamespaceProperties.InboundIpRules" />
         * 
         * @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.
         * You can further restrict to specific IPs by configuring <seealso cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PubSub.NamespaceProperties.InboundIpRules" />
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
            return publicNetworkAccess(Either.ofRight(publicNetworkAccess));
        }

        /**
         * @param resourceGroupName The name of the resource group within the user's subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group within the user's subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param sku Represents available Sku pricing tiers.
         * 
         * @return builder
         * 
         */
        public Builder sku(@Nullable Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku Represents available Sku pricing tiers.
         * 
         * @return builder
         * 
         */
        public Builder sku(NamespaceSkuArgs sku) {
            return sku(Output.of(sku));
        }

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

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

        /**
         * @param topicSpacesConfiguration Topic spaces configuration information for the namespace resource
         * 
         * @return builder
         * 
         */
        public Builder topicSpacesConfiguration(@Nullable Output topicSpacesConfiguration) {
            $.topicSpacesConfiguration = topicSpacesConfiguration;
            return this;
        }

        /**
         * @param topicSpacesConfiguration Topic spaces configuration information for the namespace resource
         * 
         * @return builder
         * 
         */
        public Builder topicSpacesConfiguration(TopicSpacesConfigurationArgs topicSpacesConfiguration) {
            return topicSpacesConfiguration(Output.of(topicSpacesConfiguration));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy