AWS SDK for C++

AWS SDK for C++ Version 1.11.870

Loading...
Searching...
No Matches
AdminNames.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/AdminNamesPreference.h>
10#include <aws/geo-places/model/TranslationName.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GeoPlaces {
22namespace Model {
23
32 public:
33 AWS_GEOPLACES_API AdminNames() = default;
34 AWS_GEOPLACES_API AdminNames(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GEOPLACES_API AdminNames& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Vector<TranslationName>& GetNames() const { return m_names; }
44 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
45 template <typename NamesT = Aws::Vector<TranslationName>>
46 void SetNames(NamesT&& value) {
47 m_namesHasBeenSet = true;
48 m_names = std::forward<NamesT>(value);
49 }
50 template <typename NamesT = Aws::Vector<TranslationName>>
51 AdminNames& WithNames(NamesT&& value) {
52 SetNames(std::forward<NamesT>(value));
53 return *this;
54 }
55 template <typename NamesT = TranslationName>
56 AdminNames& AddNames(NamesT&& value) {
57 m_namesHasBeenSet = true;
58 m_names.emplace_back(std::forward<NamesT>(value));
59 return *this;
60 }
62
64
68 inline AdminNamesPreference GetPreference() const { return m_preference; }
69 inline bool PreferenceHasBeenSet() const { return m_preferenceHasBeenSet; }
71 m_preferenceHasBeenSet = true;
72 m_preference = value;
73 }
75 SetPreference(value);
76 return *this;
77 }
79 private:
81
83 bool m_namesHasBeenSet = false;
84 bool m_preferenceHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace GeoPlaces
89} // namespace Aws
const Aws::Vector< TranslationName > & GetNames() const
Definition AdminNames.h:43
AWS_GEOPLACES_API AdminNames & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetNames(NamesT &&value)
Definition AdminNames.h:46
AdminNamesPreference GetPreference() const
Definition AdminNames.h:68
AWS_GEOPLACES_API AdminNames()=default
AdminNames & WithPreference(AdminNamesPreference value)
Definition AdminNames.h:74
AdminNames & AddNames(NamesT &&value)
Definition AdminNames.h:56
void SetPreference(AdminNamesPreference value)
Definition AdminNames.h:70
AdminNames & WithNames(NamesT &&value)
Definition AdminNames.h:51
AWS_GEOPLACES_API AdminNames(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue