AWS SDK for C++  1.9.159
AWS SDK for C++
GetCurrentMetricDataResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24 } // namespace Json
25 } // namespace Utils
26 namespace Connect
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
44  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
45 
52  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
53 
60  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
61 
68  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
69 
76  inline GetCurrentMetricDataResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
77 
84  inline GetCurrentMetricDataResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
85 
92  inline GetCurrentMetricDataResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
93 
94 
98  inline const Aws::Vector<CurrentMetricResult>& GetMetricResults() const{ return m_metricResults; }
99 
103  inline void SetMetricResults(const Aws::Vector<CurrentMetricResult>& value) { m_metricResults = value; }
104 
108  inline void SetMetricResults(Aws::Vector<CurrentMetricResult>&& value) { m_metricResults = std::move(value); }
109 
113  inline GetCurrentMetricDataResult& WithMetricResults(const Aws::Vector<CurrentMetricResult>& value) { SetMetricResults(value); return *this;}
114 
118  inline GetCurrentMetricDataResult& WithMetricResults(Aws::Vector<CurrentMetricResult>&& value) { SetMetricResults(std::move(value)); return *this;}
119 
123  inline GetCurrentMetricDataResult& AddMetricResults(const CurrentMetricResult& value) { m_metricResults.push_back(value); return *this; }
124 
128  inline GetCurrentMetricDataResult& AddMetricResults(CurrentMetricResult&& value) { m_metricResults.push_back(std::move(value)); return *this; }
129 
130 
134  inline const Aws::Utils::DateTime& GetDataSnapshotTime() const{ return m_dataSnapshotTime; }
135 
139  inline void SetDataSnapshotTime(const Aws::Utils::DateTime& value) { m_dataSnapshotTime = value; }
140 
144  inline void SetDataSnapshotTime(Aws::Utils::DateTime&& value) { m_dataSnapshotTime = std::move(value); }
145 
149  inline GetCurrentMetricDataResult& WithDataSnapshotTime(const Aws::Utils::DateTime& value) { SetDataSnapshotTime(value); return *this;}
150 
154  inline GetCurrentMetricDataResult& WithDataSnapshotTime(Aws::Utils::DateTime&& value) { SetDataSnapshotTime(std::move(value)); return *this;}
155 
156  private:
157 
158  Aws::String m_nextToken;
159 
160  Aws::Vector<CurrentMetricResult> m_metricResults;
161 
162  Aws::Utils::DateTime m_dataSnapshotTime;
163  };
164 
165 } // namespace Model
166 } // namespace Connect
167 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Connect::Model::GetCurrentMetricDataResult::GetCurrentMetricDataResult
GetCurrentMetricDataResult()
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Connect::Model::GetCurrentMetricDataResult::WithNextToken
GetCurrentMetricDataResult & WithNextToken(const char *value)
Definition: GetCurrentMetricDataResult.h:92
Aws::Connect::Model::GetCurrentMetricDataResult::AddMetricResults
GetCurrentMetricDataResult & AddMetricResults(const CurrentMetricResult &value)
Definition: GetCurrentMetricDataResult.h:123
DateTime.h
Aws::Connect::Model::CurrentMetricResult
Definition: CurrentMetricResult.h:35
Aws::Connect::Model::GetCurrentMetricDataResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetCurrentMetricDataResult.h:60
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Connect::Model::GetCurrentMetricDataResult::WithNextToken
GetCurrentMetricDataResult & WithNextToken(const Aws::String &value)
Definition: GetCurrentMetricDataResult.h:76
AWSVector.h
Aws::Connect::Model::GetCurrentMetricDataResult::GetDataSnapshotTime
const Aws::Utils::DateTime & GetDataSnapshotTime() const
Definition: GetCurrentMetricDataResult.h:134
Aws::Connect::Model::GetCurrentMetricDataResult::WithDataSnapshotTime
GetCurrentMetricDataResult & WithDataSnapshotTime(const Aws::Utils::DateTime &value)
Definition: GetCurrentMetricDataResult.h:149
Aws::Connect::Model::GetCurrentMetricDataResult
Definition: GetCurrentMetricDataResult.h:31
Aws::Connect::Model::GetCurrentMetricDataResult::SetDataSnapshotTime
void SetDataSnapshotTime(Aws::Utils::DateTime &&value)
Definition: GetCurrentMetricDataResult.h:144
CurrentMetricResult.h
Aws::Connect::Model::GetCurrentMetricDataResult::SetNextToken
void SetNextToken(const char *value)
Definition: GetCurrentMetricDataResult.h:68
Aws::Connect::Model::GetCurrentMetricDataResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetCurrentMetricDataResult.h:44
Aws::Connect::Model::GetCurrentMetricDataResult::WithDataSnapshotTime
GetCurrentMetricDataResult & WithDataSnapshotTime(Aws::Utils::DateTime &&value)
Definition: GetCurrentMetricDataResult.h:154
Aws::Connect::Model::GetCurrentMetricDataResult::WithMetricResults
GetCurrentMetricDataResult & WithMetricResults(const Aws::Vector< CurrentMetricResult > &value)
Definition: GetCurrentMetricDataResult.h:113
Aws::Connect::Model::GetCurrentMetricDataResult::AddMetricResults
GetCurrentMetricDataResult & AddMetricResults(CurrentMetricResult &&value)
Definition: GetCurrentMetricDataResult.h:128
AWSString.h
Aws::Connect::Model::GetCurrentMetricDataResult::GetCurrentMetricDataResult
GetCurrentMetricDataResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Connect::Model::GetCurrentMetricDataResult::GetMetricResults
const Aws::Vector< CurrentMetricResult > & GetMetricResults() const
Definition: GetCurrentMetricDataResult.h:98
Aws::Connect::Model::GetCurrentMetricDataResult::WithNextToken
GetCurrentMetricDataResult & WithNextToken(Aws::String &&value)
Definition: GetCurrentMetricDataResult.h:84
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::GetCurrentMetricDataResult::SetMetricResults
void SetMetricResults(const Aws::Vector< CurrentMetricResult > &value)
Definition: GetCurrentMetricDataResult.h:103
Aws::Connect::Model::GetCurrentMetricDataResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetCurrentMetricDataResult.h:52
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::GetCurrentMetricDataResult::WithMetricResults
GetCurrentMetricDataResult & WithMetricResults(Aws::Vector< CurrentMetricResult > &&value)
Definition: GetCurrentMetricDataResult.h:118
Aws::Connect::Model::GetCurrentMetricDataResult::operator=
GetCurrentMetricDataResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::GetCurrentMetricDataResult::SetMetricResults
void SetMetricResults(Aws::Vector< CurrentMetricResult > &&value)
Definition: GetCurrentMetricDataResult.h:108
Connect_EXPORTS.h
Aws::Connect::Model::GetCurrentMetricDataResult::SetDataSnapshotTime
void SetDataSnapshotTime(const Aws::Utils::DateTime &value)
Definition: GetCurrentMetricDataResult.h:139