AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateApplicationRequest.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/DataSource.h>
12#include <aws/opensearch/model/AppConfig.h>
13#include <utility>
14
15namespace Aws
16{
17namespace OpenSearchService
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_OPENSEARCHSERVICE_API UpdateApplicationRequest() = 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 "UpdateApplication"; }
34
35 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template<typename IdT = Aws::String>
45 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
46 template<typename IdT = Aws::String>
47 UpdateApplicationRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
49
51
54 inline const Aws::Vector<DataSource>& GetDataSources() const { return m_dataSources; }
55 inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; }
56 template<typename DataSourcesT = Aws::Vector<DataSource>>
57 void SetDataSources(DataSourcesT&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = std::forward<DataSourcesT>(value); }
58 template<typename DataSourcesT = Aws::Vector<DataSource>>
59 UpdateApplicationRequest& WithDataSources(DataSourcesT&& value) { SetDataSources(std::forward<DataSourcesT>(value)); return *this;}
60 template<typename DataSourcesT = DataSource>
61 UpdateApplicationRequest& AddDataSources(DataSourcesT&& value) { m_dataSourcesHasBeenSet = true; m_dataSources.emplace_back(std::forward<DataSourcesT>(value)); return *this; }
63
65
68 inline const Aws::Vector<AppConfig>& GetAppConfigs() const { return m_appConfigs; }
69 inline bool AppConfigsHasBeenSet() const { return m_appConfigsHasBeenSet; }
70 template<typename AppConfigsT = Aws::Vector<AppConfig>>
71 void SetAppConfigs(AppConfigsT&& value) { m_appConfigsHasBeenSet = true; m_appConfigs = std::forward<AppConfigsT>(value); }
72 template<typename AppConfigsT = Aws::Vector<AppConfig>>
73 UpdateApplicationRequest& WithAppConfigs(AppConfigsT&& value) { SetAppConfigs(std::forward<AppConfigsT>(value)); return *this;}
74 template<typename AppConfigsT = AppConfig>
75 UpdateApplicationRequest& AddAppConfigs(AppConfigsT&& value) { m_appConfigsHasBeenSet = true; m_appConfigs.emplace_back(std::forward<AppConfigsT>(value)); return *this; }
77 private:
78
79 Aws::String m_id;
80 bool m_idHasBeenSet = false;
81
82 Aws::Vector<DataSource> m_dataSources;
83 bool m_dataSourcesHasBeenSet = false;
84
85 Aws::Vector<AppConfig> m_appConfigs;
86 bool m_appConfigsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace OpenSearchService
91} // 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