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

com.pulumi.azurenative.eventgrid.TopicSpaceArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final TopicSpaceArgs Empty = new TopicSpaceArgs();

    /**
     * Description for the Topic Space resource.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description for the Topic Space resource.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

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

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

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

    /**
     * The topic space name.
     * 
     */
    @Import(name="topicSpaceName")
    private @Nullable Output topicSpaceName;

    /**
     * @return The topic space name.
     * 
     */
    public Optional> topicSpaceName() {
        return Optional.ofNullable(this.topicSpaceName);
    }

    /**
     * The topic filters in the topic space.
     * Example: "topicTemplates": [
     *               "devices/foo/bar",
     *               "devices/topic1/+",
     *               "devices/${principal.name}/${principal.attributes.keyName}" ].
     * 
     */
    @Import(name="topicTemplates")
    private @Nullable Output> topicTemplates;

    /**
     * @return The topic filters in the topic space.
     * Example: "topicTemplates": [
     *               "devices/foo/bar",
     *               "devices/topic1/+",
     *               "devices/${principal.name}/${principal.attributes.keyName}" ].
     * 
     */
    public Optional>> topicTemplates() {
        return Optional.ofNullable(this.topicTemplates);
    }

    private TopicSpaceArgs() {}

    private TopicSpaceArgs(TopicSpaceArgs $) {
        this.description = $.description;
        this.namespaceName = $.namespaceName;
        this.resourceGroupName = $.resourceGroupName;
        this.topicSpaceName = $.topicSpaceName;
        this.topicTemplates = $.topicTemplates;
    }

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

    public static final class Builder {
        private TopicSpaceArgs $;

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

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

        /**
         * @param description Description for the Topic Space resource.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description for the Topic Space resource.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

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

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

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

        /**
         * @param topicSpaceName The topic space name.
         * 
         * @return builder
         * 
         */
        public Builder topicSpaceName(String topicSpaceName) {
            return topicSpaceName(Output.of(topicSpaceName));
        }

        /**
         * @param topicTemplates The topic filters in the topic space.
         * Example: "topicTemplates": [
         *               "devices/foo/bar",
         *               "devices/topic1/+",
         *               "devices/${principal.name}/${principal.attributes.keyName}" ].
         * 
         * @return builder
         * 
         */
        public Builder topicTemplates(@Nullable Output> topicTemplates) {
            $.topicTemplates = topicTemplates;
            return this;
        }

        /**
         * @param topicTemplates The topic filters in the topic space.
         * Example: "topicTemplates": [
         *               "devices/foo/bar",
         *               "devices/topic1/+",
         *               "devices/${principal.name}/${principal.attributes.keyName}" ].
         * 
         * @return builder
         * 
         */
        public Builder topicTemplates(List topicTemplates) {
            return topicTemplates(Output.of(topicTemplates));
        }

        /**
         * @param topicTemplates The topic filters in the topic space.
         * Example: "topicTemplates": [
         *               "devices/foo/bar",
         *               "devices/topic1/+",
         *               "devices/${principal.name}/${principal.attributes.keyName}" ].
         * 
         * @return builder
         * 
         */
        public Builder topicTemplates(String... topicTemplates) {
            return topicTemplates(List.of(topicTemplates));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy