AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NotifyRecommendationsReceivedResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qconnect/QConnect_EXPORTS.h>
10#include <aws/qconnect/model/NotifyRecommendationsReceivedError.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace QConnect {
24namespace Model {
26 public:
27 AWS_QCONNECT_API NotifyRecommendationsReceivedResult() = default;
30
32
35 inline const Aws::Vector<Aws::String>& GetRecommendationIds() const { return m_recommendationIds; }
36 template <typename RecommendationIdsT = Aws::Vector<Aws::String>>
38 m_recommendationIdsHasBeenSet = true;
39 m_recommendationIds = std::forward<RecommendationIdsT>(value);
40 }
41 template <typename RecommendationIdsT = Aws::Vector<Aws::String>>
43 SetRecommendationIds(std::forward<RecommendationIdsT>(value));
44 return *this;
45 }
46 template <typename RecommendationIdsT = Aws::String>
48 m_recommendationIdsHasBeenSet = true;
49 m_recommendationIds.emplace_back(std::forward<RecommendationIdsT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<NotifyRecommendationsReceivedError>& GetErrors() const { return m_errors; }
59 template <typename ErrorsT = Aws::Vector<NotifyRecommendationsReceivedError>>
60 void SetErrors(ErrorsT&& value) {
61 m_errorsHasBeenSet = true;
62 m_errors = std::forward<ErrorsT>(value);
63 }
64 template <typename ErrorsT = Aws::Vector<NotifyRecommendationsReceivedError>>
66 SetErrors(std::forward<ErrorsT>(value));
67 return *this;
68 }
69 template <typename ErrorsT = NotifyRecommendationsReceivedError>
71 m_errorsHasBeenSet = true;
72 m_errors.emplace_back(std::forward<ErrorsT>(value));
73 return *this;
74 }
76
78
79 inline const Aws::String& GetRequestId() const { return m_requestId; }
80 template <typename RequestIdT = Aws::String>
81 void SetRequestId(RequestIdT&& value) {
82 m_requestIdHasBeenSet = true;
83 m_requestId = std::forward<RequestIdT>(value);
84 }
85 template <typename RequestIdT = Aws::String>
87 SetRequestId(std::forward<RequestIdT>(value));
88 return *this;
89 }
91 private:
92 Aws::Vector<Aws::String> m_recommendationIds;
93
95
96 Aws::String m_requestId;
97 bool m_recommendationIdsHasBeenSet = false;
98 bool m_errorsHasBeenSet = false;
99 bool m_requestIdHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace QConnect
104} // namespace Aws
AWS_QCONNECT_API NotifyRecommendationsReceivedResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_QCONNECT_API NotifyRecommendationsReceivedResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< NotifyRecommendationsReceivedError > & GetErrors() const
NotifyRecommendationsReceivedResult & WithErrors(ErrorsT &&value)
NotifyRecommendationsReceivedResult & WithRecommendationIds(RecommendationIdsT &&value)
NotifyRecommendationsReceivedResult & AddErrors(ErrorsT &&value)
NotifyRecommendationsReceivedResult & WithRequestId(RequestIdT &&value)
NotifyRecommendationsReceivedResult & AddRecommendationIds(RecommendationIdsT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue