AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetRecommendationsResult.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/codeguruprofiler/model/Anomaly.h>
12#include <aws/codeguruprofiler/model/Recommendation.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace CodeGuruProfiler
28{
29namespace Model
30{
38 {
39 public:
40 AWS_CODEGURUPROFILER_API GetRecommendationsResult() = default;
43
44
46
49 inline const Aws::Vector<Anomaly>& GetAnomalies() const { return m_anomalies; }
50 template<typename AnomaliesT = Aws::Vector<Anomaly>>
51 void SetAnomalies(AnomaliesT&& value) { m_anomaliesHasBeenSet = true; m_anomalies = std::forward<AnomaliesT>(value); }
52 template<typename AnomaliesT = Aws::Vector<Anomaly>>
53 GetRecommendationsResult& WithAnomalies(AnomaliesT&& value) { SetAnomalies(std::forward<AnomaliesT>(value)); return *this;}
54 template<typename AnomaliesT = Anomaly>
55 GetRecommendationsResult& AddAnomalies(AnomaliesT&& value) { m_anomaliesHasBeenSet = true; m_anomalies.emplace_back(std::forward<AnomaliesT>(value)); return *this; }
57
59
64 inline const Aws::Utils::DateTime& GetProfileEndTime() const { return m_profileEndTime; }
65 template<typename ProfileEndTimeT = Aws::Utils::DateTime>
66 void SetProfileEndTime(ProfileEndTimeT&& value) { m_profileEndTimeHasBeenSet = true; m_profileEndTime = std::forward<ProfileEndTimeT>(value); }
67 template<typename ProfileEndTimeT = Aws::Utils::DateTime>
68 GetRecommendationsResult& WithProfileEndTime(ProfileEndTimeT&& value) { SetProfileEndTime(std::forward<ProfileEndTimeT>(value)); return *this;}
70
72
77 inline const Aws::Utils::DateTime& GetProfileStartTime() const { return m_profileStartTime; }
78 template<typename ProfileStartTimeT = Aws::Utils::DateTime>
79 void SetProfileStartTime(ProfileStartTimeT&& value) { m_profileStartTimeHasBeenSet = true; m_profileStartTime = std::forward<ProfileStartTimeT>(value); }
80 template<typename ProfileStartTimeT = Aws::Utils::DateTime>
81 GetRecommendationsResult& WithProfileStartTime(ProfileStartTimeT&& value) { SetProfileStartTime(std::forward<ProfileStartTimeT>(value)); return *this;}
83
85
88 inline const Aws::String& GetProfilingGroupName() const { return m_profilingGroupName; }
89 template<typename ProfilingGroupNameT = Aws::String>
90 void SetProfilingGroupName(ProfilingGroupNameT&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::forward<ProfilingGroupNameT>(value); }
91 template<typename ProfilingGroupNameT = Aws::String>
92 GetRecommendationsResult& WithProfilingGroupName(ProfilingGroupNameT&& value) { SetProfilingGroupName(std::forward<ProfilingGroupNameT>(value)); return *this;}
94
96
99 inline const Aws::Vector<Recommendation>& GetRecommendations() const { return m_recommendations; }
100 template<typename RecommendationsT = Aws::Vector<Recommendation>>
101 void SetRecommendations(RecommendationsT&& value) { m_recommendationsHasBeenSet = true; m_recommendations = std::forward<RecommendationsT>(value); }
102 template<typename RecommendationsT = Aws::Vector<Recommendation>>
103 GetRecommendationsResult& WithRecommendations(RecommendationsT&& value) { SetRecommendations(std::forward<RecommendationsT>(value)); return *this;}
104 template<typename RecommendationsT = Recommendation>
105 GetRecommendationsResult& AddRecommendations(RecommendationsT&& value) { m_recommendationsHasBeenSet = true; m_recommendations.emplace_back(std::forward<RecommendationsT>(value)); return *this; }
107
109
110 inline const Aws::String& GetRequestId() const { return m_requestId; }
111 template<typename RequestIdT = Aws::String>
112 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
113 template<typename RequestIdT = Aws::String>
114 GetRecommendationsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
116 private:
117
118 Aws::Vector<Anomaly> m_anomalies;
119 bool m_anomaliesHasBeenSet = false;
120
121 Aws::Utils::DateTime m_profileEndTime{};
122 bool m_profileEndTimeHasBeenSet = false;
123
124 Aws::Utils::DateTime m_profileStartTime{};
125 bool m_profileStartTimeHasBeenSet = false;
126
127 Aws::String m_profilingGroupName;
128 bool m_profilingGroupNameHasBeenSet = false;
129
130 Aws::Vector<Recommendation> m_recommendations;
131 bool m_recommendationsHasBeenSet = false;
132
133 Aws::String m_requestId;
134 bool m_requestIdHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace CodeGuruProfiler
139} // 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