AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
StartSessionsStatisticsAggregationRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/deadline/DeadlineRequest.h>
11#include <aws/deadline/Deadline_EXPORTS.h>
12#include <aws/deadline/model/Period.h>
13#include <aws/deadline/model/SessionsStatisticsResources.h>
14#include <aws/deadline/model/UsageGroupByField.h>
15#include <aws/deadline/model/UsageStatistic.h>
16
17#include <utility>
18
19namespace Aws {
20namespace deadline {
21namespace Model {
22
26 public:
27 AWS_DEADLINE_API StartSessionsStatisticsAggregationRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "StartSessionsStatisticsAggregation"; }
34
35 AWS_DEADLINE_API Aws::String SerializePayload() const override;
36
38
42 inline const Aws::String& GetFarmId() const { return m_farmId; }
43 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
44 template <typename FarmIdT = Aws::String>
45 void SetFarmId(FarmIdT&& value) {
46 m_farmIdHasBeenSet = true;
47 m_farmId = std::forward<FarmIdT>(value);
48 }
49 template <typename FarmIdT = Aws::String>
51 SetFarmId(std::forward<FarmIdT>(value));
52 return *this;
53 }
55
57
60 inline const SessionsStatisticsResources& GetResourceIds() const { return m_resourceIds; }
61 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
62 template <typename ResourceIdsT = SessionsStatisticsResources>
63 void SetResourceIds(ResourceIdsT&& value) {
64 m_resourceIdsHasBeenSet = true;
65 m_resourceIds = std::forward<ResourceIdsT>(value);
66 }
67 template <typename ResourceIdsT = SessionsStatisticsResources>
69 SetResourceIds(std::forward<ResourceIdsT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
79 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
80 template <typename StartTimeT = Aws::Utils::DateTime>
81 void SetStartTime(StartTimeT&& value) {
82 m_startTimeHasBeenSet = true;
83 m_startTime = std::forward<StartTimeT>(value);
84 }
85 template <typename StartTimeT = Aws::Utils::DateTime>
87 SetStartTime(std::forward<StartTimeT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
97 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
98 template <typename EndTimeT = Aws::Utils::DateTime>
99 void SetEndTime(EndTimeT&& value) {
100 m_endTimeHasBeenSet = true;
101 m_endTime = std::forward<EndTimeT>(value);
102 }
103 template <typename EndTimeT = Aws::Utils::DateTime>
105 SetEndTime(std::forward<EndTimeT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetTimezone() const { return m_timezone; }
115 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
116 template <typename TimezoneT = Aws::String>
117 void SetTimezone(TimezoneT&& value) {
118 m_timezoneHasBeenSet = true;
119 m_timezone = std::forward<TimezoneT>(value);
120 }
121 template <typename TimezoneT = Aws::String>
123 SetTimezone(std::forward<TimezoneT>(value));
124 return *this;
125 }
127
129
132 inline Period GetPeriod() const { return m_period; }
133 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
134 inline void SetPeriod(Period value) {
135 m_periodHasBeenSet = true;
136 m_period = value;
137 }
139 SetPeriod(value);
140 return *this;
141 }
143
145
148 inline const Aws::Vector<UsageGroupByField>& GetGroupBy() const { return m_groupBy; }
149 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
150 template <typename GroupByT = Aws::Vector<UsageGroupByField>>
151 void SetGroupBy(GroupByT&& value) {
152 m_groupByHasBeenSet = true;
153 m_groupBy = std::forward<GroupByT>(value);
154 }
155 template <typename GroupByT = Aws::Vector<UsageGroupByField>>
157 SetGroupBy(std::forward<GroupByT>(value));
158 return *this;
159 }
161 m_groupByHasBeenSet = true;
162 m_groupBy.push_back(value);
163 return *this;
164 }
166
168
171 inline const Aws::Vector<UsageStatistic>& GetStatistics() const { return m_statistics; }
172 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
173 template <typename StatisticsT = Aws::Vector<UsageStatistic>>
174 void SetStatistics(StatisticsT&& value) {
175 m_statisticsHasBeenSet = true;
176 m_statistics = std::forward<StatisticsT>(value);
177 }
178 template <typename StatisticsT = Aws::Vector<UsageStatistic>>
180 SetStatistics(std::forward<StatisticsT>(value));
181 return *this;
182 }
184 m_statisticsHasBeenSet = true;
185 m_statistics.push_back(value);
186 return *this;
187 }
189 private:
190 Aws::String m_farmId;
191
192 SessionsStatisticsResources m_resourceIds;
193
194 Aws::Utils::DateTime m_startTime{};
195
196 Aws::Utils::DateTime m_endTime{};
197
198 Aws::String m_timezone;
199
200 Period m_period{Period::NOT_SET};
201
203
204 Aws::Vector<UsageStatistic> m_statistics;
205 bool m_farmIdHasBeenSet = false;
206 bool m_resourceIdsHasBeenSet = false;
207 bool m_startTimeHasBeenSet = false;
208 bool m_endTimeHasBeenSet = false;
209 bool m_timezoneHasBeenSet = false;
210 bool m_periodHasBeenSet = false;
211 bool m_groupByHasBeenSet = false;
212 bool m_statisticsHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace deadline
217} // namespace Aws
AWS_DEADLINE_API Aws::String SerializePayload() const override
StartSessionsStatisticsAggregationRequest & AddStatistics(UsageStatistic value)
StartSessionsStatisticsAggregationRequest & WithEndTime(EndTimeT &&value)
StartSessionsStatisticsAggregationRequest & WithFarmId(FarmIdT &&value)
StartSessionsStatisticsAggregationRequest & WithStartTime(StartTimeT &&value)
StartSessionsStatisticsAggregationRequest & WithTimezone(TimezoneT &&value)
StartSessionsStatisticsAggregationRequest & WithResourceIds(ResourceIdsT &&value)
StartSessionsStatisticsAggregationRequest & WithStatistics(StatisticsT &&value)
StartSessionsStatisticsAggregationRequest & AddGroupBy(UsageGroupByField value)
StartSessionsStatisticsAggregationRequest & WithGroupBy(GroupByT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector