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

com.pulumi.aws.cloudwatch.outputs.CompositeAlarmActionsSuppressor 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.aws.cloudwatch.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class CompositeAlarmActionsSuppressor {
    /**
     * @return Can be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.
     * 
     */
    private String alarm;
    /**
     * @return The maximum time in seconds that the composite alarm waits after suppressor alarm goes out of the `ALARM` state. After this time, the composite alarm performs its actions.
     * 
     */
    private Integer extensionPeriod;
    /**
     * @return The maximum time in seconds that the composite alarm waits for the suppressor alarm to go into the `ALARM` state. After this time, the composite alarm performs its actions.
     * 
     */
    private Integer waitPeriod;

    private CompositeAlarmActionsSuppressor() {}
    /**
     * @return Can be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.
     * 
     */
    public String alarm() {
        return this.alarm;
    }
    /**
     * @return The maximum time in seconds that the composite alarm waits after suppressor alarm goes out of the `ALARM` state. After this time, the composite alarm performs its actions.
     * 
     */
    public Integer extensionPeriod() {
        return this.extensionPeriod;
    }
    /**
     * @return The maximum time in seconds that the composite alarm waits for the suppressor alarm to go into the `ALARM` state. After this time, the composite alarm performs its actions.
     * 
     */
    public Integer waitPeriod() {
        return this.waitPeriod;
    }

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

    public static Builder builder(CompositeAlarmActionsSuppressor defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String alarm;
        private Integer extensionPeriod;
        private Integer waitPeriod;
        public Builder() {}
        public Builder(CompositeAlarmActionsSuppressor defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.alarm = defaults.alarm;
    	      this.extensionPeriod = defaults.extensionPeriod;
    	      this.waitPeriod = defaults.waitPeriod;
        }

        @CustomType.Setter
        public Builder alarm(String alarm) {
            if (alarm == null) {
              throw new MissingRequiredPropertyException("CompositeAlarmActionsSuppressor", "alarm");
            }
            this.alarm = alarm;
            return this;
        }
        @CustomType.Setter
        public Builder extensionPeriod(Integer extensionPeriod) {
            if (extensionPeriod == null) {
              throw new MissingRequiredPropertyException("CompositeAlarmActionsSuppressor", "extensionPeriod");
            }
            this.extensionPeriod = extensionPeriod;
            return this;
        }
        @CustomType.Setter
        public Builder waitPeriod(Integer waitPeriod) {
            if (waitPeriod == null) {
              throw new MissingRequiredPropertyException("CompositeAlarmActionsSuppressor", "waitPeriod");
            }
            this.waitPeriod = waitPeriod;
            return this;
        }
        public CompositeAlarmActionsSuppressor build() {
            final var _resultValue = new CompositeAlarmActionsSuppressor();
            _resultValue.alarm = alarm;
            _resultValue.extensionPeriod = extensionPeriod;
            _resultValue.waitPeriod = waitPeriod;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy