AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
GetProfileRequest.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/codeguruprofiler/CodeGuruProfilerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace CodeGuruProfiler
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_CODEGURUPROFILER_API GetProfileRequest() = default;
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_CODEGURUPROFILER_API Aws::String SerializePayload() const override;
42
43 AWS_CODEGURUPROFILER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
44
45 AWS_CODEGURUPROFILER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
46
47
49
60 inline const Aws::String& GetAccept() const { return m_accept; }
61 inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
62 template<typename AcceptT = Aws::String>
63 void SetAccept(AcceptT&& value) { m_acceptHasBeenSet = true; m_accept = std::forward<AcceptT>(value); }
64 template<typename AcceptT = Aws::String>
65 GetProfileRequest& WithAccept(AcceptT&& value) { SetAccept(std::forward<AcceptT>(value)); return *this;}
67
69
75 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
76 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
77 template<typename EndTimeT = Aws::Utils::DateTime>
78 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
79 template<typename EndTimeT = Aws::Utils::DateTime>
80 GetProfileRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
82
84
92 inline int GetMaxDepth() const { return m_maxDepth; }
93 inline bool MaxDepthHasBeenSet() const { return m_maxDepthHasBeenSet; }
94 inline void SetMaxDepth(int value) { m_maxDepthHasBeenSet = true; m_maxDepth = value; }
95 inline GetProfileRequest& WithMaxDepth(int value) { SetMaxDepth(value); return *this;}
97
99
106 inline const Aws::String& GetPeriod() const { return m_period; }
107 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
108 template<typename PeriodT = Aws::String>
109 void SetPeriod(PeriodT&& value) { m_periodHasBeenSet = true; m_period = std::forward<PeriodT>(value); }
110 template<typename PeriodT = Aws::String>
111 GetProfileRequest& WithPeriod(PeriodT&& value) { SetPeriod(std::forward<PeriodT>(value)); return *this;}
113
115
118 inline const Aws::String& GetProfilingGroupName() const { return m_profilingGroupName; }
119 inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
120 template<typename ProfilingGroupNameT = Aws::String>
121 void SetProfilingGroupName(ProfilingGroupNameT&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::forward<ProfilingGroupNameT>(value); }
122 template<typename ProfilingGroupNameT = Aws::String>
123 GetProfileRequest& WithProfilingGroupName(ProfilingGroupNameT&& value) { SetProfilingGroupName(std::forward<ProfilingGroupNameT>(value)); return *this;}
125
127
135 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
136 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
137 template<typename StartTimeT = Aws::Utils::DateTime>
138 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
139 template<typename StartTimeT = Aws::Utils::DateTime>
140 GetProfileRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
142 private:
143
144 Aws::String m_accept;
145 bool m_acceptHasBeenSet = false;
146
147 Aws::Utils::DateTime m_endTime{};
148 bool m_endTimeHasBeenSet = false;
149
150 int m_maxDepth{0};
151 bool m_maxDepthHasBeenSet = false;
152
153 Aws::String m_period;
154 bool m_periodHasBeenSet = false;
155
156 Aws::String m_profilingGroupName;
157 bool m_profilingGroupNameHasBeenSet = false;
158
159 Aws::Utils::DateTime m_startTime{};
160 bool m_startTimeHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace CodeGuruProfiler
165} // 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