AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ListRecommendationsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sesv2/SESV2_EXPORTS.h>
11#include <aws/sesv2/model/Recommendation.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace SESV2 {
25namespace Model {
33 public:
34 AWS_SESV2_API ListRecommendationsResult() = default;
37
39
42 inline const Aws::Vector<Recommendation>& GetRecommendations() const { return m_recommendations; }
43 template <typename RecommendationsT = Aws::Vector<Recommendation>>
44 void SetRecommendations(RecommendationsT&& value) {
45 m_recommendationsHasBeenSet = true;
46 m_recommendations = std::forward<RecommendationsT>(value);
47 }
48 template <typename RecommendationsT = Aws::Vector<Recommendation>>
50 SetRecommendations(std::forward<RecommendationsT>(value));
51 return *this;
52 }
53 template <typename RecommendationsT = Recommendation>
54 ListRecommendationsResult& AddRecommendations(RecommendationsT&& value) {
55 m_recommendationsHasBeenSet = true;
56 m_recommendations.emplace_back(std::forward<RecommendationsT>(value));
57 return *this;
58 }
60
62
69 inline const Aws::String& GetNextToken() const { return m_nextToken; }
70 template <typename NextTokenT = Aws::String>
71 void SetNextToken(NextTokenT&& value) {
72 m_nextTokenHasBeenSet = true;
73 m_nextToken = std::forward<NextTokenT>(value);
74 }
75 template <typename NextTokenT = Aws::String>
77 SetNextToken(std::forward<NextTokenT>(value));
78 return *this;
79 }
81
83
84 inline const Aws::String& GetRequestId() const { return m_requestId; }
85 template <typename RequestIdT = Aws::String>
86 void SetRequestId(RequestIdT&& value) {
87 m_requestIdHasBeenSet = true;
88 m_requestId = std::forward<RequestIdT>(value);
89 }
90 template <typename RequestIdT = Aws::String>
92 SetRequestId(std::forward<RequestIdT>(value));
93 return *this;
94 }
96 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
97
98 private:
99 Aws::Vector<Recommendation> m_recommendations;
100
101 Aws::String m_nextToken;
102
103 Aws::String m_requestId;
104 Aws::Http::HttpResponseCode m_HttpResponseCode;
105 bool m_recommendationsHasBeenSet = false;
106 bool m_nextTokenHasBeenSet = false;
107 bool m_requestIdHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace SESV2
112} // namespace Aws
AWS_SESV2_API ListRecommendationsResult()=default
ListRecommendationsResult & WithNextToken(NextTokenT &&value)
AWS_SESV2_API ListRecommendationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListRecommendationsResult & AddRecommendations(RecommendationsT &&value)
ListRecommendationsResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< Recommendation > & GetRecommendations() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ListRecommendationsResult & WithRecommendations(RecommendationsT &&value)
AWS_SESV2_API ListRecommendationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue