AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AddDataSourceRequest.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 <utility>
12
13namespace Aws
14{
15namespace OpenSearchService
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_OPENSEARCHSERVICE_API AddDataSourceRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "AddDataSource"; }
36
37 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetDomainName() const{ return m_domainName; }
45 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
46 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
47 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
48 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
49 inline AddDataSourceRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
50 inline AddDataSourceRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
51 inline AddDataSourceRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
53
55
58 inline const Aws::String& GetName() const{ return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 inline AddDataSourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
64 inline AddDataSourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
65 inline AddDataSourceRequest& WithName(const char* value) { SetName(value); return *this;}
67
69
72 inline const DataSourceType& GetDataSourceType() const{ return m_dataSourceType; }
73 inline bool DataSourceTypeHasBeenSet() const { return m_dataSourceTypeHasBeenSet; }
74 inline void SetDataSourceType(const DataSourceType& value) { m_dataSourceTypeHasBeenSet = true; m_dataSourceType = value; }
75 inline void SetDataSourceType(DataSourceType&& value) { m_dataSourceTypeHasBeenSet = true; m_dataSourceType = std::move(value); }
76 inline AddDataSourceRequest& WithDataSourceType(const DataSourceType& value) { SetDataSourceType(value); return *this;}
77 inline AddDataSourceRequest& WithDataSourceType(DataSourceType&& value) { SetDataSourceType(std::move(value)); return *this;}
79
81
84 inline const Aws::String& GetDescription() const{ return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
87 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
88 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
89 inline AddDataSourceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
90 inline AddDataSourceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
91 inline AddDataSourceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
93 private:
94
95 Aws::String m_domainName;
96 bool m_domainNameHasBeenSet = false;
97
98 Aws::String m_name;
99 bool m_nameHasBeenSet = false;
100
101 DataSourceType m_dataSourceType;
102 bool m_dataSourceTypeHasBeenSet = false;
103
104 Aws::String m_description;
105 bool m_descriptionHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace OpenSearchService
110} // namespace Aws
AddDataSourceRequest & WithDataSourceType(const DataSourceType &value)
virtual const char * GetServiceRequestName() const override
AddDataSourceRequest & WithDomainName(const char *value)
AddDataSourceRequest & WithName(const char *value)
AddDataSourceRequest & WithDomainName(Aws::String &&value)
AddDataSourceRequest & WithName(const Aws::String &value)
AddDataSourceRequest & WithDataSourceType(DataSourceType &&value)
AddDataSourceRequest & WithName(Aws::String &&value)
AddDataSourceRequest & WithDomainName(const Aws::String &value)
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
AddDataSourceRequest & WithDescription(Aws::String &&value)
AddDataSourceRequest & WithDescription(const Aws::String &value)
AddDataSourceRequest & WithDescription(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String