AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetSessionsStatisticsAggregationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/deadline/Deadline_EXPORTS.h>
11#include <aws/deadline/model/SessionsStatisticsAggregationStatus.h>
12#include <aws/deadline/model/Statistics.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace deadline {
26namespace Model {
34 public:
35 AWS_DEADLINE_API GetSessionsStatisticsAggregationResult() = default;
39
41
44 inline const Aws::Vector<Statistics>& GetStatistics() const { return m_statistics; }
45 template <typename StatisticsT = Aws::Vector<Statistics>>
46 void SetStatistics(StatisticsT&& value) {
47 m_statisticsHasBeenSet = true;
48 m_statistics = std::forward<StatisticsT>(value);
49 }
50 template <typename StatisticsT = Aws::Vector<Statistics>>
52 SetStatistics(std::forward<StatisticsT>(value));
53 return *this;
54 }
55 template <typename StatisticsT = Statistics>
57 m_statisticsHasBeenSet = true;
58 m_statistics.emplace_back(std::forward<StatisticsT>(value));
59 return *this;
60 }
62
64
74 inline SessionsStatisticsAggregationStatus GetStatus() const { return m_status; }
76 m_statusHasBeenSet = true;
77 m_status = value;
78 }
80 SetStatus(value);
81 return *this;
82 }
84
86
89 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
90 template <typename StatusMessageT = Aws::String>
91 void SetStatusMessage(StatusMessageT&& value) {
92 m_statusMessageHasBeenSet = true;
93 m_statusMessage = std::forward<StatusMessageT>(value);
94 }
95 template <typename StatusMessageT = Aws::String>
97 SetStatusMessage(std::forward<StatusMessageT>(value));
98 return *this;
99 }
101
103
112 inline const Aws::String& GetNextToken() const { return m_nextToken; }
113 template <typename NextTokenT = Aws::String>
114 void SetNextToken(NextTokenT&& value) {
115 m_nextTokenHasBeenSet = true;
116 m_nextToken = std::forward<NextTokenT>(value);
117 }
118 template <typename NextTokenT = Aws::String>
120 SetNextToken(std::forward<NextTokenT>(value));
121 return *this;
122 }
124
126
127 inline const Aws::String& GetRequestId() const { return m_requestId; }
128 template <typename RequestIdT = Aws::String>
129 void SetRequestId(RequestIdT&& value) {
130 m_requestIdHasBeenSet = true;
131 m_requestId = std::forward<RequestIdT>(value);
132 }
133 template <typename RequestIdT = Aws::String>
135 SetRequestId(std::forward<RequestIdT>(value));
136 return *this;
137 }
139 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
140
141 private:
142 Aws::Vector<Statistics> m_statistics;
143
145
146 Aws::String m_statusMessage;
147
148 Aws::String m_nextToken;
149
150 Aws::String m_requestId;
151 Aws::Http::HttpResponseCode m_HttpResponseCode;
152 bool m_statisticsHasBeenSet = false;
153 bool m_statusHasBeenSet = false;
154 bool m_statusMessageHasBeenSet = false;
155 bool m_nextTokenHasBeenSet = false;
156 bool m_requestIdHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace deadline
161} // namespace Aws
GetSessionsStatisticsAggregationResult & WithStatusMessage(StatusMessageT &&value)
AWS_DEADLINE_API GetSessionsStatisticsAggregationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSessionsStatisticsAggregationResult & WithRequestId(RequestIdT &&value)
GetSessionsStatisticsAggregationResult & WithNextToken(NextTokenT &&value)
GetSessionsStatisticsAggregationResult & AddStatistics(StatisticsT &&value)
GetSessionsStatisticsAggregationResult & WithStatus(SessionsStatisticsAggregationStatus value)
GetSessionsStatisticsAggregationResult & WithStatistics(StatisticsT &&value)
AWS_DEADLINE_API GetSessionsStatisticsAggregationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue