/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.lookoutmetrics.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains information about an an anomaly detector. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AnomalyDetectorSummary implements Serializable, Cloneable, StructuredPojo { /** ** The ARN of the detector. *
*/ private String anomalyDetectorArn; /** ** The name of the detector. *
*/ private String anomalyDetectorName; /** ** A description of the detector. *
*/ private String anomalyDetectorDescription; /** ** The time at which the detector was created. *
*/ private java.util.Date creationTime; /** ** The time at which the detector was last modified. *
*/ private java.util.Date lastModificationTime; /** ** The status of detector. *
*/ private String status; /** ** The detector's tags. *
*/ private java.util.Map* The ARN of the detector. *
* * @param anomalyDetectorArn * The ARN of the detector. */ public void setAnomalyDetectorArn(String anomalyDetectorArn) { this.anomalyDetectorArn = anomalyDetectorArn; } /** ** The ARN of the detector. *
* * @return The ARN of the detector. */ public String getAnomalyDetectorArn() { return this.anomalyDetectorArn; } /** ** The ARN of the detector. *
* * @param anomalyDetectorArn * The ARN of the detector. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalyDetectorSummary withAnomalyDetectorArn(String anomalyDetectorArn) { setAnomalyDetectorArn(anomalyDetectorArn); return this; } /** ** The name of the detector. *
* * @param anomalyDetectorName * The name of the detector. */ public void setAnomalyDetectorName(String anomalyDetectorName) { this.anomalyDetectorName = anomalyDetectorName; } /** ** The name of the detector. *
* * @return The name of the detector. */ public String getAnomalyDetectorName() { return this.anomalyDetectorName; } /** ** The name of the detector. *
* * @param anomalyDetectorName * The name of the detector. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalyDetectorSummary withAnomalyDetectorName(String anomalyDetectorName) { setAnomalyDetectorName(anomalyDetectorName); return this; } /** ** A description of the detector. *
* * @param anomalyDetectorDescription * A description of the detector. */ public void setAnomalyDetectorDescription(String anomalyDetectorDescription) { this.anomalyDetectorDescription = anomalyDetectorDescription; } /** ** A description of the detector. *
* * @return A description of the detector. */ public String getAnomalyDetectorDescription() { return this.anomalyDetectorDescription; } /** ** A description of the detector. *
* * @param anomalyDetectorDescription * A description of the detector. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalyDetectorSummary withAnomalyDetectorDescription(String anomalyDetectorDescription) { setAnomalyDetectorDescription(anomalyDetectorDescription); return this; } /** ** The time at which the detector was created. *
* * @param creationTime * The time at which the detector was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** The time at which the detector was created. *
* * @return The time at which the detector was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** The time at which the detector was created. *
* * @param creationTime * The time at which the detector was created. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalyDetectorSummary withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** The time at which the detector was last modified. *
* * @param lastModificationTime * The time at which the detector was last modified. */ public void setLastModificationTime(java.util.Date lastModificationTime) { this.lastModificationTime = lastModificationTime; } /** ** The time at which the detector was last modified. *
* * @return The time at which the detector was last modified. */ public java.util.Date getLastModificationTime() { return this.lastModificationTime; } /** ** The time at which the detector was last modified. *
* * @param lastModificationTime * The time at which the detector was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalyDetectorSummary withLastModificationTime(java.util.Date lastModificationTime) { setLastModificationTime(lastModificationTime); return this; } /** ** The status of detector. *
* * @param status * The status of detector. * @see AnomalyDetectorStatus */ public void setStatus(String status) { this.status = status; } /** ** The status of detector. *
* * @return The status of detector. * @see AnomalyDetectorStatus */ public String getStatus() { return this.status; } /** ** The status of detector. *
* * @param status * The status of detector. * @return Returns a reference to this object so that method calls can be chained together. * @see AnomalyDetectorStatus */ public AnomalyDetectorSummary withStatus(String status) { setStatus(status); return this; } /** ** The status of detector. *
* * @param status * The status of detector. * @return Returns a reference to this object so that method calls can be chained together. * @see AnomalyDetectorStatus */ public AnomalyDetectorSummary withStatus(AnomalyDetectorStatus status) { this.status = status.toString(); return this; } /** ** The detector's tags. *
* * @return The detector's tags. */ public java.util.Map* The detector's tags. *
* * @param tags * The detector's tags. */ public void setTags(java.util.Map* The detector's tags. *
* * @param tags * The detector's tags. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalyDetectorSummary withTags(java.util.Map