AWS SDK for C++  1.9.21
AWS SDK for C++
GetRecommendationsRequest.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 "GetRecommendations"; }
40 
41  Aws::String SerializePayload() const override;
42 
43  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
44 
45 
52  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
53 
60  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
61 
68  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
69 
76  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
77 
84  inline GetRecommendationsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
85 
92  inline GetRecommendationsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
93 
94 
108  inline const Aws::String& GetLocale() const{ return m_locale; }
109 
123  inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
124 
138  inline void SetLocale(const Aws::String& value) { m_localeHasBeenSet = true; m_locale = value; }
139 
153  inline void SetLocale(Aws::String&& value) { m_localeHasBeenSet = true; m_locale = std::move(value); }
154 
168  inline void SetLocale(const char* value) { m_localeHasBeenSet = true; m_locale.assign(value); }
169 
183  inline GetRecommendationsRequest& WithLocale(const Aws::String& value) { SetLocale(value); return *this;}
184 
198  inline GetRecommendationsRequest& WithLocale(Aws::String&& value) { SetLocale(std::move(value)); return *this;}
199 
213  inline GetRecommendationsRequest& WithLocale(const char* value) { SetLocale(value); return *this;}
214 
215 
219  inline const Aws::String& GetProfilingGroupName() const{ return m_profilingGroupName; }
220 
224  inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
225 
229  inline void SetProfilingGroupName(const Aws::String& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = value; }
230 
234  inline void SetProfilingGroupName(Aws::String&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::move(value); }
235 
239  inline void SetProfilingGroupName(const char* value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName.assign(value); }
240 
244  inline GetRecommendationsRequest& WithProfilingGroupName(const Aws::String& value) { SetProfilingGroupName(value); return *this;}
245 
249  inline GetRecommendationsRequest& WithProfilingGroupName(Aws::String&& value) { SetProfilingGroupName(std::move(value)); return *this;}
250 
254  inline GetRecommendationsRequest& WithProfilingGroupName(const char* value) { SetProfilingGroupName(value); return *this;}
255 
256 
263  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
264 
271  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
272 
279  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
280 
287  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
288 
295  inline GetRecommendationsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
296 
303  inline GetRecommendationsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
304 
305  private:
306 
307  Aws::Utils::DateTime m_endTime;
308  bool m_endTimeHasBeenSet;
309 
310  Aws::String m_locale;
311  bool m_localeHasBeenSet;
312 
313  Aws::String m_profilingGroupName;
314  bool m_profilingGroupNameHasBeenSet;
315 
316  Aws::Utils::DateTime m_startTime;
317  bool m_startTimeHasBeenSet;
318  };
319 
320 } // namespace Model
321 } // namespace CodeGuruProfiler
322 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::SetLocale
void SetLocale(Aws::String &&value)
Definition: GetRecommendationsRequest.h:153
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::WithStartTime
GetRecommendationsRequest & WithStartTime(const Aws::Utils::DateTime &value)
Definition: GetRecommendationsRequest.h:295
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::SetProfilingGroupName
void SetProfilingGroupName(const Aws::String &value)
Definition: GetRecommendationsRequest.h:229
Aws::Http::URI
Definition: URI.h:32
AWS_CODEGURUPROFILER_API
#define AWS_CODEGURUPROFILER_API
Definition: CodeGuruProfiler_EXPORTS.h:28
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::WithStartTime
GetRecommendationsRequest & WithStartTime(Aws::Utils::DateTime &&value)
Definition: GetRecommendationsRequest.h:303
DateTime.h
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: GetRecommendationsRequest.h:76
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::WithProfilingGroupName
GetRecommendationsRequest & WithProfilingGroupName(Aws::String &&value)
Definition: GetRecommendationsRequest.h:249
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::ProfilingGroupNameHasBeenSet
bool ProfilingGroupNameHasBeenSet() const
Definition: GetRecommendationsRequest.h:224
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::WithLocale
GetRecommendationsRequest & WithLocale(const char *value)
Definition: GetRecommendationsRequest.h:213
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::LocaleHasBeenSet
bool LocaleHasBeenSet() const
Definition: GetRecommendationsRequest.h:123
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::SetLocale
void SetLocale(const char *value)
Definition: GetRecommendationsRequest.h:168
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::GetRecommendationsRequest
GetRecommendationsRequest()
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: GetRecommendationsRequest.h:60
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetRecommendationsRequest.h:39
CodeGuruProfiler_EXPORTS.h
CodeGuruProfilerRequest.h
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest
Definition: GetRecommendationsRequest.h:31
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: GetRecommendationsRequest.h:52
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: GetRecommendationsRequest.h:263
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: GetRecommendationsRequest.h:271
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::SetProfilingGroupName
void SetProfilingGroupName(const char *value)
Definition: GetRecommendationsRequest.h:239
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: GetRecommendationsRequest.h:68
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::WithEndTime
GetRecommendationsRequest & WithEndTime(const Aws::Utils::DateTime &value)
Definition: GetRecommendationsRequest.h:84
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::WithLocale
GetRecommendationsRequest & WithLocale(const Aws::String &value)
Definition: GetRecommendationsRequest.h:183
AWSString.h
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::WithProfilingGroupName
GetRecommendationsRequest & WithProfilingGroupName(const Aws::String &value)
Definition: GetRecommendationsRequest.h:244
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::SetLocale
void SetLocale(const Aws::String &value)
Definition: GetRecommendationsRequest.h:138
Aws
Definition: AccessManagementClient.h:15
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::GetProfilingGroupName
const Aws::String & GetProfilingGroupName() const
Definition: GetRecommendationsRequest.h:219
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: GetRecommendationsRequest.h:279
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::WithProfilingGroupName
GetRecommendationsRequest & WithProfilingGroupName(const char *value)
Definition: GetRecommendationsRequest.h:254
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::WithLocale
GetRecommendationsRequest & WithLocale(Aws::String &&value)
Definition: GetRecommendationsRequest.h:198
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::SetProfilingGroupName
void SetProfilingGroupName(Aws::String &&value)
Definition: GetRecommendationsRequest.h:234
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: GetRecommendationsRequest.h:287
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::GetLocale
const Aws::String & GetLocale() const
Definition: GetRecommendationsRequest.h:108
Aws::CodeGuruProfiler::CodeGuruProfilerRequest
Definition: CodeGuruProfilerRequest.h:18
Aws::CodeGuruProfiler::Model::GetRecommendationsRequest::WithEndTime
GetRecommendationsRequest & WithEndTime(Aws::Utils::DateTime &&value)
Definition: GetRecommendationsRequest.h:92