AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
GeocodeParsedQuery.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/geo-places/GeoPlaces_EXPORTS.h>
9#include <aws/geo-places/model/GeocodeParsedQueryAddressComponents.h>
10#include <aws/geo-places/model/ParsedQueryComponent.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GeoPlaces {
22namespace Model {
23
30 public:
31 AWS_GEOPLACES_API GeocodeParsedQuery() = default;
32 AWS_GEOPLACES_API GeocodeParsedQuery(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<ParsedQueryComponent>& GetTitle() const { return m_title; }
42 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
43 template <typename TitleT = Aws::Vector<ParsedQueryComponent>>
44 void SetTitle(TitleT&& value) {
45 m_titleHasBeenSet = true;
46 m_title = std::forward<TitleT>(value);
47 }
48 template <typename TitleT = Aws::Vector<ParsedQueryComponent>>
49 GeocodeParsedQuery& WithTitle(TitleT&& value) {
50 SetTitle(std::forward<TitleT>(value));
51 return *this;
52 }
53 template <typename TitleT = ParsedQueryComponent>
54 GeocodeParsedQuery& AddTitle(TitleT&& value) {
55 m_titleHasBeenSet = true;
56 m_title.emplace_back(std::forward<TitleT>(value));
57 return *this;
58 }
60
62
65 inline const GeocodeParsedQueryAddressComponents& GetAddress() const { return m_address; }
66 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
67 template <typename AddressT = GeocodeParsedQueryAddressComponents>
68 void SetAddress(AddressT&& value) {
69 m_addressHasBeenSet = true;
70 m_address = std::forward<AddressT>(value);
71 }
72 template <typename AddressT = GeocodeParsedQueryAddressComponents>
73 GeocodeParsedQuery& WithAddress(AddressT&& value) {
74 SetAddress(std::forward<AddressT>(value));
75 return *this;
76 }
78 private:
80
82 bool m_titleHasBeenSet = false;
83 bool m_addressHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace GeoPlaces
88} // namespace Aws
AWS_GEOPLACES_API GeocodeParsedQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ParsedQueryComponent > & GetTitle() const
AWS_GEOPLACES_API GeocodeParsedQuery(Aws::Utils::Json::JsonView jsonValue)
GeocodeParsedQuery & WithAddress(AddressT &&value)
GeocodeParsedQuery & AddTitle(TitleT &&value)
const GeocodeParsedQueryAddressComponents & GetAddress() const
GeocodeParsedQuery & WithTitle(TitleT &&value)
AWS_GEOPLACES_API GeocodeParsedQuery()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue