AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
GetSessionsStatisticsAggregationResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/deadline/Deadline_EXPORTS.h>
10#include <aws/deadline/model/SessionsStatisticsAggregationStatus.h>
11#include <aws/deadline/model/Statistics.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace deadline {
25namespace Model {
27 public:
28 AWS_DEADLINE_API GetSessionsStatisticsAggregationResult() = default;
32
34
37 inline const Aws::Vector<Statistics>& GetStatistics() const { return m_statistics; }
38 template <typename StatisticsT = Aws::Vector<Statistics>>
39 void SetStatistics(StatisticsT&& value) {
40 m_statisticsHasBeenSet = true;
41 m_statistics = std::forward<StatisticsT>(value);
42 }
43 template <typename StatisticsT = Aws::Vector<Statistics>>
45 SetStatistics(std::forward<StatisticsT>(value));
46 return *this;
47 }
48 template <typename StatisticsT = Statistics>
50 m_statisticsHasBeenSet = true;
51 m_statistics.emplace_back(std::forward<StatisticsT>(value));
52 return *this;
53 }
55
57
66 inline const Aws::String& GetNextToken() const { return m_nextToken; }
67 template <typename NextTokenT = Aws::String>
68 void SetNextToken(NextTokenT&& value) {
69 m_nextTokenHasBeenSet = true;
70 m_nextToken = std::forward<NextTokenT>(value);
71 }
72 template <typename NextTokenT = Aws::String>
74 SetNextToken(std::forward<NextTokenT>(value));
75 return *this;
76 }
78
80
90 inline SessionsStatisticsAggregationStatus GetStatus() const { return m_status; }
92 m_statusHasBeenSet = true;
93 m_status = value;
94 }
96 SetStatus(value);
97 return *this;
98 }
100
102
105 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
106 template <typename StatusMessageT = Aws::String>
107 void SetStatusMessage(StatusMessageT&& value) {
108 m_statusMessageHasBeenSet = true;
109 m_statusMessage = std::forward<StatusMessageT>(value);
110 }
111 template <typename StatusMessageT = Aws::String>
113 SetStatusMessage(std::forward<StatusMessageT>(value));
114 return *this;
115 }
117
119
120 inline const Aws::String& GetRequestId() const { return m_requestId; }
121 template <typename RequestIdT = Aws::String>
122 void SetRequestId(RequestIdT&& value) {
123 m_requestIdHasBeenSet = true;
124 m_requestId = std::forward<RequestIdT>(value);
125 }
126 template <typename RequestIdT = Aws::String>
128 SetRequestId(std::forward<RequestIdT>(value));
129 return *this;
130 }
132 private:
133 Aws::Vector<Statistics> m_statistics;
134
135 Aws::String m_nextToken;
136
138
139 Aws::String m_statusMessage;
140
141 Aws::String m_requestId;
142 bool m_statisticsHasBeenSet = false;
143 bool m_nextTokenHasBeenSet = false;
144 bool m_statusHasBeenSet = false;
145 bool m_statusMessageHasBeenSet = false;
146 bool m_requestIdHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace deadline
151} // 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