AWS SDK for C++  1.9.1
AWS SDK for C++
GetProfileRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace CodeGuruProfiler
20 {
21 namespace Model
22 {
23 
31  {
32  public:
34 
35  // Service request name is the Operation name which will send this request out,
36  // each operation should has unique request name, so that we can get operation's name from this request.
37  // Note: this is not true for response, multiple operations may have the same response name,
38  // so we can not get operation's name from response.
39  inline virtual const char* GetServiceRequestName() const override { return "GetProfile"; }
40 
41  Aws::String SerializePayload() const override;
42 
43  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
44 
46 
47 
59  inline const Aws::String& GetAccept() const{ return m_accept; }
60 
72  inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
73 
85  inline void SetAccept(const Aws::String& value) { m_acceptHasBeenSet = true; m_accept = value; }
86 
98  inline void SetAccept(Aws::String&& value) { m_acceptHasBeenSet = true; m_accept = std::move(value); }
99 
111  inline void SetAccept(const char* value) { m_acceptHasBeenSet = true; m_accept.assign(value); }
112 
124  inline GetProfileRequest& WithAccept(const Aws::String& value) { SetAccept(value); return *this;}
125 
137  inline GetProfileRequest& WithAccept(Aws::String&& value) { SetAccept(std::move(value)); return *this;}
138 
150  inline GetProfileRequest& WithAccept(const char* value) { SetAccept(value); return *this;}
151 
152 
159  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
160 
167  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
168 
175  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
176 
183  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
184 
191  inline GetProfileRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
192 
199  inline GetProfileRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
200 
201 
210  inline int GetMaxDepth() const{ return m_maxDepth; }
211 
220  inline bool MaxDepthHasBeenSet() const { return m_maxDepthHasBeenSet; }
221 
230  inline void SetMaxDepth(int value) { m_maxDepthHasBeenSet = true; m_maxDepth = value; }
231 
240  inline GetProfileRequest& WithMaxDepth(int value) { SetMaxDepth(value); return *this;}
241 
242 
250  inline const Aws::String& GetPeriod() const{ return m_period; }
251 
259  inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
260 
268  inline void SetPeriod(const Aws::String& value) { m_periodHasBeenSet = true; m_period = value; }
269 
277  inline void SetPeriod(Aws::String&& value) { m_periodHasBeenSet = true; m_period = std::move(value); }
278 
286  inline void SetPeriod(const char* value) { m_periodHasBeenSet = true; m_period.assign(value); }
287 
295  inline GetProfileRequest& WithPeriod(const Aws::String& value) { SetPeriod(value); return *this;}
296 
304  inline GetProfileRequest& WithPeriod(Aws::String&& value) { SetPeriod(std::move(value)); return *this;}
305 
313  inline GetProfileRequest& WithPeriod(const char* value) { SetPeriod(value); return *this;}
314 
315 
319  inline const Aws::String& GetProfilingGroupName() const{ return m_profilingGroupName; }
320 
324  inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
325 
329  inline void SetProfilingGroupName(const Aws::String& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = value; }
330 
334  inline void SetProfilingGroupName(Aws::String&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::move(value); }
335 
339  inline void SetProfilingGroupName(const char* value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName.assign(value); }
340 
344  inline GetProfileRequest& WithProfilingGroupName(const Aws::String& value) { SetProfilingGroupName(value); return *this;}
345 
349  inline GetProfileRequest& WithProfilingGroupName(Aws::String&& value) { SetProfilingGroupName(std::move(value)); return *this;}
350 
354  inline GetProfileRequest& WithProfilingGroupName(const char* value) { SetProfilingGroupName(value); return *this;}
355 
356 
365  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
366 
375  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
376 
385  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
386 
395  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
396 
405  inline GetProfileRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
406 
415  inline GetProfileRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
416 
417  private:
418 
419  Aws::String m_accept;
420  bool m_acceptHasBeenSet;
421 
422  Aws::Utils::DateTime m_endTime;
423  bool m_endTimeHasBeenSet;
424 
425  int m_maxDepth;
426  bool m_maxDepthHasBeenSet;
427 
428  Aws::String m_period;
429  bool m_periodHasBeenSet;
430 
431  Aws::String m_profilingGroupName;
432  bool m_profilingGroupNameHasBeenSet;
433 
434  Aws::Utils::DateTime m_startTime;
435  bool m_startTimeHasBeenSet;
436  };
437 
438 } // namespace Model
439 } // namespace CodeGuruProfiler
440 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::CodeGuruProfiler::Model::GetProfileRequest::WithAccept
GetProfileRequest & WithAccept(const Aws::String &value)
Definition: GetProfileRequest.h:124
Aws::CodeGuruProfiler::Model::GetProfileRequest::WithPeriod
GetProfileRequest & WithPeriod(const char *value)
Definition: GetProfileRequest.h:313
Aws::CodeGuruProfiler::Model::GetProfileRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetProfileRequest.h:39
Aws::Http::URI
Definition: URI.h:32
Aws::CodeGuruProfiler::Model::GetProfileRequest::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: GetProfileRequest.h:365
Aws::CodeGuruProfiler::Model::GetProfileRequest::MaxDepthHasBeenSet
bool MaxDepthHasBeenSet() const
Definition: GetProfileRequest.h:220
Aws::CodeGuruProfiler::Model::GetProfileRequest::SetProfilingGroupName
void SetProfilingGroupName(const char *value)
Definition: GetProfileRequest.h:339
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeGuruProfiler::Model::GetProfileRequest::GetPeriod
const Aws::String & GetPeriod() const
Definition: GetProfileRequest.h:250
AWS_CODEGURUPROFILER_API
#define AWS_CODEGURUPROFILER_API
Definition: CodeGuruProfiler_EXPORTS.h:28
Aws::CodeGuruProfiler::Model::GetProfileRequest::WithProfilingGroupName
GetProfileRequest & WithProfilingGroupName(const Aws::String &value)
Definition: GetProfileRequest.h:344
Aws::CodeGuruProfiler::Model::GetProfileRequest::SetPeriod
void SetPeriod(const char *value)
Definition: GetProfileRequest.h:286
Aws::CodeGuruProfiler::Model::GetProfileRequest::SetAccept
void SetAccept(const Aws::String &value)
Definition: GetProfileRequest.h:85
Aws::CodeGuruProfiler::Model::GetProfileRequest::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: GetProfileRequest.h:175
DateTime.h
Aws::CodeGuruProfiler::Model::GetProfileRequest::ProfilingGroupNameHasBeenSet
bool ProfilingGroupNameHasBeenSet() const
Definition: GetProfileRequest.h:324
Aws::CodeGuruProfiler::Model::GetProfileRequest::WithMaxDepth
GetProfileRequest & WithMaxDepth(int value)
Definition: GetProfileRequest.h:240
Aws::CodeGuruProfiler::Model::GetProfileRequest::GetProfilingGroupName
const Aws::String & GetProfilingGroupName() const
Definition: GetProfileRequest.h:319
Aws::CodeGuruProfiler::Model::GetProfileRequest::SetAccept
void SetAccept(const char *value)
Definition: GetProfileRequest.h:111
Aws::CodeGuruProfiler::Model::GetProfileRequest::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: GetProfileRequest.h:385
Aws::CodeGuruProfiler::Model::GetProfileRequest::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: GetProfileRequest.h:167
Aws::CodeGuruProfiler::Model::GetProfileRequest::WithPeriod
GetProfileRequest & WithPeriod(Aws::String &&value)
Definition: GetProfileRequest.h:304
CodeGuruProfiler_EXPORTS.h
CodeGuruProfilerRequest.h
Aws::CodeGuruProfiler::Model::GetProfileRequest::SetProfilingGroupName
void SetProfilingGroupName(const Aws::String &value)
Definition: GetProfileRequest.h:329
Aws::CodeGuruProfiler::Model::GetProfileRequest::SetPeriod
void SetPeriod(const Aws::String &value)
Definition: GetProfileRequest.h:268
Aws::CodeGuruProfiler::Model::GetProfileRequest::SetPeriod
void SetPeriod(Aws::String &&value)
Definition: GetProfileRequest.h:277
Aws::CodeGuruProfiler::Model::GetProfileRequest::SetMaxDepth
void SetMaxDepth(int value)
Definition: GetProfileRequest.h:230
Aws::CodeGuruProfiler::Model::GetProfileRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeGuruProfiler::Model::GetProfileRequest::WithEndTime
GetProfileRequest & WithEndTime(Aws::Utils::DateTime &&value)
Definition: GetProfileRequest.h:199
Aws::CodeGuruProfiler::Model::GetProfileRequest::WithStartTime
GetProfileRequest & WithStartTime(const Aws::Utils::DateTime &value)
Definition: GetProfileRequest.h:405
Aws::CodeGuruProfiler::Model::GetProfileRequest::WithEndTime
GetProfileRequest & WithEndTime(const Aws::Utils::DateTime &value)
Definition: GetProfileRequest.h:191
AWSString.h
Aws::CodeGuruProfiler::Model::GetProfileRequest::WithStartTime
GetProfileRequest & WithStartTime(Aws::Utils::DateTime &&value)
Definition: GetProfileRequest.h:415
Aws::CodeGuruProfiler::Model::GetProfileRequest::GetMaxDepth
int GetMaxDepth() const
Definition: GetProfileRequest.h:210
Aws::CodeGuruProfiler::Model::GetProfileRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::CodeGuruProfiler::Model::GetProfileRequest::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: GetProfileRequest.h:395
Aws::CodeGuruProfiler::Model::GetProfileRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeGuruProfiler::Model::GetProfileRequest::PeriodHasBeenSet
bool PeriodHasBeenSet() const
Definition: GetProfileRequest.h:259
Aws::CodeGuruProfiler::Model::GetProfileRequest::WithAccept
GetProfileRequest & WithAccept(const char *value)
Definition: GetProfileRequest.h:150
Aws
Definition: AccessManagementClient.h:15
Aws::CodeGuruProfiler::Model::GetProfileRequest::WithAccept
GetProfileRequest & WithAccept(Aws::String &&value)
Definition: GetProfileRequest.h:137
Aws::CodeGuruProfiler::Model::GetProfileRequest::GetAccept
const Aws::String & GetAccept() const
Definition: GetProfileRequest.h:59
Aws::CodeGuruProfiler::Model::GetProfileRequest::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: GetProfileRequest.h:375
Aws::CodeGuruProfiler::Model::GetProfileRequest::SetProfilingGroupName
void SetProfilingGroupName(Aws::String &&value)
Definition: GetProfileRequest.h:334
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeGuruProfiler::Model::GetProfileRequest::AcceptHasBeenSet
bool AcceptHasBeenSet() const
Definition: GetProfileRequest.h:72
Aws::CodeGuruProfiler::Model::GetProfileRequest::WithProfilingGroupName
GetProfileRequest & WithProfilingGroupName(Aws::String &&value)
Definition: GetProfileRequest.h:349
Aws::CodeGuruProfiler::Model::GetProfileRequest
Definition: GetProfileRequest.h:31
Aws::CodeGuruProfiler::Model::GetProfileRequest::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: GetProfileRequest.h:183
Aws::CodeGuruProfiler::Model::GetProfileRequest::GetProfileRequest
GetProfileRequest()
Aws::CodeGuruProfiler::Model::GetProfileRequest::WithPeriod
GetProfileRequest & WithPeriod(const Aws::String &value)
Definition: GetProfileRequest.h:295
Aws::CodeGuruProfiler::Model::GetProfileRequest::WithProfilingGroupName
GetProfileRequest & WithProfilingGroupName(const char *value)
Definition: GetProfileRequest.h:354
Aws::CodeGuruProfiler::Model::GetProfileRequest::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: GetProfileRequest.h:159
Aws::CodeGuruProfiler::CodeGuruProfilerRequest
Definition: CodeGuruProfilerRequest.h:18
Aws::CodeGuruProfiler::Model::GetProfileRequest::SetAccept
void SetAccept(Aws::String &&value)
Definition: GetProfileRequest.h:98