AWS SDK for C++  1.9.40
AWS SDK for C++
GetGeoLocationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace Route53
19 {
20 namespace Model
21 {
22 
31  {
32  public:
34 
35  // Service request name is the Operation name which will send this request out,
36  // each operation should has unique request name, so that we can get operation's name from this request.
37  // Note: this is not true for response, multiple operations may have the same response name,
38  // so we can not get operation's name from response.
39  inline virtual const char* GetServiceRequestName() const override { return "GetGeoLocation"; }
40 
41  Aws::String SerializePayload() const override;
42 
43  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
44 
45 
54  inline const Aws::String& GetContinentCode() const{ return m_continentCode; }
55 
64  inline bool ContinentCodeHasBeenSet() const { return m_continentCodeHasBeenSet; }
65 
74  inline void SetContinentCode(const Aws::String& value) { m_continentCodeHasBeenSet = true; m_continentCode = value; }
75 
84  inline void SetContinentCode(Aws::String&& value) { m_continentCodeHasBeenSet = true; m_continentCode = std::move(value); }
85 
94  inline void SetContinentCode(const char* value) { m_continentCodeHasBeenSet = true; m_continentCode.assign(value); }
95 
104  inline GetGeoLocationRequest& WithContinentCode(const Aws::String& value) { SetContinentCode(value); return *this;}
105 
114  inline GetGeoLocationRequest& WithContinentCode(Aws::String&& value) { SetContinentCode(std::move(value)); return *this;}
115 
124  inline GetGeoLocationRequest& WithContinentCode(const char* value) { SetContinentCode(value); return *this;}
125 
126 
132  inline const Aws::String& GetCountryCode() const{ return m_countryCode; }
133 
139  inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
140 
146  inline void SetCountryCode(const Aws::String& value) { m_countryCodeHasBeenSet = true; m_countryCode = value; }
147 
153  inline void SetCountryCode(Aws::String&& value) { m_countryCodeHasBeenSet = true; m_countryCode = std::move(value); }
154 
160  inline void SetCountryCode(const char* value) { m_countryCodeHasBeenSet = true; m_countryCode.assign(value); }
161 
167  inline GetGeoLocationRequest& WithCountryCode(const Aws::String& value) { SetCountryCode(value); return *this;}
168 
174  inline GetGeoLocationRequest& WithCountryCode(Aws::String&& value) { SetCountryCode(std::move(value)); return *this;}
175 
181  inline GetGeoLocationRequest& WithCountryCode(const char* value) { SetCountryCode(value); return *this;}
182 
183 
193  inline const Aws::String& GetSubdivisionCode() const{ return m_subdivisionCode; }
194 
204  inline bool SubdivisionCodeHasBeenSet() const { return m_subdivisionCodeHasBeenSet; }
205 
215  inline void SetSubdivisionCode(const Aws::String& value) { m_subdivisionCodeHasBeenSet = true; m_subdivisionCode = value; }
216 
226  inline void SetSubdivisionCode(Aws::String&& value) { m_subdivisionCodeHasBeenSet = true; m_subdivisionCode = std::move(value); }
227 
237  inline void SetSubdivisionCode(const char* value) { m_subdivisionCodeHasBeenSet = true; m_subdivisionCode.assign(value); }
238 
248  inline GetGeoLocationRequest& WithSubdivisionCode(const Aws::String& value) { SetSubdivisionCode(value); return *this;}
249 
259  inline GetGeoLocationRequest& WithSubdivisionCode(Aws::String&& value) { SetSubdivisionCode(std::move(value)); return *this;}
260 
270  inline GetGeoLocationRequest& WithSubdivisionCode(const char* value) { SetSubdivisionCode(value); return *this;}
271 
272  private:
273 
274  Aws::String m_continentCode;
275  bool m_continentCodeHasBeenSet;
276 
277  Aws::String m_countryCode;
278  bool m_countryCodeHasBeenSet;
279 
280  Aws::String m_subdivisionCode;
281  bool m_subdivisionCodeHasBeenSet;
282  };
283 
284 } // namespace Model
285 } // namespace Route53
286 } // namespace Aws
Aws::Route53::Model::GetGeoLocationRequest::WithSubdivisionCode
GetGeoLocationRequest & WithSubdivisionCode(const char *value)
Definition: GetGeoLocationRequest.h:270
Aws::Http::URI
Definition: URI.h:32
Aws::Route53::Model::GetGeoLocationRequest::WithCountryCode
GetGeoLocationRequest & WithCountryCode(const char *value)
Definition: GetGeoLocationRequest.h:181
Aws::Route53::Route53Request
Definition: Route53Request.h:17
Aws::Route53::Model::GetGeoLocationRequest::ContinentCodeHasBeenSet
bool ContinentCodeHasBeenSet() const
Definition: GetGeoLocationRequest.h:64
Aws::Route53::Model::GetGeoLocationRequest::WithSubdivisionCode
GetGeoLocationRequest & WithSubdivisionCode(const Aws::String &value)
Definition: GetGeoLocationRequest.h:248
Route53Request.h
Aws::Route53::Model::GetGeoLocationRequest::WithContinentCode
GetGeoLocationRequest & WithContinentCode(const char *value)
Definition: GetGeoLocationRequest.h:124
Aws::Route53::Model::GetGeoLocationRequest::GetSubdivisionCode
const Aws::String & GetSubdivisionCode() const
Definition: GetGeoLocationRequest.h:193
Aws::Route53::Model::GetGeoLocationRequest::WithCountryCode
GetGeoLocationRequest & WithCountryCode(const Aws::String &value)
Definition: GetGeoLocationRequest.h:167
Aws::Route53::Model::GetGeoLocationRequest::SetCountryCode
void SetCountryCode(const Aws::String &value)
Definition: GetGeoLocationRequest.h:146
Aws::Route53::Model::GetGeoLocationRequest::SetSubdivisionCode
void SetSubdivisionCode(const Aws::String &value)
Definition: GetGeoLocationRequest.h:215
Aws::Route53::Model::GetGeoLocationRequest
Definition: GetGeoLocationRequest.h:31
Aws::Route53::Model::GetGeoLocationRequest::SetContinentCode
void SetContinentCode(Aws::String &&value)
Definition: GetGeoLocationRequest.h:84
Aws::Route53::Model::GetGeoLocationRequest::GetCountryCode
const Aws::String & GetCountryCode() const
Definition: GetGeoLocationRequest.h:132
Aws::Route53::Model::GetGeoLocationRequest::WithContinentCode
GetGeoLocationRequest & WithContinentCode(Aws::String &&value)
Definition: GetGeoLocationRequest.h:114
Aws::Route53::Model::GetGeoLocationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Route53::Model::GetGeoLocationRequest::SetSubdivisionCode
void SetSubdivisionCode(const char *value)
Definition: GetGeoLocationRequest.h:237
AWSString.h
Aws::Route53::Model::GetGeoLocationRequest::CountryCodeHasBeenSet
bool CountryCodeHasBeenSet() const
Definition: GetGeoLocationRequest.h:139
Aws::Route53::Model::GetGeoLocationRequest::SetContinentCode
void SetContinentCode(const Aws::String &value)
Definition: GetGeoLocationRequest.h:74
Aws::Route53::Model::GetGeoLocationRequest::WithContinentCode
GetGeoLocationRequest & WithContinentCode(const Aws::String &value)
Definition: GetGeoLocationRequest.h:104
Aws::Route53::Model::GetGeoLocationRequest::SetContinentCode
void SetContinentCode(const char *value)
Definition: GetGeoLocationRequest.h:94
Aws::Route53::Model::GetGeoLocationRequest::WithCountryCode
GetGeoLocationRequest & WithCountryCode(Aws::String &&value)
Definition: GetGeoLocationRequest.h:174
Aws::Route53::Model::GetGeoLocationRequest::SetCountryCode
void SetCountryCode(Aws::String &&value)
Definition: GetGeoLocationRequest.h:153
Aws::Route53::Model::GetGeoLocationRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Route53::Model::GetGeoLocationRequest::SetCountryCode
void SetCountryCode(const char *value)
Definition: GetGeoLocationRequest.h:160
Aws::Route53::Model::GetGeoLocationRequest::WithSubdivisionCode
GetGeoLocationRequest & WithSubdivisionCode(Aws::String &&value)
Definition: GetGeoLocationRequest.h:259
Aws::Route53::Model::GetGeoLocationRequest::SubdivisionCodeHasBeenSet
bool SubdivisionCodeHasBeenSet() const
Definition: GetGeoLocationRequest.h:204
Aws::Route53::Model::GetGeoLocationRequest::SetSubdivisionCode
void SetSubdivisionCode(Aws::String &&value)
Definition: GetGeoLocationRequest.h:226
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Route53_EXPORTS.h
Aws::Route53::Model::GetGeoLocationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetGeoLocationRequest.h:39
Aws::Route53::Model::GetGeoLocationRequest::GetGeoLocationRequest
GetGeoLocationRequest()
AWS_ROUTE53_API
#define AWS_ROUTE53_API
Definition: Route53_EXPORTS.h:28
Aws::Route53::Model::GetGeoLocationRequest::GetContinentCode
const Aws::String & GetContinentCode() const
Definition: GetGeoLocationRequest.h:54