AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateApplicationRequest.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/opensearch/OpenSearchServiceRequest.h>
11#include <aws/opensearch/OpenSearchService_EXPORTS.h>
12#include <aws/opensearch/model/AppConfig.h>
13#include <aws/opensearch/model/DataSource.h>
14#include <aws/opensearch/model/IamIdentityCenterOptionsInput.h>
15#include <aws/opensearch/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace OpenSearchService {
21namespace Model {
22
26 public:
27 AWS_OPENSEARCHSERVICE_API CreateApplicationRequest() = default;
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 "CreateApplication"; }
34
35 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetClientToken() const { return m_clientToken; }
42 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
43 template <typename ClientTokenT = Aws::String>
44 void SetClientToken(ClientTokenT&& value) {
45 m_clientTokenHasBeenSet = true;
46 m_clientToken = std::forward<ClientTokenT>(value);
47 }
48 template <typename ClientTokenT = Aws::String>
50 SetClientToken(std::forward<ClientTokenT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<DataSource>& GetDataSources() const { return m_dataSources; }
79 inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; }
80 template <typename DataSourcesT = Aws::Vector<DataSource>>
81 void SetDataSources(DataSourcesT&& value) {
82 m_dataSourcesHasBeenSet = true;
83 m_dataSources = std::forward<DataSourcesT>(value);
84 }
85 template <typename DataSourcesT = Aws::Vector<DataSource>>
87 SetDataSources(std::forward<DataSourcesT>(value));
88 return *this;
89 }
90 template <typename DataSourcesT = DataSource>
92 m_dataSourcesHasBeenSet = true;
93 m_dataSources.emplace_back(std::forward<DataSourcesT>(value));
94 return *this;
95 }
97
99
103 inline const IamIdentityCenterOptionsInput& GetIamIdentityCenterOptions() const { return m_iamIdentityCenterOptions; }
104 inline bool IamIdentityCenterOptionsHasBeenSet() const { return m_iamIdentityCenterOptionsHasBeenSet; }
105 template <typename IamIdentityCenterOptionsT = IamIdentityCenterOptionsInput>
106 void SetIamIdentityCenterOptions(IamIdentityCenterOptionsT&& value) {
107 m_iamIdentityCenterOptionsHasBeenSet = true;
108 m_iamIdentityCenterOptions = std::forward<IamIdentityCenterOptionsT>(value);
109 }
110 template <typename IamIdentityCenterOptionsT = IamIdentityCenterOptionsInput>
111 CreateApplicationRequest& WithIamIdentityCenterOptions(IamIdentityCenterOptionsT&& value) {
112 SetIamIdentityCenterOptions(std::forward<IamIdentityCenterOptionsT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::Vector<AppConfig>& GetAppConfigs() const { return m_appConfigs; }
123 inline bool AppConfigsHasBeenSet() const { return m_appConfigsHasBeenSet; }
124 template <typename AppConfigsT = Aws::Vector<AppConfig>>
125 void SetAppConfigs(AppConfigsT&& value) {
126 m_appConfigsHasBeenSet = true;
127 m_appConfigs = std::forward<AppConfigsT>(value);
128 }
129 template <typename AppConfigsT = Aws::Vector<AppConfig>>
131 SetAppConfigs(std::forward<AppConfigsT>(value));
132 return *this;
133 }
134 template <typename AppConfigsT = AppConfig>
136 m_appConfigsHasBeenSet = true;
137 m_appConfigs.emplace_back(std::forward<AppConfigsT>(value));
138 return *this;
139 }
141
143
144 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
145 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
146 template <typename TagListT = Aws::Vector<Tag>>
147 void SetTagList(TagListT&& value) {
148 m_tagListHasBeenSet = true;
149 m_tagList = std::forward<TagListT>(value);
150 }
151 template <typename TagListT = Aws::Vector<Tag>>
153 SetTagList(std::forward<TagListT>(value));
154 return *this;
155 }
156 template <typename TagListT = Tag>
158 m_tagListHasBeenSet = true;
159 m_tagList.emplace_back(std::forward<TagListT>(value));
160 return *this;
161 }
163
165
171 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
172 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
173 template <typename KmsKeyArnT = Aws::String>
174 void SetKmsKeyArn(KmsKeyArnT&& value) {
175 m_kmsKeyArnHasBeenSet = true;
176 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
177 }
178 template <typename KmsKeyArnT = Aws::String>
180 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
181 return *this;
182 }
184 private:
186
187 Aws::String m_name;
188
189 Aws::Vector<DataSource> m_dataSources;
190
191 IamIdentityCenterOptionsInput m_iamIdentityCenterOptions;
192
193 Aws::Vector<AppConfig> m_appConfigs;
194
195 Aws::Vector<Tag> m_tagList;
196
197 Aws::String m_kmsKeyArn;
198 bool m_clientTokenHasBeenSet = true;
199 bool m_nameHasBeenSet = false;
200 bool m_dataSourcesHasBeenSet = false;
201 bool m_iamIdentityCenterOptionsHasBeenSet = false;
202 bool m_appConfigsHasBeenSet = false;
203 bool m_tagListHasBeenSet = false;
204 bool m_kmsKeyArnHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace OpenSearchService
209} // namespace Aws
CreateApplicationRequest & WithKmsKeyArn(KmsKeyArnT &&value)
CreateApplicationRequest & WithAppConfigs(AppConfigsT &&value)
CreateApplicationRequest & AddDataSources(DataSourcesT &&value)
void SetIamIdentityCenterOptions(IamIdentityCenterOptionsT &&value)
CreateApplicationRequest & WithIamIdentityCenterOptions(IamIdentityCenterOptionsT &&value)
AWS_OPENSEARCHSERVICE_API CreateApplicationRequest()=default
CreateApplicationRequest & WithClientToken(ClientTokenT &&value)
const IamIdentityCenterOptionsInput & GetIamIdentityCenterOptions() const
CreateApplicationRequest & AddAppConfigs(AppConfigsT &&value)
CreateApplicationRequest & WithDataSources(DataSourcesT &&value)
const Aws::Vector< DataSource > & GetDataSources() const
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
CreateApplicationRequest & AddTagList(TagListT &&value)
CreateApplicationRequest & WithTagList(TagListT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector