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

io.github.cdklabs.cdkmonitoringconstructs.StepFunctionServiceIntegrationMonitoringProps Maven / Gradle / Ivy

There is a newer version: 9.1.0
Show newest version
package io.github.cdklabs.cdkmonitoringconstructs;

/**
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.93.0 (build 1706ca5)", date = "2024-01-08T00:34:46.814Z")
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdkmonitoringconstructs.$Module.class, fqn = "cdk-monitoring-constructs.StepFunctionServiceIntegrationMonitoringProps")
@software.amazon.jsii.Jsii.Proxy(StepFunctionServiceIntegrationMonitoringProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface StepFunctionServiceIntegrationMonitoringProps extends software.amazon.jsii.JsiiSerializable, io.github.cdklabs.cdkmonitoringconstructs.StepFunctionServiceIntegrationMetricFactoryProps, io.github.cdklabs.cdkmonitoringconstructs.BaseMonitoringProps {

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    default @org.jetbrains.annotations.Nullable java.util.Map getAddDurationP50Alarm() {
        return null;
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    default @org.jetbrains.annotations.Nullable java.util.Map getAddDurationP90Alarm() {
        return null;
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    default @org.jetbrains.annotations.Nullable java.util.Map getAddDurationP99Alarm() {
        return null;
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    default @org.jetbrains.annotations.Nullable java.util.Map getAddFailedServiceIntegrationsCountAlarm() {
        return null;
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    default @org.jetbrains.annotations.Nullable java.util.Map getAddFailedServiceIntegrationsRateAlarm() {
        return null;
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    default @org.jetbrains.annotations.Nullable java.util.Map getAddTimedOutServiceIntegrationsCountAlarm() {
        return null;
    }

    /**
     * @return a {@link Builder} of {@link StepFunctionServiceIntegrationMonitoringProps}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    static Builder builder() {
        return new Builder();
    }
    /**
     * A builder for {@link StepFunctionServiceIntegrationMonitoringProps}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    public static final class Builder implements software.amazon.jsii.Builder {
        java.util.Map addDurationP50Alarm;
        java.util.Map addDurationP90Alarm;
        java.util.Map addDurationP99Alarm;
        java.util.Map addFailedServiceIntegrationsCountAlarm;
        java.util.Map addFailedServiceIntegrationsRateAlarm;
        java.util.Map addTimedOutServiceIntegrationsCountAlarm;
        java.lang.String serviceIntegrationResourceArn;
        io.github.cdklabs.cdkmonitoringconstructs.RateComputationMethod rateComputationMethod;
        io.github.cdklabs.cdkmonitoringconstructs.IAlarmConsumer useCreatedAlarms;
        java.lang.String alarmFriendlyName;
        java.lang.String humanReadableName;
        java.lang.String localAlarmNamePrefixOverride;
        java.lang.Boolean addToAlarmDashboard;
        java.lang.Boolean addToDetailDashboard;
        java.lang.Boolean addToSummaryDashboard;

        /**
         * Sets the value of {@link StepFunctionServiceIntegrationMonitoringProps#getAddDurationP50Alarm}
         * @param addDurationP50Alarm the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        @SuppressWarnings("unchecked")
        public Builder addDurationP50Alarm(java.util.Map addDurationP50Alarm) {
            this.addDurationP50Alarm = (java.util.Map)addDurationP50Alarm;
            return this;
        }

        /**
         * Sets the value of {@link StepFunctionServiceIntegrationMonitoringProps#getAddDurationP90Alarm}
         * @param addDurationP90Alarm the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        @SuppressWarnings("unchecked")
        public Builder addDurationP90Alarm(java.util.Map addDurationP90Alarm) {
            this.addDurationP90Alarm = (java.util.Map)addDurationP90Alarm;
            return this;
        }

        /**
         * Sets the value of {@link StepFunctionServiceIntegrationMonitoringProps#getAddDurationP99Alarm}
         * @param addDurationP99Alarm the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        @SuppressWarnings("unchecked")
        public Builder addDurationP99Alarm(java.util.Map addDurationP99Alarm) {
            this.addDurationP99Alarm = (java.util.Map)addDurationP99Alarm;
            return this;
        }

        /**
         * Sets the value of {@link StepFunctionServiceIntegrationMonitoringProps#getAddFailedServiceIntegrationsCountAlarm}
         * @param addFailedServiceIntegrationsCountAlarm the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        @SuppressWarnings("unchecked")
        public Builder addFailedServiceIntegrationsCountAlarm(java.util.Map addFailedServiceIntegrationsCountAlarm) {
            this.addFailedServiceIntegrationsCountAlarm = (java.util.Map)addFailedServiceIntegrationsCountAlarm;
            return this;
        }

        /**
         * Sets the value of {@link StepFunctionServiceIntegrationMonitoringProps#getAddFailedServiceIntegrationsRateAlarm}
         * @param addFailedServiceIntegrationsRateAlarm the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        @SuppressWarnings("unchecked")
        public Builder addFailedServiceIntegrationsRateAlarm(java.util.Map addFailedServiceIntegrationsRateAlarm) {
            this.addFailedServiceIntegrationsRateAlarm = (java.util.Map)addFailedServiceIntegrationsRateAlarm;
            return this;
        }

        /**
         * Sets the value of {@link StepFunctionServiceIntegrationMonitoringProps#getAddTimedOutServiceIntegrationsCountAlarm}
         * @param addTimedOutServiceIntegrationsCountAlarm the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        @SuppressWarnings("unchecked")
        public Builder addTimedOutServiceIntegrationsCountAlarm(java.util.Map addTimedOutServiceIntegrationsCountAlarm) {
            this.addTimedOutServiceIntegrationsCountAlarm = (java.util.Map)addTimedOutServiceIntegrationsCountAlarm;
            return this;
        }

        /**
         * Sets the value of {@link StepFunctionServiceIntegrationMonitoringProps#getServiceIntegrationResourceArn}
         * @param serviceIntegrationResourceArn the value to be set. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder serviceIntegrationResourceArn(java.lang.String serviceIntegrationResourceArn) {
            this.serviceIntegrationResourceArn = serviceIntegrationResourceArn;
            return this;
        }

        /**
         * Sets the value of {@link StepFunctionServiceIntegrationMonitoringProps#getRateComputationMethod}
         * @param rateComputationMethod the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder rateComputationMethod(io.github.cdklabs.cdkmonitoringconstructs.RateComputationMethod rateComputationMethod) {
            this.rateComputationMethod = rateComputationMethod;
            return this;
        }

        /**
         * Sets the value of {@link StepFunctionServiceIntegrationMonitoringProps#getUseCreatedAlarms}
         * @param useCreatedAlarms Calls provided function to process all alarms created.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder useCreatedAlarms(io.github.cdklabs.cdkmonitoringconstructs.IAlarmConsumer useCreatedAlarms) {
            this.useCreatedAlarms = useCreatedAlarms;
            return this;
        }

        /**
         * Sets the value of {@link StepFunctionServiceIntegrationMonitoringProps#getAlarmFriendlyName}
         * @param alarmFriendlyName Plain name, used in naming alarms.
         *                          This unique among other resources, and respect the AWS CDK restriction posed on alarm names.
         *                          The length must be 1 - 255 characters and although the validation rules are undocumented, we recommend using ASCII and hyphens.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder alarmFriendlyName(java.lang.String alarmFriendlyName) {
            this.alarmFriendlyName = alarmFriendlyName;
            return this;
        }

        /**
         * Sets the value of {@link StepFunctionServiceIntegrationMonitoringProps#getHumanReadableName}
         * @param humanReadableName Human-readable name is a freeform string, used as a caption or description.
         *                          There are no limitations on what it can be.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder humanReadableName(java.lang.String humanReadableName) {
            this.humanReadableName = humanReadableName;
            return this;
        }

        /**
         * Sets the value of {@link StepFunctionServiceIntegrationMonitoringProps#getLocalAlarmNamePrefixOverride}
         * @param localAlarmNamePrefixOverride If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value.
         *                                     The length must be 1 - 255 characters and although the validation rules are undocumented, we recommend using ASCII and hyphens.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder localAlarmNamePrefixOverride(java.lang.String localAlarmNamePrefixOverride) {
            this.localAlarmNamePrefixOverride = localAlarmNamePrefixOverride;
            return this;
        }

        /**
         * Sets the value of {@link StepFunctionServiceIntegrationMonitoringProps#getAddToAlarmDashboard}
         * @param addToAlarmDashboard Flag indicating if the widgets should be added to alarm dashboard.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder addToAlarmDashboard(java.lang.Boolean addToAlarmDashboard) {
            this.addToAlarmDashboard = addToAlarmDashboard;
            return this;
        }

        /**
         * Sets the value of {@link StepFunctionServiceIntegrationMonitoringProps#getAddToDetailDashboard}
         * @param addToDetailDashboard Flag indicating if the widgets should be added to detailed dashboard.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder addToDetailDashboard(java.lang.Boolean addToDetailDashboard) {
            this.addToDetailDashboard = addToDetailDashboard;
            return this;
        }

        /**
         * Sets the value of {@link StepFunctionServiceIntegrationMonitoringProps#getAddToSummaryDashboard}
         * @param addToSummaryDashboard Flag indicating if the widgets should be added to summary dashboard.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder addToSummaryDashboard(java.lang.Boolean addToSummaryDashboard) {
            this.addToSummaryDashboard = addToSummaryDashboard;
            return this;
        }

        /**
         * Builds the configured instance.
         * @return a new instance of {@link StepFunctionServiceIntegrationMonitoringProps}
         * @throws NullPointerException if any required attribute was not provided
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        @Override
        public StepFunctionServiceIntegrationMonitoringProps build() {
            return new Jsii$Proxy(this);
        }
    }

    /**
     * An implementation for {@link StepFunctionServiceIntegrationMonitoringProps}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @software.amazon.jsii.Internal
    final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements StepFunctionServiceIntegrationMonitoringProps {
        private final java.util.Map addDurationP50Alarm;
        private final java.util.Map addDurationP90Alarm;
        private final java.util.Map addDurationP99Alarm;
        private final java.util.Map addFailedServiceIntegrationsCountAlarm;
        private final java.util.Map addFailedServiceIntegrationsRateAlarm;
        private final java.util.Map addTimedOutServiceIntegrationsCountAlarm;
        private final java.lang.String serviceIntegrationResourceArn;
        private final io.github.cdklabs.cdkmonitoringconstructs.RateComputationMethod rateComputationMethod;
        private final io.github.cdklabs.cdkmonitoringconstructs.IAlarmConsumer useCreatedAlarms;
        private final java.lang.String alarmFriendlyName;
        private final java.lang.String humanReadableName;
        private final java.lang.String localAlarmNamePrefixOverride;
        private final java.lang.Boolean addToAlarmDashboard;
        private final java.lang.Boolean addToDetailDashboard;
        private final java.lang.Boolean addToSummaryDashboard;

        /**
         * Constructor that initializes the object based on values retrieved from the JsiiObject.
         * @param objRef Reference to the JSII managed object.
         */
        protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
            super(objRef);
            this.addDurationP50Alarm = software.amazon.jsii.Kernel.get(this, "addDurationP50Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.DurationThreshold.class)));
            this.addDurationP90Alarm = software.amazon.jsii.Kernel.get(this, "addDurationP90Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.DurationThreshold.class)));
            this.addDurationP99Alarm = software.amazon.jsii.Kernel.get(this, "addDurationP99Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.DurationThreshold.class)));
            this.addFailedServiceIntegrationsCountAlarm = software.amazon.jsii.Kernel.get(this, "addFailedServiceIntegrationsCountAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.ErrorCountThreshold.class)));
            this.addFailedServiceIntegrationsRateAlarm = software.amazon.jsii.Kernel.get(this, "addFailedServiceIntegrationsRateAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.ErrorRateThreshold.class)));
            this.addTimedOutServiceIntegrationsCountAlarm = software.amazon.jsii.Kernel.get(this, "addTimedOutServiceIntegrationsCountAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.ErrorCountThreshold.class)));
            this.serviceIntegrationResourceArn = software.amazon.jsii.Kernel.get(this, "serviceIntegrationResourceArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.rateComputationMethod = software.amazon.jsii.Kernel.get(this, "rateComputationMethod", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.RateComputationMethod.class));
            this.useCreatedAlarms = software.amazon.jsii.Kernel.get(this, "useCreatedAlarms", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.IAlarmConsumer.class));
            this.alarmFriendlyName = software.amazon.jsii.Kernel.get(this, "alarmFriendlyName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.humanReadableName = software.amazon.jsii.Kernel.get(this, "humanReadableName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.localAlarmNamePrefixOverride = software.amazon.jsii.Kernel.get(this, "localAlarmNamePrefixOverride", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.addToAlarmDashboard = software.amazon.jsii.Kernel.get(this, "addToAlarmDashboard", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
            this.addToDetailDashboard = software.amazon.jsii.Kernel.get(this, "addToDetailDashboard", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
            this.addToSummaryDashboard = software.amazon.jsii.Kernel.get(this, "addToSummaryDashboard", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
        }

        /**
         * Constructor that initializes the object based on literal property values passed by the {@link Builder}.
         */
        @SuppressWarnings("unchecked")
        protected Jsii$Proxy(final Builder builder) {
            super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
            this.addDurationP50Alarm = (java.util.Map)builder.addDurationP50Alarm;
            this.addDurationP90Alarm = (java.util.Map)builder.addDurationP90Alarm;
            this.addDurationP99Alarm = (java.util.Map)builder.addDurationP99Alarm;
            this.addFailedServiceIntegrationsCountAlarm = (java.util.Map)builder.addFailedServiceIntegrationsCountAlarm;
            this.addFailedServiceIntegrationsRateAlarm = (java.util.Map)builder.addFailedServiceIntegrationsRateAlarm;
            this.addTimedOutServiceIntegrationsCountAlarm = (java.util.Map)builder.addTimedOutServiceIntegrationsCountAlarm;
            this.serviceIntegrationResourceArn = java.util.Objects.requireNonNull(builder.serviceIntegrationResourceArn, "serviceIntegrationResourceArn is required");
            this.rateComputationMethod = builder.rateComputationMethod;
            this.useCreatedAlarms = builder.useCreatedAlarms;
            this.alarmFriendlyName = builder.alarmFriendlyName;
            this.humanReadableName = builder.humanReadableName;
            this.localAlarmNamePrefixOverride = builder.localAlarmNamePrefixOverride;
            this.addToAlarmDashboard = builder.addToAlarmDashboard;
            this.addToDetailDashboard = builder.addToDetailDashboard;
            this.addToSummaryDashboard = builder.addToSummaryDashboard;
        }

        @Override
        public final java.util.Map getAddDurationP50Alarm() {
            return this.addDurationP50Alarm;
        }

        @Override
        public final java.util.Map getAddDurationP90Alarm() {
            return this.addDurationP90Alarm;
        }

        @Override
        public final java.util.Map getAddDurationP99Alarm() {
            return this.addDurationP99Alarm;
        }

        @Override
        public final java.util.Map getAddFailedServiceIntegrationsCountAlarm() {
            return this.addFailedServiceIntegrationsCountAlarm;
        }

        @Override
        public final java.util.Map getAddFailedServiceIntegrationsRateAlarm() {
            return this.addFailedServiceIntegrationsRateAlarm;
        }

        @Override
        public final java.util.Map getAddTimedOutServiceIntegrationsCountAlarm() {
            return this.addTimedOutServiceIntegrationsCountAlarm;
        }

        @Override
        public final java.lang.String getServiceIntegrationResourceArn() {
            return this.serviceIntegrationResourceArn;
        }

        @Override
        public final io.github.cdklabs.cdkmonitoringconstructs.RateComputationMethod getRateComputationMethod() {
            return this.rateComputationMethod;
        }

        @Override
        public final io.github.cdklabs.cdkmonitoringconstructs.IAlarmConsumer getUseCreatedAlarms() {
            return this.useCreatedAlarms;
        }

        @Override
        public final java.lang.String getAlarmFriendlyName() {
            return this.alarmFriendlyName;
        }

        @Override
        public final java.lang.String getHumanReadableName() {
            return this.humanReadableName;
        }

        @Override
        public final java.lang.String getLocalAlarmNamePrefixOverride() {
            return this.localAlarmNamePrefixOverride;
        }

        @Override
        public final java.lang.Boolean getAddToAlarmDashboard() {
            return this.addToAlarmDashboard;
        }

        @Override
        public final java.lang.Boolean getAddToDetailDashboard() {
            return this.addToDetailDashboard;
        }

        @Override
        public final java.lang.Boolean getAddToSummaryDashboard() {
            return this.addToSummaryDashboard;
        }

        @Override
        @software.amazon.jsii.Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() {
            final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE;
            final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();

            if (this.getAddDurationP50Alarm() != null) {
                data.set("addDurationP50Alarm", om.valueToTree(this.getAddDurationP50Alarm()));
            }
            if (this.getAddDurationP90Alarm() != null) {
                data.set("addDurationP90Alarm", om.valueToTree(this.getAddDurationP90Alarm()));
            }
            if (this.getAddDurationP99Alarm() != null) {
                data.set("addDurationP99Alarm", om.valueToTree(this.getAddDurationP99Alarm()));
            }
            if (this.getAddFailedServiceIntegrationsCountAlarm() != null) {
                data.set("addFailedServiceIntegrationsCountAlarm", om.valueToTree(this.getAddFailedServiceIntegrationsCountAlarm()));
            }
            if (this.getAddFailedServiceIntegrationsRateAlarm() != null) {
                data.set("addFailedServiceIntegrationsRateAlarm", om.valueToTree(this.getAddFailedServiceIntegrationsRateAlarm()));
            }
            if (this.getAddTimedOutServiceIntegrationsCountAlarm() != null) {
                data.set("addTimedOutServiceIntegrationsCountAlarm", om.valueToTree(this.getAddTimedOutServiceIntegrationsCountAlarm()));
            }
            data.set("serviceIntegrationResourceArn", om.valueToTree(this.getServiceIntegrationResourceArn()));
            if (this.getRateComputationMethod() != null) {
                data.set("rateComputationMethod", om.valueToTree(this.getRateComputationMethod()));
            }
            if (this.getUseCreatedAlarms() != null) {
                data.set("useCreatedAlarms", om.valueToTree(this.getUseCreatedAlarms()));
            }
            if (this.getAlarmFriendlyName() != null) {
                data.set("alarmFriendlyName", om.valueToTree(this.getAlarmFriendlyName()));
            }
            if (this.getHumanReadableName() != null) {
                data.set("humanReadableName", om.valueToTree(this.getHumanReadableName()));
            }
            if (this.getLocalAlarmNamePrefixOverride() != null) {
                data.set("localAlarmNamePrefixOverride", om.valueToTree(this.getLocalAlarmNamePrefixOverride()));
            }
            if (this.getAddToAlarmDashboard() != null) {
                data.set("addToAlarmDashboard", om.valueToTree(this.getAddToAlarmDashboard()));
            }
            if (this.getAddToDetailDashboard() != null) {
                data.set("addToDetailDashboard", om.valueToTree(this.getAddToDetailDashboard()));
            }
            if (this.getAddToSummaryDashboard() != null) {
                data.set("addToSummaryDashboard", om.valueToTree(this.getAddToSummaryDashboard()));
            }

            final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
            struct.set("fqn", om.valueToTree("cdk-monitoring-constructs.StepFunctionServiceIntegrationMonitoringProps"));
            struct.set("data", data);

            final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
            obj.set("$jsii.struct", struct);

            return obj;
        }

        @Override
        public final boolean equals(final Object o) {
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;

            StepFunctionServiceIntegrationMonitoringProps.Jsii$Proxy that = (StepFunctionServiceIntegrationMonitoringProps.Jsii$Proxy) o;

            if (this.addDurationP50Alarm != null ? !this.addDurationP50Alarm.equals(that.addDurationP50Alarm) : that.addDurationP50Alarm != null) return false;
            if (this.addDurationP90Alarm != null ? !this.addDurationP90Alarm.equals(that.addDurationP90Alarm) : that.addDurationP90Alarm != null) return false;
            if (this.addDurationP99Alarm != null ? !this.addDurationP99Alarm.equals(that.addDurationP99Alarm) : that.addDurationP99Alarm != null) return false;
            if (this.addFailedServiceIntegrationsCountAlarm != null ? !this.addFailedServiceIntegrationsCountAlarm.equals(that.addFailedServiceIntegrationsCountAlarm) : that.addFailedServiceIntegrationsCountAlarm != null) return false;
            if (this.addFailedServiceIntegrationsRateAlarm != null ? !this.addFailedServiceIntegrationsRateAlarm.equals(that.addFailedServiceIntegrationsRateAlarm) : that.addFailedServiceIntegrationsRateAlarm != null) return false;
            if (this.addTimedOutServiceIntegrationsCountAlarm != null ? !this.addTimedOutServiceIntegrationsCountAlarm.equals(that.addTimedOutServiceIntegrationsCountAlarm) : that.addTimedOutServiceIntegrationsCountAlarm != null) return false;
            if (!serviceIntegrationResourceArn.equals(that.serviceIntegrationResourceArn)) return false;
            if (this.rateComputationMethod != null ? !this.rateComputationMethod.equals(that.rateComputationMethod) : that.rateComputationMethod != null) return false;
            if (this.useCreatedAlarms != null ? !this.useCreatedAlarms.equals(that.useCreatedAlarms) : that.useCreatedAlarms != null) return false;
            if (this.alarmFriendlyName != null ? !this.alarmFriendlyName.equals(that.alarmFriendlyName) : that.alarmFriendlyName != null) return false;
            if (this.humanReadableName != null ? !this.humanReadableName.equals(that.humanReadableName) : that.humanReadableName != null) return false;
            if (this.localAlarmNamePrefixOverride != null ? !this.localAlarmNamePrefixOverride.equals(that.localAlarmNamePrefixOverride) : that.localAlarmNamePrefixOverride != null) return false;
            if (this.addToAlarmDashboard != null ? !this.addToAlarmDashboard.equals(that.addToAlarmDashboard) : that.addToAlarmDashboard != null) return false;
            if (this.addToDetailDashboard != null ? !this.addToDetailDashboard.equals(that.addToDetailDashboard) : that.addToDetailDashboard != null) return false;
            return this.addToSummaryDashboard != null ? this.addToSummaryDashboard.equals(that.addToSummaryDashboard) : that.addToSummaryDashboard == null;
        }

        @Override
        public final int hashCode() {
            int result = this.addDurationP50Alarm != null ? this.addDurationP50Alarm.hashCode() : 0;
            result = 31 * result + (this.addDurationP90Alarm != null ? this.addDurationP90Alarm.hashCode() : 0);
            result = 31 * result + (this.addDurationP99Alarm != null ? this.addDurationP99Alarm.hashCode() : 0);
            result = 31 * result + (this.addFailedServiceIntegrationsCountAlarm != null ? this.addFailedServiceIntegrationsCountAlarm.hashCode() : 0);
            result = 31 * result + (this.addFailedServiceIntegrationsRateAlarm != null ? this.addFailedServiceIntegrationsRateAlarm.hashCode() : 0);
            result = 31 * result + (this.addTimedOutServiceIntegrationsCountAlarm != null ? this.addTimedOutServiceIntegrationsCountAlarm.hashCode() : 0);
            result = 31 * result + (this.serviceIntegrationResourceArn.hashCode());
            result = 31 * result + (this.rateComputationMethod != null ? this.rateComputationMethod.hashCode() : 0);
            result = 31 * result + (this.useCreatedAlarms != null ? this.useCreatedAlarms.hashCode() : 0);
            result = 31 * result + (this.alarmFriendlyName != null ? this.alarmFriendlyName.hashCode() : 0);
            result = 31 * result + (this.humanReadableName != null ? this.humanReadableName.hashCode() : 0);
            result = 31 * result + (this.localAlarmNamePrefixOverride != null ? this.localAlarmNamePrefixOverride.hashCode() : 0);
            result = 31 * result + (this.addToAlarmDashboard != null ? this.addToAlarmDashboard.hashCode() : 0);
            result = 31 * result + (this.addToDetailDashboard != null ? this.addToDetailDashboard.hashCode() : 0);
            result = 31 * result + (this.addToSummaryDashboard != null ? this.addToSummaryDashboard.hashCode() : 0);
            return result;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy