AWS SDK for C++  0.12.9
AWS SDK for C++
GetGeoLocationRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Http
23 {
24  class URI;
25 } //namespace Http
26 namespace Route53
27 {
28 namespace Model
29 {
30 
36  {
37  public:
39  Aws::String SerializePayload() const override;
40 
41  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42 
51  inline const Aws::String& GetContinentCode() const{ return m_continentCode; }
52 
61  inline void SetContinentCode(const Aws::String& value) { m_continentCodeHasBeenSet = true; m_continentCode = value; }
62 
71  inline void SetContinentCode(Aws::String&& value) { m_continentCodeHasBeenSet = true; m_continentCode = value; }
72 
81  inline void SetContinentCode(const char* value) { m_continentCodeHasBeenSet = true; m_continentCode.assign(value); }
82 
91  inline GetGeoLocationRequest& WithContinentCode(const Aws::String& value) { SetContinentCode(value); return *this;}
92 
101  inline GetGeoLocationRequest& WithContinentCode(Aws::String&& value) { SetContinentCode(value); return *this;}
102 
111  inline GetGeoLocationRequest& WithContinentCode(const char* value) { SetContinentCode(value); return *this;}
112 
119  inline const Aws::String& GetCountryCode() const{ return m_countryCode; }
120 
127  inline void SetCountryCode(const Aws::String& value) { m_countryCodeHasBeenSet = true; m_countryCode = value; }
128 
135  inline void SetCountryCode(Aws::String&& value) { m_countryCodeHasBeenSet = true; m_countryCode = value; }
136 
143  inline void SetCountryCode(const char* value) { m_countryCodeHasBeenSet = true; m_countryCode.assign(value); }
144 
151  inline GetGeoLocationRequest& WithCountryCode(const Aws::String& value) { SetCountryCode(value); return *this;}
152 
159  inline GetGeoLocationRequest& WithCountryCode(Aws::String&& value) { SetCountryCode(value); return *this;}
160 
167  inline GetGeoLocationRequest& WithCountryCode(const char* value) { SetCountryCode(value); return *this;}
168 
175  inline const Aws::String& GetSubdivisionCode() const{ return m_subdivisionCode; }
176 
183  inline void SetSubdivisionCode(const Aws::String& value) { m_subdivisionCodeHasBeenSet = true; m_subdivisionCode = value; }
184 
191  inline void SetSubdivisionCode(Aws::String&& value) { m_subdivisionCodeHasBeenSet = true; m_subdivisionCode = value; }
192 
199  inline void SetSubdivisionCode(const char* value) { m_subdivisionCodeHasBeenSet = true; m_subdivisionCode.assign(value); }
200 
207  inline GetGeoLocationRequest& WithSubdivisionCode(const Aws::String& value) { SetSubdivisionCode(value); return *this;}
208 
215  inline GetGeoLocationRequest& WithSubdivisionCode(Aws::String&& value) { SetSubdivisionCode(value); return *this;}
216 
223  inline GetGeoLocationRequest& WithSubdivisionCode(const char* value) { SetSubdivisionCode(value); return *this;}
224 
225  private:
226  Aws::String m_continentCode;
227  bool m_continentCodeHasBeenSet;
228  Aws::String m_countryCode;
229  bool m_countryCodeHasBeenSet;
230  Aws::String m_subdivisionCode;
231  bool m_subdivisionCodeHasBeenSet;
232  };
233 
234 } // namespace Model
235 } // namespace Route53
236 } // namespace Aws
GetGeoLocationRequest & WithCountryCode(Aws::String &&value)
GetGeoLocationRequest & WithContinentCode(Aws::String &&value)
GetGeoLocationRequest & WithCountryCode(const Aws::String &value)
void SetSubdivisionCode(const Aws::String &value)
GetGeoLocationRequest & WithSubdivisionCode(const Aws::String &value)
void SetContinentCode(const Aws::String &value)
GetGeoLocationRequest & WithContinentCode(const char *value)
GetGeoLocationRequest & WithSubdivisionCode(Aws::String &&value)
GetGeoLocationRequest & WithContinentCode(const Aws::String &value)
GetGeoLocationRequest & WithCountryCode(const char *value)
#define AWS_ROUTE53_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetCountryCode(const Aws::String &value)
GetGeoLocationRequest & WithSubdivisionCode(const char *value)
JSON (JavaScript Object Notation).