AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartSessionsStatisticsAggregationRequest.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/deadline/DeadlineRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/deadline/model/SessionsStatisticsResources.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/deadline/model/Period.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/deadline/model/UsageGroupByField.h>
15#include <aws/deadline/model/UsageStatistic.h>
16#include <utility>
17
18namespace Aws
19{
20namespace deadline
21{
22namespace Model
23{
24
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "StartSessionsStatisticsAggregation"; }
37
38 AWS_DEADLINE_API Aws::String SerializePayload() const override;
39
40
42
46 inline const Aws::String& GetFarmId() const{ return m_farmId; }
47 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
48 inline void SetFarmId(const Aws::String& value) { m_farmIdHasBeenSet = true; m_farmId = value; }
49 inline void SetFarmId(Aws::String&& value) { m_farmIdHasBeenSet = true; m_farmId = std::move(value); }
50 inline void SetFarmId(const char* value) { m_farmIdHasBeenSet = true; m_farmId.assign(value); }
51 inline StartSessionsStatisticsAggregationRequest& WithFarmId(const Aws::String& value) { SetFarmId(value); return *this;}
52 inline StartSessionsStatisticsAggregationRequest& WithFarmId(Aws::String&& value) { SetFarmId(std::move(value)); return *this;}
53 inline StartSessionsStatisticsAggregationRequest& WithFarmId(const char* value) { SetFarmId(value); return *this;}
55
57
60 inline const SessionsStatisticsResources& GetResourceIds() const{ return m_resourceIds; }
61 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
62 inline void SetResourceIds(const SessionsStatisticsResources& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = value; }
63 inline void SetResourceIds(SessionsStatisticsResources&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = std::move(value); }
67
69
72 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
73 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
74 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
75 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
79
81
84 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
85 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
86 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
87 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
89 inline StartSessionsStatisticsAggregationRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
91
93
96 inline const Aws::String& GetTimezone() const{ return m_timezone; }
97 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
98 inline void SetTimezone(const Aws::String& value) { m_timezoneHasBeenSet = true; m_timezone = value; }
99 inline void SetTimezone(Aws::String&& value) { m_timezoneHasBeenSet = true; m_timezone = std::move(value); }
100 inline void SetTimezone(const char* value) { m_timezoneHasBeenSet = true; m_timezone.assign(value); }
102 inline StartSessionsStatisticsAggregationRequest& WithTimezone(Aws::String&& value) { SetTimezone(std::move(value)); return *this;}
103 inline StartSessionsStatisticsAggregationRequest& WithTimezone(const char* value) { SetTimezone(value); return *this;}
105
107
110 inline const Period& GetPeriod() const{ return m_period; }
111 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
112 inline void SetPeriod(const Period& value) { m_periodHasBeenSet = true; m_period = value; }
113 inline void SetPeriod(Period&& value) { m_periodHasBeenSet = true; m_period = std::move(value); }
114 inline StartSessionsStatisticsAggregationRequest& WithPeriod(const Period& value) { SetPeriod(value); return *this;}
115 inline StartSessionsStatisticsAggregationRequest& WithPeriod(Period&& value) { SetPeriod(std::move(value)); return *this;}
117
119
122 inline const Aws::Vector<UsageGroupByField>& GetGroupBy() const{ return m_groupBy; }
123 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
124 inline void SetGroupBy(const Aws::Vector<UsageGroupByField>& value) { m_groupByHasBeenSet = true; m_groupBy = value; }
125 inline void SetGroupBy(Aws::Vector<UsageGroupByField>&& value) { m_groupByHasBeenSet = true; m_groupBy = std::move(value); }
128 inline StartSessionsStatisticsAggregationRequest& AddGroupBy(const UsageGroupByField& value) { m_groupByHasBeenSet = true; m_groupBy.push_back(value); return *this; }
129 inline StartSessionsStatisticsAggregationRequest& AddGroupBy(UsageGroupByField&& value) { m_groupByHasBeenSet = true; m_groupBy.push_back(std::move(value)); return *this; }
131
133
136 inline const Aws::Vector<UsageStatistic>& GetStatistics() const{ return m_statistics; }
137 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
138 inline void SetStatistics(const Aws::Vector<UsageStatistic>& value) { m_statisticsHasBeenSet = true; m_statistics = value; }
139 inline void SetStatistics(Aws::Vector<UsageStatistic>&& value) { m_statisticsHasBeenSet = true; m_statistics = std::move(value); }
142 inline StartSessionsStatisticsAggregationRequest& AddStatistics(const UsageStatistic& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(value); return *this; }
143 inline StartSessionsStatisticsAggregationRequest& AddStatistics(UsageStatistic&& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(std::move(value)); return *this; }
145 private:
146
147 Aws::String m_farmId;
148 bool m_farmIdHasBeenSet = false;
149
150 SessionsStatisticsResources m_resourceIds;
151 bool m_resourceIdsHasBeenSet = false;
152
153 Aws::Utils::DateTime m_startTime;
154 bool m_startTimeHasBeenSet = false;
155
156 Aws::Utils::DateTime m_endTime;
157 bool m_endTimeHasBeenSet = false;
158
159 Aws::String m_timezone;
160 bool m_timezoneHasBeenSet = false;
161
162 Period m_period;
163 bool m_periodHasBeenSet = false;
164
166 bool m_groupByHasBeenSet = false;
167
168 Aws::Vector<UsageStatistic> m_statistics;
169 bool m_statisticsHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace deadline
174} // namespace Aws
AWS_DEADLINE_API Aws::String SerializePayload() const override
StartSessionsStatisticsAggregationRequest & WithStatistics(Aws::Vector< UsageStatistic > &&value)
StartSessionsStatisticsAggregationRequest & WithResourceIds(SessionsStatisticsResources &&value)
StartSessionsStatisticsAggregationRequest & AddGroupBy(UsageGroupByField &&value)
StartSessionsStatisticsAggregationRequest & WithGroupBy(Aws::Vector< UsageGroupByField > &&value)
StartSessionsStatisticsAggregationRequest & WithEndTime(const Aws::Utils::DateTime &value)
StartSessionsStatisticsAggregationRequest & WithGroupBy(const Aws::Vector< UsageGroupByField > &value)
StartSessionsStatisticsAggregationRequest & AddGroupBy(const UsageGroupByField &value)
StartSessionsStatisticsAggregationRequest & WithTimezone(const Aws::String &value)
StartSessionsStatisticsAggregationRequest & WithEndTime(Aws::Utils::DateTime &&value)
StartSessionsStatisticsAggregationRequest & WithTimezone(Aws::String &&value)
StartSessionsStatisticsAggregationRequest & WithFarmId(const Aws::String &value)
StartSessionsStatisticsAggregationRequest & WithFarmId(const char *value)
StartSessionsStatisticsAggregationRequest & WithResourceIds(const SessionsStatisticsResources &value)
StartSessionsStatisticsAggregationRequest & WithStatistics(const Aws::Vector< UsageStatistic > &value)
StartSessionsStatisticsAggregationRequest & AddStatistics(UsageStatistic &&value)
StartSessionsStatisticsAggregationRequest & WithFarmId(Aws::String &&value)
StartSessionsStatisticsAggregationRequest & WithTimezone(const char *value)
StartSessionsStatisticsAggregationRequest & WithStartTime(const Aws::Utils::DateTime &value)
StartSessionsStatisticsAggregationRequest & AddStatistics(const UsageStatistic &value)
StartSessionsStatisticsAggregationRequest & WithStartTime(Aws::Utils::DateTime &&value)
StartSessionsStatisticsAggregationRequest & WithPeriod(const Period &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector