AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreatePlaceIndexRequest.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/location/LocationServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/location/model/DataSourceConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace LocationService
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_LOCATIONSERVICE_API CreatePlaceIndexRequest() = 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 "CreatePlaceIndex"; }
33
34 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
35
36
38
45 inline const Aws::String& GetIndexName() const { return m_indexName; }
46 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
47 template<typename IndexNameT = Aws::String>
48 void SetIndexName(IndexNameT&& value) { m_indexNameHasBeenSet = true; m_indexName = std::forward<IndexNameT>(value); }
49 template<typename IndexNameT = Aws::String>
50 CreatePlaceIndexRequest& WithIndexName(IndexNameT&& value) { SetIndexName(std::forward<IndexNameT>(value)); return *this;}
52
54
84 inline const Aws::String& GetDataSource() const { return m_dataSource; }
85 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
86 template<typename DataSourceT = Aws::String>
87 void SetDataSource(DataSourceT&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::forward<DataSourceT>(value); }
88 template<typename DataSourceT = Aws::String>
89 CreatePlaceIndexRequest& WithDataSource(DataSourceT&& value) { SetDataSource(std::forward<DataSourceT>(value)); return *this;}
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 template<typename DescriptionT = Aws::String>
99 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
100 template<typename DescriptionT = Aws::String>
101 CreatePlaceIndexRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
103
105
108 inline const DataSourceConfiguration& GetDataSourceConfiguration() const { return m_dataSourceConfiguration; }
109 inline bool DataSourceConfigurationHasBeenSet() const { return m_dataSourceConfigurationHasBeenSet; }
110 template<typename DataSourceConfigurationT = DataSourceConfiguration>
111 void SetDataSourceConfiguration(DataSourceConfigurationT&& value) { m_dataSourceConfigurationHasBeenSet = true; m_dataSourceConfiguration = std::forward<DataSourceConfigurationT>(value); }
112 template<typename DataSourceConfigurationT = DataSourceConfiguration>
113 CreatePlaceIndexRequest& WithDataSourceConfiguration(DataSourceConfigurationT&& value) { SetDataSourceConfiguration(std::forward<DataSourceConfigurationT>(value)); return *this;}
115
117
128 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
129 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
130 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
131 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
132 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
133 CreatePlaceIndexRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
134 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
135 CreatePlaceIndexRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
136 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
137 }
139 private:
140
141 Aws::String m_indexName;
142 bool m_indexNameHasBeenSet = false;
143
144 Aws::String m_dataSource;
145 bool m_dataSourceHasBeenSet = false;
146
147 Aws::String m_description;
148 bool m_descriptionHasBeenSet = false;
149
150 DataSourceConfiguration m_dataSourceConfiguration;
151 bool m_dataSourceConfigurationHasBeenSet = false;
152
154 bool m_tagsHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace LocationService
159} // 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