AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPlaceId(const Aws::String& value) { m_placeIdHasBeenSet = true; m_placeId = value; }
52 inline void SetPlaceId(Aws::String&& value) { m_placeIdHasBeenSet = true; m_placeId = std::move(value); }
53 inline void SetPlaceId(const char* value) { m_placeIdHasBeenSet = true; m_placeId.assign(value); }
54 inline GetPlaceRequest& WithPlaceId(const Aws::String& value) { SetPlaceId(value); return *this;}
55 inline GetPlaceRequest& WithPlaceId(Aws::String&& value) { SetPlaceId(std::move(value)); return *this;}
56 inline GetPlaceRequest& WithPlaceId(const char* value) { SetPlaceId(value); return *this;}
58
60
64 inline const Aws::Vector<GetPlaceAdditionalFeature>& GetAdditionalFeatures() const{ return m_additionalFeatures; }
65 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
66 inline void SetAdditionalFeatures(const Aws::Vector<GetPlaceAdditionalFeature>& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures = value; }
67 inline void SetAdditionalFeatures(Aws::Vector<GetPlaceAdditionalFeature>&& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures = std::move(value); }
70 inline GetPlaceRequest& AddAdditionalFeatures(const GetPlaceAdditionalFeature& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures.push_back(value); return *this; }
71 inline GetPlaceRequest& AddAdditionalFeatures(GetPlaceAdditionalFeature&& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures.push_back(std::move(value)); return *this; }
73
75
81 inline const Aws::String& GetLanguage() const{ return m_language; }
82 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
83 inline void SetLanguage(const Aws::String& value) { m_languageHasBeenSet = true; m_language = value; }
84 inline void SetLanguage(Aws::String&& value) { m_languageHasBeenSet = true; m_language = std::move(value); }
85 inline void SetLanguage(const char* value) { m_languageHasBeenSet = true; m_language.assign(value); }
86 inline GetPlaceRequest& WithLanguage(const Aws::String& value) { SetLanguage(value); return *this;}
87 inline GetPlaceRequest& WithLanguage(Aws::String&& value) { SetLanguage(std::move(value)); return *this;}
88 inline GetPlaceRequest& WithLanguage(const char* value) { SetLanguage(value); return *this;}
90
92
97 inline const Aws::String& GetPoliticalView() const{ return m_politicalView; }
98 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
99 inline void SetPoliticalView(const Aws::String& value) { m_politicalViewHasBeenSet = true; m_politicalView = value; }
100 inline void SetPoliticalView(Aws::String&& value) { m_politicalViewHasBeenSet = true; m_politicalView = std::move(value); }
101 inline void SetPoliticalView(const char* value) { m_politicalViewHasBeenSet = true; m_politicalView.assign(value); }
102 inline GetPlaceRequest& WithPoliticalView(const Aws::String& value) { SetPoliticalView(value); return *this;}
103 inline GetPlaceRequest& WithPoliticalView(Aws::String&& value) { SetPoliticalView(std::move(value)); return *this;}
104 inline GetPlaceRequest& WithPoliticalView(const char* value) { SetPoliticalView(value); return *this;}
106
108
112 inline const GetPlaceIntendedUse& GetIntendedUse() const{ return m_intendedUse; }
113 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
114 inline void SetIntendedUse(const GetPlaceIntendedUse& value) { m_intendedUseHasBeenSet = true; m_intendedUse = value; }
115 inline void SetIntendedUse(GetPlaceIntendedUse&& value) { m_intendedUseHasBeenSet = true; m_intendedUse = std::move(value); }
116 inline GetPlaceRequest& WithIntendedUse(const GetPlaceIntendedUse& value) { SetIntendedUse(value); return *this;}
117 inline GetPlaceRequest& WithIntendedUse(GetPlaceIntendedUse&& value) { SetIntendedUse(std::move(value)); return *this;}
119
121
125 inline const Aws::String& GetKey() const{ return m_key; }
126 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
127 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
128 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
129 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
130 inline GetPlaceRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
131 inline GetPlaceRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
132 inline GetPlaceRequest& WithKey(const char* value) { SetKey(value); return *this;}
134 private:
135
136 Aws::String m_placeId;
137 bool m_placeIdHasBeenSet = false;
138
139 Aws::Vector<GetPlaceAdditionalFeature> m_additionalFeatures;
140 bool m_additionalFeaturesHasBeenSet = false;
141
142 Aws::String m_language;
143 bool m_languageHasBeenSet = false;
144
145 Aws::String m_politicalView;
146 bool m_politicalViewHasBeenSet = false;
147
148 GetPlaceIntendedUse m_intendedUse;
149 bool m_intendedUseHasBeenSet = false;
150
151 Aws::String m_key;
152 bool m_keyHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace GeoPlaces
157} // namespace Aws
const Aws::String & GetPlaceId() const
GetPlaceRequest & WithLanguage(const char *value)
void SetLanguage(const Aws::String &value)
GetPlaceRequest & WithKey(Aws::String &&value)
GetPlaceRequest & WithPlaceId(Aws::String &&value)
GetPlaceRequest & AddAdditionalFeatures(GetPlaceAdditionalFeature &&value)
void SetPlaceId(Aws::String &&value)
GetPlaceRequest & WithIntendedUse(GetPlaceIntendedUse &&value)
void SetPlaceId(const Aws::String &value)
GetPlaceRequest & WithKey(const char *value)
GetPlaceRequest & WithKey(const Aws::String &value)
const GetPlaceIntendedUse & GetIntendedUse() const
GetPlaceRequest & WithIntendedUse(const GetPlaceIntendedUse &value)
GetPlaceRequest & WithPlaceId(const char *value)
GetPlaceRequest & WithPlaceId(const Aws::String &value)
GetPlaceRequest & WithLanguage(const Aws::String &value)
AWS_GEOPLACES_API Aws::String SerializePayload() const override
GetPlaceRequest & WithAdditionalFeatures(const Aws::Vector< GetPlaceAdditionalFeature > &value)
GetPlaceRequest & WithPoliticalView(const char *value)
GetPlaceRequest & WithPoliticalView(Aws::String &&value)
const Aws::Vector< GetPlaceAdditionalFeature > & GetAdditionalFeatures() const
void SetAdditionalFeatures(const Aws::Vector< GetPlaceAdditionalFeature > &value)
const Aws::String & GetPoliticalView() const
AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetPoliticalView(const Aws::String &value)
void SetLanguage(Aws::String &&value)
const Aws::String & GetKey() const
GetPlaceRequest & WithAdditionalFeatures(Aws::Vector< GetPlaceAdditionalFeature > &&value)
void SetKey(const Aws::String &value)
GetPlaceRequest & WithLanguage(Aws::String &&value)
void SetIntendedUse(GetPlaceIntendedUse &&value)
virtual const char * GetServiceRequestName() const override
void SetPoliticalView(Aws::String &&value)
void SetIntendedUse(const GetPlaceIntendedUse &value)
const Aws::String & GetLanguage() const
void SetAdditionalFeatures(Aws::Vector< GetPlaceAdditionalFeature > &&value)
GetPlaceRequest & WithPoliticalView(const Aws::String &value)
GetPlaceRequest & AddAdditionalFeatures(const GetPlaceAdditionalFeature &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector