AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
AutocompleteHighlights.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/AutocompleteAddressHighlights.h>
10#include <aws/geo-places/model/Highlight.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
32 public:
33 AWS_GEOPLACES_API AutocompleteHighlights() = default;
36 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<Highlight>& GetTitle() const { return m_title; }
43 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
44 template <typename TitleT = Aws::Vector<Highlight>>
45 void SetTitle(TitleT&& value) {
46 m_titleHasBeenSet = true;
47 m_title = std::forward<TitleT>(value);
48 }
49 template <typename TitleT = Aws::Vector<Highlight>>
51 SetTitle(std::forward<TitleT>(value));
52 return *this;
53 }
54 template <typename TitleT = Highlight>
56 m_titleHasBeenSet = true;
57 m_title.emplace_back(std::forward<TitleT>(value));
58 return *this;
59 }
61
63
66 inline const AutocompleteAddressHighlights& GetAddress() const { return m_address; }
67 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
68 template <typename AddressT = AutocompleteAddressHighlights>
69 void SetAddress(AddressT&& value) {
70 m_addressHasBeenSet = true;
71 m_address = std::forward<AddressT>(value);
72 }
73 template <typename AddressT = AutocompleteAddressHighlights>
75 SetAddress(std::forward<AddressT>(value));
76 return *this;
77 }
79 private:
81 bool m_titleHasBeenSet = false;
82
84 bool m_addressHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace GeoPlaces
89} // namespace Aws
AWS_GEOPLACES_API AutocompleteHighlights(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
AutocompleteHighlights & AddTitle(TitleT &&value)
const Aws::Vector< Highlight > & GetTitle() const
const AutocompleteAddressHighlights & GetAddress() const
AWS_GEOPLACES_API AutocompleteHighlights()=default
AutocompleteHighlights & WithTitle(TitleT &&value)
AWS_GEOPLACES_API AutocompleteHighlights & operator=(Aws::Utils::Json::JsonView jsonValue)
AutocompleteHighlights & WithAddress(AddressT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue