All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.appautoscaling.outputs.PolicyTargetTrackingScalingPolicyConfigurationPredefinedMetricSpecification Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.66.3
Show 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.appautoscaling.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 PolicyTargetTrackingScalingPolicyConfigurationPredefinedMetricSpecification {
    /**
     * @return Metric type.
     * 
     */
    private String predefinedMetricType;
    /**
     * @return Reserved for future use if the `predefined_metric_type` is not `ALBRequestCountPerTarget`. If the `predefined_metric_type` is `ALBRequestCountPerTarget`, you must specify this argument. Documentation can be found at: [AWS Predefined Scaling Metric Specification](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_PredefinedScalingMetricSpecification.html). Must be less than or equal to 1023 characters in length.
     * 
     */
    private @Nullable String resourceLabel;

    private PolicyTargetTrackingScalingPolicyConfigurationPredefinedMetricSpecification() {}
    /**
     * @return Metric type.
     * 
     */
    public String predefinedMetricType() {
        return this.predefinedMetricType;
    }
    /**
     * @return Reserved for future use if the `predefined_metric_type` is not `ALBRequestCountPerTarget`. If the `predefined_metric_type` is `ALBRequestCountPerTarget`, you must specify this argument. Documentation can be found at: [AWS Predefined Scaling Metric Specification](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_PredefinedScalingMetricSpecification.html). Must be less than or equal to 1023 characters in length.
     * 
     */
    public Optional resourceLabel() {
        return Optional.ofNullable(this.resourceLabel);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(PolicyTargetTrackingScalingPolicyConfigurationPredefinedMetricSpecification defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String predefinedMetricType;
        private @Nullable String resourceLabel;
        public Builder() {}
        public Builder(PolicyTargetTrackingScalingPolicyConfigurationPredefinedMetricSpecification defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.predefinedMetricType = defaults.predefinedMetricType;
    	      this.resourceLabel = defaults.resourceLabel;
        }

        @CustomType.Setter
        public Builder predefinedMetricType(String predefinedMetricType) {
            if (predefinedMetricType == null) {
              throw new MissingRequiredPropertyException("PolicyTargetTrackingScalingPolicyConfigurationPredefinedMetricSpecification", "predefinedMetricType");
            }
            this.predefinedMetricType = predefinedMetricType;
            return this;
        }
        @CustomType.Setter
        public Builder resourceLabel(@Nullable String resourceLabel) {

            this.resourceLabel = resourceLabel;
            return this;
        }
        public PolicyTargetTrackingScalingPolicyConfigurationPredefinedMetricSpecification build() {
            final var _resultValue = new PolicyTargetTrackingScalingPolicyConfigurationPredefinedMetricSpecification();
            _resultValue.predefinedMetricType = predefinedMetricType;
            _resultValue.resourceLabel = resourceLabel;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy