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

com.pulumi.azurenative.eventgrid.inputs.TopicSpacesConfigurationArgs Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.inputs;

import com.pulumi.azurenative.eventgrid.enums.TopicSpacesConfigurationState;
import com.pulumi.azurenative.eventgrid.inputs.ClientAuthenticationSettingsArgs;
import com.pulumi.azurenative.eventgrid.inputs.RoutingEnrichmentsArgs;
import com.pulumi.azurenative.eventgrid.inputs.RoutingIdentityInfoArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Properties of the Topic Spaces Configuration.
 * 
 */
public final class TopicSpacesConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final TopicSpacesConfigurationArgs Empty = new TopicSpacesConfigurationArgs();

    /**
     * Client authentication settings for topic spaces configuration.
     * 
     */
    @Import(name="clientAuthentication")
    private @Nullable Output clientAuthentication;

    /**
     * @return Client authentication settings for topic spaces configuration.
     * 
     */
    public Optional> clientAuthentication() {
        return Optional.ofNullable(this.clientAuthentication);
    }

    /**
     * The maximum number of sessions per authentication name. The property default value is 1.
     * Min allowed value is 1 and max allowed value is 100.
     * 
     */
    @Import(name="maximumClientSessionsPerAuthenticationName")
    private @Nullable Output maximumClientSessionsPerAuthenticationName;

    /**
     * @return The maximum number of sessions per authentication name. The property default value is 1.
     * Min allowed value is 1 and max allowed value is 100.
     * 
     */
    public Optional> maximumClientSessionsPerAuthenticationName() {
        return Optional.ofNullable(this.maximumClientSessionsPerAuthenticationName);
    }

    /**
     * The maximum session expiry in hours. The property default value is 1 hour.
     * Min allowed value is 1 hour and max allowed value is 8 hours.
     * 
     */
    @Import(name="maximumSessionExpiryInHours")
    private @Nullable Output maximumSessionExpiryInHours;

    /**
     * @return The maximum session expiry in hours. The property default value is 1 hour.
     * Min allowed value is 1 hour and max allowed value is 8 hours.
     * 
     */
    public Optional> maximumSessionExpiryInHours() {
        return Optional.ofNullable(this.maximumSessionExpiryInHours);
    }

    /**
     * Fully qualified Azure Resource Id for the Event Grid Topic to which events will be routed to from TopicSpaces under a namespace.
     * This property should be in the following format '/subscriptions/{subId}/resourcegroups/{resourceGroupName}/providers/microsoft.EventGrid/topics/{topicName}'.
     * This topic should reside in the same region where namespace is located.
     * 
     */
    @Import(name="routeTopicResourceId")
    private @Nullable Output routeTopicResourceId;

    /**
     * @return Fully qualified Azure Resource Id for the Event Grid Topic to which events will be routed to from TopicSpaces under a namespace.
     * This property should be in the following format '/subscriptions/{subId}/resourcegroups/{resourceGroupName}/providers/microsoft.EventGrid/topics/{topicName}'.
     * This topic should reside in the same region where namespace is located.
     * 
     */
    public Optional> routeTopicResourceId() {
        return Optional.ofNullable(this.routeTopicResourceId);
    }

    /**
     * Routing enrichments for topic spaces configuration
     * 
     */
    @Import(name="routingEnrichments")
    private @Nullable Output routingEnrichments;

    /**
     * @return Routing enrichments for topic spaces configuration
     * 
     */
    public Optional> routingEnrichments() {
        return Optional.ofNullable(this.routingEnrichments);
    }

    /**
     * Routing identity info for topic spaces configuration.
     * 
     */
    @Import(name="routingIdentityInfo")
    private @Nullable Output routingIdentityInfo;

    /**
     * @return Routing identity info for topic spaces configuration.
     * 
     */
    public Optional> routingIdentityInfo() {
        return Optional.ofNullable(this.routingIdentityInfo);
    }

    /**
     * Indicate if Topic Spaces Configuration is enabled for the namespace. Default is Disabled.
     * 
     */
    @Import(name="state")
    private @Nullable Output> state;

    /**
     * @return Indicate if Topic Spaces Configuration is enabled for the namespace. Default is Disabled.
     * 
     */
    public Optional>> state() {
        return Optional.ofNullable(this.state);
    }

    private TopicSpacesConfigurationArgs() {}

    private TopicSpacesConfigurationArgs(TopicSpacesConfigurationArgs $) {
        this.clientAuthentication = $.clientAuthentication;
        this.maximumClientSessionsPerAuthenticationName = $.maximumClientSessionsPerAuthenticationName;
        this.maximumSessionExpiryInHours = $.maximumSessionExpiryInHours;
        this.routeTopicResourceId = $.routeTopicResourceId;
        this.routingEnrichments = $.routingEnrichments;
        this.routingIdentityInfo = $.routingIdentityInfo;
        this.state = $.state;
    }

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

    public static final class Builder {
        private TopicSpacesConfigurationArgs $;

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

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

        /**
         * @param clientAuthentication Client authentication settings for topic spaces configuration.
         * 
         * @return builder
         * 
         */
        public Builder clientAuthentication(@Nullable Output clientAuthentication) {
            $.clientAuthentication = clientAuthentication;
            return this;
        }

        /**
         * @param clientAuthentication Client authentication settings for topic spaces configuration.
         * 
         * @return builder
         * 
         */
        public Builder clientAuthentication(ClientAuthenticationSettingsArgs clientAuthentication) {
            return clientAuthentication(Output.of(clientAuthentication));
        }

        /**
         * @param maximumClientSessionsPerAuthenticationName The maximum number of sessions per authentication name. The property default value is 1.
         * Min allowed value is 1 and max allowed value is 100.
         * 
         * @return builder
         * 
         */
        public Builder maximumClientSessionsPerAuthenticationName(@Nullable Output maximumClientSessionsPerAuthenticationName) {
            $.maximumClientSessionsPerAuthenticationName = maximumClientSessionsPerAuthenticationName;
            return this;
        }

        /**
         * @param maximumClientSessionsPerAuthenticationName The maximum number of sessions per authentication name. The property default value is 1.
         * Min allowed value is 1 and max allowed value is 100.
         * 
         * @return builder
         * 
         */
        public Builder maximumClientSessionsPerAuthenticationName(Integer maximumClientSessionsPerAuthenticationName) {
            return maximumClientSessionsPerAuthenticationName(Output.of(maximumClientSessionsPerAuthenticationName));
        }

        /**
         * @param maximumSessionExpiryInHours The maximum session expiry in hours. The property default value is 1 hour.
         * Min allowed value is 1 hour and max allowed value is 8 hours.
         * 
         * @return builder
         * 
         */
        public Builder maximumSessionExpiryInHours(@Nullable Output maximumSessionExpiryInHours) {
            $.maximumSessionExpiryInHours = maximumSessionExpiryInHours;
            return this;
        }

        /**
         * @param maximumSessionExpiryInHours The maximum session expiry in hours. The property default value is 1 hour.
         * Min allowed value is 1 hour and max allowed value is 8 hours.
         * 
         * @return builder
         * 
         */
        public Builder maximumSessionExpiryInHours(Integer maximumSessionExpiryInHours) {
            return maximumSessionExpiryInHours(Output.of(maximumSessionExpiryInHours));
        }

        /**
         * @param routeTopicResourceId Fully qualified Azure Resource Id for the Event Grid Topic to which events will be routed to from TopicSpaces under a namespace.
         * This property should be in the following format '/subscriptions/{subId}/resourcegroups/{resourceGroupName}/providers/microsoft.EventGrid/topics/{topicName}'.
         * This topic should reside in the same region where namespace is located.
         * 
         * @return builder
         * 
         */
        public Builder routeTopicResourceId(@Nullable Output routeTopicResourceId) {
            $.routeTopicResourceId = routeTopicResourceId;
            return this;
        }

        /**
         * @param routeTopicResourceId Fully qualified Azure Resource Id for the Event Grid Topic to which events will be routed to from TopicSpaces under a namespace.
         * This property should be in the following format '/subscriptions/{subId}/resourcegroups/{resourceGroupName}/providers/microsoft.EventGrid/topics/{topicName}'.
         * This topic should reside in the same region where namespace is located.
         * 
         * @return builder
         * 
         */
        public Builder routeTopicResourceId(String routeTopicResourceId) {
            return routeTopicResourceId(Output.of(routeTopicResourceId));
        }

        /**
         * @param routingEnrichments Routing enrichments for topic spaces configuration
         * 
         * @return builder
         * 
         */
        public Builder routingEnrichments(@Nullable Output routingEnrichments) {
            $.routingEnrichments = routingEnrichments;
            return this;
        }

        /**
         * @param routingEnrichments Routing enrichments for topic spaces configuration
         * 
         * @return builder
         * 
         */
        public Builder routingEnrichments(RoutingEnrichmentsArgs routingEnrichments) {
            return routingEnrichments(Output.of(routingEnrichments));
        }

        /**
         * @param routingIdentityInfo Routing identity info for topic spaces configuration.
         * 
         * @return builder
         * 
         */
        public Builder routingIdentityInfo(@Nullable Output routingIdentityInfo) {
            $.routingIdentityInfo = routingIdentityInfo;
            return this;
        }

        /**
         * @param routingIdentityInfo Routing identity info for topic spaces configuration.
         * 
         * @return builder
         * 
         */
        public Builder routingIdentityInfo(RoutingIdentityInfoArgs routingIdentityInfo) {
            return routingIdentityInfo(Output.of(routingIdentityInfo));
        }

        /**
         * @param state Indicate if Topic Spaces Configuration is enabled for the namespace. Default is Disabled.
         * 
         * @return builder
         * 
         */
        public Builder state(@Nullable Output> state) {
            $.state = state;
            return this;
        }

        /**
         * @param state Indicate if Topic Spaces Configuration is enabled for the namespace. Default is Disabled.
         * 
         * @return builder
         * 
         */
        public Builder state(Either state) {
            return state(Output.of(state));
        }

        /**
         * @param state Indicate if Topic Spaces Configuration is enabled for the namespace. Default is Disabled.
         * 
         * @return builder
         * 
         */
        public Builder state(String state) {
            return state(Either.ofLeft(state));
        }

        /**
         * @param state Indicate if Topic Spaces Configuration is enabled for the namespace. Default is Disabled.
         * 
         * @return builder
         * 
         */
        public Builder state(TopicSpacesConfigurationState state) {
            return state(Either.ofRight(state));
        }

        public TopicSpacesConfigurationArgs build() {
            $.state = Codegen.stringProp("state").left(TopicSpacesConfigurationState.class).output().arg($.state).def("Disabled").getNullable();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy