AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
47 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
48 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
49 inline CreateIndexRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
50 inline CreateIndexRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
51 inline CreateIndexRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
53
55
58 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
59 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
60 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
61 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
62 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
63 inline CreateIndexRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
64 inline CreateIndexRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
65 inline CreateIndexRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
67
69
75 inline const IndexType& GetType() const{ return m_type; }
76 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
77 inline void SetType(const IndexType& value) { m_typeHasBeenSet = true; m_type = value; }
78 inline void SetType(IndexType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
79 inline CreateIndexRequest& WithType(const IndexType& value) { SetType(value); return *this;}
80 inline CreateIndexRequest& WithType(IndexType&& value) { SetType(std::move(value)); return *this;}
82
84
87 inline const Aws::String& GetDescription() const{ return m_description; }
88 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
90 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
91 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
92 inline CreateIndexRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
93 inline CreateIndexRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
94 inline CreateIndexRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
96
98
104 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
105 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
106 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
107 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
108 inline CreateIndexRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
109 inline CreateIndexRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
110 inline CreateIndexRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
111 inline CreateIndexRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
113
115
119 inline const IndexCapacityConfiguration& GetCapacityConfiguration() const{ return m_capacityConfiguration; }
120 inline bool CapacityConfigurationHasBeenSet() const { return m_capacityConfigurationHasBeenSet; }
121 inline void SetCapacityConfiguration(const IndexCapacityConfiguration& value) { m_capacityConfigurationHasBeenSet = true; m_capacityConfiguration = value; }
122 inline void SetCapacityConfiguration(IndexCapacityConfiguration&& value) { m_capacityConfigurationHasBeenSet = true; m_capacityConfiguration = std::move(value); }
126
128
133 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
134 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
135 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
136 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
137 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
138 inline CreateIndexRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
139 inline CreateIndexRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
140 inline CreateIndexRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
142 private:
143
144 Aws::String m_applicationId;
145 bool m_applicationIdHasBeenSet = false;
146
147 Aws::String m_displayName;
148 bool m_displayNameHasBeenSet = false;
149
150 IndexType m_type;
151 bool m_typeHasBeenSet = false;
152
153 Aws::String m_description;
154 bool m_descriptionHasBeenSet = false;
155
156 Aws::Vector<Tag> m_tags;
157 bool m_tagsHasBeenSet = false;
158
159 IndexCapacityConfiguration m_capacityConfiguration;
160 bool m_capacityConfigurationHasBeenSet = false;
161
162 Aws::String m_clientToken;
163 bool m_clientTokenHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace QBusiness
168} // namespace Aws
void SetCapacityConfiguration(IndexCapacityConfiguration &&value)
CreateIndexRequest & WithDescription(const Aws::String &value)
CreateIndexRequest & WithApplicationId(const Aws::String &value)
CreateIndexRequest & WithCapacityConfiguration(const IndexCapacityConfiguration &value)
CreateIndexRequest & WithApplicationId(const char *value)
CreateIndexRequest & WithDescription(Aws::String &&value)
CreateIndexRequest & WithTags(const Aws::Vector< Tag > &value)
CreateIndexRequest & WithDisplayName(const char *value)
CreateIndexRequest & WithClientToken(const Aws::String &value)
CreateIndexRequest & WithClientToken(Aws::String &&value)
void SetApplicationId(const Aws::String &value)
CreateIndexRequest & WithType(IndexType &&value)
void SetDisplayName(const Aws::String &value)
CreateIndexRequest & WithType(const IndexType &value)
void SetTags(Aws::Vector< Tag > &&value)
void SetCapacityConfiguration(const IndexCapacityConfiguration &value)
void SetClientToken(const Aws::String &value)
CreateIndexRequest & WithDescription(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
CreateIndexRequest & WithDisplayName(const Aws::String &value)
const Aws::String & GetApplicationId() const
const Aws::Vector< Tag > & GetTags() const
CreateIndexRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_QBUSINESS_API Aws::String SerializePayload() const override
CreateIndexRequest & WithApplicationId(Aws::String &&value)
CreateIndexRequest & AddTags(Tag &&value)
CreateIndexRequest & AddTags(const Tag &value)
CreateIndexRequest & WithCapacityConfiguration(IndexCapacityConfiguration &&value)
CreateIndexRequest & WithDisplayName(Aws::String &&value)
CreateIndexRequest & WithClientToken(const char *value)
void SetDescription(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
const IndexCapacityConfiguration & GetCapacityConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector