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

io.github.cdklabs.cdkmonitoringconstructs.SqsQueueMonitoringWithDlqProps 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.103.1 (build bef2dea)", date = "2024-09-24T17:32:52.151Z")
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdkmonitoringconstructs.$Module.class, fqn = "cdk-monitoring-constructs.SqsQueueMonitoringWithDlqProps")
@software.amazon.jsii.Jsii.Proxy(SqsQueueMonitoringWithDlqProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface SqsQueueMonitoringWithDlqProps extends software.amazon.jsii.JsiiSerializable, io.github.cdklabs.cdkmonitoringconstructs.SqsQueueMonitoringProps, io.github.cdklabs.cdkmonitoringconstructs.BaseDlqAlarms {

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.sqs.IQueue getDeadLetterQueue();

    /**
     * (experimental) Indicates whether the DLQ monitoring should be added to summary dashboard.
     * 

* Default: - true */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.Boolean getAddDeadLetterQueueToSummaryDashboard() { return null; } /** * @return a {@link Builder} of {@link SqsQueueMonitoringWithDlqProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) static Builder builder() { return new Builder(); } /** * A builder for {@link SqsQueueMonitoringWithDlqProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder implements software.amazon.jsii.Builder { software.amazon.awscdk.services.sqs.IQueue deadLetterQueue; java.lang.Boolean addDeadLetterQueueToSummaryDashboard; software.amazon.awscdk.services.sqs.IQueue queue; java.lang.String account; java.lang.String region; java.util.Map addQueueMaxIncomingMessagesAlarm; java.util.Map addQueueMaxMessageAgeAlarm; java.util.Map addQueueMaxSizeAlarm; java.util.Map addQueueMaxTimeToDrainMessagesAlarm; java.util.Map addQueueMinIncomingMessagesAlarm; java.util.Map addQueueMinSizeAlarm; 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; java.util.Map addDeadLetterQueueMaxIncomingMessagesAlarm; java.util.Map addDeadLetterQueueMaxMessageAgeAlarm; java.util.Map addDeadLetterQueueMaxSizeAlarm; /** * Sets the value of {@link SqsQueueMonitoringWithDlqProps#getDeadLetterQueue} * @param deadLetterQueue the value to be set. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder deadLetterQueue(software.amazon.awscdk.services.sqs.IQueue deadLetterQueue) { this.deadLetterQueue = deadLetterQueue; return this; } /** * Sets the value of {@link SqsQueueMonitoringWithDlqProps#getAddDeadLetterQueueToSummaryDashboard} * @param addDeadLetterQueueToSummaryDashboard Indicates whether the DLQ monitoring should be added to summary dashboard. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder addDeadLetterQueueToSummaryDashboard(java.lang.Boolean addDeadLetterQueueToSummaryDashboard) { this.addDeadLetterQueueToSummaryDashboard = addDeadLetterQueueToSummaryDashboard; return this; } /** * Sets the value of {@link SqsQueueMonitoringWithDlqProps#getQueue} * @param queue the value to be set. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder queue(software.amazon.awscdk.services.sqs.IQueue queue) { this.queue = queue; return this; } /** * Sets the value of {@link SqsQueueMonitoringWithDlqProps#getAccount} * @param account Account where the metrics exist. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder account(java.lang.String account) { this.account = account; return this; } /** * Sets the value of {@link SqsQueueMonitoringWithDlqProps#getRegion} * @param region Region where the metrics exist. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder region(java.lang.String region) { this.region = region; return this; } /** * Sets the value of {@link SqsQueueMonitoringWithDlqProps#getAddQueueMaxIncomingMessagesAlarm} * @param addQueueMaxIncomingMessagesAlarm the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @SuppressWarnings("unchecked") public Builder addQueueMaxIncomingMessagesAlarm(java.util.Map addQueueMaxIncomingMessagesAlarm) { this.addQueueMaxIncomingMessagesAlarm = (java.util.Map)addQueueMaxIncomingMessagesAlarm; return this; } /** * Sets the value of {@link SqsQueueMonitoringWithDlqProps#getAddQueueMaxMessageAgeAlarm} * @param addQueueMaxMessageAgeAlarm the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @SuppressWarnings("unchecked") public Builder addQueueMaxMessageAgeAlarm(java.util.Map addQueueMaxMessageAgeAlarm) { this.addQueueMaxMessageAgeAlarm = (java.util.Map)addQueueMaxMessageAgeAlarm; return this; } /** * Sets the value of {@link SqsQueueMonitoringWithDlqProps#getAddQueueMaxSizeAlarm} * @param addQueueMaxSizeAlarm the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @SuppressWarnings("unchecked") public Builder addQueueMaxSizeAlarm(java.util.Map addQueueMaxSizeAlarm) { this.addQueueMaxSizeAlarm = (java.util.Map)addQueueMaxSizeAlarm; return this; } /** * Sets the value of {@link SqsQueueMonitoringWithDlqProps#getAddQueueMaxTimeToDrainMessagesAlarm} * @param addQueueMaxTimeToDrainMessagesAlarm the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @SuppressWarnings("unchecked") public Builder addQueueMaxTimeToDrainMessagesAlarm(java.util.Map addQueueMaxTimeToDrainMessagesAlarm) { this.addQueueMaxTimeToDrainMessagesAlarm = (java.util.Map)addQueueMaxTimeToDrainMessagesAlarm; return this; } /** * Sets the value of {@link SqsQueueMonitoringWithDlqProps#getAddQueueMinIncomingMessagesAlarm} * @param addQueueMinIncomingMessagesAlarm the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @SuppressWarnings("unchecked") public Builder addQueueMinIncomingMessagesAlarm(java.util.Map addQueueMinIncomingMessagesAlarm) { this.addQueueMinIncomingMessagesAlarm = (java.util.Map)addQueueMinIncomingMessagesAlarm; return this; } /** * Sets the value of {@link SqsQueueMonitoringWithDlqProps#getAddQueueMinSizeAlarm} * @param addQueueMinSizeAlarm the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @SuppressWarnings("unchecked") public Builder addQueueMinSizeAlarm(java.util.Map addQueueMinSizeAlarm) { this.addQueueMinSizeAlarm = (java.util.Map)addQueueMinSizeAlarm; return this; } /** * Sets the value of {@link SqsQueueMonitoringWithDlqProps#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 SqsQueueMonitoringWithDlqProps#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 SqsQueueMonitoringWithDlqProps#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 SqsQueueMonitoringWithDlqProps#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 SqsQueueMonitoringWithDlqProps#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 SqsQueueMonitoringWithDlqProps#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 SqsQueueMonitoringWithDlqProps#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; } /** * Sets the value of {@link SqsQueueMonitoringWithDlqProps#getAddDeadLetterQueueMaxIncomingMessagesAlarm} * @param addDeadLetterQueueMaxIncomingMessagesAlarm Alarm on the number of messages added to a queue. * Note that this corresponds with the NumberOfMessagesSent metric, which does not capture messages sent to the DLQ * as a result of a failed processing attempt. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @SuppressWarnings("unchecked") public Builder addDeadLetterQueueMaxIncomingMessagesAlarm(java.util.Map addDeadLetterQueueMaxIncomingMessagesAlarm) { this.addDeadLetterQueueMaxIncomingMessagesAlarm = (java.util.Map)addDeadLetterQueueMaxIncomingMessagesAlarm; return this; } /** * Sets the value of {@link SqsQueueMonitoringWithDlqProps#getAddDeadLetterQueueMaxMessageAgeAlarm} * @param addDeadLetterQueueMaxMessageAgeAlarm the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @SuppressWarnings("unchecked") public Builder addDeadLetterQueueMaxMessageAgeAlarm(java.util.Map addDeadLetterQueueMaxMessageAgeAlarm) { this.addDeadLetterQueueMaxMessageAgeAlarm = (java.util.Map)addDeadLetterQueueMaxMessageAgeAlarm; return this; } /** * Sets the value of {@link SqsQueueMonitoringWithDlqProps#getAddDeadLetterQueueMaxSizeAlarm} * @param addDeadLetterQueueMaxSizeAlarm the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @SuppressWarnings("unchecked") public Builder addDeadLetterQueueMaxSizeAlarm(java.util.Map addDeadLetterQueueMaxSizeAlarm) { this.addDeadLetterQueueMaxSizeAlarm = (java.util.Map)addDeadLetterQueueMaxSizeAlarm; return this; } /** * Builds the configured instance. * @return a new instance of {@link SqsQueueMonitoringWithDlqProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public SqsQueueMonitoringWithDlqProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link SqsQueueMonitoringWithDlqProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements SqsQueueMonitoringWithDlqProps { private final software.amazon.awscdk.services.sqs.IQueue deadLetterQueue; private final java.lang.Boolean addDeadLetterQueueToSummaryDashboard; private final software.amazon.awscdk.services.sqs.IQueue queue; private final java.lang.String account; private final java.lang.String region; private final java.util.Map addQueueMaxIncomingMessagesAlarm; private final java.util.Map addQueueMaxMessageAgeAlarm; private final java.util.Map addQueueMaxSizeAlarm; private final java.util.Map addQueueMaxTimeToDrainMessagesAlarm; private final java.util.Map addQueueMinIncomingMessagesAlarm; private final java.util.Map addQueueMinSizeAlarm; 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; private final java.util.Map addDeadLetterQueueMaxIncomingMessagesAlarm; private final java.util.Map addDeadLetterQueueMaxMessageAgeAlarm; private final java.util.Map addDeadLetterQueueMaxSizeAlarm; /** * 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.deadLetterQueue = software.amazon.jsii.Kernel.get(this, "deadLetterQueue", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.sqs.IQueue.class)); this.addDeadLetterQueueToSummaryDashboard = software.amazon.jsii.Kernel.get(this, "addDeadLetterQueueToSummaryDashboard", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.queue = software.amazon.jsii.Kernel.get(this, "queue", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.sqs.IQueue.class)); this.account = software.amazon.jsii.Kernel.get(this, "account", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.region = software.amazon.jsii.Kernel.get(this, "region", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.addQueueMaxIncomingMessagesAlarm = software.amazon.jsii.Kernel.get(this, "addQueueMaxIncomingMessagesAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.MaxIncomingMessagesCountThreshold.class))); this.addQueueMaxMessageAgeAlarm = software.amazon.jsii.Kernel.get(this, "addQueueMaxMessageAgeAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.MaxMessageAgeThreshold.class))); this.addQueueMaxSizeAlarm = software.amazon.jsii.Kernel.get(this, "addQueueMaxSizeAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.MaxMessageCountThreshold.class))); this.addQueueMaxTimeToDrainMessagesAlarm = software.amazon.jsii.Kernel.get(this, "addQueueMaxTimeToDrainMessagesAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.MaxTimeToDrainThreshold.class))); this.addQueueMinIncomingMessagesAlarm = software.amazon.jsii.Kernel.get(this, "addQueueMinIncomingMessagesAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.MinIncomingMessagesCountThreshold.class))); this.addQueueMinSizeAlarm = software.amazon.jsii.Kernel.get(this, "addQueueMinSizeAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.MinMessageCountThreshold.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)); this.addDeadLetterQueueMaxIncomingMessagesAlarm = software.amazon.jsii.Kernel.get(this, "addDeadLetterQueueMaxIncomingMessagesAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.MaxIncomingMessagesCountThreshold.class))); this.addDeadLetterQueueMaxMessageAgeAlarm = software.amazon.jsii.Kernel.get(this, "addDeadLetterQueueMaxMessageAgeAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.MaxMessageAgeThreshold.class))); this.addDeadLetterQueueMaxSizeAlarm = software.amazon.jsii.Kernel.get(this, "addDeadLetterQueueMaxSizeAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.MaxMessageCountThreshold.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.deadLetterQueue = java.util.Objects.requireNonNull(builder.deadLetterQueue, "deadLetterQueue is required"); this.addDeadLetterQueueToSummaryDashboard = builder.addDeadLetterQueueToSummaryDashboard; this.queue = java.util.Objects.requireNonNull(builder.queue, "queue is required"); this.account = builder.account; this.region = builder.region; this.addQueueMaxIncomingMessagesAlarm = (java.util.Map)builder.addQueueMaxIncomingMessagesAlarm; this.addQueueMaxMessageAgeAlarm = (java.util.Map)builder.addQueueMaxMessageAgeAlarm; this.addQueueMaxSizeAlarm = (java.util.Map)builder.addQueueMaxSizeAlarm; this.addQueueMaxTimeToDrainMessagesAlarm = (java.util.Map)builder.addQueueMaxTimeToDrainMessagesAlarm; this.addQueueMinIncomingMessagesAlarm = (java.util.Map)builder.addQueueMinIncomingMessagesAlarm; this.addQueueMinSizeAlarm = (java.util.Map)builder.addQueueMinSizeAlarm; 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; this.addDeadLetterQueueMaxIncomingMessagesAlarm = (java.util.Map)builder.addDeadLetterQueueMaxIncomingMessagesAlarm; this.addDeadLetterQueueMaxMessageAgeAlarm = (java.util.Map)builder.addDeadLetterQueueMaxMessageAgeAlarm; this.addDeadLetterQueueMaxSizeAlarm = (java.util.Map)builder.addDeadLetterQueueMaxSizeAlarm; } @Override public final software.amazon.awscdk.services.sqs.IQueue getDeadLetterQueue() { return this.deadLetterQueue; } @Override public final java.lang.Boolean getAddDeadLetterQueueToSummaryDashboard() { return this.addDeadLetterQueueToSummaryDashboard; } @Override public final software.amazon.awscdk.services.sqs.IQueue getQueue() { return this.queue; } @Override public final java.lang.String getAccount() { return this.account; } @Override public final java.lang.String getRegion() { return this.region; } @Override public final java.util.Map getAddQueueMaxIncomingMessagesAlarm() { return this.addQueueMaxIncomingMessagesAlarm; } @Override public final java.util.Map getAddQueueMaxMessageAgeAlarm() { return this.addQueueMaxMessageAgeAlarm; } @Override public final java.util.Map getAddQueueMaxSizeAlarm() { return this.addQueueMaxSizeAlarm; } @Override public final java.util.Map getAddQueueMaxTimeToDrainMessagesAlarm() { return this.addQueueMaxTimeToDrainMessagesAlarm; } @Override public final java.util.Map getAddQueueMinIncomingMessagesAlarm() { return this.addQueueMinIncomingMessagesAlarm; } @Override public final java.util.Map getAddQueueMinSizeAlarm() { return this.addQueueMinSizeAlarm; } @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 public final java.util.Map getAddDeadLetterQueueMaxIncomingMessagesAlarm() { return this.addDeadLetterQueueMaxIncomingMessagesAlarm; } @Override public final java.util.Map getAddDeadLetterQueueMaxMessageAgeAlarm() { return this.addDeadLetterQueueMaxMessageAgeAlarm; } @Override public final java.util.Map getAddDeadLetterQueueMaxSizeAlarm() { return this.addDeadLetterQueueMaxSizeAlarm; } @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(); data.set("deadLetterQueue", om.valueToTree(this.getDeadLetterQueue())); if (this.getAddDeadLetterQueueToSummaryDashboard() != null) { data.set("addDeadLetterQueueToSummaryDashboard", om.valueToTree(this.getAddDeadLetterQueueToSummaryDashboard())); } data.set("queue", om.valueToTree(this.getQueue())); if (this.getAccount() != null) { data.set("account", om.valueToTree(this.getAccount())); } if (this.getRegion() != null) { data.set("region", om.valueToTree(this.getRegion())); } if (this.getAddQueueMaxIncomingMessagesAlarm() != null) { data.set("addQueueMaxIncomingMessagesAlarm", om.valueToTree(this.getAddQueueMaxIncomingMessagesAlarm())); } if (this.getAddQueueMaxMessageAgeAlarm() != null) { data.set("addQueueMaxMessageAgeAlarm", om.valueToTree(this.getAddQueueMaxMessageAgeAlarm())); } if (this.getAddQueueMaxSizeAlarm() != null) { data.set("addQueueMaxSizeAlarm", om.valueToTree(this.getAddQueueMaxSizeAlarm())); } if (this.getAddQueueMaxTimeToDrainMessagesAlarm() != null) { data.set("addQueueMaxTimeToDrainMessagesAlarm", om.valueToTree(this.getAddQueueMaxTimeToDrainMessagesAlarm())); } if (this.getAddQueueMinIncomingMessagesAlarm() != null) { data.set("addQueueMinIncomingMessagesAlarm", om.valueToTree(this.getAddQueueMinIncomingMessagesAlarm())); } if (this.getAddQueueMinSizeAlarm() != null) { data.set("addQueueMinSizeAlarm", om.valueToTree(this.getAddQueueMinSizeAlarm())); } 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())); } if (this.getAddDeadLetterQueueMaxIncomingMessagesAlarm() != null) { data.set("addDeadLetterQueueMaxIncomingMessagesAlarm", om.valueToTree(this.getAddDeadLetterQueueMaxIncomingMessagesAlarm())); } if (this.getAddDeadLetterQueueMaxMessageAgeAlarm() != null) { data.set("addDeadLetterQueueMaxMessageAgeAlarm", om.valueToTree(this.getAddDeadLetterQueueMaxMessageAgeAlarm())); } if (this.getAddDeadLetterQueueMaxSizeAlarm() != null) { data.set("addDeadLetterQueueMaxSizeAlarm", om.valueToTree(this.getAddDeadLetterQueueMaxSizeAlarm())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("cdk-monitoring-constructs.SqsQueueMonitoringWithDlqProps")); 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; SqsQueueMonitoringWithDlqProps.Jsii$Proxy that = (SqsQueueMonitoringWithDlqProps.Jsii$Proxy) o; if (!deadLetterQueue.equals(that.deadLetterQueue)) return false; if (this.addDeadLetterQueueToSummaryDashboard != null ? !this.addDeadLetterQueueToSummaryDashboard.equals(that.addDeadLetterQueueToSummaryDashboard) : that.addDeadLetterQueueToSummaryDashboard != null) return false; if (!queue.equals(that.queue)) return false; if (this.account != null ? !this.account.equals(that.account) : that.account != null) return false; if (this.region != null ? !this.region.equals(that.region) : that.region != null) return false; if (this.addQueueMaxIncomingMessagesAlarm != null ? !this.addQueueMaxIncomingMessagesAlarm.equals(that.addQueueMaxIncomingMessagesAlarm) : that.addQueueMaxIncomingMessagesAlarm != null) return false; if (this.addQueueMaxMessageAgeAlarm != null ? !this.addQueueMaxMessageAgeAlarm.equals(that.addQueueMaxMessageAgeAlarm) : that.addQueueMaxMessageAgeAlarm != null) return false; if (this.addQueueMaxSizeAlarm != null ? !this.addQueueMaxSizeAlarm.equals(that.addQueueMaxSizeAlarm) : that.addQueueMaxSizeAlarm != null) return false; if (this.addQueueMaxTimeToDrainMessagesAlarm != null ? !this.addQueueMaxTimeToDrainMessagesAlarm.equals(that.addQueueMaxTimeToDrainMessagesAlarm) : that.addQueueMaxTimeToDrainMessagesAlarm != null) return false; if (this.addQueueMinIncomingMessagesAlarm != null ? !this.addQueueMinIncomingMessagesAlarm.equals(that.addQueueMinIncomingMessagesAlarm) : that.addQueueMinIncomingMessagesAlarm != null) return false; if (this.addQueueMinSizeAlarm != null ? !this.addQueueMinSizeAlarm.equals(that.addQueueMinSizeAlarm) : that.addQueueMinSizeAlarm != 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; if (this.addToSummaryDashboard != null ? !this.addToSummaryDashboard.equals(that.addToSummaryDashboard) : that.addToSummaryDashboard != null) return false; if (this.addDeadLetterQueueMaxIncomingMessagesAlarm != null ? !this.addDeadLetterQueueMaxIncomingMessagesAlarm.equals(that.addDeadLetterQueueMaxIncomingMessagesAlarm) : that.addDeadLetterQueueMaxIncomingMessagesAlarm != null) return false; if (this.addDeadLetterQueueMaxMessageAgeAlarm != null ? !this.addDeadLetterQueueMaxMessageAgeAlarm.equals(that.addDeadLetterQueueMaxMessageAgeAlarm) : that.addDeadLetterQueueMaxMessageAgeAlarm != null) return false; return this.addDeadLetterQueueMaxSizeAlarm != null ? this.addDeadLetterQueueMaxSizeAlarm.equals(that.addDeadLetterQueueMaxSizeAlarm) : that.addDeadLetterQueueMaxSizeAlarm == null; } @Override public final int hashCode() { int result = this.deadLetterQueue.hashCode(); result = 31 * result + (this.addDeadLetterQueueToSummaryDashboard != null ? this.addDeadLetterQueueToSummaryDashboard.hashCode() : 0); result = 31 * result + (this.queue.hashCode()); result = 31 * result + (this.account != null ? this.account.hashCode() : 0); result = 31 * result + (this.region != null ? this.region.hashCode() : 0); result = 31 * result + (this.addQueueMaxIncomingMessagesAlarm != null ? this.addQueueMaxIncomingMessagesAlarm.hashCode() : 0); result = 31 * result + (this.addQueueMaxMessageAgeAlarm != null ? this.addQueueMaxMessageAgeAlarm.hashCode() : 0); result = 31 * result + (this.addQueueMaxSizeAlarm != null ? this.addQueueMaxSizeAlarm.hashCode() : 0); result = 31 * result + (this.addQueueMaxTimeToDrainMessagesAlarm != null ? this.addQueueMaxTimeToDrainMessagesAlarm.hashCode() : 0); result = 31 * result + (this.addQueueMinIncomingMessagesAlarm != null ? this.addQueueMinIncomingMessagesAlarm.hashCode() : 0); result = 31 * result + (this.addQueueMinSizeAlarm != null ? this.addQueueMinSizeAlarm.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); result = 31 * result + (this.addDeadLetterQueueMaxIncomingMessagesAlarm != null ? this.addDeadLetterQueueMaxIncomingMessagesAlarm.hashCode() : 0); result = 31 * result + (this.addDeadLetterQueueMaxMessageAgeAlarm != null ? this.addDeadLetterQueueMaxMessageAgeAlarm.hashCode() : 0); result = 31 * result + (this.addDeadLetterQueueMaxSizeAlarm != null ? this.addDeadLetterQueueMaxSizeAlarm.hashCode() : 0); return result; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy