AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateIndexRequest.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qbusiness/model/IndexType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/qbusiness/model/IndexCapacityConfiguration.h>
13#include <aws/qbusiness/model/Tag.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace QBusiness
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_QBUSINESS_API CreateIndexRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateIndex"; }
36
37 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
45 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
46 template<typename ApplicationIdT = Aws::String>
47 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
48 template<typename ApplicationIdT = Aws::String>
49 CreateIndexRequest& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetDisplayName() const { return m_displayName; }
57 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
58 template<typename DisplayNameT = Aws::String>
59 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
60 template<typename DisplayNameT = Aws::String>
61 CreateIndexRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
63
65
68 inline const Aws::String& GetDescription() const { return m_description; }
69 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
70 template<typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
72 template<typename DescriptionT = Aws::String>
73 CreateIndexRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
75
77
83 inline IndexType GetType() const { return m_type; }
84 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
85 inline void SetType(IndexType value) { m_typeHasBeenSet = true; m_type = value; }
86 inline CreateIndexRequest& WithType(IndexType value) { SetType(value); return *this;}
88
90
96 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
97 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
98 template<typename TagsT = Aws::Vector<Tag>>
99 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
100 template<typename TagsT = Aws::Vector<Tag>>
101 CreateIndexRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
102 template<typename TagsT = Tag>
103 CreateIndexRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
105
107
111 inline const IndexCapacityConfiguration& GetCapacityConfiguration() const { return m_capacityConfiguration; }
112 inline bool CapacityConfigurationHasBeenSet() const { return m_capacityConfigurationHasBeenSet; }
113 template<typename CapacityConfigurationT = IndexCapacityConfiguration>
114 void SetCapacityConfiguration(CapacityConfigurationT&& value) { m_capacityConfigurationHasBeenSet = true; m_capacityConfiguration = std::forward<CapacityConfigurationT>(value); }
115 template<typename CapacityConfigurationT = IndexCapacityConfiguration>
116 CreateIndexRequest& WithCapacityConfiguration(CapacityConfigurationT&& value) { SetCapacityConfiguration(std::forward<CapacityConfigurationT>(value)); return *this;}
118
120
125 inline const Aws::String& GetClientToken() const { return m_clientToken; }
126 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
127 template<typename ClientTokenT = Aws::String>
128 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
129 template<typename ClientTokenT = Aws::String>
130 CreateIndexRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
132 private:
133
134 Aws::String m_applicationId;
135 bool m_applicationIdHasBeenSet = false;
136
137 Aws::String m_displayName;
138 bool m_displayNameHasBeenSet = false;
139
140 Aws::String m_description;
141 bool m_descriptionHasBeenSet = false;
142
144 bool m_typeHasBeenSet = false;
145
146 Aws::Vector<Tag> m_tags;
147 bool m_tagsHasBeenSet = false;
148
149 IndexCapacityConfiguration m_capacityConfiguration;
150 bool m_capacityConfigurationHasBeenSet = false;
151
153 bool m_clientTokenHasBeenSet = true;
154 };
155
156} // namespace Model
157} // namespace QBusiness
158} // 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