AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTitle(const Aws::Vector<Highlight>& value) { m_titleHasBeenSet = true; m_title = value; }
51 inline void SetTitle(Aws::Vector<Highlight>&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
52 inline AutocompleteHighlights& WithTitle(const Aws::Vector<Highlight>& value) { SetTitle(value); return *this;}
53 inline AutocompleteHighlights& WithTitle(Aws::Vector<Highlight>&& value) { SetTitle(std::move(value)); return *this;}
54 inline AutocompleteHighlights& AddTitle(const Highlight& value) { m_titleHasBeenSet = true; m_title.push_back(value); return *this; }
55 inline AutocompleteHighlights& AddTitle(Highlight&& value) { m_titleHasBeenSet = true; m_title.push_back(std::move(value)); return *this; }
57
59
62 inline const AutocompleteAddressHighlights& GetAddress() const{ return m_address; }
63 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
64 inline void SetAddress(const AutocompleteAddressHighlights& value) { m_addressHasBeenSet = true; m_address = value; }
65 inline void SetAddress(AutocompleteAddressHighlights&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
66 inline AutocompleteHighlights& WithAddress(const AutocompleteAddressHighlights& value) { SetAddress(value); return *this;}
67 inline AutocompleteHighlights& WithAddress(AutocompleteAddressHighlights&& value) { SetAddress(std::move(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)
AutocompleteHighlights & WithAddress(const AutocompleteAddressHighlights &value)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
AutocompleteHighlights & WithAddress(AutocompleteAddressHighlights &&value)
const Aws::Vector< Highlight > & GetTitle() const
const AutocompleteAddressHighlights & GetAddress() const
AutocompleteHighlights & AddTitle(const Highlight &value)
void SetAddress(const AutocompleteAddressHighlights &value)
AWS_GEOPLACES_API AutocompleteHighlights & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTitle(const Aws::Vector< Highlight > &value)
void SetTitle(Aws::Vector< Highlight > &&value)
AutocompleteHighlights & AddTitle(Highlight &&value)
AutocompleteHighlights & WithTitle(const Aws::Vector< Highlight > &value)
AutocompleteHighlights & WithTitle(Aws::Vector< Highlight > &&value)
void SetAddress(AutocompleteAddressHighlights &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue