AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
GetGeoLocationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/route53/Route53Request.h>
9#include <aws/route53/Route53_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace Route53 {
18namespace Model {
19
28 public:
29 AWS_ROUTE53_API GetGeoLocationRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "GetGeoLocation"; }
36
37 AWS_ROUTE53_API Aws::String SerializePayload() const override;
38
39 AWS_ROUTE53_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
42
50 inline const Aws::String& GetContinentCode() const { return m_continentCode; }
51 inline bool ContinentCodeHasBeenSet() const { return m_continentCodeHasBeenSet; }
52 template <typename ContinentCodeT = Aws::String>
53 void SetContinentCode(ContinentCodeT&& value) {
54 m_continentCodeHasBeenSet = true;
55 m_continentCode = std::forward<ContinentCodeT>(value);
56 }
57 template <typename ContinentCodeT = Aws::String>
58 GetGeoLocationRequest& WithContinentCode(ContinentCodeT&& value) {
59 SetContinentCode(std::forward<ContinentCodeT>(value));
60 return *this;
61 }
63
65
71 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
72 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
73 template <typename CountryCodeT = Aws::String>
74 void SetCountryCode(CountryCodeT&& value) {
75 m_countryCodeHasBeenSet = true;
76 m_countryCode = std::forward<CountryCodeT>(value);
77 }
78 template <typename CountryCodeT = Aws::String>
79 GetGeoLocationRequest& WithCountryCode(CountryCodeT&& value) {
80 SetCountryCode(std::forward<CountryCodeT>(value));
81 return *this;
82 }
84
86
95 inline const Aws::String& GetSubdivisionCode() const { return m_subdivisionCode; }
96 inline bool SubdivisionCodeHasBeenSet() const { return m_subdivisionCodeHasBeenSet; }
97 template <typename SubdivisionCodeT = Aws::String>
98 void SetSubdivisionCode(SubdivisionCodeT&& value) {
99 m_subdivisionCodeHasBeenSet = true;
100 m_subdivisionCode = std::forward<SubdivisionCodeT>(value);
101 }
102 template <typename SubdivisionCodeT = Aws::String>
103 GetGeoLocationRequest& WithSubdivisionCode(SubdivisionCodeT&& value) {
104 SetSubdivisionCode(std::forward<SubdivisionCodeT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_continentCode;
110 bool m_continentCodeHasBeenSet = false;
111
112 Aws::String m_countryCode;
113 bool m_countryCodeHasBeenSet = false;
114
115 Aws::String m_subdivisionCode;
116 bool m_subdivisionCodeHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace Route53
121} // namespace Aws
GetGeoLocationRequest & WithContinentCode(ContinentCodeT &&value)
void SetSubdivisionCode(SubdivisionCodeT &&value)
AWS_ROUTE53_API GetGeoLocationRequest()=default
AWS_ROUTE53_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_ROUTE53_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetGeoLocationRequest & WithCountryCode(CountryCodeT &&value)
GetGeoLocationRequest & WithSubdivisionCode(SubdivisionCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String