/* * 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.devopsguru.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* An Amazon CloudWatch log group that contains log anomalies and is used to generate an insight. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AnomalousLogGroup implements Serializable, Cloneable, StructuredPojo { /** ** The name of the CloudWatch log group. *
*/ private String logGroupName; /** ** The time the anomalous log events began. The impact start time indicates the time of the first log anomaly event * that occurs. *
*/ private java.util.Date impactStartTime; /** ** The time the anomalous log events stopped. *
*/ private java.util.Date impactEndTime; /** ** The number of log lines that were scanned for anomalous log events. *
*/ private Integer numberOfLogLinesScanned; /** ** The log anomalies in the log group. Each log anomaly displayed represents a cluster of similar anomalous log * events. *
*/ private java.util.List* The name of the CloudWatch log group. *
* * @param logGroupName * The name of the CloudWatch log group. */ public void setLogGroupName(String logGroupName) { this.logGroupName = logGroupName; } /** ** The name of the CloudWatch log group. *
* * @return The name of the CloudWatch log group. */ public String getLogGroupName() { return this.logGroupName; } /** ** The name of the CloudWatch log group. *
* * @param logGroupName * The name of the CloudWatch log group. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalousLogGroup withLogGroupName(String logGroupName) { setLogGroupName(logGroupName); return this; } /** ** The time the anomalous log events began. The impact start time indicates the time of the first log anomaly event * that occurs. *
* * @param impactStartTime * The time the anomalous log events began. The impact start time indicates the time of the first log anomaly * event that occurs. */ public void setImpactStartTime(java.util.Date impactStartTime) { this.impactStartTime = impactStartTime; } /** ** The time the anomalous log events began. The impact start time indicates the time of the first log anomaly event * that occurs. *
* * @return The time the anomalous log events began. The impact start time indicates the time of the first log * anomaly event that occurs. */ public java.util.Date getImpactStartTime() { return this.impactStartTime; } /** ** The time the anomalous log events began. The impact start time indicates the time of the first log anomaly event * that occurs. *
* * @param impactStartTime * The time the anomalous log events began. The impact start time indicates the time of the first log anomaly * event that occurs. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalousLogGroup withImpactStartTime(java.util.Date impactStartTime) { setImpactStartTime(impactStartTime); return this; } /** ** The time the anomalous log events stopped. *
* * @param impactEndTime * The time the anomalous log events stopped. */ public void setImpactEndTime(java.util.Date impactEndTime) { this.impactEndTime = impactEndTime; } /** ** The time the anomalous log events stopped. *
* * @return The time the anomalous log events stopped. */ public java.util.Date getImpactEndTime() { return this.impactEndTime; } /** ** The time the anomalous log events stopped. *
* * @param impactEndTime * The time the anomalous log events stopped. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalousLogGroup withImpactEndTime(java.util.Date impactEndTime) { setImpactEndTime(impactEndTime); return this; } /** ** The number of log lines that were scanned for anomalous log events. *
* * @param numberOfLogLinesScanned * The number of log lines that were scanned for anomalous log events. */ public void setNumberOfLogLinesScanned(Integer numberOfLogLinesScanned) { this.numberOfLogLinesScanned = numberOfLogLinesScanned; } /** ** The number of log lines that were scanned for anomalous log events. *
* * @return The number of log lines that were scanned for anomalous log events. */ public Integer getNumberOfLogLinesScanned() { return this.numberOfLogLinesScanned; } /** ** The number of log lines that were scanned for anomalous log events. *
* * @param numberOfLogLinesScanned * The number of log lines that were scanned for anomalous log events. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalousLogGroup withNumberOfLogLinesScanned(Integer numberOfLogLinesScanned) { setNumberOfLogLinesScanned(numberOfLogLinesScanned); return this; } /** ** The log anomalies in the log group. Each log anomaly displayed represents a cluster of similar anomalous log * events. *
* * @return The log anomalies in the log group. Each log anomaly displayed represents a cluster of similar anomalous * log events. */ public java.util.List* The log anomalies in the log group. Each log anomaly displayed represents a cluster of similar anomalous log * events. *
* * @param logAnomalyShowcases * The log anomalies in the log group. Each log anomaly displayed represents a cluster of similar anomalous * log events. */ public void setLogAnomalyShowcases(java.util.Collection* The log anomalies in the log group. Each log anomaly displayed represents a cluster of similar anomalous log * events. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setLogAnomalyShowcases(java.util.Collection)} or {@link #withLogAnomalyShowcases(java.util.Collection)} * if you want to override the existing values. *
* * @param logAnomalyShowcases * The log anomalies in the log group. Each log anomaly displayed represents a cluster of similar anomalous * log events. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalousLogGroup withLogAnomalyShowcases(LogAnomalyShowcase... logAnomalyShowcases) { if (this.logAnomalyShowcases == null) { setLogAnomalyShowcases(new java.util.ArrayList* The log anomalies in the log group. Each log anomaly displayed represents a cluster of similar anomalous log * events. *
* * @param logAnomalyShowcases * The log anomalies in the log group. Each log anomaly displayed represents a cluster of similar anomalous * log events. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalousLogGroup withLogAnomalyShowcases(java.util.Collection