AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
GetRecommendationsRequest.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 GetRecommendationsRequest() = 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 "GetRecommendations"; }
36
37 AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override;
38
39 AWS_CODEGURUPROFILER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
42
48 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
49 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
50 template <typename EndTimeT = Aws::Utils::DateTime>
51 void SetEndTime(EndTimeT&& value) {
52 m_endTimeHasBeenSet = true;
53 m_endTime = std::forward<EndTimeT>(value);
54 }
55 template <typename EndTimeT = Aws::Utils::DateTime>
57 SetEndTime(std::forward<EndTimeT>(value));
58 return *this;
59 }
61
63
76 inline const Aws::String& GetLocale() const { return m_locale; }
77 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
78 template <typename LocaleT = Aws::String>
79 void SetLocale(LocaleT&& value) {
80 m_localeHasBeenSet = true;
81 m_locale = std::forward<LocaleT>(value);
82 }
83 template <typename LocaleT = Aws::String>
85 SetLocale(std::forward<LocaleT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetProfilingGroupName() const { return m_profilingGroupName; }
95 inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
96 template <typename ProfilingGroupNameT = Aws::String>
97 void SetProfilingGroupName(ProfilingGroupNameT&& value) {
98 m_profilingGroupNameHasBeenSet = true;
99 m_profilingGroupName = std::forward<ProfilingGroupNameT>(value);
100 }
101 template <typename ProfilingGroupNameT = Aws::String>
102 GetRecommendationsRequest& WithProfilingGroupName(ProfilingGroupNameT&& value) {
103 SetProfilingGroupName(std::forward<ProfilingGroupNameT>(value));
104 return *this;
105 }
107
109
115 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
116 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
117 template <typename StartTimeT = Aws::Utils::DateTime>
118 void SetStartTime(StartTimeT&& value) {
119 m_startTimeHasBeenSet = true;
120 m_startTime = std::forward<StartTimeT>(value);
121 }
122 template <typename StartTimeT = Aws::Utils::DateTime>
124 SetStartTime(std::forward<StartTimeT>(value));
125 return *this;
126 }
128 private:
129 Aws::Utils::DateTime m_endTime{};
130
131 Aws::String m_locale;
132
133 Aws::String m_profilingGroupName;
134
135 Aws::Utils::DateTime m_startTime{};
136 bool m_endTimeHasBeenSet = false;
137 bool m_localeHasBeenSet = false;
138 bool m_profilingGroupNameHasBeenSet = false;
139 bool m_startTimeHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace CodeGuruProfiler
144} // namespace Aws
GetRecommendationsRequest & WithStartTime(StartTimeT &&value)
AWS_CODEGURUPROFILER_API GetRecommendationsRequest()=default
AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override
GetRecommendationsRequest & WithProfilingGroupName(ProfilingGroupNameT &&value)
AWS_CODEGURUPROFILER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetRecommendationsRequest & WithLocale(LocaleT &&value)
GetRecommendationsRequest & WithEndTime(EndTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String