AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
CountryHighlights.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/geo-places/GeoPlaces_EXPORTS.h>
9#include <aws/geo-places/model/Highlight.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GeoPlaces {
21namespace Model {
22
30 public:
31 AWS_GEOPLACES_API CountryHighlights() = default;
32 AWS_GEOPLACES_API CountryHighlights(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<Highlight>& GetCode() const { return m_code; }
42 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
43 template <typename CodeT = Aws::Vector<Highlight>>
44 void SetCode(CodeT&& value) {
45 m_codeHasBeenSet = true;
46 m_code = std::forward<CodeT>(value);
47 }
48 template <typename CodeT = Aws::Vector<Highlight>>
49 CountryHighlights& WithCode(CodeT&& value) {
50 SetCode(std::forward<CodeT>(value));
51 return *this;
52 }
53 template <typename CodeT = Highlight>
54 CountryHighlights& AddCode(CodeT&& value) {
55 m_codeHasBeenSet = true;
56 m_code.emplace_back(std::forward<CodeT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::Vector<Highlight>& GetName() const { return m_name; }
67 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 template <typename NameT = Aws::Vector<Highlight>>
69 void SetName(NameT&& value) {
70 m_nameHasBeenSet = true;
71 m_name = std::forward<NameT>(value);
72 }
73 template <typename NameT = Aws::Vector<Highlight>>
74 CountryHighlights& WithName(NameT&& value) {
75 SetName(std::forward<NameT>(value));
76 return *this;
77 }
78 template <typename NameT = Highlight>
79 CountryHighlights& AddName(NameT&& value) {
80 m_nameHasBeenSet = true;
81 m_name.emplace_back(std::forward<NameT>(value));
82 return *this;
83 }
85 private:
87
89 bool m_codeHasBeenSet = false;
90 bool m_nameHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace GeoPlaces
95} // 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