AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
StreetComponents.h
1
6#pragma once
7#include <aws/geo-places/GeoPlaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/geo-places/model/TypePlacement.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
33 {
34 public:
35 AWS_GEOPLACES_API StreetComponents() = default;
36 AWS_GEOPLACES_API StreetComponents(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetBaseName() const { return m_baseName; }
47 inline bool BaseNameHasBeenSet() const { return m_baseNameHasBeenSet; }
48 template<typename BaseNameT = Aws::String>
49 void SetBaseName(BaseNameT&& value) { m_baseNameHasBeenSet = true; m_baseName = std::forward<BaseNameT>(value); }
50 template<typename BaseNameT = Aws::String>
51 StreetComponents& WithBaseName(BaseNameT&& value) { SetBaseName(std::forward<BaseNameT>(value)); return *this;}
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) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
63 template<typename TypeT = Aws::String>
64 StreetComponents& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
66
68
71 inline TypePlacement GetTypePlacement() const { return m_typePlacement; }
72 inline bool TypePlacementHasBeenSet() const { return m_typePlacementHasBeenSet; }
73 inline void SetTypePlacement(TypePlacement value) { m_typePlacementHasBeenSet = true; m_typePlacement = value; }
74 inline StreetComponents& WithTypePlacement(TypePlacement value) { SetTypePlacement(value); return *this;}
76
78
82 inline const Aws::String& GetTypeSeparator() const { return m_typeSeparator; }
83 inline bool TypeSeparatorHasBeenSet() const { return m_typeSeparatorHasBeenSet; }
84 template<typename TypeSeparatorT = Aws::String>
85 void SetTypeSeparator(TypeSeparatorT&& value) { m_typeSeparatorHasBeenSet = true; m_typeSeparator = std::forward<TypeSeparatorT>(value); }
86 template<typename TypeSeparatorT = Aws::String>
87 StreetComponents& WithTypeSeparator(TypeSeparatorT&& value) { SetTypeSeparator(std::forward<TypeSeparatorT>(value)); return *this;}
89
91
95 inline const Aws::String& GetPrefix() const { return m_prefix; }
96 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
97 template<typename PrefixT = Aws::String>
98 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet = true; m_prefix = std::forward<PrefixT>(value); }
99 template<typename PrefixT = Aws::String>
100 StreetComponents& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(value)); return *this;}
102
104
108 inline const Aws::String& GetSuffix() const { return m_suffix; }
109 inline bool SuffixHasBeenSet() const { return m_suffixHasBeenSet; }
110 template<typename SuffixT = Aws::String>
111 void SetSuffix(SuffixT&& value) { m_suffixHasBeenSet = true; m_suffix = std::forward<SuffixT>(value); }
112 template<typename SuffixT = Aws::String>
113 StreetComponents& WithSuffix(SuffixT&& value) { SetSuffix(std::forward<SuffixT>(value)); return *this;}
115
117
120 inline const Aws::String& GetDirection() const { return m_direction; }
121 inline bool DirectionHasBeenSet() const { return m_directionHasBeenSet; }
122 template<typename DirectionT = Aws::String>
123 void SetDirection(DirectionT&& value) { m_directionHasBeenSet = true; m_direction = std::forward<DirectionT>(value); }
124 template<typename DirectionT = Aws::String>
125 StreetComponents& WithDirection(DirectionT&& value) { SetDirection(std::forward<DirectionT>(value)); return *this;}
127
129
135 inline const Aws::String& GetLanguage() const { return m_language; }
136 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
137 template<typename LanguageT = Aws::String>
138 void SetLanguage(LanguageT&& value) { m_languageHasBeenSet = true; m_language = std::forward<LanguageT>(value); }
139 template<typename LanguageT = Aws::String>
140 StreetComponents& WithLanguage(LanguageT&& value) { SetLanguage(std::forward<LanguageT>(value)); return *this;}
142 private:
143
144 Aws::String m_baseName;
145 bool m_baseNameHasBeenSet = false;
146
147 Aws::String m_type;
148 bool m_typeHasBeenSet = false;
149
150 TypePlacement m_typePlacement{TypePlacement::NOT_SET};
151 bool m_typePlacementHasBeenSet = false;
152
153 Aws::String m_typeSeparator;
154 bool m_typeSeparatorHasBeenSet = false;
155
156 Aws::String m_prefix;
157 bool m_prefixHasBeenSet = false;
158
159 Aws::String m_suffix;
160 bool m_suffixHasBeenSet = false;
161
162 Aws::String m_direction;
163 bool m_directionHasBeenSet = false;
164
165 Aws::String m_language;
166 bool m_languageHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace GeoPlaces
171} // 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