/* * 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.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateAnomalyDetectorRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the detector. *
*/ private String anomalyDetectorName; /** ** A description of the detector. *
*/ private String anomalyDetectorDescription; /** ** Contains information about the configuration of the anomaly detector. *
*/ private AnomalyDetectorConfig anomalyDetectorConfig; /** ** The ARN of the KMS key to use to encrypt your data. *
*/ private String kmsKeyArn; /** ** A list of tags to apply * to the anomaly detector. *
*/ private java.util.Map* 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 CreateAnomalyDetectorRequest 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 CreateAnomalyDetectorRequest withAnomalyDetectorDescription(String anomalyDetectorDescription) { setAnomalyDetectorDescription(anomalyDetectorDescription); return this; } /** ** Contains information about the configuration of the anomaly detector. *
* * @param anomalyDetectorConfig * Contains information about the configuration of the anomaly detector. */ public void setAnomalyDetectorConfig(AnomalyDetectorConfig anomalyDetectorConfig) { this.anomalyDetectorConfig = anomalyDetectorConfig; } /** ** Contains information about the configuration of the anomaly detector. *
* * @return Contains information about the configuration of the anomaly detector. */ public AnomalyDetectorConfig getAnomalyDetectorConfig() { return this.anomalyDetectorConfig; } /** ** Contains information about the configuration of the anomaly detector. *
* * @param anomalyDetectorConfig * Contains information about the configuration of the anomaly detector. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAnomalyDetectorRequest withAnomalyDetectorConfig(AnomalyDetectorConfig anomalyDetectorConfig) { setAnomalyDetectorConfig(anomalyDetectorConfig); 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 CreateAnomalyDetectorRequest withKmsKeyArn(String kmsKeyArn) { setKmsKeyArn(kmsKeyArn); return this; } /** ** A list of tags to apply * to the anomaly detector. *
* * @return A list of tags to * apply to the anomaly detector. */ public java.util.Map* A list of tags to apply * to the anomaly detector. *
* * @param tags * A list of tags to * apply to the anomaly detector. */ public void setTags(java.util.Map* A list of tags to apply * to the anomaly detector. *
* * @param tags * A list of tags to * apply to the anomaly detector. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAnomalyDetectorRequest withTags(java.util.Map