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

software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector Maven / Gradle / Ivy

package software.amazon.awscdk.services.cloudwatch;

/**
 * A CloudFormation `AWS::CloudWatch::AnomalyDetector`.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.30.0 (build adae23f)", date = "2021-06-17T00:23:00.247Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.cloudwatch.$Module.class, fqn = "@aws-cdk/aws-cloudwatch.CfnAnomalyDetector")
public class CfnAnomalyDetector extends software.amazon.awscdk.core.CfnResource implements software.amazon.awscdk.core.IInspectable {

    protected CfnAnomalyDetector(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected CfnAnomalyDetector(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    static {
        CFN_RESOURCE_TYPE_NAME = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.class, "CFN_RESOURCE_TYPE_NAME", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
    }

    /**
     * Create a new `AWS::CloudWatch::AnomalyDetector`.
     * 

* @param scope - scope in which this resource is defined. This parameter is required. * @param id - scoped id of the resource. This parameter is required. * @param props - resource properties. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public CfnAnomalyDetector(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.core.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetectorProps props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") }); } /** * Examines the CloudFormation resource and discloses attributes. *

* @param inspector - tree inspector to collect and process attributes. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public void inspect(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.core.TreeInspector inspector) { software.amazon.jsii.Kernel.call(this, "inspect", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(inspector, "inspector is required") }); } /** * @param props This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override protected @org.jetbrains.annotations.NotNull java.util.Map renderProperties(final @org.jetbrains.annotations.NotNull java.util.Map props) { return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.call(this, "renderProperties", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)), new Object[] { java.util.Objects.requireNonNull(props, "props is required") })); } /** * The CloudFormation resource type name for this resource class. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public final static java.lang.String CFN_RESOURCE_TYPE_NAME; /** */ @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) protected @org.jetbrains.annotations.NotNull java.util.Map getCfnProperties() { return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.get(this, "cfnProperties", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); } /** * `AWS::CloudWatch::AnomalyDetector.MetricName`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getMetricName() { return software.amazon.jsii.Kernel.get(this, "metricName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * `AWS::CloudWatch::AnomalyDetector.MetricName`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setMetricName(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "metricName", java.util.Objects.requireNonNull(value, "metricName is required")); } /** * `AWS::CloudWatch::AnomalyDetector.Namespace`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getNamespace() { return software.amazon.jsii.Kernel.get(this, "namespace", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * `AWS::CloudWatch::AnomalyDetector.Namespace`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setNamespace(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "namespace", java.util.Objects.requireNonNull(value, "namespace is required")); } /** * `AWS::CloudWatch::AnomalyDetector.Stat`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getStat() { return software.amazon.jsii.Kernel.get(this, "stat", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * `AWS::CloudWatch::AnomalyDetector.Stat`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setStat(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "stat", java.util.Objects.requireNonNull(value, "stat is required")); } /** * `AWS::CloudWatch::AnomalyDetector.Configuration`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.Object getConfiguration() { return software.amazon.jsii.Kernel.get(this, "configuration", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** * `AWS::CloudWatch::AnomalyDetector.Configuration`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setConfiguration(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "configuration", value); } /** * `AWS::CloudWatch::AnomalyDetector.Configuration`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setConfiguration(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.ConfigurationProperty value) { software.amazon.jsii.Kernel.set(this, "configuration", value); } /** * `AWS::CloudWatch::AnomalyDetector.Dimensions`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.Object getDimensions() { return software.amazon.jsii.Kernel.get(this, "dimensions", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** * `AWS::CloudWatch::AnomalyDetector.Dimensions`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setDimensions(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "dimensions", value); } /** * `AWS::CloudWatch::AnomalyDetector.Dimensions`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setDimensions(final @org.jetbrains.annotations.Nullable java.util.List value) { software.amazon.jsii.Kernel.set(this, "dimensions", value); } /** */ @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.cloudwatch.$Module.class, fqn = "@aws-cdk/aws-cloudwatch.CfnAnomalyDetector.ConfigurationProperty") @software.amazon.jsii.Jsii.Proxy(ConfigurationProperty.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static interface ConfigurationProperty extends software.amazon.jsii.JsiiSerializable { /** * `CfnAnomalyDetector.ConfigurationProperty.ExcludedTimeRanges`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getExcludedTimeRanges() { return null; } /** * `CfnAnomalyDetector.ConfigurationProperty.MetricTimeZone`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getMetricTimeZone() { return null; } /** * @return a {@link Builder} of {@link ConfigurationProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link ConfigurationProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { private java.lang.Object excludedTimeRanges; private java.lang.String metricTimeZone; /** * Sets the value of {@link ConfigurationProperty#getExcludedTimeRanges} * @param excludedTimeRanges `CfnAnomalyDetector.ConfigurationProperty.ExcludedTimeRanges`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder excludedTimeRanges(software.amazon.awscdk.core.IResolvable excludedTimeRanges) { this.excludedTimeRanges = excludedTimeRanges; return this; } /** * Sets the value of {@link ConfigurationProperty#getExcludedTimeRanges} * @param excludedTimeRanges `CfnAnomalyDetector.ConfigurationProperty.ExcludedTimeRanges`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder excludedTimeRanges(java.util.List excludedTimeRanges) { this.excludedTimeRanges = excludedTimeRanges; return this; } /** * Sets the value of {@link ConfigurationProperty#getMetricTimeZone} * @param metricTimeZone `CfnAnomalyDetector.ConfigurationProperty.MetricTimeZone`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder metricTimeZone(java.lang.String metricTimeZone) { this.metricTimeZone = metricTimeZone; return this; } /** * Builds the configured instance. * @return a new instance of {@link ConfigurationProperty} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public ConfigurationProperty build() { return new Jsii$Proxy(excludedTimeRanges, metricTimeZone); } } /** * An implementation for {@link ConfigurationProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ConfigurationProperty { private final java.lang.Object excludedTimeRanges; private final java.lang.String metricTimeZone; /** * 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.excludedTimeRanges = software.amazon.jsii.Kernel.get(this, "excludedTimeRanges", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.metricTimeZone = software.amazon.jsii.Kernel.get(this, "metricTimeZone", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy(final java.lang.Object excludedTimeRanges, final java.lang.String metricTimeZone) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.excludedTimeRanges = excludedTimeRanges; this.metricTimeZone = metricTimeZone; } @Override public final java.lang.Object getExcludedTimeRanges() { return this.excludedTimeRanges; } @Override public final java.lang.String getMetricTimeZone() { return this.metricTimeZone; } @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.getExcludedTimeRanges() != null) { data.set("excludedTimeRanges", om.valueToTree(this.getExcludedTimeRanges())); } if (this.getMetricTimeZone() != null) { data.set("metricTimeZone", om.valueToTree(this.getMetricTimeZone())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@aws-cdk/aws-cloudwatch.CfnAnomalyDetector.ConfigurationProperty")); 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; ConfigurationProperty.Jsii$Proxy that = (ConfigurationProperty.Jsii$Proxy) o; if (this.excludedTimeRanges != null ? !this.excludedTimeRanges.equals(that.excludedTimeRanges) : that.excludedTimeRanges != null) return false; return this.metricTimeZone != null ? this.metricTimeZone.equals(that.metricTimeZone) : that.metricTimeZone == null; } @Override public final int hashCode() { int result = this.excludedTimeRanges != null ? this.excludedTimeRanges.hashCode() : 0; result = 31 * result + (this.metricTimeZone != null ? this.metricTimeZone.hashCode() : 0); return result; } } } /** */ @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.cloudwatch.$Module.class, fqn = "@aws-cdk/aws-cloudwatch.CfnAnomalyDetector.DimensionProperty") @software.amazon.jsii.Jsii.Proxy(DimensionProperty.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static interface DimensionProperty extends software.amazon.jsii.JsiiSerializable { /** * `CfnAnomalyDetector.DimensionProperty.Name`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.String getName(); /** * `CfnAnomalyDetector.DimensionProperty.Value`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.String getValue(); /** * @return a {@link Builder} of {@link DimensionProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link DimensionProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { private java.lang.String name; private java.lang.String value; /** * Sets the value of {@link DimensionProperty#getName} * @param name `CfnAnomalyDetector.DimensionProperty.Name`. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder name(java.lang.String name) { this.name = name; return this; } /** * Sets the value of {@link DimensionProperty#getValue} * @param value `CfnAnomalyDetector.DimensionProperty.Value`. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder value(java.lang.String value) { this.value = value; return this; } /** * Builds the configured instance. * @return a new instance of {@link DimensionProperty} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public DimensionProperty build() { return new Jsii$Proxy(name, value); } } /** * An implementation for {@link DimensionProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DimensionProperty { private final java.lang.String name; private final java.lang.String value; /** * 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.name = software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.value = software.amazon.jsii.Kernel.get(this, "value", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy(final java.lang.String name, final java.lang.String value) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.name = java.util.Objects.requireNonNull(name, "name is required"); this.value = java.util.Objects.requireNonNull(value, "value is required"); } @Override public final java.lang.String getName() { return this.name; } @Override public final java.lang.String getValue() { return this.value; } @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("name", om.valueToTree(this.getName())); data.set("value", om.valueToTree(this.getValue())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@aws-cdk/aws-cloudwatch.CfnAnomalyDetector.DimensionProperty")); 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; DimensionProperty.Jsii$Proxy that = (DimensionProperty.Jsii$Proxy) o; if (!name.equals(that.name)) return false; return this.value.equals(that.value); } @Override public final int hashCode() { int result = this.name.hashCode(); result = 31 * result + (this.value.hashCode()); return result; } } } /** */ @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.cloudwatch.$Module.class, fqn = "@aws-cdk/aws-cloudwatch.CfnAnomalyDetector.RangeProperty") @software.amazon.jsii.Jsii.Proxy(RangeProperty.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static interface RangeProperty extends software.amazon.jsii.JsiiSerializable { /** * `CfnAnomalyDetector.RangeProperty.EndTime`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.String getEndTime(); /** * `CfnAnomalyDetector.RangeProperty.StartTime`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.String getStartTime(); /** * @return a {@link Builder} of {@link RangeProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link RangeProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { private java.lang.String endTime; private java.lang.String startTime; /** * Sets the value of {@link RangeProperty#getEndTime} * @param endTime `CfnAnomalyDetector.RangeProperty.EndTime`. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder endTime(java.lang.String endTime) { this.endTime = endTime; return this; } /** * Sets the value of {@link RangeProperty#getStartTime} * @param startTime `CfnAnomalyDetector.RangeProperty.StartTime`. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder startTime(java.lang.String startTime) { this.startTime = startTime; return this; } /** * Builds the configured instance. * @return a new instance of {@link RangeProperty} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public RangeProperty build() { return new Jsii$Proxy(endTime, startTime); } } /** * An implementation for {@link RangeProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RangeProperty { private final java.lang.String endTime; private final java.lang.String startTime; /** * 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.endTime = software.amazon.jsii.Kernel.get(this, "endTime", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.startTime = software.amazon.jsii.Kernel.get(this, "startTime", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy(final java.lang.String endTime, final java.lang.String startTime) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.endTime = java.util.Objects.requireNonNull(endTime, "endTime is required"); this.startTime = java.util.Objects.requireNonNull(startTime, "startTime is required"); } @Override public final java.lang.String getEndTime() { return this.endTime; } @Override public final java.lang.String getStartTime() { return this.startTime; } @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("endTime", om.valueToTree(this.getEndTime())); data.set("startTime", om.valueToTree(this.getStartTime())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@aws-cdk/aws-cloudwatch.CfnAnomalyDetector.RangeProperty")); 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; RangeProperty.Jsii$Proxy that = (RangeProperty.Jsii$Proxy) o; if (!endTime.equals(that.endTime)) return false; return this.startTime.equals(that.startTime); } @Override public final int hashCode() { int result = this.endTime.hashCode(); result = 31 * result + (this.startTime.hashCode()); return result; } } } /** * A fluent builder for {@link software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. * @param scope - scope in which this resource is defined. This parameter is required. * @param id - scoped id of the resource. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static Builder create(final software.amazon.awscdk.core.Construct scope, final java.lang.String id) { return new Builder(scope, id); } private final software.amazon.awscdk.core.Construct scope; private final java.lang.String id; private final software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetectorProps.Builder props; private Builder(final software.amazon.awscdk.core.Construct scope, final java.lang.String id) { this.scope = scope; this.id = id; this.props = new software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetectorProps.Builder(); } /** * `AWS::CloudWatch::AnomalyDetector.MetricName`. *

* @return {@code this} * @param metricName `AWS::CloudWatch::AnomalyDetector.MetricName`. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder metricName(final java.lang.String metricName) { this.props.metricName(metricName); return this; } /** * `AWS::CloudWatch::AnomalyDetector.Namespace`. *

* @return {@code this} * @param namespace `AWS::CloudWatch::AnomalyDetector.Namespace`. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder namespace(final java.lang.String namespace) { this.props.namespace(namespace); return this; } /** * `AWS::CloudWatch::AnomalyDetector.Stat`. *

* @return {@code this} * @param stat `AWS::CloudWatch::AnomalyDetector.Stat`. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder stat(final java.lang.String stat) { this.props.stat(stat); return this; } /** * `AWS::CloudWatch::AnomalyDetector.Configuration`. *

* @return {@code this} * @param configuration `AWS::CloudWatch::AnomalyDetector.Configuration`. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder configuration(final software.amazon.awscdk.core.IResolvable configuration) { this.props.configuration(configuration); return this; } /** * `AWS::CloudWatch::AnomalyDetector.Configuration`. *

* @return {@code this} * @param configuration `AWS::CloudWatch::AnomalyDetector.Configuration`. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder configuration(final software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.ConfigurationProperty configuration) { this.props.configuration(configuration); return this; } /** * `AWS::CloudWatch::AnomalyDetector.Dimensions`. *

* @return {@code this} * @param dimensions `AWS::CloudWatch::AnomalyDetector.Dimensions`. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder dimensions(final software.amazon.awscdk.core.IResolvable dimensions) { this.props.dimensions(dimensions); return this; } /** * `AWS::CloudWatch::AnomalyDetector.Dimensions`. *

* @return {@code this} * @param dimensions `AWS::CloudWatch::AnomalyDetector.Dimensions`. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder dimensions(final java.util.List dimensions) { this.props.dimensions(dimensions); return this; } /** * @returns a newly built instance of {@link software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector build() { return new software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector( this.scope, this.id, this.props.build() ); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy