7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/monitoring/CloudWatch_EXPORTS.h>
11#include <aws/monitoring/model/InsightRuleContributorDatapoint.h>
40 AWS_CLOUDWATCH_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
49 template <
typename KeysT = Aws::Vector<Aws::String>>
51 m_keysHasBeenSet =
true;
52 m_keys = std::forward<KeysT>(value);
54 template <
typename KeysT = Aws::Vector<Aws::String>>
56 SetKeys(std::forward<KeysT>(value));
59 template <
typename KeysT = Aws::String>
61 m_keysHasBeenSet =
true;
62 m_keys.emplace_back(std::forward<KeysT>(value));
74 m_approximateAggregateValueHasBeenSet =
true;
75 m_approximateAggregateValue = value;
90 template <
typename Datapo
intsT = Aws::Vector<InsightRuleContributorDatapo
int>>
92 m_datapointsHasBeenSet =
true;
93 m_datapoints = std::forward<DatapointsT>(value);
95 template <
typename Datapo
intsT = Aws::Vector<InsightRuleContributorDatapo
int>>
100 template <
typename Datapo
intsT = InsightRuleContributorDatapo
int>
102 m_datapointsHasBeenSet =
true;
103 m_datapoints.emplace_back(std::forward<DatapointsT>(value));
110 double m_approximateAggregateValue{0.0};
113 bool m_keysHasBeenSet =
false;
114 bool m_approximateAggregateValueHasBeenSet =
false;
115 bool m_datapointsHasBeenSet =
false;
AWS_CLOUDWATCH_API InsightRuleContributor & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
double GetApproximateAggregateValue() const
AWS_CLOUDWATCH_API InsightRuleContributor()=default
InsightRuleContributor & AddDatapoints(DatapointsT &&value)
bool DatapointsHasBeenSet() const
void SetApproximateAggregateValue(double value)
const Aws::Vector< InsightRuleContributorDatapoint > & GetDatapoints() const
InsightRuleContributor & AddKeys(KeysT &&value)
const Aws::Vector< Aws::String > & GetKeys() const
InsightRuleContributor & WithApproximateAggregateValue(double value)
InsightRuleContributor & WithKeys(KeysT &&value)
bool KeysHasBeenSet() const
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCH_API InsightRuleContributor(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetDatapoints(DatapointsT &&value)
InsightRuleContributor & WithDatapoints(DatapointsT &&value)
bool ApproximateAggregateValueHasBeenSet() const
void SetKeys(KeysT &&value)
std::vector< T, Aws::Allocator< T > > Vector