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

com.pulumi.azurenative.iotoperations.inputs.TracesArgs 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.iotoperations.inputs;

import com.pulumi.azurenative.iotoperations.enums.OperationalMode;
import com.pulumi.azurenative.iotoperations.inputs.OpenTelemetryExportConfigArgs;
import com.pulumi.azurenative.iotoperations.inputs.SelfTracingArgs;
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;


/**
 * Broker Diagnostic Trace properties
 * 
 */
public final class TracesArgs extends com.pulumi.resources.ResourceArgs {

    public static final TracesArgs Empty = new TracesArgs();

    /**
     * The cache size in megabytes.
     * 
     */
    @Import(name="cacheSizeMegabytes")
    private @Nullable Output cacheSizeMegabytes;

    /**
     * @return The cache size in megabytes.
     * 
     */
    public Optional> cacheSizeMegabytes() {
        return Optional.ofNullable(this.cacheSizeMegabytes);
    }

    /**
     * The toggle to enable/disable traces.
     * 
     */
    @Import(name="mode")
    private @Nullable Output> mode;

    /**
     * @return The toggle to enable/disable traces.
     * 
     */
    public Optional>> mode() {
        return Optional.ofNullable(this.mode);
    }

    /**
     * The open telemetry export configuration.
     * 
     */
    @Import(name="opentelemetryExportConfig")
    private @Nullable Output opentelemetryExportConfig;

    /**
     * @return The open telemetry export configuration.
     * 
     */
    public Optional> opentelemetryExportConfig() {
        return Optional.ofNullable(this.opentelemetryExportConfig);
    }

    /**
     * The self tracing properties.
     * 
     */
    @Import(name="selfTracing")
    private @Nullable Output selfTracing;

    /**
     * @return The self tracing properties.
     * 
     */
    public Optional> selfTracing() {
        return Optional.ofNullable(this.selfTracing);
    }

    /**
     * The span channel capacity.
     * 
     */
    @Import(name="spanChannelCapacity")
    private @Nullable Output spanChannelCapacity;

    /**
     * @return The span channel capacity.
     * 
     */
    public Optional> spanChannelCapacity() {
        return Optional.ofNullable(this.spanChannelCapacity);
    }

    private TracesArgs() {}

    private TracesArgs(TracesArgs $) {
        this.cacheSizeMegabytes = $.cacheSizeMegabytes;
        this.mode = $.mode;
        this.opentelemetryExportConfig = $.opentelemetryExportConfig;
        this.selfTracing = $.selfTracing;
        this.spanChannelCapacity = $.spanChannelCapacity;
    }

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

    public static final class Builder {
        private TracesArgs $;

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

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

        /**
         * @param cacheSizeMegabytes The cache size in megabytes.
         * 
         * @return builder
         * 
         */
        public Builder cacheSizeMegabytes(@Nullable Output cacheSizeMegabytes) {
            $.cacheSizeMegabytes = cacheSizeMegabytes;
            return this;
        }

        /**
         * @param cacheSizeMegabytes The cache size in megabytes.
         * 
         * @return builder
         * 
         */
        public Builder cacheSizeMegabytes(Integer cacheSizeMegabytes) {
            return cacheSizeMegabytes(Output.of(cacheSizeMegabytes));
        }

        /**
         * @param mode The toggle to enable/disable traces.
         * 
         * @return builder
         * 
         */
        public Builder mode(@Nullable Output> mode) {
            $.mode = mode;
            return this;
        }

        /**
         * @param mode The toggle to enable/disable traces.
         * 
         * @return builder
         * 
         */
        public Builder mode(Either mode) {
            return mode(Output.of(mode));
        }

        /**
         * @param mode The toggle to enable/disable traces.
         * 
         * @return builder
         * 
         */
        public Builder mode(String mode) {
            return mode(Either.ofLeft(mode));
        }

        /**
         * @param mode The toggle to enable/disable traces.
         * 
         * @return builder
         * 
         */
        public Builder mode(OperationalMode mode) {
            return mode(Either.ofRight(mode));
        }

        /**
         * @param opentelemetryExportConfig The open telemetry export configuration.
         * 
         * @return builder
         * 
         */
        public Builder opentelemetryExportConfig(@Nullable Output opentelemetryExportConfig) {
            $.opentelemetryExportConfig = opentelemetryExportConfig;
            return this;
        }

        /**
         * @param opentelemetryExportConfig The open telemetry export configuration.
         * 
         * @return builder
         * 
         */
        public Builder opentelemetryExportConfig(OpenTelemetryExportConfigArgs opentelemetryExportConfig) {
            return opentelemetryExportConfig(Output.of(opentelemetryExportConfig));
        }

        /**
         * @param selfTracing The self tracing properties.
         * 
         * @return builder
         * 
         */
        public Builder selfTracing(@Nullable Output selfTracing) {
            $.selfTracing = selfTracing;
            return this;
        }

        /**
         * @param selfTracing The self tracing properties.
         * 
         * @return builder
         * 
         */
        public Builder selfTracing(SelfTracingArgs selfTracing) {
            return selfTracing(Output.of(selfTracing));
        }

        /**
         * @param spanChannelCapacity The span channel capacity.
         * 
         * @return builder
         * 
         */
        public Builder spanChannelCapacity(@Nullable Output spanChannelCapacity) {
            $.spanChannelCapacity = spanChannelCapacity;
            return this;
        }

        /**
         * @param spanChannelCapacity The span channel capacity.
         * 
         * @return builder
         * 
         */
        public Builder spanChannelCapacity(Integer spanChannelCapacity) {
            return spanChannelCapacity(Output.of(spanChannelCapacity));
        }

        public TracesArgs build() {
            $.cacheSizeMegabytes = Codegen.integerProp("cacheSizeMegabytes").output().arg($.cacheSizeMegabytes).def(16).getNullable();
            $.mode = Codegen.stringProp("mode").left(OperationalMode.class).output().arg($.mode).def("Enabled").getNullable();
            $.spanChannelCapacity = Codegen.integerProp("spanChannelCapacity").output().arg($.spanChannelCapacity).def(1000).getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy