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

io.github.cdklabs.cdkmonitoringconstructs.ElastiCacheClusterMonitoringProps 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:51.941Z")
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdkmonitoringconstructs.$Module.class, fqn = "cdk-monitoring-constructs.ElastiCacheClusterMonitoringProps")
@software.amazon.jsii.Jsii.Proxy(ElastiCacheClusterMonitoringProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface ElastiCacheClusterMonitoringProps extends software.amazon.jsii.JsiiSerializable, io.github.cdklabs.cdkmonitoringconstructs.ElastiCacheClusterMetricFactoryProps, io.github.cdklabs.cdkmonitoringconstructs.ElastiCacheClusterMonitoringOptions {

    /**
     * (experimental) Account where the metrics exist.
     * 

* Default: The account configured by the construct holding the Monitoring construct *

* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override default @org.jetbrains.annotations.Nullable java.lang.String getAccount() { return null; } /** * (experimental) Region where the metrics exist. *

* Default: The region configured by the construct holding the Monitoring construct *

* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override default @org.jetbrains.annotations.Nullable java.lang.String getRegion() { return null; } /** * @return a {@link Builder} of {@link ElastiCacheClusterMonitoringProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) static Builder builder() { return new Builder(); } /** * A builder for {@link ElastiCacheClusterMonitoringProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder implements software.amazon.jsii.Builder { java.lang.String clusterId; java.lang.String account; java.lang.String region; io.github.cdklabs.cdkmonitoringconstructs.ElastiCacheClusterType clusterType; java.util.Map addCpuUsageAlarm; java.util.Map addMaxEvictedItemsCountAlarm; java.util.Map addMaxItemsCountAlarm; java.util.Map addMaxUsedSwapMemoryAlarm; java.util.Map addMinFreeableMemoryAlarm; java.util.Map addRedisEngineCpuUsageAlarm; 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 ElastiCacheClusterMonitoringProps#getClusterId} * @param clusterId Cluster to monitor. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder clusterId(java.lang.String clusterId) { this.clusterId = clusterId; return this; } /** * Sets the value of {@link ElastiCacheClusterMonitoringProps#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 ElastiCacheClusterMonitoringProps#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 ElastiCacheClusterMonitoringProps#getClusterType} * @param clusterType Cluster type (needed, since each type has their own specific metrics). This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder clusterType(io.github.cdklabs.cdkmonitoringconstructs.ElastiCacheClusterType clusterType) { this.clusterType = clusterType; return this; } /** * Sets the value of {@link ElastiCacheClusterMonitoringProps#getAddCpuUsageAlarm} * @param addCpuUsageAlarm Add CPU usage alarm (useful for all clusterTypes including Redis). * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @SuppressWarnings("unchecked") public Builder addCpuUsageAlarm(java.util.Map addCpuUsageAlarm) { this.addCpuUsageAlarm = (java.util.Map)addCpuUsageAlarm; return this; } /** * Sets the value of {@link ElastiCacheClusterMonitoringProps#getAddMaxEvictedItemsCountAlarm} * @param addMaxEvictedItemsCountAlarm Add alarm on number of evicted items. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @SuppressWarnings("unchecked") public Builder addMaxEvictedItemsCountAlarm(java.util.Map addMaxEvictedItemsCountAlarm) { this.addMaxEvictedItemsCountAlarm = (java.util.Map)addMaxEvictedItemsCountAlarm; return this; } /** * Sets the value of {@link ElastiCacheClusterMonitoringProps#getAddMaxItemsCountAlarm} * @param addMaxItemsCountAlarm Add alarm on total number of items. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @SuppressWarnings("unchecked") public Builder addMaxItemsCountAlarm(java.util.Map addMaxItemsCountAlarm) { this.addMaxItemsCountAlarm = (java.util.Map)addMaxItemsCountAlarm; return this; } /** * Sets the value of {@link ElastiCacheClusterMonitoringProps#getAddMaxUsedSwapMemoryAlarm} * @param addMaxUsedSwapMemoryAlarm Add alarm on amount of used swap memory. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @SuppressWarnings("unchecked") public Builder addMaxUsedSwapMemoryAlarm(java.util.Map addMaxUsedSwapMemoryAlarm) { this.addMaxUsedSwapMemoryAlarm = (java.util.Map)addMaxUsedSwapMemoryAlarm; return this; } /** * Sets the value of {@link ElastiCacheClusterMonitoringProps#getAddMinFreeableMemoryAlarm} * @param addMinFreeableMemoryAlarm Add alarm on amount of freeable memory. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @SuppressWarnings("unchecked") public Builder addMinFreeableMemoryAlarm(java.util.Map addMinFreeableMemoryAlarm) { this.addMinFreeableMemoryAlarm = (java.util.Map)addMinFreeableMemoryAlarm; return this; } /** * Sets the value of {@link ElastiCacheClusterMonitoringProps#getAddRedisEngineCpuUsageAlarm} * @param addRedisEngineCpuUsageAlarm Add Redis engine CPU usage alarm. * It is recommended to monitor CPU utilization with addCpuUsageAlarm * as well for hosts with two vCPUs or less. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @SuppressWarnings("unchecked") public Builder addRedisEngineCpuUsageAlarm(java.util.Map addRedisEngineCpuUsageAlarm) { this.addRedisEngineCpuUsageAlarm = (java.util.Map)addRedisEngineCpuUsageAlarm; return this; } /** * Sets the value of {@link ElastiCacheClusterMonitoringProps#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 ElastiCacheClusterMonitoringProps#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 ElastiCacheClusterMonitoringProps#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 ElastiCacheClusterMonitoringProps#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 ElastiCacheClusterMonitoringProps#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 ElastiCacheClusterMonitoringProps#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 ElastiCacheClusterMonitoringProps#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 ElastiCacheClusterMonitoringProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public ElastiCacheClusterMonitoringProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link ElastiCacheClusterMonitoringProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ElastiCacheClusterMonitoringProps { private final java.lang.String clusterId; private final java.lang.String account; private final java.lang.String region; private final io.github.cdklabs.cdkmonitoringconstructs.ElastiCacheClusterType clusterType; private final java.util.Map addCpuUsageAlarm; private final java.util.Map addMaxEvictedItemsCountAlarm; private final java.util.Map addMaxItemsCountAlarm; private final java.util.Map addMaxUsedSwapMemoryAlarm; private final java.util.Map addMinFreeableMemoryAlarm; private final java.util.Map addRedisEngineCpuUsageAlarm; 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.clusterId = software.amazon.jsii.Kernel.get(this, "clusterId", software.amazon.jsii.NativeType.forClass(java.lang.String.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.clusterType = software.amazon.jsii.Kernel.get(this, "clusterType", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.ElastiCacheClusterType.class)); this.addCpuUsageAlarm = software.amazon.jsii.Kernel.get(this, "addCpuUsageAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.UsageThreshold.class))); this.addMaxEvictedItemsCountAlarm = software.amazon.jsii.Kernel.get(this, "addMaxEvictedItemsCountAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.MaxItemsCountThreshold.class))); this.addMaxItemsCountAlarm = software.amazon.jsii.Kernel.get(this, "addMaxItemsCountAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.MaxItemsCountThreshold.class))); this.addMaxUsedSwapMemoryAlarm = software.amazon.jsii.Kernel.get(this, "addMaxUsedSwapMemoryAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.MaxUsedSwapMemoryThreshold.class))); this.addMinFreeableMemoryAlarm = software.amazon.jsii.Kernel.get(this, "addMinFreeableMemoryAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.MinFreeableMemoryThreshold.class))); this.addRedisEngineCpuUsageAlarm = software.amazon.jsii.Kernel.get(this, "addRedisEngineCpuUsageAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.UsageThreshold.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.clusterId = builder.clusterId; this.account = builder.account; this.region = builder.region; this.clusterType = java.util.Objects.requireNonNull(builder.clusterType, "clusterType is required"); this.addCpuUsageAlarm = (java.util.Map)builder.addCpuUsageAlarm; this.addMaxEvictedItemsCountAlarm = (java.util.Map)builder.addMaxEvictedItemsCountAlarm; this.addMaxItemsCountAlarm = (java.util.Map)builder.addMaxItemsCountAlarm; this.addMaxUsedSwapMemoryAlarm = (java.util.Map)builder.addMaxUsedSwapMemoryAlarm; this.addMinFreeableMemoryAlarm = (java.util.Map)builder.addMinFreeableMemoryAlarm; this.addRedisEngineCpuUsageAlarm = (java.util.Map)builder.addRedisEngineCpuUsageAlarm; 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.lang.String getClusterId() { return this.clusterId; } @Override public final java.lang.String getAccount() { return this.account; } @Override public final java.lang.String getRegion() { return this.region; } @Override public final io.github.cdklabs.cdkmonitoringconstructs.ElastiCacheClusterType getClusterType() { return this.clusterType; } @Override public final java.util.Map getAddCpuUsageAlarm() { return this.addCpuUsageAlarm; } @Override public final java.util.Map getAddMaxEvictedItemsCountAlarm() { return this.addMaxEvictedItemsCountAlarm; } @Override public final java.util.Map getAddMaxItemsCountAlarm() { return this.addMaxItemsCountAlarm; } @Override public final java.util.Map getAddMaxUsedSwapMemoryAlarm() { return this.addMaxUsedSwapMemoryAlarm; } @Override public final java.util.Map getAddMinFreeableMemoryAlarm() { return this.addMinFreeableMemoryAlarm; } @Override public final java.util.Map getAddRedisEngineCpuUsageAlarm() { return this.addRedisEngineCpuUsageAlarm; } @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.getClusterId() != null) { data.set("clusterId", om.valueToTree(this.getClusterId())); } if (this.getAccount() != null) { data.set("account", om.valueToTree(this.getAccount())); } if (this.getRegion() != null) { data.set("region", om.valueToTree(this.getRegion())); } data.set("clusterType", om.valueToTree(this.getClusterType())); if (this.getAddCpuUsageAlarm() != null) { data.set("addCpuUsageAlarm", om.valueToTree(this.getAddCpuUsageAlarm())); } if (this.getAddMaxEvictedItemsCountAlarm() != null) { data.set("addMaxEvictedItemsCountAlarm", om.valueToTree(this.getAddMaxEvictedItemsCountAlarm())); } if (this.getAddMaxItemsCountAlarm() != null) { data.set("addMaxItemsCountAlarm", om.valueToTree(this.getAddMaxItemsCountAlarm())); } if (this.getAddMaxUsedSwapMemoryAlarm() != null) { data.set("addMaxUsedSwapMemoryAlarm", om.valueToTree(this.getAddMaxUsedSwapMemoryAlarm())); } if (this.getAddMinFreeableMemoryAlarm() != null) { data.set("addMinFreeableMemoryAlarm", om.valueToTree(this.getAddMinFreeableMemoryAlarm())); } if (this.getAddRedisEngineCpuUsageAlarm() != null) { data.set("addRedisEngineCpuUsageAlarm", om.valueToTree(this.getAddRedisEngineCpuUsageAlarm())); } 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.ElastiCacheClusterMonitoringProps")); 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; ElastiCacheClusterMonitoringProps.Jsii$Proxy that = (ElastiCacheClusterMonitoringProps.Jsii$Proxy) o; if (this.clusterId != null ? !this.clusterId.equals(that.clusterId) : that.clusterId != null) 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 (!clusterType.equals(that.clusterType)) return false; if (this.addCpuUsageAlarm != null ? !this.addCpuUsageAlarm.equals(that.addCpuUsageAlarm) : that.addCpuUsageAlarm != null) return false; if (this.addMaxEvictedItemsCountAlarm != null ? !this.addMaxEvictedItemsCountAlarm.equals(that.addMaxEvictedItemsCountAlarm) : that.addMaxEvictedItemsCountAlarm != null) return false; if (this.addMaxItemsCountAlarm != null ? !this.addMaxItemsCountAlarm.equals(that.addMaxItemsCountAlarm) : that.addMaxItemsCountAlarm != null) return false; if (this.addMaxUsedSwapMemoryAlarm != null ? !this.addMaxUsedSwapMemoryAlarm.equals(that.addMaxUsedSwapMemoryAlarm) : that.addMaxUsedSwapMemoryAlarm != null) return false; if (this.addMinFreeableMemoryAlarm != null ? !this.addMinFreeableMemoryAlarm.equals(that.addMinFreeableMemoryAlarm) : that.addMinFreeableMemoryAlarm != null) return false; if (this.addRedisEngineCpuUsageAlarm != null ? !this.addRedisEngineCpuUsageAlarm.equals(that.addRedisEngineCpuUsageAlarm) : that.addRedisEngineCpuUsageAlarm != 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.clusterId != null ? this.clusterId.hashCode() : 0; result = 31 * result + (this.account != null ? this.account.hashCode() : 0); result = 31 * result + (this.region != null ? this.region.hashCode() : 0); result = 31 * result + (this.clusterType.hashCode()); result = 31 * result + (this.addCpuUsageAlarm != null ? this.addCpuUsageAlarm.hashCode() : 0); result = 31 * result + (this.addMaxEvictedItemsCountAlarm != null ? this.addMaxEvictedItemsCountAlarm.hashCode() : 0); result = 31 * result + (this.addMaxItemsCountAlarm != null ? this.addMaxItemsCountAlarm.hashCode() : 0); result = 31 * result + (this.addMaxUsedSwapMemoryAlarm != null ? this.addMaxUsedSwapMemoryAlarm.hashCode() : 0); result = 31 * result + (this.addMinFreeableMemoryAlarm != null ? this.addMinFreeableMemoryAlarm.hashCode() : 0); result = 31 * result + (this.addRedisEngineCpuUsageAlarm != null ? this.addRedisEngineCpuUsageAlarm.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