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

com.pulumi.alicloud.cms.outputs.AlarmEscalationsWarn Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.cms.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AlarmEscalationsWarn {
    /**
     * @return Warn level alarm comparison operator. Default value: `>`. Valid values: `>`, `>=`, `<`, `<=`, `!=`, `GreaterThanYesterday`, `LessThanYesterday`, `GreaterThanLastWeek`, `LessThanLastWeek`, `GreaterThanLastPeriod`, `LessThanLastPeriod`. **NOTE:** From version 1.225.0, `comparison_operator` cannot be set to `==`.
     * 
     */
    private @Nullable String comparisonOperator;
    /**
     * @return Warn level alarm statistics method. It must be consistent with that defined for metrics. For more information, see [How to use it](https://cms.console.aliyun.com/metric-meta/acs_ecs_dashboard/ecs).
     * 
     */
    private @Nullable String statistics;
    /**
     * @return Warn level alarm threshold value, which must be a numeric value currently.
     * 
     */
    private @Nullable String threshold;
    /**
     * @return Warn level alarm retry times. Default value: `3`.
     * 
     */
    private @Nullable Integer times;

    private AlarmEscalationsWarn() {}
    /**
     * @return Warn level alarm comparison operator. Default value: `>`. Valid values: `>`, `>=`, `<`, `<=`, `!=`, `GreaterThanYesterday`, `LessThanYesterday`, `GreaterThanLastWeek`, `LessThanLastWeek`, `GreaterThanLastPeriod`, `LessThanLastPeriod`. **NOTE:** From version 1.225.0, `comparison_operator` cannot be set to `==`.
     * 
     */
    public Optional comparisonOperator() {
        return Optional.ofNullable(this.comparisonOperator);
    }
    /**
     * @return Warn level alarm statistics method. It must be consistent with that defined for metrics. For more information, see [How to use it](https://cms.console.aliyun.com/metric-meta/acs_ecs_dashboard/ecs).
     * 
     */
    public Optional statistics() {
        return Optional.ofNullable(this.statistics);
    }
    /**
     * @return Warn level alarm threshold value, which must be a numeric value currently.
     * 
     */
    public Optional threshold() {
        return Optional.ofNullable(this.threshold);
    }
    /**
     * @return Warn level alarm retry times. Default value: `3`.
     * 
     */
    public Optional times() {
        return Optional.ofNullable(this.times);
    }

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

    public static Builder builder(AlarmEscalationsWarn defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String comparisonOperator;
        private @Nullable String statistics;
        private @Nullable String threshold;
        private @Nullable Integer times;
        public Builder() {}
        public Builder(AlarmEscalationsWarn defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.comparisonOperator = defaults.comparisonOperator;
    	      this.statistics = defaults.statistics;
    	      this.threshold = defaults.threshold;
    	      this.times = defaults.times;
        }

        @CustomType.Setter
        public Builder comparisonOperator(@Nullable String comparisonOperator) {

            this.comparisonOperator = comparisonOperator;
            return this;
        }
        @CustomType.Setter
        public Builder statistics(@Nullable String statistics) {

            this.statistics = statistics;
            return this;
        }
        @CustomType.Setter
        public Builder threshold(@Nullable String threshold) {

            this.threshold = threshold;
            return this;
        }
        @CustomType.Setter
        public Builder times(@Nullable Integer times) {

            this.times = times;
            return this;
        }
        public AlarmEscalationsWarn build() {
            final var _resultValue = new AlarmEscalationsWarn();
            _resultValue.comparisonOperator = comparisonOperator;
            _resultValue.statistics = statistics;
            _resultValue.threshold = threshold;
            _resultValue.times = times;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy