com.pulumi.aws.autoscalingplans.outputs.ScalingPlanScalingInstructionPredefinedLoadMetricSpecification Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The 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.aws.autoscalingplans.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 ScalingPlanScalingInstructionPredefinedLoadMetricSpecification {
/**
* @return Metric type. Valid values: `ALBTargetGroupRequestCount`, `ASGTotalCPUUtilization`, `ASGTotalNetworkIn`, `ASGTotalNetworkOut`.
*
*/
private String predefinedLoadMetricType;
/**
* @return Identifies the resource associated with the metric type.
*
*/
private @Nullable String resourceLabel;
private ScalingPlanScalingInstructionPredefinedLoadMetricSpecification() {}
/**
* @return Metric type. Valid values: `ALBTargetGroupRequestCount`, `ASGTotalCPUUtilization`, `ASGTotalNetworkIn`, `ASGTotalNetworkOut`.
*
*/
public String predefinedLoadMetricType() {
return this.predefinedLoadMetricType;
}
/**
* @return Identifies the resource associated with the metric type.
*
*/
public Optional resourceLabel() {
return Optional.ofNullable(this.resourceLabel);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ScalingPlanScalingInstructionPredefinedLoadMetricSpecification defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String predefinedLoadMetricType;
private @Nullable String resourceLabel;
public Builder() {}
public Builder(ScalingPlanScalingInstructionPredefinedLoadMetricSpecification defaults) {
Objects.requireNonNull(defaults);
this.predefinedLoadMetricType = defaults.predefinedLoadMetricType;
this.resourceLabel = defaults.resourceLabel;
}
@CustomType.Setter
public Builder predefinedLoadMetricType(String predefinedLoadMetricType) {
if (predefinedLoadMetricType == null) {
throw new MissingRequiredPropertyException("ScalingPlanScalingInstructionPredefinedLoadMetricSpecification", "predefinedLoadMetricType");
}
this.predefinedLoadMetricType = predefinedLoadMetricType;
return this;
}
@CustomType.Setter
public Builder resourceLabel(@Nullable String resourceLabel) {
this.resourceLabel = resourceLabel;
return this;
}
public ScalingPlanScalingInstructionPredefinedLoadMetricSpecification build() {
final var _resultValue = new ScalingPlanScalingInstructionPredefinedLoadMetricSpecification();
_resultValue.predefinedLoadMetricType = predefinedLoadMetricType;
_resultValue.resourceLabel = resourceLabel;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy