
com.pulumi.signalfx.outputs.TimeChartVizOption Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signalfx Show documentation
Show all versions of signalfx Show documentation
A Pulumi package for creating and managing SignalFx resources.
// *** 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.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class TimeChartVizOption {
/**
* @return Y-axis associated with values for this plot. Must be either `right` or `left`.
*
*/
private @Nullable String axis;
/**
* @return Color to use : gray, blue, azure, navy, brown, orange, yellow, iris, magenta, pink, purple, violet, lilac, emerald, green, aquamarine.
*
*/
private @Nullable String color;
/**
* @return Specifies an alternate value for the Plot Name column of the Data Table associated with the chart.
*
*/
private @Nullable String displayName;
/**
* @return Label used in the publish statement that displays the plot (metric time series data) you want to customize.
*
*/
private String label;
/**
* @return The visualization style to use. Must be `"LineChart"`, `"AreaChart"`, `"ColumnChart"`, or `"Histogram"`. Chart level `plot_type` by default.
*
*/
private @Nullable String plotType;
/**
* @return , `value_suffix` - (Optional) Arbitrary prefix/suffix to display with the value of this plot.
*
*/
private @Nullable String valuePrefix;
/**
* @return An arbitrary suffix to display with the value of this plot
*
*/
private @Nullable String valueSuffix;
/**
* @return A unit to attach to this plot. Units support automatic scaling (eg thousands of bytes will be displayed as kilobytes). Values values are `Bit, Kilobit, Megabit, Gigabit, Terabit, Petabit, Exabit, Zettabit, Yottabit, Byte, Kibibyte, Mebibyte, Gibibyte (note: this was previously typoed as Gigibyte), Tebibyte, Pebibyte, Exbibyte, Zebibyte, Yobibyte, Nanosecond, Microsecond, Millisecond, Second, Minute, Hour, Day, Week`.
*
*/
private @Nullable String valueUnit;
private TimeChartVizOption() {}
/**
* @return Y-axis associated with values for this plot. Must be either `right` or `left`.
*
*/
public Optional axis() {
return Optional.ofNullable(this.axis);
}
/**
* @return Color to use : gray, blue, azure, navy, brown, orange, yellow, iris, magenta, pink, purple, violet, lilac, emerald, green, aquamarine.
*
*/
public Optional color() {
return Optional.ofNullable(this.color);
}
/**
* @return Specifies an alternate value for the Plot Name column of the Data Table associated with the chart.
*
*/
public Optional displayName() {
return Optional.ofNullable(this.displayName);
}
/**
* @return Label used in the publish statement that displays the plot (metric time series data) you want to customize.
*
*/
public String label() {
return this.label;
}
/**
* @return The visualization style to use. Must be `"LineChart"`, `"AreaChart"`, `"ColumnChart"`, or `"Histogram"`. Chart level `plot_type` by default.
*
*/
public Optional plotType() {
return Optional.ofNullable(this.plotType);
}
/**
* @return , `value_suffix` - (Optional) Arbitrary prefix/suffix to display with the value of this plot.
*
*/
public Optional valuePrefix() {
return Optional.ofNullable(this.valuePrefix);
}
/**
* @return An arbitrary suffix to display with the value of this plot
*
*/
public Optional valueSuffix() {
return Optional.ofNullable(this.valueSuffix);
}
/**
* @return A unit to attach to this plot. Units support automatic scaling (eg thousands of bytes will be displayed as kilobytes). Values values are `Bit, Kilobit, Megabit, Gigabit, Terabit, Petabit, Exabit, Zettabit, Yottabit, Byte, Kibibyte, Mebibyte, Gibibyte (note: this was previously typoed as Gigibyte), Tebibyte, Pebibyte, Exbibyte, Zebibyte, Yobibyte, Nanosecond, Microsecond, Millisecond, Second, Minute, Hour, Day, Week`.
*
*/
public Optional valueUnit() {
return Optional.ofNullable(this.valueUnit);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TimeChartVizOption defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String axis;
private @Nullable String color;
private @Nullable String displayName;
private String label;
private @Nullable String plotType;
private @Nullable String valuePrefix;
private @Nullable String valueSuffix;
private @Nullable String valueUnit;
public Builder() {}
public Builder(TimeChartVizOption defaults) {
Objects.requireNonNull(defaults);
this.axis = defaults.axis;
this.color = defaults.color;
this.displayName = defaults.displayName;
this.label = defaults.label;
this.plotType = defaults.plotType;
this.valuePrefix = defaults.valuePrefix;
this.valueSuffix = defaults.valueSuffix;
this.valueUnit = defaults.valueUnit;
}
@CustomType.Setter
public Builder axis(@Nullable String axis) {
this.axis = axis;
return this;
}
@CustomType.Setter
public Builder color(@Nullable String color) {
this.color = color;
return this;
}
@CustomType.Setter
public Builder displayName(@Nullable String displayName) {
this.displayName = displayName;
return this;
}
@CustomType.Setter
public Builder label(String label) {
if (label == null) {
throw new MissingRequiredPropertyException("TimeChartVizOption", "label");
}
this.label = label;
return this;
}
@CustomType.Setter
public Builder plotType(@Nullable String plotType) {
this.plotType = plotType;
return this;
}
@CustomType.Setter
public Builder valuePrefix(@Nullable String valuePrefix) {
this.valuePrefix = valuePrefix;
return this;
}
@CustomType.Setter
public Builder valueSuffix(@Nullable String valueSuffix) {
this.valueSuffix = valueSuffix;
return this;
}
@CustomType.Setter
public Builder valueUnit(@Nullable String valueUnit) {
this.valueUnit = valueUnit;
return this;
}
public TimeChartVizOption build() {
final var _resultValue = new TimeChartVizOption();
_resultValue.axis = axis;
_resultValue.color = color;
_resultValue.displayName = displayName;
_resultValue.label = label;
_resultValue.plotType = plotType;
_resultValue.valuePrefix = valuePrefix;
_resultValue.valueSuffix = valueSuffix;
_resultValue.valueUnit = valueUnit;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy