AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
43
44
46
49 inline const Aws::Vector<Anomaly>& GetAnomalies() const{ return m_anomalies; }
50 inline void SetAnomalies(const Aws::Vector<Anomaly>& value) { m_anomalies = value; }
51 inline void SetAnomalies(Aws::Vector<Anomaly>&& value) { m_anomalies = std::move(value); }
52 inline GetRecommendationsResult& WithAnomalies(const Aws::Vector<Anomaly>& value) { SetAnomalies(value); return *this;}
53 inline GetRecommendationsResult& WithAnomalies(Aws::Vector<Anomaly>&& value) { SetAnomalies(std::move(value)); return *this;}
54 inline GetRecommendationsResult& AddAnomalies(const Anomaly& value) { m_anomalies.push_back(value); return *this; }
55 inline GetRecommendationsResult& AddAnomalies(Anomaly&& value) { m_anomalies.push_back(std::move(value)); return *this; }
57
59
64 inline const Aws::Utils::DateTime& GetProfileEndTime() const{ return m_profileEndTime; }
65 inline void SetProfileEndTime(const Aws::Utils::DateTime& value) { m_profileEndTime = value; }
66 inline void SetProfileEndTime(Aws::Utils::DateTime&& value) { m_profileEndTime = std::move(value); }
68 inline GetRecommendationsResult& WithProfileEndTime(Aws::Utils::DateTime&& value) { SetProfileEndTime(std::move(value)); return *this;}
70
72
77 inline const Aws::Utils::DateTime& GetProfileStartTime() const{ return m_profileStartTime; }
78 inline void SetProfileStartTime(const Aws::Utils::DateTime& value) { m_profileStartTime = value; }
79 inline void SetProfileStartTime(Aws::Utils::DateTime&& value) { m_profileStartTime = std::move(value); }
83
85
88 inline const Aws::String& GetProfilingGroupName() const{ return m_profilingGroupName; }
89 inline void SetProfilingGroupName(const Aws::String& value) { m_profilingGroupName = value; }
90 inline void SetProfilingGroupName(Aws::String&& value) { m_profilingGroupName = std::move(value); }
91 inline void SetProfilingGroupName(const char* value) { m_profilingGroupName.assign(value); }
93 inline GetRecommendationsResult& WithProfilingGroupName(Aws::String&& value) { SetProfilingGroupName(std::move(value)); return *this;}
94 inline GetRecommendationsResult& WithProfilingGroupName(const char* value) { SetProfilingGroupName(value); return *this;}
96
98
101 inline const Aws::Vector<Recommendation>& GetRecommendations() const{ return m_recommendations; }
102 inline void SetRecommendations(const Aws::Vector<Recommendation>& value) { m_recommendations = value; }
103 inline void SetRecommendations(Aws::Vector<Recommendation>&& value) { m_recommendations = std::move(value); }
106 inline GetRecommendationsResult& AddRecommendations(const Recommendation& value) { m_recommendations.push_back(value); return *this; }
107 inline GetRecommendationsResult& AddRecommendations(Recommendation&& value) { m_recommendations.push_back(std::move(value)); return *this; }
109
111
112 inline const Aws::String& GetRequestId() const{ return m_requestId; }
113 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
114 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
115 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
116 inline GetRecommendationsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
117 inline GetRecommendationsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
118 inline GetRecommendationsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
120 private:
121
122 Aws::Vector<Anomaly> m_anomalies;
123
124 Aws::Utils::DateTime m_profileEndTime;
125
126 Aws::Utils::DateTime m_profileStartTime;
127
128 Aws::String m_profilingGroupName;
129
130 Aws::Vector<Recommendation> m_recommendations;
131
132 Aws::String m_requestId;
133 };
134
135} // namespace Model
136} // namespace CodeGuruProfiler
137} // namespace Aws
GetRecommendationsResult & WithProfilingGroupName(const Aws::String &value)
void SetProfileStartTime(const Aws::Utils::DateTime &value)
GetRecommendationsResult & WithProfileEndTime(Aws::Utils::DateTime &&value)
GetRecommendationsResult & WithProfileStartTime(const Aws::Utils::DateTime &value)
GetRecommendationsResult & WithProfilingGroupName(const char *value)
GetRecommendationsResult & WithRecommendations(const Aws::Vector< Recommendation > &value)
GetRecommendationsResult & WithProfileEndTime(const Aws::Utils::DateTime &value)
GetRecommendationsResult & WithProfilingGroupName(Aws::String &&value)
AWS_CODEGURUPROFILER_API GetRecommendationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetAnomalies(const Aws::Vector< Anomaly > &value)
GetRecommendationsResult & WithRequestId(Aws::String &&value)
GetRecommendationsResult & AddRecommendations(const Recommendation &value)
void SetRecommendations(const Aws::Vector< Recommendation > &value)
GetRecommendationsResult & WithProfileStartTime(Aws::Utils::DateTime &&value)
void SetProfileEndTime(const Aws::Utils::DateTime &value)
void SetRecommendations(Aws::Vector< Recommendation > &&value)
GetRecommendationsResult & AddAnomalies(Anomaly &&value)
GetRecommendationsResult & AddRecommendations(Recommendation &&value)
GetRecommendationsResult & WithAnomalies(const Aws::Vector< Anomaly > &value)
AWS_CODEGURUPROFILER_API GetRecommendationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRecommendationsResult & AddAnomalies(const Anomaly &value)
GetRecommendationsResult & WithRequestId(const Aws::String &value)
GetRecommendationsResult & WithRecommendations(Aws::Vector< Recommendation > &&value)
const Aws::Vector< Recommendation > & GetRecommendations() const
GetRecommendationsResult & WithAnomalies(Aws::Vector< Anomaly > &&value)
GetRecommendationsResult & WithRequestId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue