AWS SDK for C++

AWS SDK for C++ Version 1.11.746

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/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CodeGuruProfiler {
26namespace Model {
34 public:
35 AWS_CODEGURUPROFILER_API GetRecommendationsResult() = default;
38
40
43 inline const Aws::Vector<Anomaly>& GetAnomalies() const { return m_anomalies; }
44 template <typename AnomaliesT = Aws::Vector<Anomaly>>
45 void SetAnomalies(AnomaliesT&& value) {
46 m_anomaliesHasBeenSet = true;
47 m_anomalies = std::forward<AnomaliesT>(value);
48 }
49 template <typename AnomaliesT = Aws::Vector<Anomaly>>
51 SetAnomalies(std::forward<AnomaliesT>(value));
52 return *this;
53 }
54 template <typename AnomaliesT = Anomaly>
56 m_anomaliesHasBeenSet = true;
57 m_anomalies.emplace_back(std::forward<AnomaliesT>(value));
58 return *this;
59 }
61
63
68 inline const Aws::Utils::DateTime& GetProfileEndTime() const { return m_profileEndTime; }
69 template <typename ProfileEndTimeT = Aws::Utils::DateTime>
70 void SetProfileEndTime(ProfileEndTimeT&& value) {
71 m_profileEndTimeHasBeenSet = true;
72 m_profileEndTime = std::forward<ProfileEndTimeT>(value);
73 }
74 template <typename ProfileEndTimeT = Aws::Utils::DateTime>
75 GetRecommendationsResult& WithProfileEndTime(ProfileEndTimeT&& value) {
76 SetProfileEndTime(std::forward<ProfileEndTimeT>(value));
77 return *this;
78 }
80
82
87 inline const Aws::Utils::DateTime& GetProfileStartTime() const { return m_profileStartTime; }
88 template <typename ProfileStartTimeT = Aws::Utils::DateTime>
89 void SetProfileStartTime(ProfileStartTimeT&& value) {
90 m_profileStartTimeHasBeenSet = true;
91 m_profileStartTime = std::forward<ProfileStartTimeT>(value);
92 }
93 template <typename ProfileStartTimeT = Aws::Utils::DateTime>
94 GetRecommendationsResult& WithProfileStartTime(ProfileStartTimeT&& value) {
95 SetProfileStartTime(std::forward<ProfileStartTimeT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetProfilingGroupName() const { return m_profilingGroupName; }
105 template <typename ProfilingGroupNameT = Aws::String>
106 void SetProfilingGroupName(ProfilingGroupNameT&& value) {
107 m_profilingGroupNameHasBeenSet = true;
108 m_profilingGroupName = std::forward<ProfilingGroupNameT>(value);
109 }
110 template <typename ProfilingGroupNameT = Aws::String>
111 GetRecommendationsResult& WithProfilingGroupName(ProfilingGroupNameT&& value) {
112 SetProfilingGroupName(std::forward<ProfilingGroupNameT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::Vector<Recommendation>& GetRecommendations() const { return m_recommendations; }
122 template <typename RecommendationsT = Aws::Vector<Recommendation>>
123 void SetRecommendations(RecommendationsT&& value) {
124 m_recommendationsHasBeenSet = true;
125 m_recommendations = std::forward<RecommendationsT>(value);
126 }
127 template <typename RecommendationsT = Aws::Vector<Recommendation>>
129 SetRecommendations(std::forward<RecommendationsT>(value));
130 return *this;
131 }
132 template <typename RecommendationsT = Recommendation>
133 GetRecommendationsResult& AddRecommendations(RecommendationsT&& value) {
134 m_recommendationsHasBeenSet = true;
135 m_recommendations.emplace_back(std::forward<RecommendationsT>(value));
136 return *this;
137 }
139
141
142 inline const Aws::String& GetRequestId() const { return m_requestId; }
143 template <typename RequestIdT = Aws::String>
144 void SetRequestId(RequestIdT&& value) {
145 m_requestIdHasBeenSet = true;
146 m_requestId = std::forward<RequestIdT>(value);
147 }
148 template <typename RequestIdT = Aws::String>
150 SetRequestId(std::forward<RequestIdT>(value));
151 return *this;
152 }
154 private:
155 Aws::Vector<Anomaly> m_anomalies;
156
157 Aws::Utils::DateTime m_profileEndTime{};
158
159 Aws::Utils::DateTime m_profileStartTime{};
160
161 Aws::String m_profilingGroupName;
162
163 Aws::Vector<Recommendation> m_recommendations;
164
165 Aws::String m_requestId;
166 bool m_anomaliesHasBeenSet = false;
167 bool m_profileEndTimeHasBeenSet = false;
168 bool m_profileStartTimeHasBeenSet = false;
169 bool m_profilingGroupNameHasBeenSet = false;
170 bool m_recommendationsHasBeenSet = false;
171 bool m_requestIdHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace CodeGuruProfiler
176} // 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