AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
30 AWS_DEADLINE_API StartSessionsStatisticsAggregationRequest() = default;
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 template<typename FarmIdT = Aws::String>
49 void SetFarmId(FarmIdT&& value) { m_farmIdHasBeenSet = true; m_farmId = std::forward<FarmIdT>(value); }
50 template<typename FarmIdT = Aws::String>
51 StartSessionsStatisticsAggregationRequest& WithFarmId(FarmIdT&& value) { SetFarmId(std::forward<FarmIdT>(value)); return *this;}
53
55
58 inline const SessionsStatisticsResources& GetResourceIds() const { return m_resourceIds; }
59 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
60 template<typename ResourceIdsT = SessionsStatisticsResources>
61 void SetResourceIds(ResourceIdsT&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = std::forward<ResourceIdsT>(value); }
62 template<typename ResourceIdsT = SessionsStatisticsResources>
63 StartSessionsStatisticsAggregationRequest& WithResourceIds(ResourceIdsT&& value) { SetResourceIds(std::forward<ResourceIdsT>(value)); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
71 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
72 template<typename StartTimeT = Aws::Utils::DateTime>
73 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
74 template<typename StartTimeT = Aws::Utils::DateTime>
75 StartSessionsStatisticsAggregationRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
77
79
82 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
83 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
84 template<typename EndTimeT = Aws::Utils::DateTime>
85 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
86 template<typename EndTimeT = Aws::Utils::DateTime>
87 StartSessionsStatisticsAggregationRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
89
91
94 inline const Aws::String& GetTimezone() const { return m_timezone; }
95 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
96 template<typename TimezoneT = Aws::String>
97 void SetTimezone(TimezoneT&& value) { m_timezoneHasBeenSet = true; m_timezone = std::forward<TimezoneT>(value); }
98 template<typename TimezoneT = Aws::String>
99 StartSessionsStatisticsAggregationRequest& WithTimezone(TimezoneT&& value) { SetTimezone(std::forward<TimezoneT>(value)); return *this;}
101
103
106 inline Period GetPeriod() const { return m_period; }
107 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
108 inline void SetPeriod(Period value) { m_periodHasBeenSet = true; m_period = value; }
111
113
116 inline const Aws::Vector<UsageGroupByField>& GetGroupBy() const { return m_groupBy; }
117 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
118 template<typename GroupByT = Aws::Vector<UsageGroupByField>>
119 void SetGroupBy(GroupByT&& value) { m_groupByHasBeenSet = true; m_groupBy = std::forward<GroupByT>(value); }
120 template<typename GroupByT = Aws::Vector<UsageGroupByField>>
121 StartSessionsStatisticsAggregationRequest& WithGroupBy(GroupByT&& value) { SetGroupBy(std::forward<GroupByT>(value)); return *this;}
122 inline StartSessionsStatisticsAggregationRequest& AddGroupBy(UsageGroupByField value) { m_groupByHasBeenSet = true; m_groupBy.push_back(value); return *this; }
124
126
129 inline const Aws::Vector<UsageStatistic>& GetStatistics() const { return m_statistics; }
130 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
131 template<typename StatisticsT = Aws::Vector<UsageStatistic>>
132 void SetStatistics(StatisticsT&& value) { m_statisticsHasBeenSet = true; m_statistics = std::forward<StatisticsT>(value); }
133 template<typename StatisticsT = Aws::Vector<UsageStatistic>>
134 StartSessionsStatisticsAggregationRequest& WithStatistics(StatisticsT&& value) { SetStatistics(std::forward<StatisticsT>(value)); return *this;}
135 inline StartSessionsStatisticsAggregationRequest& AddStatistics(UsageStatistic value) { m_statisticsHasBeenSet = true; m_statistics.push_back(value); return *this; }
137 private:
138
139 Aws::String m_farmId;
140 bool m_farmIdHasBeenSet = false;
141
142 SessionsStatisticsResources m_resourceIds;
143 bool m_resourceIdsHasBeenSet = false;
144
145 Aws::Utils::DateTime m_startTime{};
146 bool m_startTimeHasBeenSet = false;
147
148 Aws::Utils::DateTime m_endTime{};
149 bool m_endTimeHasBeenSet = false;
150
151 Aws::String m_timezone;
152 bool m_timezoneHasBeenSet = false;
153
154 Period m_period{Period::NOT_SET};
155 bool m_periodHasBeenSet = false;
156
158 bool m_groupByHasBeenSet = false;
159
160 Aws::Vector<UsageStatistic> m_statistics;
161 bool m_statisticsHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace deadline
166} // 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