AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
InsightRuleContributor.h
1
6#pragma once
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>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace CloudWatch {
22namespace Model {
23
36 public:
37 AWS_CLOUDWATCH_API InsightRuleContributor() = default;
38 AWS_CLOUDWATCH_API InsightRuleContributor(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_CLOUDWATCH_API InsightRuleContributor& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
41
43
47 inline const Aws::Vector<Aws::String>& GetKeys() const { return m_keys; }
48 inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; }
49 template <typename KeysT = Aws::Vector<Aws::String>>
50 void SetKeys(KeysT&& value) {
51 m_keysHasBeenSet = true;
52 m_keys = std::forward<KeysT>(value);
53 }
54 template <typename KeysT = Aws::Vector<Aws::String>>
56 SetKeys(std::forward<KeysT>(value));
57 return *this;
58 }
59 template <typename KeysT = Aws::String>
61 m_keysHasBeenSet = true;
62 m_keys.emplace_back(std::forward<KeysT>(value));
63 return *this;
64 }
66
68
71 inline double GetApproximateAggregateValue() const { return m_approximateAggregateValue; }
72 inline bool ApproximateAggregateValueHasBeenSet() const { return m_approximateAggregateValueHasBeenSet; }
73 inline void SetApproximateAggregateValue(double value) {
74 m_approximateAggregateValueHasBeenSet = true;
75 m_approximateAggregateValue = value;
76 }
79 return *this;
80 }
82
84
88 inline const Aws::Vector<InsightRuleContributorDatapoint>& GetDatapoints() const { return m_datapoints; }
89 inline bool DatapointsHasBeenSet() const { return m_datapointsHasBeenSet; }
90 template <typename DatapointsT = Aws::Vector<InsightRuleContributorDatapoint>>
91 void SetDatapoints(DatapointsT&& value) {
92 m_datapointsHasBeenSet = true;
93 m_datapoints = std::forward<DatapointsT>(value);
94 }
95 template <typename DatapointsT = Aws::Vector<InsightRuleContributorDatapoint>>
96 InsightRuleContributor& WithDatapoints(DatapointsT&& value) {
97 SetDatapoints(std::forward<DatapointsT>(value));
98 return *this;
99 }
100 template <typename DatapointsT = InsightRuleContributorDatapoint>
101 InsightRuleContributor& AddDatapoints(DatapointsT&& value) {
102 m_datapointsHasBeenSet = true;
103 m_datapoints.emplace_back(std::forward<DatapointsT>(value));
104 return *this;
105 }
107 private:
109
110 double m_approximateAggregateValue{0.0};
111
113 bool m_keysHasBeenSet = false;
114 bool m_approximateAggregateValueHasBeenSet = false;
115 bool m_datapointsHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace CloudWatch
120} // namespace Aws
AWS_CLOUDWATCH_API InsightRuleContributor & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCH_API InsightRuleContributor()=default
InsightRuleContributor & AddDatapoints(DatapointsT &&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)
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCH_API InsightRuleContributor(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
InsightRuleContributor & WithDatapoints(DatapointsT &&value)
std::vector< T, Aws::Allocator< T > > Vector