AWS SDK for C++

AWS SDK for C++ Version 1.11.870

Loading...
Searching...
No Matches
TranslationName.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/geo-places/GeoPlaces_EXPORTS.h>
9#include <aws/geo-places/model/TranslationNameType.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 TranslationName() = default;
32 AWS_GEOPLACES_API TranslationName(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetValue() const { return m_value; }
41 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
42 template <typename ValueT = Aws::String>
43 void SetValue(ValueT&& value) {
44 m_valueHasBeenSet = true;
45 m_value = std::forward<ValueT>(value);
46 }
47 template <typename ValueT = Aws::String>
48 TranslationName& WithValue(ValueT&& value) {
49 SetValue(std::forward<ValueT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetLanguage() const { return m_language; }
61 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
62 template <typename LanguageT = Aws::String>
63 void SetLanguage(LanguageT&& value) {
64 m_languageHasBeenSet = true;
65 m_language = std::forward<LanguageT>(value);
66 }
67 template <typename LanguageT = Aws::String>
68 TranslationName& WithLanguage(LanguageT&& value) {
69 SetLanguage(std::forward<LanguageT>(value));
70 return *this;
71 }
73
75
80 inline TranslationNameType GetType() const { return m_type; }
81 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
82 inline void SetType(TranslationNameType value) {
83 m_typeHasBeenSet = true;
84 m_type = value;
85 }
87 SetType(value);
88 return *this;
89 }
91
93
97 inline bool GetPrimary() const { return m_primary; }
98 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
99 inline void SetPrimary(bool value) {
100 m_primaryHasBeenSet = true;
101 m_primary = value;
102 }
103 inline TranslationName& WithPrimary(bool value) {
104 SetPrimary(value);
105 return *this;
106 }
108
110
114 inline bool GetTransliterated() const { return m_transliterated; }
115 inline bool TransliteratedHasBeenSet() const { return m_transliteratedHasBeenSet; }
116 inline void SetTransliterated(bool value) {
117 m_transliteratedHasBeenSet = true;
118 m_transliterated = value;
119 }
121 SetTransliterated(value);
122 return *this;
123 }
125 private:
126 Aws::String m_value;
127
128 Aws::String m_language;
129
131
132 bool m_primary{false};
133
134 bool m_transliterated{false};
135 bool m_valueHasBeenSet = false;
136 bool m_languageHasBeenSet = false;
137 bool m_typeHasBeenSet = false;
138 bool m_primaryHasBeenSet = false;
139 bool m_transliteratedHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace GeoPlaces
144} // namespace Aws
TranslationName & WithValue(ValueT &&value)
TranslationName & WithLanguage(LanguageT &&value)
const Aws::String & GetLanguage() const
AWS_GEOPLACES_API TranslationName & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API TranslationName(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetValue() const
void SetType(TranslationNameType value)
TranslationNameType GetType() const
TranslationName & WithTransliterated(bool value)
TranslationName & WithPrimary(bool value)
AWS_GEOPLACES_API TranslationName()=default
TranslationName & WithType(TranslationNameType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue