AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
UpdateApplicationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/opensearch/OpenSearchServiceRequest.h>
10#include <aws/opensearch/OpenSearchService_EXPORTS.h>
11#include <aws/opensearch/model/AppConfig.h>
12#include <aws/opensearch/model/DataSource.h>
13#include <aws/opensearch/model/IamIdentityCenterOptionsInput.h>
14
15#include <utility>
16
17namespace Aws {
18namespace OpenSearchService {
19namespace Model {
20
24 public:
25 AWS_OPENSEARCHSERVICE_API UpdateApplicationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateApplication"; }
32
33 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<DataSource>& GetDataSources() const { return m_dataSources; }
58 inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; }
59 template <typename DataSourcesT = Aws::Vector<DataSource>>
60 void SetDataSources(DataSourcesT&& value) {
61 m_dataSourcesHasBeenSet = true;
62 m_dataSources = std::forward<DataSourcesT>(value);
63 }
64 template <typename DataSourcesT = Aws::Vector<DataSource>>
66 SetDataSources(std::forward<DataSourcesT>(value));
67 return *this;
68 }
69 template <typename DataSourcesT = DataSource>
71 m_dataSourcesHasBeenSet = true;
72 m_dataSources.emplace_back(std::forward<DataSourcesT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Vector<AppConfig>& GetAppConfigs() const { return m_appConfigs; }
82 inline bool AppConfigsHasBeenSet() const { return m_appConfigsHasBeenSet; }
83 template <typename AppConfigsT = Aws::Vector<AppConfig>>
84 void SetAppConfigs(AppConfigsT&& value) {
85 m_appConfigsHasBeenSet = true;
86 m_appConfigs = std::forward<AppConfigsT>(value);
87 }
88 template <typename AppConfigsT = Aws::Vector<AppConfig>>
90 SetAppConfigs(std::forward<AppConfigsT>(value));
91 return *this;
92 }
93 template <typename AppConfigsT = AppConfig>
95 m_appConfigsHasBeenSet = true;
96 m_appConfigs.emplace_back(std::forward<AppConfigsT>(value));
97 return *this;
98 }
100
102
106 inline const IamIdentityCenterOptionsInput& GetIamIdentityCenterOptions() const { return m_iamIdentityCenterOptions; }
107 inline bool IamIdentityCenterOptionsHasBeenSet() const { return m_iamIdentityCenterOptionsHasBeenSet; }
108 template <typename IamIdentityCenterOptionsT = IamIdentityCenterOptionsInput>
109 void SetIamIdentityCenterOptions(IamIdentityCenterOptionsT&& value) {
110 m_iamIdentityCenterOptionsHasBeenSet = true;
111 m_iamIdentityCenterOptions = std::forward<IamIdentityCenterOptionsT>(value);
112 }
113 template <typename IamIdentityCenterOptionsT = IamIdentityCenterOptionsInput>
114 UpdateApplicationRequest& WithIamIdentityCenterOptions(IamIdentityCenterOptionsT&& value) {
115 SetIamIdentityCenterOptions(std::forward<IamIdentityCenterOptionsT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_id;
121
122 Aws::Vector<DataSource> m_dataSources;
123
124 Aws::Vector<AppConfig> m_appConfigs;
125
126 IamIdentityCenterOptionsInput m_iamIdentityCenterOptions;
127 bool m_idHasBeenSet = false;
128 bool m_dataSourcesHasBeenSet = false;
129 bool m_appConfigsHasBeenSet = false;
130 bool m_iamIdentityCenterOptionsHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace OpenSearchService
135} // namespace Aws
AWS_OPENSEARCHSERVICE_API UpdateApplicationRequest()=default
void SetIamIdentityCenterOptions(IamIdentityCenterOptionsT &&value)
UpdateApplicationRequest & WithDataSources(DataSourcesT &&value)
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
UpdateApplicationRequest & AddAppConfigs(AppConfigsT &&value)
UpdateApplicationRequest & WithAppConfigs(AppConfigsT &&value)
UpdateApplicationRequest & AddDataSources(DataSourcesT &&value)
const Aws::Vector< DataSource > & GetDataSources() const
UpdateApplicationRequest & WithIamIdentityCenterOptions(IamIdentityCenterOptionsT &&value)
const IamIdentityCenterOptionsInput & GetIamIdentityCenterOptions() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector