AWS SDK for C++

AWS SDK for C++ Version 1.11.907

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
115 inline const Aws::String& GetTimezone() const { return m_timezone; }
116 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
117 template <typename TimezoneT = Aws::String>
118 void SetTimezone(TimezoneT&& value) {
119 m_timezoneHasBeenSet = true;
120 m_timezone = std::forward<TimezoneT>(value);
121 }
122 template <typename TimezoneT = Aws::String>
124 SetTimezone(std::forward<TimezoneT>(value));
125 return *this;
126 }
128
130
133 inline Period GetPeriod() const { return m_period; }
134 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
135 inline void SetPeriod(Period value) {
136 m_periodHasBeenSet = true;
137 m_period = value;
138 }
140 SetPeriod(value);
141 return *this;
142 }
144
146
149 inline const Aws::Vector<UsageGroupByField>& GetGroupBy() const { return m_groupBy; }
150 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
151 template <typename GroupByT = Aws::Vector<UsageGroupByField>>
152 void SetGroupBy(GroupByT&& value) {
153 m_groupByHasBeenSet = true;
154 m_groupBy = std::forward<GroupByT>(value);
155 }
156 template <typename GroupByT = Aws::Vector<UsageGroupByField>>
158 SetGroupBy(std::forward<GroupByT>(value));
159 return *this;
160 }
162 m_groupByHasBeenSet = true;
163 m_groupBy.push_back(value);
164 return *this;
165 }
167
169
172 inline const Aws::Vector<UsageStatistic>& GetStatistics() const { return m_statistics; }
173 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
174 template <typename StatisticsT = Aws::Vector<UsageStatistic>>
175 void SetStatistics(StatisticsT&& value) {
176 m_statisticsHasBeenSet = true;
177 m_statistics = std::forward<StatisticsT>(value);
178 }
179 template <typename StatisticsT = Aws::Vector<UsageStatistic>>
181 SetStatistics(std::forward<StatisticsT>(value));
182 return *this;
183 }
185 m_statisticsHasBeenSet = true;
186 m_statistics.push_back(value);
187 return *this;
188 }
190 private:
191 Aws::String m_farmId;
192
193 SessionsStatisticsResources m_resourceIds;
194
195 Aws::Utils::DateTime m_startTime{};
196
197 Aws::Utils::DateTime m_endTime{};
198
199 Aws::String m_timezone;
200
201 Period m_period{Period::NOT_SET};
202
204
205 Aws::Vector<UsageStatistic> m_statistics;
206 bool m_farmIdHasBeenSet = false;
207 bool m_resourceIdsHasBeenSet = false;
208 bool m_startTimeHasBeenSet = false;
209 bool m_endTimeHasBeenSet = false;
210 bool m_timezoneHasBeenSet = false;
211 bool m_periodHasBeenSet = false;
212 bool m_groupByHasBeenSet = false;
213 bool m_statisticsHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace deadline
218} // 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