AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
PostalCodeDetails.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/PostalAuthority.h>
10#include <aws/geo-places/model/PostalCodeType.h>
11#include <aws/geo-places/model/UspsZip.h>
12#include <aws/geo-places/model/UspsZipPlus4.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GeoPlaces {
24namespace Model {
25
33 public:
34 AWS_GEOPLACES_API PostalCodeDetails() = default;
35 AWS_GEOPLACES_API PostalCodeDetails(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
46 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
47 template <typename PostalCodeT = Aws::String>
48 void SetPostalCode(PostalCodeT&& value) {
49 m_postalCodeHasBeenSet = true;
50 m_postalCode = std::forward<PostalCodeT>(value);
51 }
52 template <typename PostalCodeT = Aws::String>
53 PostalCodeDetails& WithPostalCode(PostalCodeT&& value) {
54 SetPostalCode(std::forward<PostalCodeT>(value));
55 return *this;
56 }
58
60
64 inline PostalAuthority GetPostalAuthority() const { return m_postalAuthority; }
65 inline bool PostalAuthorityHasBeenSet() const { return m_postalAuthorityHasBeenSet; }
67 m_postalAuthorityHasBeenSet = true;
68 m_postalAuthority = value;
69 }
71 SetPostalAuthority(value);
72 return *this;
73 }
75
77
80 inline PostalCodeType GetPostalCodeType() const { return m_postalCodeType; }
81 inline bool PostalCodeTypeHasBeenSet() const { return m_postalCodeTypeHasBeenSet; }
82 inline void SetPostalCodeType(PostalCodeType value) {
83 m_postalCodeTypeHasBeenSet = true;
84 m_postalCodeType = value;
85 }
87 SetPostalCodeType(value);
88 return *this;
89 }
91
93
97 inline const UspsZip& GetUspsZip() const { return m_uspsZip; }
98 inline bool UspsZipHasBeenSet() const { return m_uspsZipHasBeenSet; }
99 template <typename UspsZipT = UspsZip>
100 void SetUspsZip(UspsZipT&& value) {
101 m_uspsZipHasBeenSet = true;
102 m_uspsZip = std::forward<UspsZipT>(value);
103 }
104 template <typename UspsZipT = UspsZip>
105 PostalCodeDetails& WithUspsZip(UspsZipT&& value) {
106 SetUspsZip(std::forward<UspsZipT>(value));
107 return *this;
108 }
110
112
115 inline const UspsZipPlus4& GetUspsZipPlus4() const { return m_uspsZipPlus4; }
116 inline bool UspsZipPlus4HasBeenSet() const { return m_uspsZipPlus4HasBeenSet; }
117 template <typename UspsZipPlus4T = UspsZipPlus4>
118 void SetUspsZipPlus4(UspsZipPlus4T&& value) {
119 m_uspsZipPlus4HasBeenSet = true;
120 m_uspsZipPlus4 = std::forward<UspsZipPlus4T>(value);
121 }
122 template <typename UspsZipPlus4T = UspsZipPlus4>
123 PostalCodeDetails& WithUspsZipPlus4(UspsZipPlus4T&& value) {
124 SetUspsZipPlus4(std::forward<UspsZipPlus4T>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_postalCode;
130 bool m_postalCodeHasBeenSet = false;
131
132 PostalAuthority m_postalAuthority{PostalAuthority::NOT_SET};
133 bool m_postalAuthorityHasBeenSet = false;
134
135 PostalCodeType m_postalCodeType{PostalCodeType::NOT_SET};
136 bool m_postalCodeTypeHasBeenSet = false;
137
138 UspsZip m_uspsZip;
139 bool m_uspsZipHasBeenSet = false;
140
141 UspsZipPlus4 m_uspsZipPlus4;
142 bool m_uspsZipPlus4HasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace GeoPlaces
147} // namespace Aws
PostalCodeDetails & WithPostalCodeType(PostalCodeType value)
const Aws::String & GetPostalCode() const
void SetPostalAuthority(PostalAuthority value)
AWS_GEOPLACES_API PostalCodeDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const UspsZipPlus4 & GetUspsZipPlus4() const
PostalCodeDetails & WithUspsZipPlus4(UspsZipPlus4T &&value)
PostalCodeDetails & WithPostalAuthority(PostalAuthority value)
void SetPostalCodeType(PostalCodeType value)
AWS_GEOPLACES_API PostalCodeDetails()=default
void SetUspsZipPlus4(UspsZipPlus4T &&value)
PostalCodeDetails & WithPostalCode(PostalCodeT &&value)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
PostalCodeDetails & WithUspsZip(UspsZipT &&value)
AWS_GEOPLACES_API PostalCodeDetails(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue