
com.pulumi.azurenative.servicefabric.outputs.ScalingPolicyResponse 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.servicefabric.outputs;
import com.pulumi.azurenative.servicefabric.outputs.AddRemoveIncrementalNamedPartitionScalingMechanismResponse;
import com.pulumi.azurenative.servicefabric.outputs.AveragePartitionLoadScalingTriggerResponse;
import com.pulumi.azurenative.servicefabric.outputs.AverageServiceLoadScalingTriggerResponse;
import com.pulumi.azurenative.servicefabric.outputs.PartitionInstanceCountScaleMechanismResponse;
import com.pulumi.core.Either;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.Objects;
@CustomType
public final class ScalingPolicyResponse {
/**
* @return Specifies the mechanism associated with this scaling policy
*
*/
private Either scalingMechanism;
/**
* @return Specifies the trigger associated with this scaling policy.
*
*/
private Either scalingTrigger;
private ScalingPolicyResponse() {}
/**
* @return Specifies the mechanism associated with this scaling policy
*
*/
public Either scalingMechanism() {
return this.scalingMechanism;
}
/**
* @return Specifies the trigger associated with this scaling policy.
*
*/
public Either scalingTrigger() {
return this.scalingTrigger;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ScalingPolicyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Either scalingMechanism;
private Either scalingTrigger;
public Builder() {}
public Builder(ScalingPolicyResponse defaults) {
Objects.requireNonNull(defaults);
this.scalingMechanism = defaults.scalingMechanism;
this.scalingTrigger = defaults.scalingTrigger;
}
@CustomType.Setter
public Builder scalingMechanism(Either scalingMechanism) {
if (scalingMechanism == null) {
throw new MissingRequiredPropertyException("ScalingPolicyResponse", "scalingMechanism");
}
this.scalingMechanism = scalingMechanism;
return this;
}
@CustomType.Setter
public Builder scalingTrigger(Either scalingTrigger) {
if (scalingTrigger == null) {
throw new MissingRequiredPropertyException("ScalingPolicyResponse", "scalingTrigger");
}
this.scalingTrigger = scalingTrigger;
return this;
}
public ScalingPolicyResponse build() {
final var _resultValue = new ScalingPolicyResponse();
_resultValue.scalingMechanism = scalingMechanism;
_resultValue.scalingTrigger = scalingTrigger;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy