AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/OpenSearchServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/opensearch/model/IamIdentityCenterOptionsInput.h>
12#include <aws/opensearch/model/DataSource.h>
13#include <aws/opensearch/model/AppConfig.h>
14#include <aws/opensearch/model/Tag.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace OpenSearchService
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_OPENSEARCHSERVICE_API CreateApplicationRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
37
38 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
39
40
42
46 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
47 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
48 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
49 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
50 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
51 inline CreateApplicationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
52 inline CreateApplicationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
53 inline CreateApplicationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
55
57
62 inline const Aws::String& GetName() const{ return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
65 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
66 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 inline CreateApplicationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
68 inline CreateApplicationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
69 inline CreateApplicationRequest& WithName(const char* value) { SetName(value); return *this;}
71
73
76 inline const Aws::Vector<DataSource>& GetDataSources() const{ return m_dataSources; }
77 inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; }
78 inline void SetDataSources(const Aws::Vector<DataSource>& value) { m_dataSourcesHasBeenSet = true; m_dataSources = value; }
79 inline void SetDataSources(Aws::Vector<DataSource>&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = std::move(value); }
81 inline CreateApplicationRequest& WithDataSources(Aws::Vector<DataSource>&& value) { SetDataSources(std::move(value)); return *this;}
82 inline CreateApplicationRequest& AddDataSources(const DataSource& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(value); return *this; }
83 inline CreateApplicationRequest& AddDataSources(DataSource&& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(std::move(value)); return *this; }
85
87
90 inline const IamIdentityCenterOptionsInput& GetIamIdentityCenterOptions() const{ return m_iamIdentityCenterOptions; }
91 inline bool IamIdentityCenterOptionsHasBeenSet() const { return m_iamIdentityCenterOptionsHasBeenSet; }
92 inline void SetIamIdentityCenterOptions(const IamIdentityCenterOptionsInput& value) { m_iamIdentityCenterOptionsHasBeenSet = true; m_iamIdentityCenterOptions = value; }
93 inline void SetIamIdentityCenterOptions(IamIdentityCenterOptionsInput&& value) { m_iamIdentityCenterOptionsHasBeenSet = true; m_iamIdentityCenterOptions = std::move(value); }
97
99
103 inline const Aws::Vector<AppConfig>& GetAppConfigs() const{ return m_appConfigs; }
104 inline bool AppConfigsHasBeenSet() const { return m_appConfigsHasBeenSet; }
105 inline void SetAppConfigs(const Aws::Vector<AppConfig>& value) { m_appConfigsHasBeenSet = true; m_appConfigs = value; }
106 inline void SetAppConfigs(Aws::Vector<AppConfig>&& value) { m_appConfigsHasBeenSet = true; m_appConfigs = std::move(value); }
108 inline CreateApplicationRequest& WithAppConfigs(Aws::Vector<AppConfig>&& value) { SetAppConfigs(std::move(value)); return *this;}
109 inline CreateApplicationRequest& AddAppConfigs(const AppConfig& value) { m_appConfigsHasBeenSet = true; m_appConfigs.push_back(value); return *this; }
110 inline CreateApplicationRequest& AddAppConfigs(AppConfig&& value) { m_appConfigsHasBeenSet = true; m_appConfigs.push_back(std::move(value)); return *this; }
112
114
115 inline const Aws::Vector<Tag>& GetTagList() const{ return m_tagList; }
116 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
117 inline void SetTagList(const Aws::Vector<Tag>& value) { m_tagListHasBeenSet = true; m_tagList = value; }
118 inline void SetTagList(Aws::Vector<Tag>&& value) { m_tagListHasBeenSet = true; m_tagList = std::move(value); }
119 inline CreateApplicationRequest& WithTagList(const Aws::Vector<Tag>& value) { SetTagList(value); return *this;}
120 inline CreateApplicationRequest& WithTagList(Aws::Vector<Tag>&& value) { SetTagList(std::move(value)); return *this;}
121 inline CreateApplicationRequest& AddTagList(const Tag& value) { m_tagListHasBeenSet = true; m_tagList.push_back(value); return *this; }
122 inline CreateApplicationRequest& AddTagList(Tag&& value) { m_tagListHasBeenSet = true; m_tagList.push_back(std::move(value)); return *this; }
124 private:
125
126 Aws::String m_clientToken;
127 bool m_clientTokenHasBeenSet = false;
128
129 Aws::String m_name;
130 bool m_nameHasBeenSet = false;
131
132 Aws::Vector<DataSource> m_dataSources;
133 bool m_dataSourcesHasBeenSet = false;
134
135 IamIdentityCenterOptionsInput m_iamIdentityCenterOptions;
136 bool m_iamIdentityCenterOptionsHasBeenSet = false;
137
138 Aws::Vector<AppConfig> m_appConfigs;
139 bool m_appConfigsHasBeenSet = false;
140
141 Aws::Vector<Tag> m_tagList;
142 bool m_tagListHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace OpenSearchService
147} // namespace Aws
CreateApplicationRequest & WithClientToken(Aws::String &&value)
CreateApplicationRequest & AddAppConfigs(const AppConfig &value)
CreateApplicationRequest & WithTagList(const Aws::Vector< Tag > &value)
CreateApplicationRequest & WithName(const Aws::String &value)
CreateApplicationRequest & WithDataSources(Aws::Vector< DataSource > &&value)
void SetIamIdentityCenterOptions(IamIdentityCenterOptionsInput &&value)
CreateApplicationRequest & WithAppConfigs(const Aws::Vector< AppConfig > &value)
CreateApplicationRequest & WithClientToken(const Aws::String &value)
CreateApplicationRequest & AddAppConfigs(AppConfig &&value)
CreateApplicationRequest & WithIamIdentityCenterOptions(const IamIdentityCenterOptionsInput &value)
CreateApplicationRequest & WithName(Aws::String &&value)
CreateApplicationRequest & WithAppConfigs(Aws::Vector< AppConfig > &&value)
CreateApplicationRequest & WithDataSources(const Aws::Vector< DataSource > &value)
CreateApplicationRequest & AddDataSources(const DataSource &value)
CreateApplicationRequest & WithClientToken(const char *value)
void SetDataSources(const Aws::Vector< DataSource > &value)
CreateApplicationRequest & WithIamIdentityCenterOptions(IamIdentityCenterOptionsInput &&value)
const IamIdentityCenterOptionsInput & GetIamIdentityCenterOptions() const
const Aws::Vector< DataSource > & GetDataSources() const
CreateApplicationRequest & AddDataSources(DataSource &&value)
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
CreateApplicationRequest & WithTagList(Aws::Vector< Tag > &&value)
CreateApplicationRequest & AddTagList(const Tag &value)
void SetIamIdentityCenterOptions(const IamIdentityCenterOptionsInput &value)
CreateApplicationRequest & WithName(const char *value)
void SetAppConfigs(const Aws::Vector< AppConfig > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector