AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NotifyRecommendationsReceivedRequest.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/QConnectRequest.h>
10#include <aws/qconnect/QConnect_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace QConnect {
16namespace Model {
17
21 public:
22 AWS_QCONNECT_API NotifyRecommendationsReceivedRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "NotifyRecommendationsReceived"; }
29
30 AWS_QCONNECT_API Aws::String SerializePayload() const override;
31
33
37 inline const Aws::String& GetAssistantId() const { return m_assistantId; }
38 inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; }
39 template <typename AssistantIdT = Aws::String>
41 m_assistantIdHasBeenSet = true;
42 m_assistantId = std::forward<AssistantIdT>(value);
43 }
44 template <typename AssistantIdT = Aws::String>
46 SetAssistantId(std::forward<AssistantIdT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetSessionId() const { return m_sessionId; }
57 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
58 template <typename SessionIdT = Aws::String>
59 void SetSessionId(SessionIdT&& value) {
60 m_sessionIdHasBeenSet = true;
61 m_sessionId = std::forward<SessionIdT>(value);
62 }
63 template <typename SessionIdT = Aws::String>
65 SetSessionId(std::forward<SessionIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Vector<Aws::String>& GetRecommendationIds() const { return m_recommendationIds; }
75 inline bool RecommendationIdsHasBeenSet() const { return m_recommendationIdsHasBeenSet; }
76 template <typename RecommendationIdsT = Aws::Vector<Aws::String>>
78 m_recommendationIdsHasBeenSet = true;
79 m_recommendationIds = std::forward<RecommendationIdsT>(value);
80 }
81 template <typename RecommendationIdsT = Aws::Vector<Aws::String>>
83 SetRecommendationIds(std::forward<RecommendationIdsT>(value));
84 return *this;
85 }
86 template <typename RecommendationIdsT = Aws::String>
88 m_recommendationIdsHasBeenSet = true;
89 m_recommendationIds.emplace_back(std::forward<RecommendationIdsT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_assistantId;
95
96 Aws::String m_sessionId;
97
98 Aws::Vector<Aws::String> m_recommendationIds;
99 bool m_assistantIdHasBeenSet = false;
100 bool m_sessionIdHasBeenSet = false;
101 bool m_recommendationIdsHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace QConnect
106} // namespace Aws
AWS_QCONNECT_API Aws::String SerializePayload() const override
NotifyRecommendationsReceivedRequest & WithRecommendationIds(RecommendationIdsT &&value)
NotifyRecommendationsReceivedRequest & AddRecommendationIds(RecommendationIdsT &&value)
NotifyRecommendationsReceivedRequest & WithSessionId(SessionIdT &&value)
NotifyRecommendationsReceivedRequest & WithAssistantId(AssistantIdT &&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