AWS SDK for C++

AWS SDK for C++ Version 1.11.768

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