AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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
45 inline const Aws::String& GetClientToken() const { return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 template<typename ClientTokenT = Aws::String>
48 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
49 template<typename ClientTokenT = Aws::String>
50 CreateApplicationRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
52
54
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template<typename NameT = Aws::String>
61 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 CreateApplicationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
70 inline const Aws::Vector<DataSource>& GetDataSources() const { return m_dataSources; }
71 inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; }
72 template<typename DataSourcesT = Aws::Vector<DataSource>>
73 void SetDataSources(DataSourcesT&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = std::forward<DataSourcesT>(value); }
74 template<typename DataSourcesT = Aws::Vector<DataSource>>
75 CreateApplicationRequest& WithDataSources(DataSourcesT&& value) { SetDataSources(std::forward<DataSourcesT>(value)); return *this;}
76 template<typename DataSourcesT = DataSource>
77 CreateApplicationRequest& AddDataSources(DataSourcesT&& value) { m_dataSourcesHasBeenSet = true; m_dataSources.emplace_back(std::forward<DataSourcesT>(value)); return *this; }
79
81
85 inline const IamIdentityCenterOptionsInput& GetIamIdentityCenterOptions() const { return m_iamIdentityCenterOptions; }
86 inline bool IamIdentityCenterOptionsHasBeenSet() const { return m_iamIdentityCenterOptionsHasBeenSet; }
87 template<typename IamIdentityCenterOptionsT = IamIdentityCenterOptionsInput>
88 void SetIamIdentityCenterOptions(IamIdentityCenterOptionsT&& value) { m_iamIdentityCenterOptionsHasBeenSet = true; m_iamIdentityCenterOptions = std::forward<IamIdentityCenterOptionsT>(value); }
89 template<typename IamIdentityCenterOptionsT = IamIdentityCenterOptionsInput>
90 CreateApplicationRequest& WithIamIdentityCenterOptions(IamIdentityCenterOptionsT&& value) { SetIamIdentityCenterOptions(std::forward<IamIdentityCenterOptionsT>(value)); return *this;}
92
94
98 inline const Aws::Vector<AppConfig>& GetAppConfigs() const { return m_appConfigs; }
99 inline bool AppConfigsHasBeenSet() const { return m_appConfigsHasBeenSet; }
100 template<typename AppConfigsT = Aws::Vector<AppConfig>>
101 void SetAppConfigs(AppConfigsT&& value) { m_appConfigsHasBeenSet = true; m_appConfigs = std::forward<AppConfigsT>(value); }
102 template<typename AppConfigsT = Aws::Vector<AppConfig>>
103 CreateApplicationRequest& WithAppConfigs(AppConfigsT&& value) { SetAppConfigs(std::forward<AppConfigsT>(value)); return *this;}
104 template<typename AppConfigsT = AppConfig>
105 CreateApplicationRequest& AddAppConfigs(AppConfigsT&& value) { m_appConfigsHasBeenSet = true; m_appConfigs.emplace_back(std::forward<AppConfigsT>(value)); return *this; }
107
109
110 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
111 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
112 template<typename TagListT = Aws::Vector<Tag>>
113 void SetTagList(TagListT&& value) { m_tagListHasBeenSet = true; m_tagList = std::forward<TagListT>(value); }
114 template<typename TagListT = Aws::Vector<Tag>>
115 CreateApplicationRequest& WithTagList(TagListT&& value) { SetTagList(std::forward<TagListT>(value)); return *this;}
116 template<typename TagListT = Tag>
117 CreateApplicationRequest& AddTagList(TagListT&& value) { m_tagListHasBeenSet = true; m_tagList.emplace_back(std::forward<TagListT>(value)); return *this; }
119 private:
120
122 bool m_clientTokenHasBeenSet = true;
123
124 Aws::String m_name;
125 bool m_nameHasBeenSet = false;
126
127 Aws::Vector<DataSource> m_dataSources;
128 bool m_dataSourcesHasBeenSet = false;
129
130 IamIdentityCenterOptionsInput m_iamIdentityCenterOptions;
131 bool m_iamIdentityCenterOptionsHasBeenSet = false;
132
133 Aws::Vector<AppConfig> m_appConfigs;
134 bool m_appConfigsHasBeenSet = false;
135
136 Aws::Vector<Tag> m_tagList;
137 bool m_tagListHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace OpenSearchService
142} // namespace Aws
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