AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
14#include <utility>
15
16namespace Aws {
17namespace OpenSearchService {
18namespace Model {
19
23 public:
24 AWS_OPENSEARCHSERVICE_API UpdateApplicationRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateApplication"; }
31
32 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetId() const { return m_id; }
39 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
40 template <typename IdT = Aws::String>
41 void SetId(IdT&& value) {
42 m_idHasBeenSet = true;
43 m_id = std::forward<IdT>(value);
44 }
45 template <typename IdT = Aws::String>
47 SetId(std::forward<IdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Vector<DataSource>& GetDataSources() const { return m_dataSources; }
57 inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; }
58 template <typename DataSourcesT = Aws::Vector<DataSource>>
59 void SetDataSources(DataSourcesT&& value) {
60 m_dataSourcesHasBeenSet = true;
61 m_dataSources = std::forward<DataSourcesT>(value);
62 }
63 template <typename DataSourcesT = Aws::Vector<DataSource>>
65 SetDataSources(std::forward<DataSourcesT>(value));
66 return *this;
67 }
68 template <typename DataSourcesT = DataSource>
70 m_dataSourcesHasBeenSet = true;
71 m_dataSources.emplace_back(std::forward<DataSourcesT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Vector<AppConfig>& GetAppConfigs() const { return m_appConfigs; }
81 inline bool AppConfigsHasBeenSet() const { return m_appConfigsHasBeenSet; }
82 template <typename AppConfigsT = Aws::Vector<AppConfig>>
83 void SetAppConfigs(AppConfigsT&& value) {
84 m_appConfigsHasBeenSet = true;
85 m_appConfigs = std::forward<AppConfigsT>(value);
86 }
87 template <typename AppConfigsT = Aws::Vector<AppConfig>>
89 SetAppConfigs(std::forward<AppConfigsT>(value));
90 return *this;
91 }
92 template <typename AppConfigsT = AppConfig>
94 m_appConfigsHasBeenSet = true;
95 m_appConfigs.emplace_back(std::forward<AppConfigsT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_id;
101
102 Aws::Vector<DataSource> m_dataSources;
103
104 Aws::Vector<AppConfig> m_appConfigs;
105 bool m_idHasBeenSet = false;
106 bool m_dataSourcesHasBeenSet = false;
107 bool m_appConfigsHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace OpenSearchService
112} // namespace Aws
AWS_OPENSEARCHSERVICE_API UpdateApplicationRequest()=default
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
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector