AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
45 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
46 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
47 inline UpdateApplicationRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
48 inline UpdateApplicationRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
49 inline UpdateApplicationRequest& WithId(const char* value) { SetId(value); return *this;}
51
53
56 inline const Aws::Vector<DataSource>& GetDataSources() const{ return m_dataSources; }
57 inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; }
58 inline void SetDataSources(const Aws::Vector<DataSource>& value) { m_dataSourcesHasBeenSet = true; m_dataSources = value; }
59 inline void SetDataSources(Aws::Vector<DataSource>&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = std::move(value); }
61 inline UpdateApplicationRequest& WithDataSources(Aws::Vector<DataSource>&& value) { SetDataSources(std::move(value)); return *this;}
62 inline UpdateApplicationRequest& AddDataSources(const DataSource& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(value); return *this; }
63 inline UpdateApplicationRequest& AddDataSources(DataSource&& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(std::move(value)); return *this; }
65
67
70 inline const Aws::Vector<AppConfig>& GetAppConfigs() const{ return m_appConfigs; }
71 inline bool AppConfigsHasBeenSet() const { return m_appConfigsHasBeenSet; }
72 inline void SetAppConfigs(const Aws::Vector<AppConfig>& value) { m_appConfigsHasBeenSet = true; m_appConfigs = value; }
73 inline void SetAppConfigs(Aws::Vector<AppConfig>&& value) { m_appConfigsHasBeenSet = true; m_appConfigs = std::move(value); }
74 inline UpdateApplicationRequest& WithAppConfigs(const Aws::Vector<AppConfig>& value) { SetAppConfigs(value); return *this;}
75 inline UpdateApplicationRequest& WithAppConfigs(Aws::Vector<AppConfig>&& value) { SetAppConfigs(std::move(value)); return *this;}
76 inline UpdateApplicationRequest& AddAppConfigs(const AppConfig& value) { m_appConfigsHasBeenSet = true; m_appConfigs.push_back(value); return *this; }
77 inline UpdateApplicationRequest& AddAppConfigs(AppConfig&& value) { m_appConfigsHasBeenSet = true; m_appConfigs.push_back(std::move(value)); return *this; }
79 private:
80
81 Aws::String m_id;
82 bool m_idHasBeenSet = false;
83
84 Aws::Vector<DataSource> m_dataSources;
85 bool m_dataSourcesHasBeenSet = false;
86
87 Aws::Vector<AppConfig> m_appConfigs;
88 bool m_appConfigsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace OpenSearchService
93} // namespace Aws
UpdateApplicationRequest & WithId(const Aws::String &value)
UpdateApplicationRequest & WithId(Aws::String &&value)
UpdateApplicationRequest & WithAppConfigs(const Aws::Vector< AppConfig > &value)
void SetAppConfigs(const Aws::Vector< AppConfig > &value)
UpdateApplicationRequest & AddAppConfigs(AppConfig &&value)
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
UpdateApplicationRequest & WithAppConfigs(Aws::Vector< AppConfig > &&value)
UpdateApplicationRequest & WithDataSources(Aws::Vector< DataSource > &&value)
void SetDataSources(const Aws::Vector< DataSource > &value)
UpdateApplicationRequest & WithDataSources(const Aws::Vector< DataSource > &value)
UpdateApplicationRequest & AddDataSources(DataSource &&value)
const Aws::Vector< DataSource > & GetDataSources() const
UpdateApplicationRequest & AddDataSources(const DataSource &value)
UpdateApplicationRequest & WithId(const char *value)
UpdateApplicationRequest & AddAppConfigs(const AppConfig &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector