
com.pulumi.azurenative.insights.outputs.ScaleRuleResponse 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.azurenative.insights.outputs.MetricTriggerResponse;
import com.pulumi.azurenative.insights.outputs.ScaleActionResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.Objects;
@CustomType
public final class ScaleRuleResponse {
/**
* @return the trigger that results in a scaling action.
*
*/
private MetricTriggerResponse metricTrigger;
/**
* @return the parameters for the scaling action.
*
*/
private ScaleActionResponse scaleAction;
private ScaleRuleResponse() {}
/**
* @return the trigger that results in a scaling action.
*
*/
public MetricTriggerResponse metricTrigger() {
return this.metricTrigger;
}
/**
* @return the parameters for the scaling action.
*
*/
public ScaleActionResponse scaleAction() {
return this.scaleAction;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ScaleRuleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private MetricTriggerResponse metricTrigger;
private ScaleActionResponse scaleAction;
public Builder() {}
public Builder(ScaleRuleResponse defaults) {
Objects.requireNonNull(defaults);
this.metricTrigger = defaults.metricTrigger;
this.scaleAction = defaults.scaleAction;
}
@CustomType.Setter
public Builder metricTrigger(MetricTriggerResponse metricTrigger) {
if (metricTrigger == null) {
throw new MissingRequiredPropertyException("ScaleRuleResponse", "metricTrigger");
}
this.metricTrigger = metricTrigger;
return this;
}
@CustomType.Setter
public Builder scaleAction(ScaleActionResponse scaleAction) {
if (scaleAction == null) {
throw new MissingRequiredPropertyException("ScaleRuleResponse", "scaleAction");
}
this.scaleAction = scaleAction;
return this;
}
public ScaleRuleResponse build() {
final var _resultValue = new ScaleRuleResponse();
_resultValue.metricTrigger = metricTrigger;
_resultValue.scaleAction = scaleAction;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy