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

com.amazonaws.services.lookoutmetrics.model.DescribeAnomalyDetectorResult Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 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;

/**
 * 
 * @see AWS API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeAnomalyDetectorResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /**
     * 

* The ARN of the detector. *

*/ private String anomalyDetectorArn; /** *

* The name of the detector. *

*/ private String anomalyDetectorName; /** *

* A description of the detector. *

*/ private String anomalyDetectorDescription; /** *

* Contains information about the detector's configuration. *

*/ private AnomalyDetectorConfigSummary anomalyDetectorConfig; /** *

* 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 the detector. *

*/ private String status; /** *

* The reason that the detector failed. *

*/ private String failureReason; /** *

* The ARN of the KMS key to use to encrypt your data. *

*/ private String kmsKeyArn; /** *

* The process that caused the detector to fail. *

*/ private String failureType; /** *

* 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 DescribeAnomalyDetectorResult 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 DescribeAnomalyDetectorResult 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 DescribeAnomalyDetectorResult withAnomalyDetectorDescription(String anomalyDetectorDescription) { setAnomalyDetectorDescription(anomalyDetectorDescription); return this; } /** *

* Contains information about the detector's configuration. *

* * @param anomalyDetectorConfig * Contains information about the detector's configuration. */ public void setAnomalyDetectorConfig(AnomalyDetectorConfigSummary anomalyDetectorConfig) { this.anomalyDetectorConfig = anomalyDetectorConfig; } /** *

* Contains information about the detector's configuration. *

* * @return Contains information about the detector's configuration. */ public AnomalyDetectorConfigSummary getAnomalyDetectorConfig() { return this.anomalyDetectorConfig; } /** *

* Contains information about the detector's configuration. *

* * @param anomalyDetectorConfig * Contains information about the detector's configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAnomalyDetectorResult withAnomalyDetectorConfig(AnomalyDetectorConfigSummary anomalyDetectorConfig) { setAnomalyDetectorConfig(anomalyDetectorConfig); 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 DescribeAnomalyDetectorResult 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 DescribeAnomalyDetectorResult withLastModificationTime(java.util.Date lastModificationTime) { setLastModificationTime(lastModificationTime); return this; } /** *

* The status of the detector. *

* * @param status * The status of the detector. * @see AnomalyDetectorStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the detector. *

* * @return The status of the detector. * @see AnomalyDetectorStatus */ public String getStatus() { return this.status; } /** *

* The status of the detector. *

* * @param status * The status of the detector. * @return Returns a reference to this object so that method calls can be chained together. * @see AnomalyDetectorStatus */ public DescribeAnomalyDetectorResult withStatus(String status) { setStatus(status); return this; } /** *

* The status of the detector. *

* * @param status * The status of the detector. * @return Returns a reference to this object so that method calls can be chained together. * @see AnomalyDetectorStatus */ public DescribeAnomalyDetectorResult withStatus(AnomalyDetectorStatus status) { this.status = status.toString(); return this; } /** *

* The reason that the detector failed. *

* * @param failureReason * The reason that the detector failed. */ public void setFailureReason(String failureReason) { this.failureReason = failureReason; } /** *

* The reason that the detector failed. *

* * @return The reason that the detector failed. */ public String getFailureReason() { return this.failureReason; } /** *

* The reason that the detector failed. *

* * @param failureReason * The reason that the detector failed. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAnomalyDetectorResult withFailureReason(String failureReason) { setFailureReason(failureReason); return this; } /** *

* The ARN of the KMS key to use to encrypt your data. *

* * @param kmsKeyArn * The ARN of the KMS key to use to encrypt your data. */ public void setKmsKeyArn(String kmsKeyArn) { this.kmsKeyArn = kmsKeyArn; } /** *

* The ARN of the KMS key to use to encrypt your data. *

* * @return The ARN of the KMS key to use to encrypt your data. */ public String getKmsKeyArn() { return this.kmsKeyArn; } /** *

* The ARN of the KMS key to use to encrypt your data. *

* * @param kmsKeyArn * The ARN of the KMS key to use to encrypt your data. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAnomalyDetectorResult withKmsKeyArn(String kmsKeyArn) { setKmsKeyArn(kmsKeyArn); return this; } /** *

* The process that caused the detector to fail. *

* * @param failureType * The process that caused the detector to fail. * @see AnomalyDetectorFailureType */ public void setFailureType(String failureType) { this.failureType = failureType; } /** *

* The process that caused the detector to fail. *

* * @return The process that caused the detector to fail. * @see AnomalyDetectorFailureType */ public String getFailureType() { return this.failureType; } /** *

* The process that caused the detector to fail. *

* * @param failureType * The process that caused the detector to fail. * @return Returns a reference to this object so that method calls can be chained together. * @see AnomalyDetectorFailureType */ public DescribeAnomalyDetectorResult withFailureType(String failureType) { setFailureType(failureType); return this; } /** *

* The process that caused the detector to fail. *

* * @param failureType * The process that caused the detector to fail. * @return Returns a reference to this object so that method calls can be chained together. * @see AnomalyDetectorFailureType */ public DescribeAnomalyDetectorResult withFailureType(AnomalyDetectorFailureType failureType) { this.failureType = failureType.toString(); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAnomalyDetectorArn() != null) sb.append("AnomalyDetectorArn: ").append(getAnomalyDetectorArn()).append(","); if (getAnomalyDetectorName() != null) sb.append("AnomalyDetectorName: ").append(getAnomalyDetectorName()).append(","); if (getAnomalyDetectorDescription() != null) sb.append("AnomalyDetectorDescription: ").append(getAnomalyDetectorDescription()).append(","); if (getAnomalyDetectorConfig() != null) sb.append("AnomalyDetectorConfig: ").append(getAnomalyDetectorConfig()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getLastModificationTime() != null) sb.append("LastModificationTime: ").append(getLastModificationTime()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getFailureReason() != null) sb.append("FailureReason: ").append(getFailureReason()).append(","); if (getKmsKeyArn() != null) sb.append("KmsKeyArn: ").append(getKmsKeyArn()).append(","); if (getFailureType() != null) sb.append("FailureType: ").append(getFailureType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeAnomalyDetectorResult == false) return false; DescribeAnomalyDetectorResult other = (DescribeAnomalyDetectorResult) obj; if (other.getAnomalyDetectorArn() == null ^ this.getAnomalyDetectorArn() == null) return false; if (other.getAnomalyDetectorArn() != null && other.getAnomalyDetectorArn().equals(this.getAnomalyDetectorArn()) == false) return false; if (other.getAnomalyDetectorName() == null ^ this.getAnomalyDetectorName() == null) return false; if (other.getAnomalyDetectorName() != null && other.getAnomalyDetectorName().equals(this.getAnomalyDetectorName()) == false) return false; if (other.getAnomalyDetectorDescription() == null ^ this.getAnomalyDetectorDescription() == null) return false; if (other.getAnomalyDetectorDescription() != null && other.getAnomalyDetectorDescription().equals(this.getAnomalyDetectorDescription()) == false) return false; if (other.getAnomalyDetectorConfig() == null ^ this.getAnomalyDetectorConfig() == null) return false; if (other.getAnomalyDetectorConfig() != null && other.getAnomalyDetectorConfig().equals(this.getAnomalyDetectorConfig()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getLastModificationTime() == null ^ this.getLastModificationTime() == null) return false; if (other.getLastModificationTime() != null && other.getLastModificationTime().equals(this.getLastModificationTime()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getFailureReason() == null ^ this.getFailureReason() == null) return false; if (other.getFailureReason() != null && other.getFailureReason().equals(this.getFailureReason()) == false) return false; if (other.getKmsKeyArn() == null ^ this.getKmsKeyArn() == null) return false; if (other.getKmsKeyArn() != null && other.getKmsKeyArn().equals(this.getKmsKeyArn()) == false) return false; if (other.getFailureType() == null ^ this.getFailureType() == null) return false; if (other.getFailureType() != null && other.getFailureType().equals(this.getFailureType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAnomalyDetectorArn() == null) ? 0 : getAnomalyDetectorArn().hashCode()); hashCode = prime * hashCode + ((getAnomalyDetectorName() == null) ? 0 : getAnomalyDetectorName().hashCode()); hashCode = prime * hashCode + ((getAnomalyDetectorDescription() == null) ? 0 : getAnomalyDetectorDescription().hashCode()); hashCode = prime * hashCode + ((getAnomalyDetectorConfig() == null) ? 0 : getAnomalyDetectorConfig().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getLastModificationTime() == null) ? 0 : getLastModificationTime().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode()); hashCode = prime * hashCode + ((getKmsKeyArn() == null) ? 0 : getKmsKeyArn().hashCode()); hashCode = prime * hashCode + ((getFailureType() == null) ? 0 : getFailureType().hashCode()); return hashCode; } @Override public DescribeAnomalyDetectorResult clone() { try { return (DescribeAnomalyDetectorResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy