AWS SDK for C++  1.9.160
AWS SDK for C++
GetMetricDataResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace Connect
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
43  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
44 
51  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
52 
59  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
60 
67  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
68 
75  inline GetMetricDataResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
76 
83  inline GetMetricDataResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
84 
91  inline GetMetricDataResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
92 
93 
98  inline const Aws::Vector<HistoricalMetricResult>& GetMetricResults() const{ return m_metricResults; }
99 
104  inline void SetMetricResults(const Aws::Vector<HistoricalMetricResult>& value) { m_metricResults = value; }
105 
110  inline void SetMetricResults(Aws::Vector<HistoricalMetricResult>&& value) { m_metricResults = std::move(value); }
111 
116  inline GetMetricDataResult& WithMetricResults(const Aws::Vector<HistoricalMetricResult>& value) { SetMetricResults(value); return *this;}
117 
122  inline GetMetricDataResult& WithMetricResults(Aws::Vector<HistoricalMetricResult>&& value) { SetMetricResults(std::move(value)); return *this;}
123 
128  inline GetMetricDataResult& AddMetricResults(const HistoricalMetricResult& value) { m_metricResults.push_back(value); return *this; }
129 
134  inline GetMetricDataResult& AddMetricResults(HistoricalMetricResult&& value) { m_metricResults.push_back(std::move(value)); return *this; }
135 
136  private:
137 
138  Aws::String m_nextToken;
139 
140  Aws::Vector<HistoricalMetricResult> m_metricResults;
141  };
142 
143 } // namespace Model
144 } // namespace Connect
145 } // namespace Aws
Aws::Connect::Model::GetMetricDataResult::SetMetricResults
void SetMetricResults(const Aws::Vector< HistoricalMetricResult > &value)
Definition: GetMetricDataResult.h:104
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Connect::Model::GetMetricDataResult::WithNextToken
GetMetricDataResult & WithNextToken(const Aws::String &value)
Definition: GetMetricDataResult.h:75
Aws::Connect::Model::GetMetricDataResult::WithMetricResults
GetMetricDataResult & WithMetricResults(Aws::Vector< HistoricalMetricResult > &&value)
Definition: GetMetricDataResult.h:122
AWSVector.h
Aws::Connect::Model::GetMetricDataResult::operator=
GetMetricDataResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Connect::Model::GetMetricDataResult::AddMetricResults
GetMetricDataResult & AddMetricResults(HistoricalMetricResult &&value)
Definition: GetMetricDataResult.h:134
Aws::Connect::Model::GetMetricDataResult::SetMetricResults
void SetMetricResults(Aws::Vector< HistoricalMetricResult > &&value)
Definition: GetMetricDataResult.h:110
Aws::Connect::Model::GetMetricDataResult::WithMetricResults
GetMetricDataResult & WithMetricResults(const Aws::Vector< HistoricalMetricResult > &value)
Definition: GetMetricDataResult.h:116
Aws::Connect::Model::GetMetricDataResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetMetricDataResult.h:59
Aws::Connect::Model::GetMetricDataResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetMetricDataResult.h:43
Aws::Connect::Model::GetMetricDataResult::SetNextToken
void SetNextToken(const char *value)
Definition: GetMetricDataResult.h:67
Aws::Connect::Model::GetMetricDataResult::AddMetricResults
GetMetricDataResult & AddMetricResults(const HistoricalMetricResult &value)
Definition: GetMetricDataResult.h:128
AWSString.h
Aws::Connect::Model::GetMetricDataResult::GetMetricDataResult
GetMetricDataResult()
Aws::Connect::Model::GetMetricDataResult::GetMetricResults
const Aws::Vector< HistoricalMetricResult > & GetMetricResults() const
Definition: GetMetricDataResult.h:98
Aws::Connect::Model::HistoricalMetricResult
Definition: HistoricalMetricResult.h:35
Aws::Connect::Model::GetMetricDataResult
Definition: GetMetricDataResult.h:30
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::Connect::Model::GetMetricDataResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetMetricDataResult.h:51
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
HistoricalMetricResult.h
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Connect_EXPORTS.h
Aws::Connect::Model::GetMetricDataResult::WithNextToken
GetMetricDataResult & WithNextToken(const char *value)
Definition: GetMetricDataResult.h:91
Aws::Connect::Model::GetMetricDataResult::GetMetricDataResult
GetMetricDataResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Connect::Model::GetMetricDataResult::WithNextToken
GetMetricDataResult & WithNextToken(Aws::String &&value)
Definition: GetMetricDataResult.h:83