AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateIndexRequest.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/IndexCapacityConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/qbusiness/model/DocumentAttributeConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace QBusiness
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_QBUSINESS_API UpdateIndexRequest();
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 "UpdateIndex"; }
34
35 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
44 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
45 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
46 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
47 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
48 inline UpdateIndexRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
49 inline UpdateIndexRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
50 inline UpdateIndexRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
52
54
57 inline const Aws::String& GetIndexId() const{ return m_indexId; }
58 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
59 inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; }
60 inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); }
61 inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); }
62 inline UpdateIndexRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;}
63 inline UpdateIndexRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;}
64 inline UpdateIndexRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;}
66
68
71 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
72 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
73 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
74 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
75 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
76 inline UpdateIndexRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
77 inline UpdateIndexRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
78 inline UpdateIndexRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
80
82
85 inline const Aws::String& GetDescription() const{ return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
88 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
89 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
90 inline UpdateIndexRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
91 inline UpdateIndexRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
92 inline UpdateIndexRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
94
96
100 inline const IndexCapacityConfiguration& GetCapacityConfiguration() const{ return m_capacityConfiguration; }
101 inline bool CapacityConfigurationHasBeenSet() const { return m_capacityConfigurationHasBeenSet; }
102 inline void SetCapacityConfiguration(const IndexCapacityConfiguration& value) { m_capacityConfigurationHasBeenSet = true; m_capacityConfiguration = value; }
103 inline void SetCapacityConfiguration(IndexCapacityConfiguration&& value) { m_capacityConfigurationHasBeenSet = true; m_capacityConfiguration = std::move(value); }
107
109
117 inline const Aws::Vector<DocumentAttributeConfiguration>& GetDocumentAttributeConfigurations() const{ return m_documentAttributeConfigurations; }
118 inline bool DocumentAttributeConfigurationsHasBeenSet() const { return m_documentAttributeConfigurationsHasBeenSet; }
119 inline void SetDocumentAttributeConfigurations(const Aws::Vector<DocumentAttributeConfiguration>& value) { m_documentAttributeConfigurationsHasBeenSet = true; m_documentAttributeConfigurations = value; }
120 inline void SetDocumentAttributeConfigurations(Aws::Vector<DocumentAttributeConfiguration>&& value) { m_documentAttributeConfigurationsHasBeenSet = true; m_documentAttributeConfigurations = std::move(value); }
123 inline UpdateIndexRequest& AddDocumentAttributeConfigurations(const DocumentAttributeConfiguration& value) { m_documentAttributeConfigurationsHasBeenSet = true; m_documentAttributeConfigurations.push_back(value); return *this; }
124 inline UpdateIndexRequest& AddDocumentAttributeConfigurations(DocumentAttributeConfiguration&& value) { m_documentAttributeConfigurationsHasBeenSet = true; m_documentAttributeConfigurations.push_back(std::move(value)); return *this; }
126 private:
127
128 Aws::String m_applicationId;
129 bool m_applicationIdHasBeenSet = false;
130
131 Aws::String m_indexId;
132 bool m_indexIdHasBeenSet = false;
133
134 Aws::String m_displayName;
135 bool m_displayNameHasBeenSet = false;
136
137 Aws::String m_description;
138 bool m_descriptionHasBeenSet = false;
139
140 IndexCapacityConfiguration m_capacityConfiguration;
141 bool m_capacityConfigurationHasBeenSet = false;
142
143 Aws::Vector<DocumentAttributeConfiguration> m_documentAttributeConfigurations;
144 bool m_documentAttributeConfigurationsHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace QBusiness
149} // namespace Aws
UpdateIndexRequest & WithDescription(Aws::String &&value)
void SetApplicationId(const Aws::String &value)
UpdateIndexRequest & WithApplicationId(const char *value)
UpdateIndexRequest & AddDocumentAttributeConfigurations(DocumentAttributeConfiguration &&value)
void SetIndexId(const Aws::String &value)
void SetDisplayName(const Aws::String &value)
AWS_QBUSINESS_API Aws::String SerializePayload() const override
UpdateIndexRequest & WithDocumentAttributeConfigurations(const Aws::Vector< DocumentAttributeConfiguration > &value)
void SetCapacityConfiguration(const IndexCapacityConfiguration &value)
UpdateIndexRequest & WithDocumentAttributeConfigurations(Aws::Vector< DocumentAttributeConfiguration > &&value)
const IndexCapacityConfiguration & GetCapacityConfiguration() const
UpdateIndexRequest & WithApplicationId(const Aws::String &value)
void SetDocumentAttributeConfigurations(const Aws::Vector< DocumentAttributeConfiguration > &value)
virtual const char * GetServiceRequestName() const override
UpdateIndexRequest & WithIndexId(Aws::String &&value)
void SetCapacityConfiguration(IndexCapacityConfiguration &&value)
UpdateIndexRequest & WithApplicationId(Aws::String &&value)
void SetDocumentAttributeConfigurations(Aws::Vector< DocumentAttributeConfiguration > &&value)
UpdateIndexRequest & WithDisplayName(const char *value)
UpdateIndexRequest & AddDocumentAttributeConfigurations(const DocumentAttributeConfiguration &value)
const Aws::String & GetApplicationId() const
UpdateIndexRequest & WithDescription(const char *value)
UpdateIndexRequest & WithCapacityConfiguration(IndexCapacityConfiguration &&value)
UpdateIndexRequest & WithDisplayName(Aws::String &&value)
UpdateIndexRequest & WithDescription(const Aws::String &value)
void SetDescription(const Aws::String &value)
UpdateIndexRequest & WithIndexId(const char *value)
const Aws::Vector< DocumentAttributeConfiguration > & GetDocumentAttributeConfigurations() const
UpdateIndexRequest & WithDisplayName(const Aws::String &value)
UpdateIndexRequest & WithIndexId(const Aws::String &value)
UpdateIndexRequest & WithCapacityConfiguration(const IndexCapacityConfiguration &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector