AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListMetricsResult.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/monitoring/model/ResponseMetadata.h>
11#include <aws/monitoring/model/Metric.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace CloudWatch
27{
28namespace Model
29{
31 {
32 public:
33 AWS_CLOUDWATCH_API ListMetricsResult();
36
37
39
42 inline const Aws::Vector<Metric>& GetMetrics() const{ return m_metrics; }
43 inline void SetMetrics(const Aws::Vector<Metric>& value) { m_metrics = value; }
44 inline void SetMetrics(Aws::Vector<Metric>&& value) { m_metrics = std::move(value); }
45 inline ListMetricsResult& WithMetrics(const Aws::Vector<Metric>& value) { SetMetrics(value); return *this;}
46 inline ListMetricsResult& WithMetrics(Aws::Vector<Metric>&& value) { SetMetrics(std::move(value)); return *this;}
47 inline ListMetricsResult& AddMetrics(const Metric& value) { m_metrics.push_back(value); return *this; }
48 inline ListMetricsResult& AddMetrics(Metric&& value) { m_metrics.push_back(std::move(value)); return *this; }
50
52
55 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
56 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
57 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
58 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
59 inline ListMetricsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
60 inline ListMetricsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
61 inline ListMetricsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
63
65
71 inline const Aws::Vector<Aws::String>& GetOwningAccounts() const{ return m_owningAccounts; }
72 inline void SetOwningAccounts(const Aws::Vector<Aws::String>& value) { m_owningAccounts = value; }
73 inline void SetOwningAccounts(Aws::Vector<Aws::String>&& value) { m_owningAccounts = std::move(value); }
75 inline ListMetricsResult& WithOwningAccounts(Aws::Vector<Aws::String>&& value) { SetOwningAccounts(std::move(value)); return *this;}
76 inline ListMetricsResult& AddOwningAccounts(const Aws::String& value) { m_owningAccounts.push_back(value); return *this; }
77 inline ListMetricsResult& AddOwningAccounts(Aws::String&& value) { m_owningAccounts.push_back(std::move(value)); return *this; }
78 inline ListMetricsResult& AddOwningAccounts(const char* value) { m_owningAccounts.push_back(value); return *this; }
80
82
83 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
84 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
85 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
86 inline ListMetricsResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
87 inline ListMetricsResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
89 private:
90
91 Aws::Vector<Metric> m_metrics;
92
93 Aws::String m_nextToken;
94
95 Aws::Vector<Aws::String> m_owningAccounts;
96
97 ResponseMetadata m_responseMetadata;
98 };
99
100} // namespace Model
101} // namespace CloudWatch
102} // namespace Aws
ListMetricsResult & WithNextToken(Aws::String &&value)
ListMetricsResult & AddOwningAccounts(const char *value)
AWS_CLOUDWATCH_API ListMetricsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ListMetricsResult & WithOwningAccounts(const Aws::Vector< Aws::String > &value)
ListMetricsResult & WithMetrics(const Aws::Vector< Metric > &value)
ListMetricsResult & AddMetrics(Metric &&value)
ListMetricsResult & AddOwningAccounts(Aws::String &&value)
void SetOwningAccounts(const Aws::Vector< Aws::String > &value)
void SetResponseMetadata(const ResponseMetadata &value)
ListMetricsResult & WithNextToken(const Aws::String &value)
void SetResponseMetadata(ResponseMetadata &&value)
void SetMetrics(Aws::Vector< Metric > &&value)
const Aws::Vector< Metric > & GetMetrics() const
void SetOwningAccounts(Aws::Vector< Aws::String > &&value)
AWS_CLOUDWATCH_API ListMetricsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ListMetricsResult & AddMetrics(const Metric &value)
ListMetricsResult & WithNextToken(const char *value)
const Aws::Vector< Aws::String > & GetOwningAccounts() const
void SetMetrics(const Aws::Vector< Metric > &value)
void SetNextToken(const Aws::String &value)
ListMetricsResult & WithOwningAccounts(Aws::Vector< Aws::String > &&value)
ListMetricsResult & WithResponseMetadata(const ResponseMetadata &value)
const ResponseMetadata & GetResponseMetadata() const
ListMetricsResult & AddOwningAccounts(const Aws::String &value)
ListMetricsResult & WithMetrics(Aws::Vector< Metric > &&value)
ListMetricsResult & WithResponseMetadata(ResponseMetadata &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument