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

com.pulumi.azurenative.servicefabricmesh.inputs.DiagnosticsRefArgs Maven / Gradle / Ivy

// *** 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.servicefabricmesh.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Reference to sinks in DiagnosticsDescription.
 * 
 */
public final class DiagnosticsRefArgs extends com.pulumi.resources.ResourceArgs {

    public static final DiagnosticsRefArgs Empty = new DiagnosticsRefArgs();

    /**
     * Status of whether or not sinks are enabled.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Status of whether or not sinks are enabled.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * List of sinks to be used if enabled. References the list of sinks in DiagnosticsDescription.
     * 
     */
    @Import(name="sinkRefs")
    private @Nullable Output> sinkRefs;

    /**
     * @return List of sinks to be used if enabled. References the list of sinks in DiagnosticsDescription.
     * 
     */
    public Optional>> sinkRefs() {
        return Optional.ofNullable(this.sinkRefs);
    }

    private DiagnosticsRefArgs() {}

    private DiagnosticsRefArgs(DiagnosticsRefArgs $) {
        this.enabled = $.enabled;
        this.sinkRefs = $.sinkRefs;
    }

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

    public static final class Builder {
        private DiagnosticsRefArgs $;

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

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

        /**
         * @param enabled Status of whether or not sinks are enabled.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Status of whether or not sinks are enabled.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param sinkRefs List of sinks to be used if enabled. References the list of sinks in DiagnosticsDescription.
         * 
         * @return builder
         * 
         */
        public Builder sinkRefs(@Nullable Output> sinkRefs) {
            $.sinkRefs = sinkRefs;
            return this;
        }

        /**
         * @param sinkRefs List of sinks to be used if enabled. References the list of sinks in DiagnosticsDescription.
         * 
         * @return builder
         * 
         */
        public Builder sinkRefs(List sinkRefs) {
            return sinkRefs(Output.of(sinkRefs));
        }

        /**
         * @param sinkRefs List of sinks to be used if enabled. References the list of sinks in DiagnosticsDescription.
         * 
         * @return builder
         * 
         */
        public Builder sinkRefs(String... sinkRefs) {
            return sinkRefs(List.of(sinkRefs));
        }

        public DiagnosticsRefArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy