/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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
* Also:
AWS
* API Reference
One of the log entry field keywords that is used to define contributors for * this rule.
*/ inline const Aws::VectorOne of the log entry field keywords that is used to define contributors for * this rule.
*/ inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; } /** *One of the log entry field keywords that is used to define contributors for * this rule.
*/ inline void SetKeys(const Aws::VectorOne of the log entry field keywords that is used to define contributors for * this rule.
*/ inline void SetKeys(Aws::VectorOne of the log entry field keywords that is used to define contributors for * this rule.
*/ inline InsightRuleContributor& WithKeys(const Aws::VectorOne of the log entry field keywords that is used to define contributors for * this rule.
*/ inline InsightRuleContributor& WithKeys(Aws::VectorOne of the log entry field keywords that is used to define contributors for * this rule.
*/ inline InsightRuleContributor& AddKeys(const Aws::String& value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; } /** *One of the log entry field keywords that is used to define contributors for * this rule.
*/ inline InsightRuleContributor& AddKeys(Aws::String&& value) { m_keysHasBeenSet = true; m_keys.push_back(std::move(value)); return *this; } /** *One of the log entry field keywords that is used to define contributors for * this rule.
*/ inline InsightRuleContributor& AddKeys(const char* value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; } /** *An approximation of the aggregate value that comes from this contributor.
*/ inline double GetApproximateAggregateValue() const{ return m_approximateAggregateValue; } /** *An approximation of the aggregate value that comes from this contributor.
*/ inline bool ApproximateAggregateValueHasBeenSet() const { return m_approximateAggregateValueHasBeenSet; } /** *An approximation of the aggregate value that comes from this contributor.
*/ inline void SetApproximateAggregateValue(double value) { m_approximateAggregateValueHasBeenSet = true; m_approximateAggregateValue = value; } /** *An approximation of the aggregate value that comes from this contributor.
*/ inline InsightRuleContributor& WithApproximateAggregateValue(double value) { SetApproximateAggregateValue(value); 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.
*/ inline const Aws::VectorAn array of the data points where this contributor is present. Only the data * points when this contributor appeared are included in the array.
*/ inline bool DatapointsHasBeenSet() const { return m_datapointsHasBeenSet; } /** *An array of the data points where this contributor is present. Only the data * points when this contributor appeared are included in the array.
*/ inline void SetDatapoints(const Aws::VectorAn array of the data points where this contributor is present. Only the data * points when this contributor appeared are included in the array.
*/ inline void SetDatapoints(Aws::VectorAn array of the data points where this contributor is present. Only the data * points when this contributor appeared are included in the array.
*/ inline InsightRuleContributor& WithDatapoints(const Aws::VectorAn array of the data points where this contributor is present. Only the data * points when this contributor appeared are included in the array.
*/ inline InsightRuleContributor& WithDatapoints(Aws::VectorAn array of the data points where this contributor is present. Only the data * points when this contributor appeared are included in the array.
*/ inline InsightRuleContributor& AddDatapoints(const InsightRuleContributorDatapoint& value) { m_datapointsHasBeenSet = true; m_datapoints.push_back(value); 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.
*/ inline InsightRuleContributor& AddDatapoints(InsightRuleContributorDatapoint&& value) { m_datapointsHasBeenSet = true; m_datapoints.push_back(std::move(value)); return *this; } private: Aws::Vector