AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AddDataSourceRequest.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/DataSourceType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace OpenSearchService {
16namespace Model {
17
25 public:
26 AWS_OPENSEARCHSERVICE_API AddDataSourceRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "AddDataSource"; }
33
34 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetDomainName() const { return m_domainName; }
41 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
42 template <typename DomainNameT = Aws::String>
43 void SetDomainName(DomainNameT&& value) {
44 m_domainNameHasBeenSet = true;
45 m_domainName = std::forward<DomainNameT>(value);
46 }
47 template <typename DomainNameT = Aws::String>
48 AddDataSourceRequest& WithDomainName(DomainNameT&& value) {
49 SetDomainName(std::forward<DomainNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const DataSourceType& GetDataSourceType() const { return m_dataSourceType; }
77 inline bool DataSourceTypeHasBeenSet() const { return m_dataSourceTypeHasBeenSet; }
78 template <typename DataSourceTypeT = DataSourceType>
79 void SetDataSourceType(DataSourceTypeT&& value) {
80 m_dataSourceTypeHasBeenSet = true;
81 m_dataSourceType = std::forward<DataSourceTypeT>(value);
82 }
83 template <typename DataSourceTypeT = DataSourceType>
84 AddDataSourceRequest& WithDataSourceType(DataSourceTypeT&& value) {
85 SetDataSourceType(std::forward<DataSourceTypeT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetDescription() const { return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 template <typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) {
98 m_descriptionHasBeenSet = true;
99 m_description = std::forward<DescriptionT>(value);
100 }
101 template <typename DescriptionT = Aws::String>
102 AddDataSourceRequest& WithDescription(DescriptionT&& value) {
103 SetDescription(std::forward<DescriptionT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_domainName;
109
110 Aws::String m_name;
111
112 DataSourceType m_dataSourceType;
113
114 Aws::String m_description;
115 bool m_domainNameHasBeenSet = false;
116 bool m_nameHasBeenSet = false;
117 bool m_dataSourceTypeHasBeenSet = false;
118 bool m_descriptionHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace OpenSearchService
123} // namespace Aws
AWS_OPENSEARCHSERVICE_API AddDataSourceRequest()=default
AddDataSourceRequest & WithDomainName(DomainNameT &&value)
virtual const char * GetServiceRequestName() const override
AddDataSourceRequest & WithDescription(DescriptionT &&value)
AddDataSourceRequest & WithDataSourceType(DataSourceTypeT &&value)
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String