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

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

import com.pulumi.azurenative.eventgrid.enums.EventInputSchema;
import com.pulumi.azurenative.eventgrid.enums.PublisherType;
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.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final NamespaceTopicArgs Empty = new NamespaceTopicArgs();

    /**
     * Event retention for the namespace topic expressed in days. The property default value is 1 day.
     * Min event retention duration value is 1 day and max event retention duration value is 1 day.
     * 
     */
    @Import(name="eventRetentionInDays")
    private @Nullable Output eventRetentionInDays;

    /**
     * @return Event retention for the namespace topic expressed in days. The property default value is 1 day.
     * Min event retention duration value is 1 day and max event retention duration value is 1 day.
     * 
     */
    public Optional> eventRetentionInDays() {
        return Optional.ofNullable(this.eventRetentionInDays);
    }

    /**
     * This determines the format that is expected for incoming events published to the topic.
     * 
     */
    @Import(name="inputSchema")
    private @Nullable Output> inputSchema;

    /**
     * @return This determines the format that is expected for incoming events published to the topic.
     * 
     */
    public Optional>> inputSchema() {
        return Optional.ofNullable(this.inputSchema);
    }

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

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

    /**
     * Publisher type of the namespace topic.
     * 
     */
    @Import(name="publisherType")
    private @Nullable Output> publisherType;

    /**
     * @return Publisher type of the namespace topic.
     * 
     */
    public Optional>> publisherType() {
        return Optional.ofNullable(this.publisherType);
    }

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

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

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

    private NamespaceTopicArgs() {}

    private NamespaceTopicArgs(NamespaceTopicArgs $) {
        this.eventRetentionInDays = $.eventRetentionInDays;
        this.inputSchema = $.inputSchema;
        this.namespaceName = $.namespaceName;
        this.publisherType = $.publisherType;
        this.resourceGroupName = $.resourceGroupName;
        this.topicName = $.topicName;
    }

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

    public static final class Builder {
        private NamespaceTopicArgs $;

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

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

        /**
         * @param eventRetentionInDays Event retention for the namespace topic expressed in days. The property default value is 1 day.
         * Min event retention duration value is 1 day and max event retention duration value is 1 day.
         * 
         * @return builder
         * 
         */
        public Builder eventRetentionInDays(@Nullable Output eventRetentionInDays) {
            $.eventRetentionInDays = eventRetentionInDays;
            return this;
        }

        /**
         * @param eventRetentionInDays Event retention for the namespace topic expressed in days. The property default value is 1 day.
         * Min event retention duration value is 1 day and max event retention duration value is 1 day.
         * 
         * @return builder
         * 
         */
        public Builder eventRetentionInDays(Integer eventRetentionInDays) {
            return eventRetentionInDays(Output.of(eventRetentionInDays));
        }

        /**
         * @param inputSchema This determines the format that is expected for incoming events published to the topic.
         * 
         * @return builder
         * 
         */
        public Builder inputSchema(@Nullable Output> inputSchema) {
            $.inputSchema = inputSchema;
            return this;
        }

        /**
         * @param inputSchema This determines the format that is expected for incoming events published to the topic.
         * 
         * @return builder
         * 
         */
        public Builder inputSchema(Either inputSchema) {
            return inputSchema(Output.of(inputSchema));
        }

        /**
         * @param inputSchema This determines the format that is expected for incoming events published to the topic.
         * 
         * @return builder
         * 
         */
        public Builder inputSchema(String inputSchema) {
            return inputSchema(Either.ofLeft(inputSchema));
        }

        /**
         * @param inputSchema This determines the format that is expected for incoming events published to the topic.
         * 
         * @return builder
         * 
         */
        public Builder inputSchema(EventInputSchema inputSchema) {
            return inputSchema(Either.ofRight(inputSchema));
        }

        /**
         * @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 publisherType Publisher type of the namespace topic.
         * 
         * @return builder
         * 
         */
        public Builder publisherType(@Nullable Output> publisherType) {
            $.publisherType = publisherType;
            return this;
        }

        /**
         * @param publisherType Publisher type of the namespace topic.
         * 
         * @return builder
         * 
         */
        public Builder publisherType(Either publisherType) {
            return publisherType(Output.of(publisherType));
        }

        /**
         * @param publisherType Publisher type of the namespace topic.
         * 
         * @return builder
         * 
         */
        public Builder publisherType(String publisherType) {
            return publisherType(Either.ofLeft(publisherType));
        }

        /**
         * @param publisherType Publisher type of the namespace topic.
         * 
         * @return builder
         * 
         */
        public Builder publisherType(PublisherType publisherType) {
            return publisherType(Either.ofRight(publisherType));
        }

        /**
         * @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 topicName Name of the namespace topic.
         * 
         * @return builder
         * 
         */
        public Builder topicName(@Nullable Output topicName) {
            $.topicName = topicName;
            return this;
        }

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

        public NamespaceTopicArgs build() {
            $.inputSchema = Codegen.stringProp("inputSchema").left(EventInputSchema.class).output().arg($.inputSchema).def("CloudEventSchemaV1_0").getNullable();
            if ($.namespaceName == null) {
                throw new MissingRequiredPropertyException("NamespaceTopicArgs", "namespaceName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("NamespaceTopicArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy