AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
StreetComponents.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/TypePlacement.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
29 public:
30 AWS_GEOPLACES_API StreetComponents() = default;
31 AWS_GEOPLACES_API StreetComponents(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetBaseName() const { return m_baseName; }
41 inline bool BaseNameHasBeenSet() const { return m_baseNameHasBeenSet; }
42 template <typename BaseNameT = Aws::String>
43 void SetBaseName(BaseNameT&& value) {
44 m_baseNameHasBeenSet = true;
45 m_baseName = std::forward<BaseNameT>(value);
46 }
47 template <typename BaseNameT = Aws::String>
48 StreetComponents& WithBaseName(BaseNameT&& value) {
49 SetBaseName(std::forward<BaseNameT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetType() const { return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 template <typename TypeT = Aws::String>
62 void SetType(TypeT&& value) {
63 m_typeHasBeenSet = true;
64 m_type = std::forward<TypeT>(value);
65 }
66 template <typename TypeT = Aws::String>
67 StreetComponents& WithType(TypeT&& value) {
68 SetType(std::forward<TypeT>(value));
69 return *this;
70 }
72
74
77 inline TypePlacement GetTypePlacement() const { return m_typePlacement; }
78 inline bool TypePlacementHasBeenSet() const { return m_typePlacementHasBeenSet; }
79 inline void SetTypePlacement(TypePlacement value) {
80 m_typePlacementHasBeenSet = true;
81 m_typePlacement = value;
82 }
84 SetTypePlacement(value);
85 return *this;
86 }
88
90
94 inline const Aws::String& GetTypeSeparator() const { return m_typeSeparator; }
95 inline bool TypeSeparatorHasBeenSet() const { return m_typeSeparatorHasBeenSet; }
96 template <typename TypeSeparatorT = Aws::String>
97 void SetTypeSeparator(TypeSeparatorT&& value) {
98 m_typeSeparatorHasBeenSet = true;
99 m_typeSeparator = std::forward<TypeSeparatorT>(value);
100 }
101 template <typename TypeSeparatorT = Aws::String>
102 StreetComponents& WithTypeSeparator(TypeSeparatorT&& value) {
103 SetTypeSeparator(std::forward<TypeSeparatorT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::String& GetPrefix() const { return m_prefix; }
114 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
115 template <typename PrefixT = Aws::String>
116 void SetPrefix(PrefixT&& value) {
117 m_prefixHasBeenSet = true;
118 m_prefix = std::forward<PrefixT>(value);
119 }
120 template <typename PrefixT = Aws::String>
121 StreetComponents& WithPrefix(PrefixT&& value) {
122 SetPrefix(std::forward<PrefixT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::String& GetSuffix() const { return m_suffix; }
133 inline bool SuffixHasBeenSet() const { return m_suffixHasBeenSet; }
134 template <typename SuffixT = Aws::String>
135 void SetSuffix(SuffixT&& value) {
136 m_suffixHasBeenSet = true;
137 m_suffix = std::forward<SuffixT>(value);
138 }
139 template <typename SuffixT = Aws::String>
140 StreetComponents& WithSuffix(SuffixT&& value) {
141 SetSuffix(std::forward<SuffixT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetDirection() const { return m_direction; }
151 inline bool DirectionHasBeenSet() const { return m_directionHasBeenSet; }
152 template <typename DirectionT = Aws::String>
153 void SetDirection(DirectionT&& value) {
154 m_directionHasBeenSet = true;
155 m_direction = std::forward<DirectionT>(value);
156 }
157 template <typename DirectionT = Aws::String>
158 StreetComponents& WithDirection(DirectionT&& value) {
159 SetDirection(std::forward<DirectionT>(value));
160 return *this;
161 }
163
165
171 inline const Aws::String& GetLanguage() const { return m_language; }
172 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
173 template <typename LanguageT = Aws::String>
174 void SetLanguage(LanguageT&& value) {
175 m_languageHasBeenSet = true;
176 m_language = std::forward<LanguageT>(value);
177 }
178 template <typename LanguageT = Aws::String>
179 StreetComponents& WithLanguage(LanguageT&& value) {
180 SetLanguage(std::forward<LanguageT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_baseName;
186
187 Aws::String m_type;
188
189 TypePlacement m_typePlacement{TypePlacement::NOT_SET};
190
191 Aws::String m_typeSeparator;
192
193 Aws::String m_prefix;
194
195 Aws::String m_suffix;
196
197 Aws::String m_direction;
198
199 Aws::String m_language;
200 bool m_baseNameHasBeenSet = false;
201 bool m_typeHasBeenSet = false;
202 bool m_typePlacementHasBeenSet = false;
203 bool m_typeSeparatorHasBeenSet = false;
204 bool m_prefixHasBeenSet = false;
205 bool m_suffixHasBeenSet = false;
206 bool m_directionHasBeenSet = false;
207 bool m_languageHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace GeoPlaces
212} // namespace Aws
StreetComponents & WithType(TypeT &&value)
AWS_GEOPLACES_API StreetComponents & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTypePlacement(TypePlacement value)
const Aws::String & GetPrefix() const
StreetComponents & WithTypeSeparator(TypeSeparatorT &&value)
StreetComponents & WithBaseName(BaseNameT &&value)
void SetTypeSeparator(TypeSeparatorT &&value)
const Aws::String & GetType() const
StreetComponents & WithSuffix(SuffixT &&value)
StreetComponents & WithDirection(DirectionT &&value)
const Aws::String & GetTypeSeparator() const
StreetComponents & WithLanguage(LanguageT &&value)
const Aws::String & GetBaseName() const
AWS_GEOPLACES_API StreetComponents()=default
const Aws::String & GetSuffix() const
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
StreetComponents & WithTypePlacement(TypePlacement value)
const Aws::String & GetDirection() const
const Aws::String & GetLanguage() const
StreetComponents & WithPrefix(PrefixT &&value)
AWS_GEOPLACES_API StreetComponents(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue