AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CreateIndexRequest.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/IndexCapacityConfiguration.h>
13#include <aws/qbusiness/model/IndexType.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 CreateIndexRequest() = 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 "CreateIndex"; }
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 const Aws::String& GetDisplayName() const { return m_displayName; }
59 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
60 template <typename DisplayNameT = Aws::String>
62 m_displayNameHasBeenSet = true;
63 m_displayName = std::forward<DisplayNameT>(value);
64 }
65 template <typename DisplayNameT = Aws::String>
67 SetDisplayName(std::forward<DisplayNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
97 inline IndexType GetType() const { return m_type; }
98 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
99 inline void SetType(IndexType value) {
100 m_typeHasBeenSet = true;
101 m_type = value;
102 }
104 SetType(value);
105 return *this;
106 }
108
110
116 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 template <typename TagsT = Aws::Vector<Tag>>
119 void SetTags(TagsT&& value) {
120 m_tagsHasBeenSet = true;
121 m_tags = std::forward<TagsT>(value);
122 }
123 template <typename TagsT = Aws::Vector<Tag>>
125 SetTags(std::forward<TagsT>(value));
126 return *this;
127 }
128 template <typename TagsT = Tag>
130 m_tagsHasBeenSet = true;
131 m_tags.emplace_back(std::forward<TagsT>(value));
132 return *this;
133 }
135
137
141 inline const IndexCapacityConfiguration& GetCapacityConfiguration() const { return m_capacityConfiguration; }
142 inline bool CapacityConfigurationHasBeenSet() const { return m_capacityConfigurationHasBeenSet; }
143 template <typename CapacityConfigurationT = IndexCapacityConfiguration>
145 m_capacityConfigurationHasBeenSet = true;
146 m_capacityConfiguration = std::forward<CapacityConfigurationT>(value);
147 }
148 template <typename CapacityConfigurationT = IndexCapacityConfiguration>
150 SetCapacityConfiguration(std::forward<CapacityConfigurationT>(value));
151 return *this;
152 }
154
156
161 inline const Aws::String& GetClientToken() const { return m_clientToken; }
162 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
163 template <typename ClientTokenT = Aws::String>
165 m_clientTokenHasBeenSet = true;
166 m_clientToken = std::forward<ClientTokenT>(value);
167 }
168 template <typename ClientTokenT = Aws::String>
170 SetClientToken(std::forward<ClientTokenT>(value));
171 return *this;
172 }
174 private:
175 Aws::String m_applicationId;
176
177 Aws::String m_displayName;
178
179 Aws::String m_description;
180
182
183 Aws::Vector<Tag> m_tags;
184
185 IndexCapacityConfiguration m_capacityConfiguration;
186
188 bool m_applicationIdHasBeenSet = false;
189 bool m_displayNameHasBeenSet = false;
190 bool m_descriptionHasBeenSet = false;
191 bool m_typeHasBeenSet = false;
192 bool m_tagsHasBeenSet = false;
193 bool m_capacityConfigurationHasBeenSet = false;
194 bool m_clientTokenHasBeenSet = true;
195};
196
197} // namespace Model
198} // namespace QBusiness
199} // namespace Aws
CreateIndexRequest & WithDescription(DescriptionT &&value)
CreateIndexRequest & WithCapacityConfiguration(CapacityConfigurationT &&value)
CreateIndexRequest & WithTags(TagsT &&value)
void SetApplicationId(ApplicationIdT &&value)
CreateIndexRequest & AddTags(TagsT &&value)
CreateIndexRequest & WithDisplayName(DisplayNameT &&value)
AWS_QBUSINESS_API CreateIndexRequest()=default
const Aws::String & GetApplicationId() const
const Aws::Vector< Tag > & GetTags() const
AWS_QBUSINESS_API Aws::String SerializePayload() const override
CreateIndexRequest & WithType(IndexType value)
void SetCapacityConfiguration(CapacityConfigurationT &&value)
CreateIndexRequest & WithClientToken(ClientTokenT &&value)
CreateIndexRequest & WithApplicationId(ApplicationIdT &&value)
virtual const char * GetServiceRequestName() const override
const IndexCapacityConfiguration & GetCapacityConfiguration() const
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