AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreatePlaceIndexRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/location/LocationServiceRequest.h>
10#include <aws/location/LocationService_EXPORTS.h>
11#include <aws/location/model/DataSourceConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace LocationService {
17namespace Model {
18
22 public:
23 AWS_LOCATIONSERVICE_API CreatePlaceIndexRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreatePlaceIndex"; }
30
31 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
32
34
41 inline const Aws::String& GetIndexName() const { return m_indexName; }
42 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
43 template <typename IndexNameT = Aws::String>
44 void SetIndexName(IndexNameT&& value) {
45 m_indexNameHasBeenSet = true;
46 m_indexName = std::forward<IndexNameT>(value);
47 }
48 template <typename IndexNameT = Aws::String>
50 SetIndexName(std::forward<IndexNameT>(value));
51 return *this;
52 }
54
56
86 inline const Aws::String& GetDataSource() const { return m_dataSource; }
87 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
88 template <typename DataSourceT = Aws::String>
89 void SetDataSource(DataSourceT&& value) {
90 m_dataSourceHasBeenSet = true;
91 m_dataSource = std::forward<DataSourceT>(value);
92 }
93 template <typename DataSourceT = Aws::String>
95 SetDataSource(std::forward<DataSourceT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetDescription() const { return m_description; }
105 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
106 template <typename DescriptionT = Aws::String>
107 void SetDescription(DescriptionT&& value) {
108 m_descriptionHasBeenSet = true;
109 m_description = std::forward<DescriptionT>(value);
110 }
111 template <typename DescriptionT = Aws::String>
113 SetDescription(std::forward<DescriptionT>(value));
114 return *this;
115 }
117
119
122 inline const DataSourceConfiguration& GetDataSourceConfiguration() const { return m_dataSourceConfiguration; }
123 inline bool DataSourceConfigurationHasBeenSet() const { return m_dataSourceConfigurationHasBeenSet; }
124 template <typename DataSourceConfigurationT = DataSourceConfiguration>
125 void SetDataSourceConfiguration(DataSourceConfigurationT&& value) {
126 m_dataSourceConfigurationHasBeenSet = true;
127 m_dataSourceConfiguration = std::forward<DataSourceConfigurationT>(value);
128 }
129 template <typename DataSourceConfigurationT = DataSourceConfiguration>
130 CreatePlaceIndexRequest& WithDataSourceConfiguration(DataSourceConfigurationT&& value) {
131 SetDataSourceConfiguration(std::forward<DataSourceConfigurationT>(value));
132 return *this;
133 }
135
137
148 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
149 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
151 void SetTags(TagsT&& value) {
152 m_tagsHasBeenSet = true;
153 m_tags = std::forward<TagsT>(value);
154 }
155 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
157 SetTags(std::forward<TagsT>(value));
158 return *this;
159 }
160 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
161 CreatePlaceIndexRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
162 m_tagsHasBeenSet = true;
163 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
164 return *this;
165 }
167 private:
168 Aws::String m_indexName;
169
170 Aws::String m_dataSource;
171
172 Aws::String m_description;
173
174 DataSourceConfiguration m_dataSourceConfiguration;
175
177 bool m_indexNameHasBeenSet = false;
178 bool m_dataSourceHasBeenSet = false;
179 bool m_descriptionHasBeenSet = false;
180 bool m_dataSourceConfigurationHasBeenSet = false;
181 bool m_tagsHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace LocationService
186} // namespace Aws
void SetDataSourceConfiguration(DataSourceConfigurationT &&value)
CreatePlaceIndexRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreatePlaceIndexRequest & WithDataSourceConfiguration(DataSourceConfigurationT &&value)
AWS_LOCATIONSERVICE_API CreatePlaceIndexRequest()=default
const DataSourceConfiguration & GetDataSourceConfiguration() const
CreatePlaceIndexRequest & WithDataSource(DataSourceT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreatePlaceIndexRequest & WithDescription(DescriptionT &&value)
CreatePlaceIndexRequest & WithIndexName(IndexNameT &&value)
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String