AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateDataSourceRequest.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/opensearch/model/DataSourceType.h>
11#include <aws/opensearch/model/DataSourceStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace OpenSearchService
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_OPENSEARCHSERVICE_API UpdateDataSourceRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateDataSource"; }
37
38 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetDomainName() const { return m_domainName; }
46 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
47 template<typename DomainNameT = Aws::String>
48 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
49 template<typename DomainNameT = Aws::String>
50 UpdateDataSourceRequest& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template<typename NameT = Aws::String>
60 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 UpdateDataSourceRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
69 inline const DataSourceType& GetDataSourceType() const { return m_dataSourceType; }
70 inline bool DataSourceTypeHasBeenSet() const { return m_dataSourceTypeHasBeenSet; }
71 template<typename DataSourceTypeT = DataSourceType>
72 void SetDataSourceType(DataSourceTypeT&& value) { m_dataSourceTypeHasBeenSet = true; m_dataSourceType = std::forward<DataSourceTypeT>(value); }
73 template<typename DataSourceTypeT = DataSourceType>
74 UpdateDataSourceRequest& WithDataSourceType(DataSourceTypeT&& value) { SetDataSourceType(std::forward<DataSourceTypeT>(value)); return *this;}
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template<typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
85 template<typename DescriptionT = Aws::String>
86 UpdateDataSourceRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
88
90
93 inline DataSourceStatus GetStatus() const { return m_status; }
94 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
95 inline void SetStatus(DataSourceStatus value) { m_statusHasBeenSet = true; m_status = value; }
96 inline UpdateDataSourceRequest& WithStatus(DataSourceStatus value) { SetStatus(value); return *this;}
98 private:
99
100 Aws::String m_domainName;
101 bool m_domainNameHasBeenSet = false;
102
103 Aws::String m_name;
104 bool m_nameHasBeenSet = false;
105
106 DataSourceType m_dataSourceType;
107 bool m_dataSourceTypeHasBeenSet = false;
108
109 Aws::String m_description;
110 bool m_descriptionHasBeenSet = false;
111
113 bool m_statusHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace OpenSearchService
118} // 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