AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
CountryHighlights.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 CountryHighlights() = default;
37 AWS_GEOPLACES_API CountryHighlights(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 template<typename CodeT = Aws::Vector<Highlight>>
50 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
51 template<typename CodeT = Aws::Vector<Highlight>>
52 CountryHighlights& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
53 template<typename CodeT = Highlight>
54 CountryHighlights& AddCode(CodeT&& value) { m_codeHasBeenSet = true; m_code.emplace_back(std::forward<CodeT>(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 template<typename NameT = Aws::Vector<Highlight>>
65 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::Vector<Highlight>>
67 CountryHighlights& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
68 template<typename NameT = Highlight>
69 CountryHighlights& AddName(NameT&& value) { m_nameHasBeenSet = true; m_name.emplace_back(std::forward<NameT>(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
AWS_GEOPLACES_API CountryHighlights()=default
CountryHighlights & WithCode(CodeT &&value)
const Aws::Vector< Highlight > & GetName() const
AWS_GEOPLACES_API CountryHighlights & operator=(Aws::Utils::Json::JsonView jsonValue)
CountryHighlights & AddName(NameT &&value)
CountryHighlights & WithName(NameT &&value)
const Aws::Vector< Highlight > & GetCode() const
CountryHighlights & AddCode(CodeT &&value)
AWS_GEOPLACES_API CountryHighlights(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue