
com.pulumi.azurenative.insights.outputs.ScaleRuleMetricDimensionResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure 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.azurenative.insights.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class ScaleRuleMetricDimensionResponse {
/**
* @return Name of the dimension.
*
*/
private String dimensionName;
/**
* @return the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values
*
*/
private String operator;
/**
* @return list of dimension values. For example: ["App1","App2"].
*
*/
private List values;
private ScaleRuleMetricDimensionResponse() {}
/**
* @return Name of the dimension.
*
*/
public String dimensionName() {
return this.dimensionName;
}
/**
* @return the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values
*
*/
public String operator() {
return this.operator;
}
/**
* @return list of dimension values. For example: ["App1","App2"].
*
*/
public List values() {
return this.values;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ScaleRuleMetricDimensionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String dimensionName;
private String operator;
private List values;
public Builder() {}
public Builder(ScaleRuleMetricDimensionResponse defaults) {
Objects.requireNonNull(defaults);
this.dimensionName = defaults.dimensionName;
this.operator = defaults.operator;
this.values = defaults.values;
}
@CustomType.Setter
public Builder dimensionName(String dimensionName) {
if (dimensionName == null) {
throw new MissingRequiredPropertyException("ScaleRuleMetricDimensionResponse", "dimensionName");
}
this.dimensionName = dimensionName;
return this;
}
@CustomType.Setter
public Builder operator(String operator) {
if (operator == null) {
throw new MissingRequiredPropertyException("ScaleRuleMetricDimensionResponse", "operator");
}
this.operator = operator;
return this;
}
@CustomType.Setter
public Builder values(List values) {
if (values == null) {
throw new MissingRequiredPropertyException("ScaleRuleMetricDimensionResponse", "values");
}
this.values = values;
return this;
}
public Builder values(String... values) {
return values(List.of(values));
}
public ScaleRuleMetricDimensionResponse build() {
final var _resultValue = new ScaleRuleMetricDimensionResponse();
_resultValue.dimensionName = dimensionName;
_resultValue.operator = operator;
_resultValue.values = values;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy