AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CreateChatResponseConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/qbusiness/QBusinessRequest.h>
12#include <aws/qbusiness/QBusiness_EXPORTS.h>
13#include <aws/qbusiness/model/ResponseConfiguration.h>
14#include <aws/qbusiness/model/ResponseConfigurationType.h>
15#include <aws/qbusiness/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace QBusiness {
21namespace Model {
22
26 public:
27 AWS_QBUSINESS_API CreateChatResponseConfigurationRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateChatResponseConfiguration"; }
34
35 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
36
38
42 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
43 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
44 template <typename ApplicationIdT = Aws::String>
46 m_applicationIdHasBeenSet = true;
47 m_applicationId = std::forward<ApplicationIdT>(value);
48 }
49 template <typename ApplicationIdT = Aws::String>
51 SetApplicationId(std::forward<ApplicationIdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetDisplayName() const { return m_displayName; }
62 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
63 template <typename DisplayNameT = Aws::String>
65 m_displayNameHasBeenSet = true;
66 m_displayName = std::forward<DisplayNameT>(value);
67 }
68 template <typename DisplayNameT = Aws::String>
70 SetDisplayName(std::forward<DisplayNameT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::String& GetClientToken() const { return m_clientToken; }
82 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
83 template <typename ClientTokenT = Aws::String>
85 m_clientTokenHasBeenSet = true;
86 m_clientToken = std::forward<ClientTokenT>(value);
87 }
88 template <typename ClientTokenT = Aws::String>
90 SetClientToken(std::forward<ClientTokenT>(value));
91 return *this;
92 }
94
96
102 return m_responseConfigurations;
103 }
104 inline bool ResponseConfigurationsHasBeenSet() const { return m_responseConfigurationsHasBeenSet; }
105 template <typename ResponseConfigurationsT = Aws::Map<ResponseConfigurationType, ResponseConfiguration>>
107 m_responseConfigurationsHasBeenSet = true;
108 m_responseConfigurations = std::forward<ResponseConfigurationsT>(value);
109 }
110 template <typename ResponseConfigurationsT = Aws::Map<ResponseConfigurationType, ResponseConfiguration>>
112 SetResponseConfigurations(std::forward<ResponseConfigurationsT>(value));
113 return *this;
114 }
116 m_responseConfigurationsHasBeenSet = true;
117 m_responseConfigurations.emplace(key, value);
118 return *this;
119 }
121
123
128 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
129 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
130 template <typename TagsT = Aws::Vector<Tag>>
131 void SetTags(TagsT&& value) {
132 m_tagsHasBeenSet = true;
133 m_tags = std::forward<TagsT>(value);
134 }
135 template <typename TagsT = Aws::Vector<Tag>>
137 SetTags(std::forward<TagsT>(value));
138 return *this;
139 }
140 template <typename TagsT = Tag>
142 m_tagsHasBeenSet = true;
143 m_tags.emplace_back(std::forward<TagsT>(value));
144 return *this;
145 }
147 private:
148 Aws::String m_applicationId;
149
150 Aws::String m_displayName;
151
153
155
156 Aws::Vector<Tag> m_tags;
157 bool m_applicationIdHasBeenSet = false;
158 bool m_displayNameHasBeenSet = false;
159 bool m_clientTokenHasBeenSet = true;
160 bool m_responseConfigurationsHasBeenSet = false;
161 bool m_tagsHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace QBusiness
166} // namespace Aws
AWS_QBUSINESS_API Aws::String SerializePayload() const override
const Aws::Map< ResponseConfigurationType, ResponseConfiguration > & GetResponseConfigurations() const
CreateChatResponseConfigurationRequest & WithResponseConfigurations(ResponseConfigurationsT &&value)
CreateChatResponseConfigurationRequest & WithClientToken(ClientTokenT &&value)
CreateChatResponseConfigurationRequest & WithDisplayName(DisplayNameT &&value)
CreateChatResponseConfigurationRequest & AddResponseConfigurations(ResponseConfigurationType key, ResponseConfiguration value)
CreateChatResponseConfigurationRequest & WithApplicationId(ApplicationIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector