AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GetProfileRequest.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfilerRequest.h>
8#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace CodeGuruProfiler {
19namespace Model {
20
28 public:
29 AWS_CODEGURUPROFILER_API GetProfileRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "GetProfile"; }
36
37 AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override;
38
39 AWS_CODEGURUPROFILER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41 AWS_CODEGURUPROFILER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
44
55 inline const Aws::String& GetAccept() const { return m_accept; }
56 inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
57 template <typename AcceptT = Aws::String>
58 void SetAccept(AcceptT&& value) {
59 m_acceptHasBeenSet = true;
60 m_accept = std::forward<AcceptT>(value);
61 }
62 template <typename AcceptT = Aws::String>
63 GetProfileRequest& WithAccept(AcceptT&& value) {
64 SetAccept(std::forward<AcceptT>(value));
65 return *this;
66 }
68
70
76 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
77 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
78 template <typename EndTimeT = Aws::Utils::DateTime>
79 void SetEndTime(EndTimeT&& value) {
80 m_endTimeHasBeenSet = true;
81 m_endTime = std::forward<EndTimeT>(value);
82 }
83 template <typename EndTimeT = Aws::Utils::DateTime>
84 GetProfileRequest& WithEndTime(EndTimeT&& value) {
85 SetEndTime(std::forward<EndTimeT>(value));
86 return *this;
87 }
89
91
99 inline int GetMaxDepth() const { return m_maxDepth; }
100 inline bool MaxDepthHasBeenSet() const { return m_maxDepthHasBeenSet; }
101 inline void SetMaxDepth(int value) {
102 m_maxDepthHasBeenSet = true;
103 m_maxDepth = value;
104 }
105 inline GetProfileRequest& WithMaxDepth(int value) {
106 SetMaxDepth(value);
107 return *this;
108 }
110
112
119 inline const Aws::String& GetPeriod() const { return m_period; }
120 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
121 template <typename PeriodT = Aws::String>
122 void SetPeriod(PeriodT&& value) {
123 m_periodHasBeenSet = true;
124 m_period = std::forward<PeriodT>(value);
125 }
126 template <typename PeriodT = Aws::String>
127 GetProfileRequest& WithPeriod(PeriodT&& value) {
128 SetPeriod(std::forward<PeriodT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetProfilingGroupName() const { return m_profilingGroupName; }
138 inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
139 template <typename ProfilingGroupNameT = Aws::String>
140 void SetProfilingGroupName(ProfilingGroupNameT&& value) {
141 m_profilingGroupNameHasBeenSet = true;
142 m_profilingGroupName = std::forward<ProfilingGroupNameT>(value);
143 }
144 template <typename ProfilingGroupNameT = Aws::String>
145 GetProfileRequest& WithProfilingGroupName(ProfilingGroupNameT&& value) {
146 SetProfilingGroupName(std::forward<ProfilingGroupNameT>(value));
147 return *this;
148 }
150
152
160 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
161 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
162 template <typename StartTimeT = Aws::Utils::DateTime>
163 void SetStartTime(StartTimeT&& value) {
164 m_startTimeHasBeenSet = true;
165 m_startTime = std::forward<StartTimeT>(value);
166 }
167 template <typename StartTimeT = Aws::Utils::DateTime>
168 GetProfileRequest& WithStartTime(StartTimeT&& value) {
169 SetStartTime(std::forward<StartTimeT>(value));
170 return *this;
171 }
173 private:
174 Aws::String m_accept;
175
176 Aws::Utils::DateTime m_endTime{};
177
178 int m_maxDepth{0};
179
180 Aws::String m_period;
181
182 Aws::String m_profilingGroupName;
183
184 Aws::Utils::DateTime m_startTime{};
185 bool m_acceptHasBeenSet = false;
186 bool m_endTimeHasBeenSet = false;
187 bool m_maxDepthHasBeenSet = false;
188 bool m_periodHasBeenSet = false;
189 bool m_profilingGroupNameHasBeenSet = false;
190 bool m_startTimeHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace CodeGuruProfiler
195} // namespace Aws
virtual const char * GetServiceRequestName() const override
GetProfileRequest & WithEndTime(EndTimeT &&value)
AWS_CODEGURUPROFILER_API GetProfileRequest()=default
GetProfileRequest & WithStartTime(StartTimeT &&value)
AWS_CODEGURUPROFILER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetProfilingGroupName(ProfilingGroupNameT &&value)
AWS_CODEGURUPROFILER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetProfileRequest & WithProfilingGroupName(ProfilingGroupNameT &&value)
const Aws::Utils::DateTime & GetEndTime() const
AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override
const Aws::Utils::DateTime & GetStartTime() const
GetProfileRequest & WithAccept(AcceptT &&value)
GetProfileRequest & WithPeriod(PeriodT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String