AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
SuggestHighlights.h
1
6#pragma once
7#include <aws/geo-places/GeoPlaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-places/model/SuggestAddressHighlights.h>
10#include <aws/geo-places/model/Highlight.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GeoPlaces
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_GEOPLACES_API SuggestHighlights() = default;
39 AWS_GEOPLACES_API SuggestHighlights(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Vector<Highlight>& GetTitle() const { return m_title; }
50 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
51 template<typename TitleT = Aws::Vector<Highlight>>
52 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
53 template<typename TitleT = Aws::Vector<Highlight>>
54 SuggestHighlights& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
55 template<typename TitleT = Highlight>
56 SuggestHighlights& AddTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title.emplace_back(std::forward<TitleT>(value)); return *this; }
58
60
63 inline const SuggestAddressHighlights& GetAddress() const { return m_address; }
64 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
65 template<typename AddressT = SuggestAddressHighlights>
66 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
67 template<typename AddressT = SuggestAddressHighlights>
68 SuggestHighlights& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
70 private:
71
73 bool m_titleHasBeenSet = false;
74
76 bool m_addressHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace GeoPlaces
81} // 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