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

com.pulumi.azure.eventhub.inputs.TopicAuthorizationRuleState Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.eventhub.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final TopicAuthorizationRuleState Empty = new TopicAuthorizationRuleState();

    /**
     * Grants listen access to this this Authorization Rule. Defaults to `false`.
     * 
     */
    @Import(name="listen")
    private @Nullable Output listen;

    /**
     * @return Grants listen access to this this Authorization Rule. Defaults to `false`.
     * 
     */
    public Optional> listen() {
        return Optional.ofNullable(this.listen);
    }

    /**
     * Grants manage access to this this Authorization Rule. When this property is `true` - both `listen` and `send` must be too. Defaults to `false`.
     * 
     */
    @Import(name="manage")
    private @Nullable Output manage;

    /**
     * @return Grants manage access to this this Authorization Rule. When this property is `true` - both `listen` and `send` must be too. Defaults to `false`.
     * 
     */
    public Optional> manage() {
        return Optional.ofNullable(this.manage);
    }

    /**
     * Specifies the name of the ServiceBus Topic Authorization Rule resource. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Specifies the name of the ServiceBus Topic Authorization Rule resource. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The Primary Connection String for the ServiceBus Topic authorization Rule.
     * 
     */
    @Import(name="primaryConnectionString")
    private @Nullable Output primaryConnectionString;

    /**
     * @return The Primary Connection String for the ServiceBus Topic authorization Rule.
     * 
     */
    public Optional> primaryConnectionString() {
        return Optional.ofNullable(this.primaryConnectionString);
    }

    /**
     * The alias Primary Connection String for the ServiceBus Namespace, if the namespace is Geo DR paired.
     * 
     */
    @Import(name="primaryConnectionStringAlias")
    private @Nullable Output primaryConnectionStringAlias;

    /**
     * @return The alias Primary Connection String for the ServiceBus Namespace, if the namespace is Geo DR paired.
     * 
     */
    public Optional> primaryConnectionStringAlias() {
        return Optional.ofNullable(this.primaryConnectionStringAlias);
    }

    /**
     * The Primary Key for the ServiceBus Topic authorization Rule.
     * 
     */
    @Import(name="primaryKey")
    private @Nullable Output primaryKey;

    /**
     * @return The Primary Key for the ServiceBus Topic authorization Rule.
     * 
     */
    public Optional> primaryKey() {
        return Optional.ofNullable(this.primaryKey);
    }

    /**
     * The Secondary Connection String for the ServiceBus Topic authorization Rule.
     * 
     */
    @Import(name="secondaryConnectionString")
    private @Nullable Output secondaryConnectionString;

    /**
     * @return The Secondary Connection String for the ServiceBus Topic authorization Rule.
     * 
     */
    public Optional> secondaryConnectionString() {
        return Optional.ofNullable(this.secondaryConnectionString);
    }

    /**
     * The alias Secondary Connection String for the ServiceBus Namespace
     * 
     */
    @Import(name="secondaryConnectionStringAlias")
    private @Nullable Output secondaryConnectionStringAlias;

    /**
     * @return The alias Secondary Connection String for the ServiceBus Namespace
     * 
     */
    public Optional> secondaryConnectionStringAlias() {
        return Optional.ofNullable(this.secondaryConnectionStringAlias);
    }

    /**
     * The Secondary Key for the ServiceBus Topic authorization Rule.
     * 
     */
    @Import(name="secondaryKey")
    private @Nullable Output secondaryKey;

    /**
     * @return The Secondary Key for the ServiceBus Topic authorization Rule.
     * 
     */
    public Optional> secondaryKey() {
        return Optional.ofNullable(this.secondaryKey);
    }

    /**
     * Grants send access to this this Authorization Rule. Defaults to `false`.
     * 
     */
    @Import(name="send")
    private @Nullable Output send;

    /**
     * @return Grants send access to this this Authorization Rule. Defaults to `false`.
     * 
     */
    public Optional> send() {
        return Optional.ofNullable(this.send);
    }

    /**
     * Specifies the ID of the ServiceBus Topic. Changing this forces a new resource to be created.
     * 
     * > **NOTE** At least one of the 3 permissions below needs to be set.
     * 
     */
    @Import(name="topicId")
    private @Nullable Output topicId;

    /**
     * @return Specifies the ID of the ServiceBus Topic. Changing this forces a new resource to be created.
     * 
     * > **NOTE** At least one of the 3 permissions below needs to be set.
     * 
     */
    public Optional> topicId() {
        return Optional.ofNullable(this.topicId);
    }

    private TopicAuthorizationRuleState() {}

    private TopicAuthorizationRuleState(TopicAuthorizationRuleState $) {
        this.listen = $.listen;
        this.manage = $.manage;
        this.name = $.name;
        this.primaryConnectionString = $.primaryConnectionString;
        this.primaryConnectionStringAlias = $.primaryConnectionStringAlias;
        this.primaryKey = $.primaryKey;
        this.secondaryConnectionString = $.secondaryConnectionString;
        this.secondaryConnectionStringAlias = $.secondaryConnectionStringAlias;
        this.secondaryKey = $.secondaryKey;
        this.send = $.send;
        this.topicId = $.topicId;
    }

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

    public static final class Builder {
        private TopicAuthorizationRuleState $;

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

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

        /**
         * @param listen Grants listen access to this this Authorization Rule. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder listen(@Nullable Output listen) {
            $.listen = listen;
            return this;
        }

        /**
         * @param listen Grants listen access to this this Authorization Rule. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder listen(Boolean listen) {
            return listen(Output.of(listen));
        }

        /**
         * @param manage Grants manage access to this this Authorization Rule. When this property is `true` - both `listen` and `send` must be too. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder manage(@Nullable Output manage) {
            $.manage = manage;
            return this;
        }

        /**
         * @param manage Grants manage access to this this Authorization Rule. When this property is `true` - both `listen` and `send` must be too. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder manage(Boolean manage) {
            return manage(Output.of(manage));
        }

        /**
         * @param name Specifies the name of the ServiceBus Topic Authorization Rule resource. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name of the ServiceBus Topic Authorization Rule resource. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param primaryConnectionString The Primary Connection String for the ServiceBus Topic authorization Rule.
         * 
         * @return builder
         * 
         */
        public Builder primaryConnectionString(@Nullable Output primaryConnectionString) {
            $.primaryConnectionString = primaryConnectionString;
            return this;
        }

        /**
         * @param primaryConnectionString The Primary Connection String for the ServiceBus Topic authorization Rule.
         * 
         * @return builder
         * 
         */
        public Builder primaryConnectionString(String primaryConnectionString) {
            return primaryConnectionString(Output.of(primaryConnectionString));
        }

        /**
         * @param primaryConnectionStringAlias The alias Primary Connection String for the ServiceBus Namespace, if the namespace is Geo DR paired.
         * 
         * @return builder
         * 
         */
        public Builder primaryConnectionStringAlias(@Nullable Output primaryConnectionStringAlias) {
            $.primaryConnectionStringAlias = primaryConnectionStringAlias;
            return this;
        }

        /**
         * @param primaryConnectionStringAlias The alias Primary Connection String for the ServiceBus Namespace, if the namespace is Geo DR paired.
         * 
         * @return builder
         * 
         */
        public Builder primaryConnectionStringAlias(String primaryConnectionStringAlias) {
            return primaryConnectionStringAlias(Output.of(primaryConnectionStringAlias));
        }

        /**
         * @param primaryKey The Primary Key for the ServiceBus Topic authorization Rule.
         * 
         * @return builder
         * 
         */
        public Builder primaryKey(@Nullable Output primaryKey) {
            $.primaryKey = primaryKey;
            return this;
        }

        /**
         * @param primaryKey The Primary Key for the ServiceBus Topic authorization Rule.
         * 
         * @return builder
         * 
         */
        public Builder primaryKey(String primaryKey) {
            return primaryKey(Output.of(primaryKey));
        }

        /**
         * @param secondaryConnectionString The Secondary Connection String for the ServiceBus Topic authorization Rule.
         * 
         * @return builder
         * 
         */
        public Builder secondaryConnectionString(@Nullable Output secondaryConnectionString) {
            $.secondaryConnectionString = secondaryConnectionString;
            return this;
        }

        /**
         * @param secondaryConnectionString The Secondary Connection String for the ServiceBus Topic authorization Rule.
         * 
         * @return builder
         * 
         */
        public Builder secondaryConnectionString(String secondaryConnectionString) {
            return secondaryConnectionString(Output.of(secondaryConnectionString));
        }

        /**
         * @param secondaryConnectionStringAlias The alias Secondary Connection String for the ServiceBus Namespace
         * 
         * @return builder
         * 
         */
        public Builder secondaryConnectionStringAlias(@Nullable Output secondaryConnectionStringAlias) {
            $.secondaryConnectionStringAlias = secondaryConnectionStringAlias;
            return this;
        }

        /**
         * @param secondaryConnectionStringAlias The alias Secondary Connection String for the ServiceBus Namespace
         * 
         * @return builder
         * 
         */
        public Builder secondaryConnectionStringAlias(String secondaryConnectionStringAlias) {
            return secondaryConnectionStringAlias(Output.of(secondaryConnectionStringAlias));
        }

        /**
         * @param secondaryKey The Secondary Key for the ServiceBus Topic authorization Rule.
         * 
         * @return builder
         * 
         */
        public Builder secondaryKey(@Nullable Output secondaryKey) {
            $.secondaryKey = secondaryKey;
            return this;
        }

        /**
         * @param secondaryKey The Secondary Key for the ServiceBus Topic authorization Rule.
         * 
         * @return builder
         * 
         */
        public Builder secondaryKey(String secondaryKey) {
            return secondaryKey(Output.of(secondaryKey));
        }

        /**
         * @param send Grants send access to this this Authorization Rule. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder send(@Nullable Output send) {
            $.send = send;
            return this;
        }

        /**
         * @param send Grants send access to this this Authorization Rule. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder send(Boolean send) {
            return send(Output.of(send));
        }

        /**
         * @param topicId Specifies the ID of the ServiceBus Topic. Changing this forces a new resource to be created.
         * 
         * > **NOTE** At least one of the 3 permissions below needs to be set.
         * 
         * @return builder
         * 
         */
        public Builder topicId(@Nullable Output topicId) {
            $.topicId = topicId;
            return this;
        }

        /**
         * @param topicId Specifies the ID of the ServiceBus Topic. Changing this forces a new resource to be created.
         * 
         * > **NOTE** At least one of the 3 permissions below needs to be set.
         * 
         * @return builder
         * 
         */
        public Builder topicId(String topicId) {
            return topicId(Output.of(topicId));
        }

        public TopicAuthorizationRuleState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy