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

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


/**
 * Diagnostic Self tracing properties
 * 
 */
public final class SelfTracingArgs extends com.pulumi.resources.ResourceArgs {

    public static final SelfTracingArgs Empty = new SelfTracingArgs();

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

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

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

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

    private SelfTracingArgs() {}

    private SelfTracingArgs(SelfTracingArgs $) {
        this.intervalSeconds = $.intervalSeconds;
        this.mode = $.mode;
    }

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

    public static final class Builder {
        private SelfTracingArgs $;

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

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

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

        /**
         * @param intervalSeconds The self tracing interval.
         * 
         * @return builder
         * 
         */
        public Builder intervalSeconds(Integer intervalSeconds) {
            return intervalSeconds(Output.of(intervalSeconds));
        }

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

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

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

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

        public SelfTracingArgs build() {
            $.intervalSeconds = Codegen.integerProp("intervalSeconds").output().arg($.intervalSeconds).def(30).getNullable();
            $.mode = Codegen.stringProp("mode").left(OperationalMode.class).output().arg($.mode).def("Enabled").getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy