AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
CreateRetrieverRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/qbusiness/QBusinessRequest.h>
11#include <aws/qbusiness/QBusiness_EXPORTS.h>
12#include <aws/qbusiness/model/RetrieverConfiguration.h>
13#include <aws/qbusiness/model/RetrieverType.h>
14#include <aws/qbusiness/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace QBusiness {
20namespace Model {
21
25 public:
26 AWS_QBUSINESS_API CreateRetrieverRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateRetriever"; }
33
34 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
41 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
42 template <typename ApplicationIdT = Aws::String>
44 m_applicationIdHasBeenSet = true;
45 m_applicationId = std::forward<ApplicationIdT>(value);
46 }
47 template <typename ApplicationIdT = Aws::String>
49 SetApplicationId(std::forward<ApplicationIdT>(value));
50 return *this;
51 }
53
55
58 inline RetrieverType GetType() const { return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 inline void SetType(RetrieverType value) {
61 m_typeHasBeenSet = true;
62 m_type = value;
63 }
65 SetType(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDisplayName() const { return m_displayName; }
75 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
76 template <typename DisplayNameT = Aws::String>
78 m_displayNameHasBeenSet = true;
79 m_displayName = std::forward<DisplayNameT>(value);
80 }
81 template <typename DisplayNameT = Aws::String>
83 SetDisplayName(std::forward<DisplayNameT>(value));
84 return *this;
85 }
87
89
90 inline const RetrieverConfiguration& GetConfiguration() const { return m_configuration; }
91 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
92 template <typename ConfigurationT = RetrieverConfiguration>
94 m_configurationHasBeenSet = true;
95 m_configuration = std::forward<ConfigurationT>(value);
96 }
97 template <typename ConfigurationT = RetrieverConfiguration>
99 SetConfiguration(std::forward<ConfigurationT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
110 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
111 template <typename RoleArnT = Aws::String>
112 void SetRoleArn(RoleArnT&& value) {
113 m_roleArnHasBeenSet = true;
114 m_roleArn = std::forward<RoleArnT>(value);
115 }
116 template <typename RoleArnT = Aws::String>
118 SetRoleArn(std::forward<RoleArnT>(value));
119 return *this;
120 }
122
124
128 inline const Aws::String& GetClientToken() const { return m_clientToken; }
129 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
130 template <typename ClientTokenT = Aws::String>
132 m_clientTokenHasBeenSet = true;
133 m_clientToken = std::forward<ClientTokenT>(value);
134 }
135 template <typename ClientTokenT = Aws::String>
137 SetClientToken(std::forward<ClientTokenT>(value));
138 return *this;
139 }
141
143
149 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
150 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
151 template <typename TagsT = Aws::Vector<Tag>>
152 void SetTags(TagsT&& value) {
153 m_tagsHasBeenSet = true;
154 m_tags = std::forward<TagsT>(value);
155 }
156 template <typename TagsT = Aws::Vector<Tag>>
158 SetTags(std::forward<TagsT>(value));
159 return *this;
160 }
161 template <typename TagsT = Tag>
163 m_tagsHasBeenSet = true;
164 m_tags.emplace_back(std::forward<TagsT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_applicationId;
170 bool m_applicationIdHasBeenSet = false;
171
173 bool m_typeHasBeenSet = false;
174
175 Aws::String m_displayName;
176 bool m_displayNameHasBeenSet = false;
177
178 RetrieverConfiguration m_configuration;
179 bool m_configurationHasBeenSet = false;
180
181 Aws::String m_roleArn;
182 bool m_roleArnHasBeenSet = false;
183
185 bool m_clientTokenHasBeenSet = true;
186
187 Aws::Vector<Tag> m_tags;
188 bool m_tagsHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace QBusiness
193} // namespace Aws
CreateRetrieverRequest & WithConfiguration(ConfigurationT &&value)
CreateRetrieverRequest & WithApplicationId(ApplicationIdT &&value)
CreateRetrieverRequest & WithDisplayName(DisplayNameT &&value)
CreateRetrieverRequest & WithRoleArn(RoleArnT &&value)
AWS_QBUSINESS_API CreateRetrieverRequest()=default
const RetrieverConfiguration & GetConfiguration() const
CreateRetrieverRequest & AddTags(TagsT &&value)
CreateRetrieverRequest & WithTags(TagsT &&value)
AWS_QBUSINESS_API Aws::String SerializePayload() const override
CreateRetrieverRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
CreateRetrieverRequest & WithType(RetrieverType value)
static Aws::Utils::UUID PseudoRandomUUID()
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