AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetPlaceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/location/LocationServiceRequest.h>
9#include <aws/location/LocationService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace LocationService {
18namespace Model {
19
23 public:
24 AWS_LOCATIONSERVICE_API GetPlaceRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetPlace"; }
31
32 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
33
34 AWS_LOCATIONSERVICE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
40 inline const Aws::String& GetIndexName() const { return m_indexName; }
41 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
42 template <typename IndexNameT = Aws::String>
43 void SetIndexName(IndexNameT&& value) {
44 m_indexNameHasBeenSet = true;
45 m_indexName = std::forward<IndexNameT>(value);
46 }
47 template <typename IndexNameT = Aws::String>
48 GetPlaceRequest& WithIndexName(IndexNameT&& value) {
49 SetIndexName(std::forward<IndexNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetPlaceId() const { return m_placeId; }
59 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
60 template <typename PlaceIdT = Aws::String>
61 void SetPlaceId(PlaceIdT&& value) {
62 m_placeIdHasBeenSet = true;
63 m_placeId = std::forward<PlaceIdT>(value);
64 }
65 template <typename PlaceIdT = Aws::String>
66 GetPlaceRequest& WithPlaceId(PlaceIdT&& value) {
67 SetPlaceId(std::forward<PlaceIdT>(value));
68 return *this;
69 }
71
73
88 inline const Aws::String& GetLanguage() const { return m_language; }
89 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
90 template <typename LanguageT = Aws::String>
91 void SetLanguage(LanguageT&& value) {
92 m_languageHasBeenSet = true;
93 m_language = std::forward<LanguageT>(value);
94 }
95 template <typename LanguageT = Aws::String>
96 GetPlaceRequest& WithLanguage(LanguageT&& value) {
97 SetLanguage(std::forward<LanguageT>(value));
98 return *this;
99 }
101
103
108 inline const Aws::String& GetKey() const { return m_key; }
109 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
110 template <typename KeyT = Aws::String>
111 void SetKey(KeyT&& value) {
112 m_keyHasBeenSet = true;
113 m_key = std::forward<KeyT>(value);
114 }
115 template <typename KeyT = Aws::String>
116 GetPlaceRequest& WithKey(KeyT&& value) {
117 SetKey(std::forward<KeyT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_indexName;
123
124 Aws::String m_placeId;
125
126 Aws::String m_language;
127
128 Aws::String m_key;
129 bool m_indexNameHasBeenSet = false;
130 bool m_placeIdHasBeenSet = false;
131 bool m_languageHasBeenSet = false;
132 bool m_keyHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace LocationService
137} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
GetPlaceRequest & WithLanguage(LanguageT &&value)
AWS_LOCATIONSERVICE_API GetPlaceRequest()=default
GetPlaceRequest & WithKey(KeyT &&value)
GetPlaceRequest & WithIndexName(IndexNameT &&value)
AWS_LOCATIONSERVICE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetPlaceRequest & WithPlaceId(PlaceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String