AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BatchGetFrameMetricDataRequest.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/codeguruprofiler/CodeGuruProfilerRequest.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/codeguruprofiler/model/AggregationPeriod.h>
13#include <aws/codeguruprofiler/model/FrameMetric.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace CodeGuruProfiler
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODEGURUPROFILER_API BatchGetFrameMetricDataRequest() = default;
37
38 // Service request name is the Operation name which will send this request out,
39 // each operation should has unique request name, so that we can get operation's name from this request.
40 // Note: this is not true for response, multiple operations may have the same response name,
41 // so we can not get operation's name from response.
42 inline virtual const char* GetServiceRequestName() const override { return "BatchGetFrameMetricData"; }
43
44 AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override;
45
46 AWS_CODEGURUPROFILER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
47
48
50
55 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
56 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
57 template<typename EndTimeT = Aws::Utils::DateTime>
58 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
59 template<typename EndTimeT = Aws::Utils::DateTime>
60 BatchGetFrameMetricDataRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
62
64
70 inline const Aws::Vector<FrameMetric>& GetFrameMetrics() const { return m_frameMetrics; }
71 inline bool FrameMetricsHasBeenSet() const { return m_frameMetricsHasBeenSet; }
72 template<typename FrameMetricsT = Aws::Vector<FrameMetric>>
73 void SetFrameMetrics(FrameMetricsT&& value) { m_frameMetricsHasBeenSet = true; m_frameMetrics = std::forward<FrameMetricsT>(value); }
74 template<typename FrameMetricsT = Aws::Vector<FrameMetric>>
75 BatchGetFrameMetricDataRequest& WithFrameMetrics(FrameMetricsT&& value) { SetFrameMetrics(std::forward<FrameMetricsT>(value)); return *this;}
76 template<typename FrameMetricsT = FrameMetric>
77 BatchGetFrameMetricDataRequest& AddFrameMetrics(FrameMetricsT&& value) { m_frameMetricsHasBeenSet = true; m_frameMetrics.emplace_back(std::forward<FrameMetricsT>(value)); return *this; }
79
81
86 inline const Aws::String& GetPeriod() const { return m_period; }
87 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
88 template<typename PeriodT = Aws::String>
89 void SetPeriod(PeriodT&& value) { m_periodHasBeenSet = true; m_period = std::forward<PeriodT>(value); }
90 template<typename PeriodT = Aws::String>
91 BatchGetFrameMetricDataRequest& WithPeriod(PeriodT&& value) { SetPeriod(std::forward<PeriodT>(value)); return *this;}
93
95
99 inline const Aws::String& GetProfilingGroupName() const { return m_profilingGroupName; }
100 inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
101 template<typename ProfilingGroupNameT = Aws::String>
102 void SetProfilingGroupName(ProfilingGroupNameT&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::forward<ProfilingGroupNameT>(value); }
103 template<typename ProfilingGroupNameT = Aws::String>
104 BatchGetFrameMetricDataRequest& WithProfilingGroupName(ProfilingGroupNameT&& value) { SetProfilingGroupName(std::forward<ProfilingGroupNameT>(value)); return *this;}
106
108
114 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
115 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
116 template<typename StartTimeT = Aws::Utils::DateTime>
117 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
118 template<typename StartTimeT = Aws::Utils::DateTime>
119 BatchGetFrameMetricDataRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
121
123
132 inline AggregationPeriod GetTargetResolution() const { return m_targetResolution; }
133 inline bool TargetResolutionHasBeenSet() const { return m_targetResolutionHasBeenSet; }
134 inline void SetTargetResolution(AggregationPeriod value) { m_targetResolutionHasBeenSet = true; m_targetResolution = value; }
137 private:
138
139 Aws::Utils::DateTime m_endTime{};
140 bool m_endTimeHasBeenSet = false;
141
142 Aws::Vector<FrameMetric> m_frameMetrics;
143 bool m_frameMetricsHasBeenSet = false;
144
145 Aws::String m_period;
146 bool m_periodHasBeenSet = false;
147
148 Aws::String m_profilingGroupName;
149 bool m_profilingGroupNameHasBeenSet = false;
150
151 Aws::Utils::DateTime m_startTime{};
152 bool m_startTimeHasBeenSet = false;
153
155 bool m_targetResolutionHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace CodeGuruProfiler
160} // namespace Aws
BatchGetFrameMetricDataRequest & WithEndTime(EndTimeT &&value)
AWS_CODEGURUPROFILER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
BatchGetFrameMetricDataRequest & WithFrameMetrics(FrameMetricsT &&value)
BatchGetFrameMetricDataRequest & AddFrameMetrics(FrameMetricsT &&value)
BatchGetFrameMetricDataRequest & WithTargetResolution(AggregationPeriod value)
AWS_CODEGURUPROFILER_API BatchGetFrameMetricDataRequest()=default
BatchGetFrameMetricDataRequest & WithStartTime(StartTimeT &&value)
BatchGetFrameMetricDataRequest & WithProfilingGroupName(ProfilingGroupNameT &&value)
AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector