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

com.pulumi.azurenative.signalrservice.SignalRArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.signalrservice.enums.ServiceKind;
import com.pulumi.azurenative.signalrservice.inputs.LiveTraceConfigurationArgs;
import com.pulumi.azurenative.signalrservice.inputs.ManagedIdentityArgs;
import com.pulumi.azurenative.signalrservice.inputs.ResourceLogConfigurationArgs;
import com.pulumi.azurenative.signalrservice.inputs.ResourceSkuArgs;
import com.pulumi.azurenative.signalrservice.inputs.ServerlessSettingsArgs;
import com.pulumi.azurenative.signalrservice.inputs.ServerlessUpstreamSettingsArgs;
import com.pulumi.azurenative.signalrservice.inputs.SignalRCorsSettingsArgs;
import com.pulumi.azurenative.signalrservice.inputs.SignalRFeatureArgs;
import com.pulumi.azurenative.signalrservice.inputs.SignalRNetworkACLsArgs;
import com.pulumi.azurenative.signalrservice.inputs.SignalRTlsSettingsArgs;
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.Boolean;
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 SignalRArgs extends com.pulumi.resources.ResourceArgs {

    public static final SignalRArgs Empty = new SignalRArgs();

    /**
     * Cross-Origin Resource Sharing (CORS) settings.
     * 
     */
    @Import(name="cors")
    private @Nullable Output cors;

    /**
     * @return Cross-Origin Resource Sharing (CORS) settings.
     * 
     */
    public Optional> cors() {
        return Optional.ofNullable(this.cors);
    }

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

    /**
     * List of the featureFlags.
     * 
     * FeatureFlags that are not included in the parameters for the update operation will not be modified.
     * And the response will only include featureFlags that are explicitly set.
     * When a featureFlag is not explicitly set, its globally default value will be used
     * But keep in mind, the default value doesn't mean "false". It varies in terms of different FeatureFlags.
     * 
     */
    @Import(name="features")
    private @Nullable Output> features;

    /**
     * @return List of the featureFlags.
     * 
     * FeatureFlags that are not included in the parameters for the update operation will not be modified.
     * And the response will only include featureFlags that are explicitly set.
     * When a featureFlag is not explicitly set, its globally default value will be used
     * But keep in mind, the default value doesn't mean "false". It varies in terms of different FeatureFlags.
     * 
     */
    public Optional>> features() {
        return Optional.ofNullable(this.features);
    }

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

    /**
     * The kind of the service, it can be SignalR or RawWebSockets
     * 
     */
    @Import(name="kind")
    private @Nullable Output> kind;

    /**
     * @return The kind of the service, it can be SignalR or RawWebSockets
     * 
     */
    public Optional>> kind() {
        return Optional.ofNullable(this.kind);
    }

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

    /**
     * Serverless settings.
     * 
     */
    @Import(name="serverless")
    private @Nullable Output serverless;

    /**
     * @return Serverless settings.
     * 
     */
    public Optional> serverless() {
        return Optional.ofNullable(this.serverless);
    }

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

    /**
     * The settings for the Upstream when the service is in server-less mode.
     * 
     */
    @Import(name="upstream")
    private @Nullable Output upstream;

    /**
     * @return The settings for the Upstream when the service is in server-less mode.
     * 
     */
    public Optional> upstream() {
        return Optional.ofNullable(this.upstream);
    }

    private SignalRArgs() {}

    private SignalRArgs(SignalRArgs $) {
        this.cors = $.cors;
        this.disableAadAuth = $.disableAadAuth;
        this.disableLocalAuth = $.disableLocalAuth;
        this.features = $.features;
        this.identity = $.identity;
        this.kind = $.kind;
        this.liveTraceConfiguration = $.liveTraceConfiguration;
        this.location = $.location;
        this.networkACLs = $.networkACLs;
        this.publicNetworkAccess = $.publicNetworkAccess;
        this.resourceGroupName = $.resourceGroupName;
        this.resourceLogConfiguration = $.resourceLogConfiguration;
        this.resourceName = $.resourceName;
        this.serverless = $.serverless;
        this.sku = $.sku;
        this.tags = $.tags;
        this.tls = $.tls;
        this.upstream = $.upstream;
    }

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

    public static final class Builder {
        private SignalRArgs $;

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

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

        /**
         * @param cors Cross-Origin Resource Sharing (CORS) settings.
         * 
         * @return builder
         * 
         */
        public Builder cors(@Nullable Output cors) {
            $.cors = cors;
            return this;
        }

        /**
         * @param cors Cross-Origin Resource Sharing (CORS) settings.
         * 
         * @return builder
         * 
         */
        public Builder cors(SignalRCorsSettingsArgs cors) {
            return cors(Output.of(cors));
        }

        /**
         * @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 features List of the featureFlags.
         * 
         * FeatureFlags that are not included in the parameters for the update operation will not be modified.
         * And the response will only include featureFlags that are explicitly set.
         * When a featureFlag is not explicitly set, its globally default value will be used
         * But keep in mind, the default value doesn't mean "false". It varies in terms of different FeatureFlags.
         * 
         * @return builder
         * 
         */
        public Builder features(@Nullable Output> features) {
            $.features = features;
            return this;
        }

        /**
         * @param features List of the featureFlags.
         * 
         * FeatureFlags that are not included in the parameters for the update operation will not be modified.
         * And the response will only include featureFlags that are explicitly set.
         * When a featureFlag is not explicitly set, its globally default value will be used
         * But keep in mind, the default value doesn't mean "false". It varies in terms of different FeatureFlags.
         * 
         * @return builder
         * 
         */
        public Builder features(List features) {
            return features(Output.of(features));
        }

        /**
         * @param features List of the featureFlags.
         * 
         * FeatureFlags that are not included in the parameters for the update operation will not be modified.
         * And the response will only include featureFlags that are explicitly set.
         * When a featureFlag is not explicitly set, its globally default value will be used
         * But keep in mind, the default value doesn't mean "false". It varies in terms of different FeatureFlags.
         * 
         * @return builder
         * 
         */
        public Builder features(SignalRFeatureArgs... features) {
            return features(List.of(features));
        }

        /**
         * @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 kind The kind of the service, it can be SignalR or RawWebSockets
         * 
         * @return builder
         * 
         */
        public Builder kind(@Nullable Output> kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind The kind of the service, it can be SignalR or RawWebSockets
         * 
         * @return builder
         * 
         */
        public Builder kind(Either kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param kind The kind of the service, it can be SignalR or RawWebSockets
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Either.ofLeft(kind));
        }

        /**
         * @param kind The kind of the service, it can be SignalR or RawWebSockets
         * 
         * @return builder
         * 
         */
        public Builder kind(ServiceKind kind) {
            return kind(Either.ofRight(kind));
        }

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

        /**
         * @param serverless Serverless settings.
         * 
         * @return builder
         * 
         */
        public Builder serverless(ServerlessSettingsArgs serverless) {
            return serverless(Output.of(serverless));
        }

        /**
         * @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(SignalRTlsSettingsArgs tls) {
            return tls(Output.of(tls));
        }

        /**
         * @param upstream The settings for the Upstream when the service is in server-less mode.
         * 
         * @return builder
         * 
         */
        public Builder upstream(@Nullable Output upstream) {
            $.upstream = upstream;
            return this;
        }

        /**
         * @param upstream The settings for the Upstream when the service is in server-less mode.
         * 
         * @return builder
         * 
         */
        public Builder upstream(ServerlessUpstreamSettingsArgs upstream) {
            return upstream(Output.of(upstream));
        }

        public SignalRArgs 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("SignalRArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy