AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetPlaceRequest.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 <utility>
11
12namespace Aws
13{
14namespace Http
15{
16 class URI;
17} //namespace Http
18namespace LocationService
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_LOCATIONSERVICE_API GetPlaceRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "GetPlace"; }
35
36 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
37
38 AWS_LOCATIONSERVICE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
40
42
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 GetPlaceRequest& WithIndexName(IndexNameT&& value) { SetIndexName(std::forward<IndexNameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetPlaceId() const { return m_placeId; }
58 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
59 template<typename PlaceIdT = Aws::String>
60 void SetPlaceId(PlaceIdT&& value) { m_placeIdHasBeenSet = true; m_placeId = std::forward<PlaceIdT>(value); }
61 template<typename PlaceIdT = Aws::String>
62 GetPlaceRequest& WithPlaceId(PlaceIdT&& value) { SetPlaceId(std::forward<PlaceIdT>(value)); return *this;}
64
66
81 inline const Aws::String& GetLanguage() const { return m_language; }
82 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
83 template<typename LanguageT = Aws::String>
84 void SetLanguage(LanguageT&& value) { m_languageHasBeenSet = true; m_language = std::forward<LanguageT>(value); }
85 template<typename LanguageT = Aws::String>
86 GetPlaceRequest& WithLanguage(LanguageT&& value) { SetLanguage(std::forward<LanguageT>(value)); return *this;}
88
90
95 inline const Aws::String& GetKey() const { return m_key; }
96 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
97 template<typename KeyT = Aws::String>
98 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
99 template<typename KeyT = Aws::String>
100 GetPlaceRequest& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
102 private:
103
104 Aws::String m_indexName;
105 bool m_indexNameHasBeenSet = false;
106
107 Aws::String m_placeId;
108 bool m_placeIdHasBeenSet = false;
109
110 Aws::String m_language;
111 bool m_languageHasBeenSet = false;
112
113 Aws::String m_key;
114 bool m_keyHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace LocationService
119} // 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