AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
GetPlaceRequest.h
1
6#pragma once
7#include <aws/geo-places/GeoPlaces_EXPORTS.h>
8#include <aws/geo-places/GeoPlacesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/geo-places/model/GetPlaceIntendedUse.h>
12#include <aws/geo-places/model/GetPlaceAdditionalFeature.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace GeoPlaces
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_GEOPLACES_API GetPlaceRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "GetPlace"; }
38
39 AWS_GEOPLACES_API Aws::String SerializePayload() const override;
40
41 AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
43
45
49 inline const Aws::String& GetPlaceId() const { return m_placeId; }
50 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
51 template<typename PlaceIdT = Aws::String>
52 void SetPlaceId(PlaceIdT&& value) { m_placeIdHasBeenSet = true; m_placeId = std::forward<PlaceIdT>(value); }
53 template<typename PlaceIdT = Aws::String>
54 GetPlaceRequest& WithPlaceId(PlaceIdT&& value) { SetPlaceId(std::forward<PlaceIdT>(value)); return *this;}
56
58
62 inline const Aws::Vector<GetPlaceAdditionalFeature>& GetAdditionalFeatures() const { return m_additionalFeatures; }
63 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
64 template<typename AdditionalFeaturesT = Aws::Vector<GetPlaceAdditionalFeature>>
65 void SetAdditionalFeatures(AdditionalFeaturesT&& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures = std::forward<AdditionalFeaturesT>(value); }
66 template<typename AdditionalFeaturesT = Aws::Vector<GetPlaceAdditionalFeature>>
67 GetPlaceRequest& WithAdditionalFeatures(AdditionalFeaturesT&& value) { SetAdditionalFeatures(std::forward<AdditionalFeaturesT>(value)); return *this;}
68 inline GetPlaceRequest& AddAdditionalFeatures(GetPlaceAdditionalFeature value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures.push_back(value); return *this; }
70
72
78 inline const Aws::String& GetLanguage() const { return m_language; }
79 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
80 template<typename LanguageT = Aws::String>
81 void SetLanguage(LanguageT&& value) { m_languageHasBeenSet = true; m_language = std::forward<LanguageT>(value); }
82 template<typename LanguageT = Aws::String>
83 GetPlaceRequest& WithLanguage(LanguageT&& value) { SetLanguage(std::forward<LanguageT>(value)); return *this;}
85
87
92 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
93 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
94 template<typename PoliticalViewT = Aws::String>
95 void SetPoliticalView(PoliticalViewT&& value) { m_politicalViewHasBeenSet = true; m_politicalView = std::forward<PoliticalViewT>(value); }
96 template<typename PoliticalViewT = Aws::String>
97 GetPlaceRequest& WithPoliticalView(PoliticalViewT&& value) { SetPoliticalView(std::forward<PoliticalViewT>(value)); return *this;}
99
101
110 inline GetPlaceIntendedUse GetIntendedUse() const { return m_intendedUse; }
111 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
112 inline void SetIntendedUse(GetPlaceIntendedUse value) { m_intendedUseHasBeenSet = true; m_intendedUse = value; }
115
117
121 inline const Aws::String& GetKey() const { return m_key; }
122 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
123 template<typename KeyT = Aws::String>
124 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
125 template<typename KeyT = Aws::String>
126 GetPlaceRequest& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
128 private:
129
130 Aws::String m_placeId;
131 bool m_placeIdHasBeenSet = false;
132
133 Aws::Vector<GetPlaceAdditionalFeature> m_additionalFeatures;
134 bool m_additionalFeaturesHasBeenSet = false;
135
136 Aws::String m_language;
137 bool m_languageHasBeenSet = false;
138
139 Aws::String m_politicalView;
140 bool m_politicalViewHasBeenSet = false;
141
143 bool m_intendedUseHasBeenSet = false;
144
145 Aws::String m_key;
146 bool m_keyHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace GeoPlaces
151} // namespace Aws
const Aws::String & GetPlaceId() const
GetPlaceRequest & AddAdditionalFeatures(GetPlaceAdditionalFeature value)
void SetIntendedUse(GetPlaceIntendedUse value)
AWS_GEOPLACES_API Aws::String SerializePayload() const override
GetPlaceRequest & WithLanguage(LanguageT &&value)
GetPlaceIntendedUse GetIntendedUse() const
GetPlaceRequest & WithIntendedUse(GetPlaceIntendedUse value)
const Aws::Vector< GetPlaceAdditionalFeature > & GetAdditionalFeatures() const
GetPlaceRequest & WithKey(KeyT &&value)
const Aws::String & GetPoliticalView() const
AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::String & GetKey() const
GetPlaceRequest & WithPlaceId(PlaceIdT &&value)
GetPlaceRequest & WithPoliticalView(PoliticalViewT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetLanguage() const
void SetAdditionalFeatures(AdditionalFeaturesT &&value)
GetPlaceRequest & WithAdditionalFeatures(AdditionalFeaturesT &&value)
void SetPoliticalView(PoliticalViewT &&value)
AWS_GEOPLACES_API GetPlaceRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector