AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetRecommendationsResult.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/codeguruprofiler/model/Anomaly.h>
9#include <aws/codeguruprofiler/model/Recommendation.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CodeGuruProfiler {
27namespace Model {
35 public:
36 AWS_CODEGURUPROFILER_API GetRecommendationsResult() = default;
39
41
44 inline const Aws::Vector<Anomaly>& GetAnomalies() const { return m_anomalies; }
45 template <typename AnomaliesT = Aws::Vector<Anomaly>>
46 void SetAnomalies(AnomaliesT&& value) {
47 m_anomaliesHasBeenSet = true;
48 m_anomalies = std::forward<AnomaliesT>(value);
49 }
50 template <typename AnomaliesT = Aws::Vector<Anomaly>>
52 SetAnomalies(std::forward<AnomaliesT>(value));
53 return *this;
54 }
55 template <typename AnomaliesT = Anomaly>
57 m_anomaliesHasBeenSet = true;
58 m_anomalies.emplace_back(std::forward<AnomaliesT>(value));
59 return *this;
60 }
62
64
69 inline const Aws::Utils::DateTime& GetProfileEndTime() const { return m_profileEndTime; }
70 template <typename ProfileEndTimeT = Aws::Utils::DateTime>
71 void SetProfileEndTime(ProfileEndTimeT&& value) {
72 m_profileEndTimeHasBeenSet = true;
73 m_profileEndTime = std::forward<ProfileEndTimeT>(value);
74 }
75 template <typename ProfileEndTimeT = Aws::Utils::DateTime>
76 GetRecommendationsResult& WithProfileEndTime(ProfileEndTimeT&& value) {
77 SetProfileEndTime(std::forward<ProfileEndTimeT>(value));
78 return *this;
79 }
81
83
88 inline const Aws::Utils::DateTime& GetProfileStartTime() const { return m_profileStartTime; }
89 template <typename ProfileStartTimeT = Aws::Utils::DateTime>
90 void SetProfileStartTime(ProfileStartTimeT&& value) {
91 m_profileStartTimeHasBeenSet = true;
92 m_profileStartTime = std::forward<ProfileStartTimeT>(value);
93 }
94 template <typename ProfileStartTimeT = Aws::Utils::DateTime>
95 GetRecommendationsResult& WithProfileStartTime(ProfileStartTimeT&& value) {
96 SetProfileStartTime(std::forward<ProfileStartTimeT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetProfilingGroupName() const { return m_profilingGroupName; }
106 template <typename ProfilingGroupNameT = Aws::String>
107 void SetProfilingGroupName(ProfilingGroupNameT&& value) {
108 m_profilingGroupNameHasBeenSet = true;
109 m_profilingGroupName = std::forward<ProfilingGroupNameT>(value);
110 }
111 template <typename ProfilingGroupNameT = Aws::String>
112 GetRecommendationsResult& WithProfilingGroupName(ProfilingGroupNameT&& value) {
113 SetProfilingGroupName(std::forward<ProfilingGroupNameT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Vector<Recommendation>& GetRecommendations() const { return m_recommendations; }
123 template <typename RecommendationsT = Aws::Vector<Recommendation>>
124 void SetRecommendations(RecommendationsT&& value) {
125 m_recommendationsHasBeenSet = true;
126 m_recommendations = std::forward<RecommendationsT>(value);
127 }
128 template <typename RecommendationsT = Aws::Vector<Recommendation>>
130 SetRecommendations(std::forward<RecommendationsT>(value));
131 return *this;
132 }
133 template <typename RecommendationsT = Recommendation>
134 GetRecommendationsResult& AddRecommendations(RecommendationsT&& value) {
135 m_recommendationsHasBeenSet = true;
136 m_recommendations.emplace_back(std::forward<RecommendationsT>(value));
137 return *this;
138 }
140
142
143 inline const Aws::String& GetRequestId() const { return m_requestId; }
144 template <typename RequestIdT = Aws::String>
145 void SetRequestId(RequestIdT&& value) {
146 m_requestIdHasBeenSet = true;
147 m_requestId = std::forward<RequestIdT>(value);
148 }
149 template <typename RequestIdT = Aws::String>
151 SetRequestId(std::forward<RequestIdT>(value));
152 return *this;
153 }
155 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
156
157 private:
158 Aws::Vector<Anomaly> m_anomalies;
159
160 Aws::Utils::DateTime m_profileEndTime{};
161
162 Aws::Utils::DateTime m_profileStartTime{};
163
164 Aws::String m_profilingGroupName;
165
166 Aws::Vector<Recommendation> m_recommendations;
167
168 Aws::String m_requestId;
169 Aws::Http::HttpResponseCode m_HttpResponseCode;
170 bool m_anomaliesHasBeenSet = false;
171 bool m_profileEndTimeHasBeenSet = false;
172 bool m_profileStartTimeHasBeenSet = false;
173 bool m_profilingGroupNameHasBeenSet = false;
174 bool m_recommendationsHasBeenSet = false;
175 bool m_requestIdHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace CodeGuruProfiler
180} // namespace Aws
GetRecommendationsResult & WithProfileEndTime(ProfileEndTimeT &&value)
AWS_CODEGURUPROFILER_API GetRecommendationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRecommendationsResult & WithProfilingGroupName(ProfilingGroupNameT &&value)
GetRecommendationsResult & WithProfileStartTime(ProfileStartTimeT &&value)
AWS_CODEGURUPROFILER_API GetRecommendationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRecommendationsResult & AddAnomalies(AnomaliesT &&value)
const Aws::Vector< Recommendation > & GetRecommendations() const
GetRecommendationsResult & WithRecommendations(RecommendationsT &&value)
GetRecommendationsResult & WithRequestId(RequestIdT &&value)
GetRecommendationsResult & WithAnomalies(AnomaliesT &&value)
GetRecommendationsResult & AddRecommendations(RecommendationsT &&value)
AWS_CODEGURUPROFILER_API GetRecommendationsResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue