AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateDataSourceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchServiceRequest.h>
9#include <aws/opensearch/OpenSearchService_EXPORTS.h>
10#include <aws/opensearch/model/DataSourceStatus.h>
11#include <aws/opensearch/model/DataSourceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace OpenSearchService {
17namespace Model {
18
26 public:
27 AWS_OPENSEARCHSERVICE_API UpdateDataSourceRequest() = 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 "UpdateDataSource"; }
34
35 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetDomainName() const { return m_domainName; }
42 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
43 template <typename DomainNameT = Aws::String>
44 void SetDomainName(DomainNameT&& value) {
45 m_domainNameHasBeenSet = true;
46 m_domainName = std::forward<DomainNameT>(value);
47 }
48 template <typename DomainNameT = Aws::String>
50 SetDomainName(std::forward<DomainNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const DataSourceType& GetDataSourceType() const { return m_dataSourceType; }
78 inline bool DataSourceTypeHasBeenSet() const { return m_dataSourceTypeHasBeenSet; }
79 template <typename DataSourceTypeT = DataSourceType>
80 void SetDataSourceType(DataSourceTypeT&& value) {
81 m_dataSourceTypeHasBeenSet = true;
82 m_dataSourceType = std::forward<DataSourceTypeT>(value);
83 }
84 template <typename DataSourceTypeT = DataSourceType>
85 UpdateDataSourceRequest& WithDataSourceType(DataSourceTypeT&& value) {
86 SetDataSourceType(std::forward<DataSourceTypeT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDescription() const { return m_description; }
96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 template <typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) {
99 m_descriptionHasBeenSet = true;
100 m_description = std::forward<DescriptionT>(value);
101 }
102 template <typename DescriptionT = Aws::String>
104 SetDescription(std::forward<DescriptionT>(value));
105 return *this;
106 }
108
110
113 inline DataSourceStatus GetStatus() const { return m_status; }
114 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
115 inline void SetStatus(DataSourceStatus value) {
116 m_statusHasBeenSet = true;
117 m_status = value;
118 }
120 SetStatus(value);
121 return *this;
122 }
124 private:
125 Aws::String m_domainName;
126
127 Aws::String m_name;
128
129 DataSourceType m_dataSourceType;
130
131 Aws::String m_description;
132
134 bool m_domainNameHasBeenSet = false;
135 bool m_nameHasBeenSet = false;
136 bool m_dataSourceTypeHasBeenSet = false;
137 bool m_descriptionHasBeenSet = false;
138 bool m_statusHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace OpenSearchService
143} // namespace Aws
UpdateDataSourceRequest & WithDataSourceType(DataSourceTypeT &&value)
AWS_OPENSEARCHSERVICE_API UpdateDataSourceRequest()=default
UpdateDataSourceRequest & WithStatus(DataSourceStatus value)
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
UpdateDataSourceRequest & WithDescription(DescriptionT &&value)
UpdateDataSourceRequest & WithDomainName(DomainNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String