/* * 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.cloudwatch.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* One of the unique contributors found by a Contributor Insights rule. If the rule contains multiple keys, then a * unique contributor is a unique combination of values from all the keys in the rule. *
** If the rule contains a single key, then each unique contributor is each unique value for this key. *
** For more information, see GetInsightRuleReport. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class InsightRuleContributor implements Serializable, Cloneable { /** ** One of the log entry field keywords that is used to define contributors for this rule. *
*/ private com.amazonaws.internal.SdkInternalList* An approximation of the aggregate value that comes from this contributor. *
*/ private Double approximateAggregateValue; /** ** An array of the data points where this contributor is present. Only the data points when this contributor * appeared are included in the array. *
*/ private com.amazonaws.internal.SdkInternalList* One of the log entry field keywords that is used to define contributors for this rule. *
* * @return One of the log entry field keywords that is used to define contributors for this rule. */ public java.util.List* One of the log entry field keywords that is used to define contributors for this rule. *
* * @param keys * One of the log entry field keywords that is used to define contributors for this rule. */ public void setKeys(java.util.Collection* One of the log entry field keywords that is used to define contributors for this rule. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setKeys(java.util.Collection)} or {@link #withKeys(java.util.Collection)} if you want to override the * existing values. *
* * @param keys * One of the log entry field keywords that is used to define contributors for this rule. * @return Returns a reference to this object so that method calls can be chained together. */ public InsightRuleContributor withKeys(String... keys) { if (this.keys == null) { setKeys(new com.amazonaws.internal.SdkInternalList* One of the log entry field keywords that is used to define contributors for this rule. *
* * @param keys * One of the log entry field keywords that is used to define contributors for this rule. * @return Returns a reference to this object so that method calls can be chained together. */ public InsightRuleContributor withKeys(java.util.Collection* An approximation of the aggregate value that comes from this contributor. *
* * @param approximateAggregateValue * An approximation of the aggregate value that comes from this contributor. */ public void setApproximateAggregateValue(Double approximateAggregateValue) { this.approximateAggregateValue = approximateAggregateValue; } /** ** An approximation of the aggregate value that comes from this contributor. *
* * @return An approximation of the aggregate value that comes from this contributor. */ public Double getApproximateAggregateValue() { return this.approximateAggregateValue; } /** ** An approximation of the aggregate value that comes from this contributor. *
* * @param approximateAggregateValue * An approximation of the aggregate value that comes from this contributor. * @return Returns a reference to this object so that method calls can be chained together. */ public InsightRuleContributor withApproximateAggregateValue(Double approximateAggregateValue) { setApproximateAggregateValue(approximateAggregateValue); return this; } /** ** An array of the data points where this contributor is present. Only the data points when this contributor * appeared are included in the array. *
* * @return An array of the data points where this contributor is present. Only the data points when this contributor * appeared are included in the array. */ public java.util.List* An array of the data points where this contributor is present. Only the data points when this contributor * appeared are included in the array. *
* * @param datapoints * An array of the data points where this contributor is present. Only the data points when this contributor * appeared are included in the array. */ public void setDatapoints(java.util.Collection* An array of the data points where this contributor is present. Only the data points when this contributor * appeared are included in the array. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDatapoints(java.util.Collection)} or {@link #withDatapoints(java.util.Collection)} if you want to * override the existing values. *
* * @param datapoints * An array of the data points where this contributor is present. Only the data points when this contributor * appeared are included in the array. * @return Returns a reference to this object so that method calls can be chained together. */ public InsightRuleContributor withDatapoints(InsightRuleContributorDatapoint... datapoints) { if (this.datapoints == null) { setDatapoints(new com.amazonaws.internal.SdkInternalList* An array of the data points where this contributor is present. Only the data points when this contributor * appeared are included in the array. *
* * @param datapoints * An array of the data points where this contributor is present. Only the data points when this contributor * appeared are included in the array. * @return Returns a reference to this object so that method calls can be chained together. */ public InsightRuleContributor withDatapoints(java.util.Collection