AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetSessionsStatisticsAggregationResult.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/deadline/model/SessionsStatisticsAggregationStatus.h>
11#include <aws/deadline/model/Statistics.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace deadline
27{
28namespace Model
29{
31 {
32 public:
33 AWS_DEADLINE_API GetSessionsStatisticsAggregationResult() = default;
36
37
39
42 inline const Aws::Vector<Statistics>& GetStatistics() const { return m_statistics; }
43 template<typename StatisticsT = Aws::Vector<Statistics>>
44 void SetStatistics(StatisticsT&& value) { m_statisticsHasBeenSet = true; m_statistics = std::forward<StatisticsT>(value); }
45 template<typename StatisticsT = Aws::Vector<Statistics>>
46 GetSessionsStatisticsAggregationResult& WithStatistics(StatisticsT&& value) { SetStatistics(std::forward<StatisticsT>(value)); return *this;}
47 template<typename StatisticsT = Statistics>
48 GetSessionsStatisticsAggregationResult& AddStatistics(StatisticsT&& value) { m_statisticsHasBeenSet = true; m_statistics.emplace_back(std::forward<StatisticsT>(value)); return *this; }
50
52
61 inline const Aws::String& GetNextToken() const { return m_nextToken; }
62 template<typename NextTokenT = Aws::String>
63 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
64 template<typename NextTokenT = Aws::String>
65 GetSessionsStatisticsAggregationResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
67
69
79 inline SessionsStatisticsAggregationStatus GetStatus() const { return m_status; }
80 inline void SetStatus(SessionsStatisticsAggregationStatus value) { m_statusHasBeenSet = true; m_status = value; }
83
85
88 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
89 template<typename StatusMessageT = Aws::String>
90 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
91 template<typename StatusMessageT = Aws::String>
92 GetSessionsStatisticsAggregationResult& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
94
96
97 inline const Aws::String& GetRequestId() const { return m_requestId; }
98 template<typename RequestIdT = Aws::String>
99 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
100 template<typename RequestIdT = Aws::String>
101 GetSessionsStatisticsAggregationResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
103 private:
104
105 Aws::Vector<Statistics> m_statistics;
106 bool m_statisticsHasBeenSet = false;
107
108 Aws::String m_nextToken;
109 bool m_nextTokenHasBeenSet = false;
110
112 bool m_statusHasBeenSet = false;
113
114 Aws::String m_statusMessage;
115 bool m_statusMessageHasBeenSet = false;
116
117 Aws::String m_requestId;
118 bool m_requestIdHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace deadline
123} // 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