// *** 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 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<String> 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) {
            this.predefinedLoadMetricType = Objects.requireNonNull(predefinedLoadMetricType);
            return this;
        }
        @CustomType.Setter
        public Builder resourceLabel(@Nullable String resourceLabel) {
            this.resourceLabel = resourceLabel;
            return this;
        }
        public ScalingPlanScalingInstructionPredefinedLoadMetricSpecification build() {
            final var o = new ScalingPlanScalingInstructionPredefinedLoadMetricSpecification();
            o.predefinedLoadMetricType = predefinedLoadMetricType;
            o.resourceLabel = resourceLabel;
            return o;
        }
    }
}
