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

com.pulumi.azurenative.webpubsub.inputs.LiveTraceConfigurationArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.webpubsub.inputs.LiveTraceCategoryArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Live trace configuration of a Microsoft.SignalRService resource.
 * 
 */
public final class LiveTraceConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final LiveTraceConfigurationArgs Empty = new LiveTraceConfigurationArgs();

    /**
     * Gets or sets the list of category configurations.
     * 
     */
    @Import(name="categories")
    private @Nullable Output> categories;

    /**
     * @return Gets or sets the list of category configurations.
     * 
     */
    public Optional>> categories() {
        return Optional.ofNullable(this.categories);
    }

    /**
     * Indicates whether or not enable live trace.
     * When it's set to true, live trace client can connect to the service.
     * Otherwise, live trace client can't connect to the service, so that you are unable to receive any log, no matter what you configure in "categories".
     * Available values: true, false.
     * Case insensitive.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Indicates whether or not enable live trace.
     * When it's set to true, live trace client can connect to the service.
     * Otherwise, live trace client can't connect to the service, so that you are unable to receive any log, no matter what you configure in "categories".
     * Available values: true, false.
     * Case insensitive.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    private LiveTraceConfigurationArgs() {}

    private LiveTraceConfigurationArgs(LiveTraceConfigurationArgs $) {
        this.categories = $.categories;
        this.enabled = $.enabled;
    }

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

    public static final class Builder {
        private LiveTraceConfigurationArgs $;

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

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

        /**
         * @param categories Gets or sets the list of category configurations.
         * 
         * @return builder
         * 
         */
        public Builder categories(@Nullable Output> categories) {
            $.categories = categories;
            return this;
        }

        /**
         * @param categories Gets or sets the list of category configurations.
         * 
         * @return builder
         * 
         */
        public Builder categories(List categories) {
            return categories(Output.of(categories));
        }

        /**
         * @param categories Gets or sets the list of category configurations.
         * 
         * @return builder
         * 
         */
        public Builder categories(LiveTraceCategoryArgs... categories) {
            return categories(List.of(categories));
        }

        /**
         * @param enabled Indicates whether or not enable live trace.
         * When it's set to true, live trace client can connect to the service.
         * Otherwise, live trace client can't connect to the service, so that you are unable to receive any log, no matter what you configure in "categories".
         * Available values: true, false.
         * Case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Indicates whether or not enable live trace.
         * When it's set to true, live trace client can connect to the service.
         * Otherwise, live trace client can't connect to the service, so that you are unable to receive any log, no matter what you configure in "categories".
         * Available values: true, false.
         * Case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder enabled(String enabled) {
            return enabled(Output.of(enabled));
        }

        public LiveTraceConfigurationArgs build() {
            $.enabled = Codegen.stringProp("enabled").output().arg($.enabled).def("false").getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy