AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
PostalCodeDetails.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/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#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GeoPlaces
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_GEOPLACES_API PostalCodeDetails() = default;
40 AWS_GEOPLACES_API PostalCodeDetails(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
52 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
53 template<typename PostalCodeT = Aws::String>
54 void SetPostalCode(PostalCodeT&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::forward<PostalCodeT>(value); }
55 template<typename PostalCodeT = Aws::String>
56 PostalCodeDetails& WithPostalCode(PostalCodeT&& value) { SetPostalCode(std::forward<PostalCodeT>(value)); return *this;}
58
60
64 inline PostalAuthority GetPostalAuthority() const { return m_postalAuthority; }
65 inline bool PostalAuthorityHasBeenSet() const { return m_postalAuthorityHasBeenSet; }
66 inline void SetPostalAuthority(PostalAuthority value) { m_postalAuthorityHasBeenSet = true; m_postalAuthority = value; }
69
71
74 inline PostalCodeType GetPostalCodeType() const { return m_postalCodeType; }
75 inline bool PostalCodeTypeHasBeenSet() const { return m_postalCodeTypeHasBeenSet; }
76 inline void SetPostalCodeType(PostalCodeType value) { m_postalCodeTypeHasBeenSet = true; m_postalCodeType = value; }
79
81
85 inline const UspsZip& GetUspsZip() const { return m_uspsZip; }
86 inline bool UspsZipHasBeenSet() const { return m_uspsZipHasBeenSet; }
87 template<typename UspsZipT = UspsZip>
88 void SetUspsZip(UspsZipT&& value) { m_uspsZipHasBeenSet = true; m_uspsZip = std::forward<UspsZipT>(value); }
89 template<typename UspsZipT = UspsZip>
90 PostalCodeDetails& WithUspsZip(UspsZipT&& value) { SetUspsZip(std::forward<UspsZipT>(value)); return *this;}
92
94
97 inline const UspsZipPlus4& GetUspsZipPlus4() const { return m_uspsZipPlus4; }
98 inline bool UspsZipPlus4HasBeenSet() const { return m_uspsZipPlus4HasBeenSet; }
99 template<typename UspsZipPlus4T = UspsZipPlus4>
100 void SetUspsZipPlus4(UspsZipPlus4T&& value) { m_uspsZipPlus4HasBeenSet = true; m_uspsZipPlus4 = std::forward<UspsZipPlus4T>(value); }
101 template<typename UspsZipPlus4T = UspsZipPlus4>
102 PostalCodeDetails& WithUspsZipPlus4(UspsZipPlus4T&& value) { SetUspsZipPlus4(std::forward<UspsZipPlus4T>(value)); return *this;}
104 private:
105
106 Aws::String m_postalCode;
107 bool m_postalCodeHasBeenSet = false;
108
109 PostalAuthority m_postalAuthority{PostalAuthority::NOT_SET};
110 bool m_postalAuthorityHasBeenSet = false;
111
112 PostalCodeType m_postalCodeType{PostalCodeType::NOT_SET};
113 bool m_postalCodeTypeHasBeenSet = false;
114
115 UspsZip m_uspsZip;
116 bool m_uspsZipHasBeenSet = false;
117
118 UspsZipPlus4 m_uspsZipPlus4;
119 bool m_uspsZipPlus4HasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace GeoPlaces
124} // 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