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

com.pulumi.azurenative.webpubsub.WebPubSubArgs 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.webpubsub;

import com.pulumi.azurenative.webpubsub.inputs.LiveTraceConfigurationArgs;
import com.pulumi.azurenative.webpubsub.inputs.ManagedIdentityArgs;
import com.pulumi.azurenative.webpubsub.inputs.ResourceLogConfigurationArgs;
import com.pulumi.azurenative.webpubsub.inputs.ResourceSkuArgs;
import com.pulumi.azurenative.webpubsub.inputs.WebPubSubNetworkACLsArgs;
import com.pulumi.azurenative.webpubsub.inputs.WebPubSubTlsSettingsArgs;
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.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final WebPubSubArgs Empty = new WebPubSubArgs();

    /**
     * DisableLocalAuth
     * Enable or disable aad auth
     * When set as true, connection with AuthType=aad won't work.
     * 
     */
    @Import(name="disableAadAuth")
    private @Nullable Output disableAadAuth;

    /**
     * @return DisableLocalAuth
     * Enable or disable aad auth
     * When set as true, connection with AuthType=aad won't work.
     * 
     */
    public Optional> disableAadAuth() {
        return Optional.ofNullable(this.disableAadAuth);
    }

    /**
     * DisableLocalAuth
     * Enable or disable local auth with AccessKey
     * When set as true, connection with AccessKey=xxx won't work.
     * 
     */
    @Import(name="disableLocalAuth")
    private @Nullable Output disableLocalAuth;

    /**
     * @return DisableLocalAuth
     * Enable or disable local auth with AccessKey
     * When set as true, connection with AccessKey=xxx won't work.
     * 
     */
    public Optional> disableLocalAuth() {
        return Optional.ofNullable(this.disableLocalAuth);
    }

    /**
     * A class represent managed identities used for request and response
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return A class represent managed identities used for request and response
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * Live trace configuration of a Microsoft.SignalRService resource.
     * 
     */
    @Import(name="liveTraceConfiguration")
    private @Nullable Output liveTraceConfiguration;

    /**
     * @return Live trace configuration of a Microsoft.SignalRService resource.
     * 
     */
    public Optional> liveTraceConfiguration() {
        return Optional.ofNullable(this.liveTraceConfiguration);
    }

    /**
     * The GEO location of the resource. e.g. West US | East US | North Central US | South Central US.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The GEO location of the resource. e.g. West US | East US | North Central US | South Central US.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Network ACLs for the resource
     * 
     */
    @Import(name="networkACLs")
    private @Nullable Output networkACLs;

    /**
     * @return Network ACLs for the resource
     * 
     */
    public Optional> networkACLs() {
        return Optional.ofNullable(this.networkACLs);
    }

    /**
     * Enable or disable public network access. Default to "Enabled".
     * When it's Enabled, network ACLs still apply.
     * When it's Disabled, public network access is always disabled no matter what you set in network ACLs.
     * 
     */
    @Import(name="publicNetworkAccess")
    private @Nullable Output publicNetworkAccess;

    /**
     * @return Enable or disable public network access. Default to "Enabled".
     * When it's Enabled, network ACLs still apply.
     * When it's Disabled, public network access is always disabled no matter what you set in network ACLs.
     * 
     */
    public Optional> publicNetworkAccess() {
        return Optional.ofNullable(this.publicNetworkAccess);
    }

    /**
     * The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Resource log configuration of a Microsoft.SignalRService resource.
     * 
     */
    @Import(name="resourceLogConfiguration")
    private @Nullable Output resourceLogConfiguration;

    /**
     * @return Resource log configuration of a Microsoft.SignalRService resource.
     * 
     */
    public Optional> resourceLogConfiguration() {
        return Optional.ofNullable(this.resourceLogConfiguration);
    }

    /**
     * The name of the resource.
     * 
     */
    @Import(name="resourceName")
    private @Nullable Output resourceName;

    /**
     * @return The name of the resource.
     * 
     */
    public Optional> resourceName() {
        return Optional.ofNullable(this.resourceName);
    }

    /**
     * The billing information of the resource.
     * 
     */
    @Import(name="sku")
    private @Nullable Output sku;

    /**
     * @return The billing information of the resource.
     * 
     */
    public Optional> sku() {
        return Optional.ofNullable(this.sku);
    }

    /**
     * Tags of the service which is a list of key value pairs that describe the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Tags of the service which is a list of key value pairs that describe the resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * TLS settings for the resource
     * 
     */
    @Import(name="tls")
    private @Nullable Output tls;

    /**
     * @return TLS settings for the resource
     * 
     */
    public Optional> tls() {
        return Optional.ofNullable(this.tls);
    }

    private WebPubSubArgs() {}

    private WebPubSubArgs(WebPubSubArgs $) {
        this.disableAadAuth = $.disableAadAuth;
        this.disableLocalAuth = $.disableLocalAuth;
        this.identity = $.identity;
        this.liveTraceConfiguration = $.liveTraceConfiguration;
        this.location = $.location;
        this.networkACLs = $.networkACLs;
        this.publicNetworkAccess = $.publicNetworkAccess;
        this.resourceGroupName = $.resourceGroupName;
        this.resourceLogConfiguration = $.resourceLogConfiguration;
        this.resourceName = $.resourceName;
        this.sku = $.sku;
        this.tags = $.tags;
        this.tls = $.tls;
    }

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

    public static final class Builder {
        private WebPubSubArgs $;

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

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

        /**
         * @param disableAadAuth DisableLocalAuth
         * Enable or disable aad auth
         * When set as true, connection with AuthType=aad won't work.
         * 
         * @return builder
         * 
         */
        public Builder disableAadAuth(@Nullable Output disableAadAuth) {
            $.disableAadAuth = disableAadAuth;
            return this;
        }

        /**
         * @param disableAadAuth DisableLocalAuth
         * Enable or disable aad auth
         * When set as true, connection with AuthType=aad won't work.
         * 
         * @return builder
         * 
         */
        public Builder disableAadAuth(Boolean disableAadAuth) {
            return disableAadAuth(Output.of(disableAadAuth));
        }

        /**
         * @param disableLocalAuth DisableLocalAuth
         * Enable or disable local auth with AccessKey
         * When set as true, connection with AccessKey=xxx won't work.
         * 
         * @return builder
         * 
         */
        public Builder disableLocalAuth(@Nullable Output disableLocalAuth) {
            $.disableLocalAuth = disableLocalAuth;
            return this;
        }

        /**
         * @param disableLocalAuth DisableLocalAuth
         * Enable or disable local auth with AccessKey
         * When set as true, connection with AccessKey=xxx won't work.
         * 
         * @return builder
         * 
         */
        public Builder disableLocalAuth(Boolean disableLocalAuth) {
            return disableLocalAuth(Output.of(disableLocalAuth));
        }

        /**
         * @param identity A class represent managed identities used for request and response
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity A class represent managed identities used for request and response
         * 
         * @return builder
         * 
         */
        public Builder identity(ManagedIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param liveTraceConfiguration Live trace configuration of a Microsoft.SignalRService resource.
         * 
         * @return builder
         * 
         */
        public Builder liveTraceConfiguration(@Nullable Output liveTraceConfiguration) {
            $.liveTraceConfiguration = liveTraceConfiguration;
            return this;
        }

        /**
         * @param liveTraceConfiguration Live trace configuration of a Microsoft.SignalRService resource.
         * 
         * @return builder
         * 
         */
        public Builder liveTraceConfiguration(LiveTraceConfigurationArgs liveTraceConfiguration) {
            return liveTraceConfiguration(Output.of(liveTraceConfiguration));
        }

        /**
         * @param location The GEO location of the resource. e.g. West US | East US | North Central US | South Central US.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The GEO location of the resource. e.g. West US | East US | North Central US | South Central US.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param networkACLs Network ACLs for the resource
         * 
         * @return builder
         * 
         */
        public Builder networkACLs(@Nullable Output networkACLs) {
            $.networkACLs = networkACLs;
            return this;
        }

        /**
         * @param networkACLs Network ACLs for the resource
         * 
         * @return builder
         * 
         */
        public Builder networkACLs(WebPubSubNetworkACLsArgs networkACLs) {
            return networkACLs(Output.of(networkACLs));
        }

        /**
         * @param publicNetworkAccess Enable or disable public network access. Default to "Enabled".
         * When it's Enabled, network ACLs still apply.
         * When it's Disabled, public network access is always disabled no matter what you set in network ACLs.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(@Nullable Output publicNetworkAccess) {
            $.publicNetworkAccess = publicNetworkAccess;
            return this;
        }

        /**
         * @param publicNetworkAccess Enable or disable public network access. Default to "Enabled".
         * When it's Enabled, network ACLs still apply.
         * When it's Disabled, public network access is always disabled no matter what you set in network ACLs.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(String publicNetworkAccess) {
            return publicNetworkAccess(Output.of(publicNetworkAccess));
        }

        /**
         * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param resourceLogConfiguration Resource log configuration of a Microsoft.SignalRService resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceLogConfiguration(@Nullable Output resourceLogConfiguration) {
            $.resourceLogConfiguration = resourceLogConfiguration;
            return this;
        }

        /**
         * @param resourceLogConfiguration Resource log configuration of a Microsoft.SignalRService resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceLogConfiguration(ResourceLogConfigurationArgs resourceLogConfiguration) {
            return resourceLogConfiguration(Output.of(resourceLogConfiguration));
        }

        /**
         * @param resourceName The name of the resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceName(@Nullable Output resourceName) {
            $.resourceName = resourceName;
            return this;
        }

        /**
         * @param resourceName The name of the resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceName(String resourceName) {
            return resourceName(Output.of(resourceName));
        }

        /**
         * @param sku The billing information of the resource.
         * 
         * @return builder
         * 
         */
        public Builder sku(@Nullable Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku The billing information of the resource.
         * 
         * @return builder
         * 
         */
        public Builder sku(ResourceSkuArgs sku) {
            return sku(Output.of(sku));
        }

        /**
         * @param tags Tags of the service which is a list of key value pairs that describe the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Tags of the service which is a list of key value pairs that describe the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param tls TLS settings for the resource
         * 
         * @return builder
         * 
         */
        public Builder tls(@Nullable Output tls) {
            $.tls = tls;
            return this;
        }

        /**
         * @param tls TLS settings for the resource
         * 
         * @return builder
         * 
         */
        public Builder tls(WebPubSubTlsSettingsArgs tls) {
            return tls(Output.of(tls));
        }

        public WebPubSubArgs build() {
            $.disableAadAuth = Codegen.booleanProp("disableAadAuth").output().arg($.disableAadAuth).def(false).getNullable();
            $.disableLocalAuth = Codegen.booleanProp("disableLocalAuth").output().arg($.disableLocalAuth).def(false).getNullable();
            $.publicNetworkAccess = Codegen.stringProp("publicNetworkAccess").output().arg($.publicNetworkAccess).def("Enabled").getNullable();
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("WebPubSubArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy