AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetKeys(const Aws::Vector<Aws::String>& value) { m_keysHasBeenSet = true; m_keys = value; }
58 inline void SetKeys(Aws::Vector<Aws::String>&& value) { m_keysHasBeenSet = true; m_keys = std::move(value); }
59 inline InsightRuleContributor& WithKeys(const Aws::Vector<Aws::String>& value) { SetKeys(value); return *this;}
60 inline InsightRuleContributor& WithKeys(Aws::Vector<Aws::String>&& value) { SetKeys(std::move(value)); return *this;}
61 inline InsightRuleContributor& AddKeys(const Aws::String& value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; }
62 inline InsightRuleContributor& AddKeys(Aws::String&& value) { m_keysHasBeenSet = true; m_keys.push_back(std::move(value)); return *this; }
63 inline InsightRuleContributor& AddKeys(const char* value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; }
65
67
70 inline double GetApproximateAggregateValue() const{ return m_approximateAggregateValue; }
71 inline bool ApproximateAggregateValueHasBeenSet() const { return m_approximateAggregateValueHasBeenSet; }
72 inline void SetApproximateAggregateValue(double value) { m_approximateAggregateValueHasBeenSet = true; m_approximateAggregateValue = value; }
75
77
81 inline const Aws::Vector<InsightRuleContributorDatapoint>& GetDatapoints() const{ return m_datapoints; }
82 inline bool DatapointsHasBeenSet() const { return m_datapointsHasBeenSet; }
83 inline void SetDatapoints(const Aws::Vector<InsightRuleContributorDatapoint>& value) { m_datapointsHasBeenSet = true; m_datapoints = value; }
84 inline void SetDatapoints(Aws::Vector<InsightRuleContributorDatapoint>&& value) { m_datapointsHasBeenSet = true; m_datapoints = std::move(value); }
87 inline InsightRuleContributor& AddDatapoints(const InsightRuleContributorDatapoint& value) { m_datapointsHasBeenSet = true; m_datapoints.push_back(value); return *this; }
88 inline InsightRuleContributor& AddDatapoints(InsightRuleContributorDatapoint&& value) { m_datapointsHasBeenSet = true; m_datapoints.push_back(std::move(value)); return *this; }
90 private:
91
93 bool m_keysHasBeenSet = false;
94
95 double m_approximateAggregateValue;
96 bool m_approximateAggregateValueHasBeenSet = false;
97
99 bool m_datapointsHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace CloudWatch
104} // namespace Aws
InsightRuleContributor & AddKeys(const Aws::String &value)
InsightRuleContributor & WithDatapoints(Aws::Vector< InsightRuleContributorDatapoint > &&value)
const Aws::Vector< InsightRuleContributorDatapoint > & GetDatapoints() const
void SetDatapoints(Aws::Vector< InsightRuleContributorDatapoint > &&value)
void SetKeys(Aws::Vector< Aws::String > &&value)
AWS_CLOUDWATCH_API InsightRuleContributor & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InsightRuleContributor & WithKeys(Aws::Vector< Aws::String > &&value)
void SetDatapoints(const Aws::Vector< InsightRuleContributorDatapoint > &value)
InsightRuleContributor & AddDatapoints(const InsightRuleContributorDatapoint &value)
const Aws::Vector< Aws::String > & GetKeys() const
InsightRuleContributor & WithApproximateAggregateValue(double value)
InsightRuleContributor & WithDatapoints(const Aws::Vector< InsightRuleContributorDatapoint > &value)
InsightRuleContributor & WithKeys(const Aws::Vector< Aws::String > &value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetKeys(const Aws::Vector< Aws::String > &value)
InsightRuleContributor & AddKeys(Aws::String &&value)
AWS_CLOUDWATCH_API InsightRuleContributor(const Aws::Utils::Xml::XmlNode &xmlNode)
InsightRuleContributor & AddDatapoints(InsightRuleContributorDatapoint &&value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InsightRuleContributor & AddKeys(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream