AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
InsightRuleContributor.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/monitoring/model/InsightRuleContributorDatapoint.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace CloudWatch
24{
25namespace Model
26{
27
40 {
41 public:
42 AWS_CLOUDWATCH_API InsightRuleContributor() = default;
43 AWS_CLOUDWATCH_API InsightRuleContributor(const Aws::Utils::Xml::XmlNode& xmlNode);
44 AWS_CLOUDWATCH_API InsightRuleContributor& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45
46 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
49
51
55 inline const Aws::Vector<Aws::String>& GetKeys() const { return m_keys; }
56 inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; }
57 template<typename KeysT = Aws::Vector<Aws::String>>
58 void SetKeys(KeysT&& value) { m_keysHasBeenSet = true; m_keys = std::forward<KeysT>(value); }
59 template<typename KeysT = Aws::Vector<Aws::String>>
60 InsightRuleContributor& WithKeys(KeysT&& value) { SetKeys(std::forward<KeysT>(value)); return *this;}
61 template<typename KeysT = Aws::String>
62 InsightRuleContributor& AddKeys(KeysT&& value) { m_keysHasBeenSet = true; m_keys.emplace_back(std::forward<KeysT>(value)); return *this; }
64
66
69 inline double GetApproximateAggregateValue() const { return m_approximateAggregateValue; }
70 inline bool ApproximateAggregateValueHasBeenSet() const { return m_approximateAggregateValueHasBeenSet; }
71 inline void SetApproximateAggregateValue(double value) { m_approximateAggregateValueHasBeenSet = true; m_approximateAggregateValue = value; }
74
76
80 inline const Aws::Vector<InsightRuleContributorDatapoint>& GetDatapoints() const { return m_datapoints; }
81 inline bool DatapointsHasBeenSet() const { return m_datapointsHasBeenSet; }
82 template<typename DatapointsT = Aws::Vector<InsightRuleContributorDatapoint>>
83 void SetDatapoints(DatapointsT&& value) { m_datapointsHasBeenSet = true; m_datapoints = std::forward<DatapointsT>(value); }
84 template<typename DatapointsT = Aws::Vector<InsightRuleContributorDatapoint>>
85 InsightRuleContributor& WithDatapoints(DatapointsT&& value) { SetDatapoints(std::forward<DatapointsT>(value)); return *this;}
86 template<typename DatapointsT = InsightRuleContributorDatapoint>
87 InsightRuleContributor& AddDatapoints(DatapointsT&& value) { m_datapointsHasBeenSet = true; m_datapoints.emplace_back(std::forward<DatapointsT>(value)); return *this; }
89 private:
90
92 bool m_keysHasBeenSet = false;
93
94 double m_approximateAggregateValue{0.0};
95 bool m_approximateAggregateValueHasBeenSet = false;
96
98 bool m_datapointsHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace CloudWatch
103} // namespace Aws
AWS_CLOUDWATCH_API InsightRuleContributor()=default
InsightRuleContributor & AddDatapoints(DatapointsT &&value)
const Aws::Vector< InsightRuleContributorDatapoint > & GetDatapoints() const
AWS_CLOUDWATCH_API InsightRuleContributor & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InsightRuleContributor & AddKeys(KeysT &&value)
const Aws::Vector< Aws::String > & GetKeys() const
InsightRuleContributor & WithApproximateAggregateValue(double value)
InsightRuleContributor & WithKeys(KeysT &&value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDWATCH_API InsightRuleContributor(const Aws::Utils::Xml::XmlNode &xmlNode)
InsightRuleContributor & WithDatapoints(DatapointsT &&value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream