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

com.pulumi.azurenative.app.DaprSubscriptionArgs 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.app;

import com.pulumi.azurenative.app.inputs.DaprSubscriptionBulkSubscribeOptionsArgs;
import com.pulumi.azurenative.app.inputs.DaprSubscriptionRoutesArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DaprSubscriptionArgs Empty = new DaprSubscriptionArgs();

    /**
     * Bulk subscription options
     * 
     */
    @Import(name="bulkSubscribe")
    private @Nullable Output bulkSubscribe;

    /**
     * @return Bulk subscription options
     * 
     */
    public Optional> bulkSubscribe() {
        return Optional.ofNullable(this.bulkSubscribe);
    }

    /**
     * Deadletter topic name
     * 
     */
    @Import(name="deadLetterTopic")
    private @Nullable Output deadLetterTopic;

    /**
     * @return Deadletter topic name
     * 
     */
    public Optional> deadLetterTopic() {
        return Optional.ofNullable(this.deadLetterTopic);
    }

    /**
     * Name of the Managed Environment.
     * 
     */
    @Import(name="environmentName", required=true)
    private Output environmentName;

    /**
     * @return Name of the Managed Environment.
     * 
     */
    public Output environmentName() {
        return this.environmentName;
    }

    /**
     * Subscription metadata
     * 
     */
    @Import(name="metadata")
    private @Nullable Output> metadata;

    /**
     * @return Subscription metadata
     * 
     */
    public Optional>> metadata() {
        return Optional.ofNullable(this.metadata);
    }

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

    /**
     * @return Name of the Dapr subscription.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Dapr PubSub component name
     * 
     */
    @Import(name="pubsubName")
    private @Nullable Output pubsubName;

    /**
     * @return Dapr PubSub component name
     * 
     */
    public Optional> pubsubName() {
        return Optional.ofNullable(this.pubsubName);
    }

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

    /**
     * Subscription routes
     * 
     */
    @Import(name="routes")
    private @Nullable Output routes;

    /**
     * @return Subscription routes
     * 
     */
    public Optional> routes() {
        return Optional.ofNullable(this.routes);
    }

    /**
     * Application scopes to restrict the subscription to specific apps.
     * 
     */
    @Import(name="scopes")
    private @Nullable Output> scopes;

    /**
     * @return Application scopes to restrict the subscription to specific apps.
     * 
     */
    public Optional>> scopes() {
        return Optional.ofNullable(this.scopes);
    }

    /**
     * Topic name
     * 
     */
    @Import(name="topic")
    private @Nullable Output topic;

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

    private DaprSubscriptionArgs() {}

    private DaprSubscriptionArgs(DaprSubscriptionArgs $) {
        this.bulkSubscribe = $.bulkSubscribe;
        this.deadLetterTopic = $.deadLetterTopic;
        this.environmentName = $.environmentName;
        this.metadata = $.metadata;
        this.name = $.name;
        this.pubsubName = $.pubsubName;
        this.resourceGroupName = $.resourceGroupName;
        this.routes = $.routes;
        this.scopes = $.scopes;
        this.topic = $.topic;
    }

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

    public static final class Builder {
        private DaprSubscriptionArgs $;

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

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

        /**
         * @param bulkSubscribe Bulk subscription options
         * 
         * @return builder
         * 
         */
        public Builder bulkSubscribe(@Nullable Output bulkSubscribe) {
            $.bulkSubscribe = bulkSubscribe;
            return this;
        }

        /**
         * @param bulkSubscribe Bulk subscription options
         * 
         * @return builder
         * 
         */
        public Builder bulkSubscribe(DaprSubscriptionBulkSubscribeOptionsArgs bulkSubscribe) {
            return bulkSubscribe(Output.of(bulkSubscribe));
        }

        /**
         * @param deadLetterTopic Deadletter topic name
         * 
         * @return builder
         * 
         */
        public Builder deadLetterTopic(@Nullable Output deadLetterTopic) {
            $.deadLetterTopic = deadLetterTopic;
            return this;
        }

        /**
         * @param deadLetterTopic Deadletter topic name
         * 
         * @return builder
         * 
         */
        public Builder deadLetterTopic(String deadLetterTopic) {
            return deadLetterTopic(Output.of(deadLetterTopic));
        }

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

        /**
         * @param environmentName Name of the Managed Environment.
         * 
         * @return builder
         * 
         */
        public Builder environmentName(String environmentName) {
            return environmentName(Output.of(environmentName));
        }

        /**
         * @param metadata Subscription metadata
         * 
         * @return builder
         * 
         */
        public Builder metadata(@Nullable Output> metadata) {
            $.metadata = metadata;
            return this;
        }

        /**
         * @param metadata Subscription metadata
         * 
         * @return builder
         * 
         */
        public Builder metadata(Map metadata) {
            return metadata(Output.of(metadata));
        }

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

        /**
         * @param name Name of the Dapr subscription.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param pubsubName Dapr PubSub component name
         * 
         * @return builder
         * 
         */
        public Builder pubsubName(@Nullable Output pubsubName) {
            $.pubsubName = pubsubName;
            return this;
        }

        /**
         * @param pubsubName Dapr PubSub component name
         * 
         * @return builder
         * 
         */
        public Builder pubsubName(String pubsubName) {
            return pubsubName(Output.of(pubsubName));
        }

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

        /**
         * @param routes Subscription routes
         * 
         * @return builder
         * 
         */
        public Builder routes(DaprSubscriptionRoutesArgs routes) {
            return routes(Output.of(routes));
        }

        /**
         * @param scopes Application scopes to restrict the subscription to specific apps.
         * 
         * @return builder
         * 
         */
        public Builder scopes(@Nullable Output> scopes) {
            $.scopes = scopes;
            return this;
        }

        /**
         * @param scopes Application scopes to restrict the subscription to specific apps.
         * 
         * @return builder
         * 
         */
        public Builder scopes(List scopes) {
            return scopes(Output.of(scopes));
        }

        /**
         * @param scopes Application scopes to restrict the subscription to specific apps.
         * 
         * @return builder
         * 
         */
        public Builder scopes(String... scopes) {
            return scopes(List.of(scopes));
        }

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy