AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AutocompleteHighlights.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/AutocompleteAddressHighlights.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 AutocompleteHighlights() = default;
41 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<Highlight>& GetTitle() const { return m_title; }
49 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
50 template<typename TitleT = Aws::Vector<Highlight>>
51 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
52 template<typename TitleT = Aws::Vector<Highlight>>
53 AutocompleteHighlights& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
54 template<typename TitleT = Highlight>
55 AutocompleteHighlights& AddTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title.emplace_back(std::forward<TitleT>(value)); return *this; }
57
59
62 inline const AutocompleteAddressHighlights& GetAddress() const { return m_address; }
63 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
64 template<typename AddressT = AutocompleteAddressHighlights>
65 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
66 template<typename AddressT = AutocompleteAddressHighlights>
67 AutocompleteHighlights& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
69 private:
70
72 bool m_titleHasBeenSet = false;
73
75 bool m_addressHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace GeoPlaces
80} // 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