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

com.pulumi.meraki.organizations.outputs.GetAlertsProfilesItemAlertCondition Maven / Gradle / Ivy

There is a newer version: 0.4.0-alpha.1731736975
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.meraki.organizations.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 GetAlertsProfilesItemAlertCondition {
    /**
     * @return The threshold the metric must cross to be valid for alerting. Used only for WAN Utilization alerts.
     * 
     */
    private Integer bitRateBps;
    /**
     * @return The total duration in seconds that the threshold should be crossed before alerting
     * 
     */
    private Integer duration;
    /**
     * @return The uplink observed for the alert
     * 
     */
    private String interface_;
    /**
     * @return The look back period in seconds for sensing the alert
     * 
     */
    private Integer window;

    private GetAlertsProfilesItemAlertCondition() {}
    /**
     * @return The threshold the metric must cross to be valid for alerting. Used only for WAN Utilization alerts.
     * 
     */
    public Integer bitRateBps() {
        return this.bitRateBps;
    }
    /**
     * @return The total duration in seconds that the threshold should be crossed before alerting
     * 
     */
    public Integer duration() {
        return this.duration;
    }
    /**
     * @return The uplink observed for the alert
     * 
     */
    public String interface_() {
        return this.interface_;
    }
    /**
     * @return The look back period in seconds for sensing the alert
     * 
     */
    public Integer window() {
        return this.window;
    }

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

    public static Builder builder(GetAlertsProfilesItemAlertCondition defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer bitRateBps;
        private Integer duration;
        private String interface_;
        private Integer window;
        public Builder() {}
        public Builder(GetAlertsProfilesItemAlertCondition defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.bitRateBps = defaults.bitRateBps;
    	      this.duration = defaults.duration;
    	      this.interface_ = defaults.interface_;
    	      this.window = defaults.window;
        }

        @CustomType.Setter
        public Builder bitRateBps(Integer bitRateBps) {
            if (bitRateBps == null) {
              throw new MissingRequiredPropertyException("GetAlertsProfilesItemAlertCondition", "bitRateBps");
            }
            this.bitRateBps = bitRateBps;
            return this;
        }
        @CustomType.Setter
        public Builder duration(Integer duration) {
            if (duration == null) {
              throw new MissingRequiredPropertyException("GetAlertsProfilesItemAlertCondition", "duration");
            }
            this.duration = duration;
            return this;
        }
        @CustomType.Setter("interface")
        public Builder interface_(String interface_) {
            if (interface_ == null) {
              throw new MissingRequiredPropertyException("GetAlertsProfilesItemAlertCondition", "interface_");
            }
            this.interface_ = interface_;
            return this;
        }
        @CustomType.Setter
        public Builder window(Integer window) {
            if (window == null) {
              throw new MissingRequiredPropertyException("GetAlertsProfilesItemAlertCondition", "window");
            }
            this.window = window;
            return this;
        }
        public GetAlertsProfilesItemAlertCondition build() {
            final var _resultValue = new GetAlertsProfilesItemAlertCondition();
            _resultValue.bitRateBps = bitRateBps;
            _resultValue.duration = duration;
            _resultValue.interface_ = interface_;
            _resultValue.window = window;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy