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

com.pulumi.signalfx.inputs.TimeChartLegendOptionsFieldArgs Maven / Gradle / Ivy

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

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


public final class TimeChartLegendOptionsFieldArgs extends com.pulumi.resources.ResourceArgs {

    public static final TimeChartLegendOptionsFieldArgs Empty = new TimeChartLegendOptionsFieldArgs();

    /**
     * True or False depending on if you want the property to be shown or hidden.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return True or False depending on if you want the property to be shown or hidden.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * The name of the property to display. Note the special values of `plot_label` (corresponding with the API's `sf_metric`) which shows the label of the time series `publish()` and `metric` (corresponding with the API's `sf_originatingMetric`) that shows the name of the metric for the time series being displayed.
     * 
     */
    @Import(name="property", required=true)
    private Output property;

    /**
     * @return The name of the property to display. Note the special values of `plot_label` (corresponding with the API's `sf_metric`) which shows the label of the time series `publish()` and `metric` (corresponding with the API's `sf_originatingMetric`) that shows the name of the metric for the time series being displayed.
     * 
     */
    public Output property() {
        return this.property;
    }

    private TimeChartLegendOptionsFieldArgs() {}

    private TimeChartLegendOptionsFieldArgs(TimeChartLegendOptionsFieldArgs $) {
        this.enabled = $.enabled;
        this.property = $.property;
    }

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

    public static final class Builder {
        private TimeChartLegendOptionsFieldArgs $;

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

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

        /**
         * @param enabled True or False depending on if you want the property to be shown or hidden.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled True or False depending on if you want the property to be shown or hidden.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param property The name of the property to display. Note the special values of `plot_label` (corresponding with the API's `sf_metric`) which shows the label of the time series `publish()` and `metric` (corresponding with the API's `sf_originatingMetric`) that shows the name of the metric for the time series being displayed.
         * 
         * @return builder
         * 
         */
        public Builder property(Output property) {
            $.property = property;
            return this;
        }

        /**
         * @param property The name of the property to display. Note the special values of `plot_label` (corresponding with the API's `sf_metric`) which shows the label of the time series `publish()` and `metric` (corresponding with the API's `sf_originatingMetric`) that shows the name of the metric for the time series being displayed.
         * 
         * @return builder
         * 
         */
        public Builder property(String property) {
            return property(Output.of(property));
        }

        public TimeChartLegendOptionsFieldArgs build() {
            if ($.property == null) {
                throw new MissingRequiredPropertyException("TimeChartLegendOptionsFieldArgs", "property");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy