AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
48 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
49 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
50 inline UpdateDataSourceRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
51 inline UpdateDataSourceRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
52 inline UpdateDataSourceRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
54
56
59 inline const Aws::String& GetName() const{ return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 inline UpdateDataSourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline UpdateDataSourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline UpdateDataSourceRequest& WithName(const char* value) { SetName(value); return *this;}
68
70
73 inline const DataSourceType& GetDataSourceType() const{ return m_dataSourceType; }
74 inline bool DataSourceTypeHasBeenSet() const { return m_dataSourceTypeHasBeenSet; }
75 inline void SetDataSourceType(const DataSourceType& value) { m_dataSourceTypeHasBeenSet = true; m_dataSourceType = value; }
76 inline void SetDataSourceType(DataSourceType&& value) { m_dataSourceTypeHasBeenSet = true; m_dataSourceType = std::move(value); }
77 inline UpdateDataSourceRequest& WithDataSourceType(const DataSourceType& value) { SetDataSourceType(value); return *this;}
78 inline UpdateDataSourceRequest& WithDataSourceType(DataSourceType&& value) { SetDataSourceType(std::move(value)); return *this;}
80
82
85 inline const Aws::String& GetDescription() const{ return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
88 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
89 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
90 inline UpdateDataSourceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
91 inline UpdateDataSourceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
92 inline UpdateDataSourceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
94
96
99 inline const DataSourceStatus& GetStatus() const{ return m_status; }
100 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
101 inline void SetStatus(const DataSourceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
102 inline void SetStatus(DataSourceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
103 inline UpdateDataSourceRequest& WithStatus(const DataSourceStatus& value) { SetStatus(value); return *this;}
104 inline UpdateDataSourceRequest& WithStatus(DataSourceStatus&& value) { SetStatus(std::move(value)); return *this;}
106 private:
107
108 Aws::String m_domainName;
109 bool m_domainNameHasBeenSet = false;
110
111 Aws::String m_name;
112 bool m_nameHasBeenSet = false;
113
114 DataSourceType m_dataSourceType;
115 bool m_dataSourceTypeHasBeenSet = false;
116
117 Aws::String m_description;
118 bool m_descriptionHasBeenSet = false;
119
120 DataSourceStatus m_status;
121 bool m_statusHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace OpenSearchService
126} // namespace Aws
UpdateDataSourceRequest & WithDomainName(const char *value)
UpdateDataSourceRequest & WithDescription(Aws::String &&value)
UpdateDataSourceRequest & WithName(const Aws::String &value)
UpdateDataSourceRequest & WithDataSourceType(const DataSourceType &value)
UpdateDataSourceRequest & WithDomainName(Aws::String &&value)
UpdateDataSourceRequest & WithDomainName(const Aws::String &value)
UpdateDataSourceRequest & WithName(Aws::String &&value)
UpdateDataSourceRequest & WithStatus(const DataSourceStatus &value)
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
UpdateDataSourceRequest & WithDescription(const Aws::String &value)
UpdateDataSourceRequest & WithName(const char *value)
virtual const char * GetServiceRequestName() const override
UpdateDataSourceRequest & WithDescription(const char *value)
UpdateDataSourceRequest & WithStatus(DataSourceStatus &&value)
UpdateDataSourceRequest & WithDataSourceType(DataSourceType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String