AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegionHighlights.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/Highlight.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GeoPlaces
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GEOPLACES_API RegionHighlights();
37 AWS_GEOPLACES_API RegionHighlights(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<Highlight>& GetCode() const{ return m_code; }
48 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
49 inline void SetCode(const Aws::Vector<Highlight>& value) { m_codeHasBeenSet = true; m_code = value; }
50 inline void SetCode(Aws::Vector<Highlight>&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
51 inline RegionHighlights& WithCode(const Aws::Vector<Highlight>& value) { SetCode(value); return *this;}
52 inline RegionHighlights& WithCode(Aws::Vector<Highlight>&& value) { SetCode(std::move(value)); return *this;}
53 inline RegionHighlights& AddCode(const Highlight& value) { m_codeHasBeenSet = true; m_code.push_back(value); return *this; }
54 inline RegionHighlights& AddCode(Highlight&& value) { m_codeHasBeenSet = true; m_code.push_back(std::move(value)); return *this; }
56
58
62 inline const Aws::Vector<Highlight>& GetName() const{ return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 inline void SetName(const Aws::Vector<Highlight>& value) { m_nameHasBeenSet = true; m_name = value; }
65 inline void SetName(Aws::Vector<Highlight>&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
66 inline RegionHighlights& WithName(const Aws::Vector<Highlight>& value) { SetName(value); return *this;}
67 inline RegionHighlights& WithName(Aws::Vector<Highlight>&& value) { SetName(std::move(value)); return *this;}
68 inline RegionHighlights& AddName(const Highlight& value) { m_nameHasBeenSet = true; m_name.push_back(value); return *this; }
69 inline RegionHighlights& AddName(Highlight&& value) { m_nameHasBeenSet = true; m_name.push_back(std::move(value)); return *this; }
71 private:
72
74 bool m_codeHasBeenSet = false;
75
77 bool m_nameHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace GeoPlaces
82} // namespace Aws
RegionHighlights & WithCode(const Aws::Vector< Highlight > &value)
RegionHighlights & WithCode(Aws::Vector< Highlight > &&value)
RegionHighlights & WithName(Aws::Vector< Highlight > &&value)
void SetCode(Aws::Vector< Highlight > &&value)
RegionHighlights & AddCode(Highlight &&value)
void SetName(const Aws::Vector< Highlight > &value)
const Aws::Vector< Highlight > & GetCode() const
RegionHighlights & AddName(const Highlight &value)
RegionHighlights & AddName(Highlight &&value)
RegionHighlights & WithName(const Aws::Vector< Highlight > &value)
void SetName(Aws::Vector< Highlight > &&value)
RegionHighlights & AddCode(const Highlight &value)
void SetCode(const Aws::Vector< Highlight > &value)
AWS_GEOPLACES_API RegionHighlights(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Highlight > & GetName() const
AWS_GEOPLACES_API RegionHighlights & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue