AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPostalCode(const Aws::String& value) { m_postalCodeHasBeenSet = true; m_postalCode = value; }
54 inline void SetPostalCode(Aws::String&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::move(value); }
55 inline void SetPostalCode(const char* value) { m_postalCodeHasBeenSet = true; m_postalCode.assign(value); }
56 inline PostalCodeDetails& WithPostalCode(const Aws::String& value) { SetPostalCode(value); return *this;}
57 inline PostalCodeDetails& WithPostalCode(Aws::String&& value) { SetPostalCode(std::move(value)); return *this;}
58 inline PostalCodeDetails& WithPostalCode(const char* value) { SetPostalCode(value); return *this;}
60
62
66 inline const PostalAuthority& GetPostalAuthority() const{ return m_postalAuthority; }
67 inline bool PostalAuthorityHasBeenSet() const { return m_postalAuthorityHasBeenSet; }
68 inline void SetPostalAuthority(const PostalAuthority& value) { m_postalAuthorityHasBeenSet = true; m_postalAuthority = value; }
69 inline void SetPostalAuthority(PostalAuthority&& value) { m_postalAuthorityHasBeenSet = true; m_postalAuthority = std::move(value); }
70 inline PostalCodeDetails& WithPostalAuthority(const PostalAuthority& value) { SetPostalAuthority(value); return *this;}
71 inline PostalCodeDetails& WithPostalAuthority(PostalAuthority&& value) { SetPostalAuthority(std::move(value)); return *this;}
73
75
78 inline const PostalCodeType& GetPostalCodeType() const{ return m_postalCodeType; }
79 inline bool PostalCodeTypeHasBeenSet() const { return m_postalCodeTypeHasBeenSet; }
80 inline void SetPostalCodeType(const PostalCodeType& value) { m_postalCodeTypeHasBeenSet = true; m_postalCodeType = value; }
81 inline void SetPostalCodeType(PostalCodeType&& value) { m_postalCodeTypeHasBeenSet = true; m_postalCodeType = std::move(value); }
82 inline PostalCodeDetails& WithPostalCodeType(const PostalCodeType& value) { SetPostalCodeType(value); return *this;}
83 inline PostalCodeDetails& WithPostalCodeType(PostalCodeType&& value) { SetPostalCodeType(std::move(value)); return *this;}
85
87
91 inline const UspsZip& GetUspsZip() const{ return m_uspsZip; }
92 inline bool UspsZipHasBeenSet() const { return m_uspsZipHasBeenSet; }
93 inline void SetUspsZip(const UspsZip& value) { m_uspsZipHasBeenSet = true; m_uspsZip = value; }
94 inline void SetUspsZip(UspsZip&& value) { m_uspsZipHasBeenSet = true; m_uspsZip = std::move(value); }
95 inline PostalCodeDetails& WithUspsZip(const UspsZip& value) { SetUspsZip(value); return *this;}
96 inline PostalCodeDetails& WithUspsZip(UspsZip&& value) { SetUspsZip(std::move(value)); return *this;}
98
100
103 inline const UspsZipPlus4& GetUspsZipPlus4() const{ return m_uspsZipPlus4; }
104 inline bool UspsZipPlus4HasBeenSet() const { return m_uspsZipPlus4HasBeenSet; }
105 inline void SetUspsZipPlus4(const UspsZipPlus4& value) { m_uspsZipPlus4HasBeenSet = true; m_uspsZipPlus4 = value; }
106 inline void SetUspsZipPlus4(UspsZipPlus4&& value) { m_uspsZipPlus4HasBeenSet = true; m_uspsZipPlus4 = std::move(value); }
107 inline PostalCodeDetails& WithUspsZipPlus4(const UspsZipPlus4& value) { SetUspsZipPlus4(value); return *this;}
108 inline PostalCodeDetails& WithUspsZipPlus4(UspsZipPlus4&& value) { SetUspsZipPlus4(std::move(value)); return *this;}
110 private:
111
112 Aws::String m_postalCode;
113 bool m_postalCodeHasBeenSet = false;
114
115 PostalAuthority m_postalAuthority;
116 bool m_postalAuthorityHasBeenSet = false;
117
118 PostalCodeType m_postalCodeType;
119 bool m_postalCodeTypeHasBeenSet = false;
120
121 UspsZip m_uspsZip;
122 bool m_uspsZipHasBeenSet = false;
123
124 UspsZipPlus4 m_uspsZipPlus4;
125 bool m_uspsZipPlus4HasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace GeoPlaces
130} // namespace Aws
PostalCodeDetails & WithPostalCode(Aws::String &&value)
const PostalCodeType & GetPostalCodeType() const
const Aws::String & GetPostalCode() const
PostalCodeDetails & WithUspsZip(UspsZip &&value)
AWS_GEOPLACES_API PostalCodeDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
PostalCodeDetails & WithPostalAuthority(PostalAuthority &&value)
const UspsZipPlus4 & GetUspsZipPlus4() const
void SetUspsZipPlus4(const UspsZipPlus4 &value)
PostalCodeDetails & WithUspsZip(const UspsZip &value)
const PostalAuthority & GetPostalAuthority() const
void SetPostalAuthority(const PostalAuthority &value)
PostalCodeDetails & WithPostalAuthority(const PostalAuthority &value)
void SetPostalCodeType(PostalCodeType &&value)
PostalCodeDetails & WithPostalCode(const char *value)
PostalCodeDetails & WithUspsZipPlus4(const UspsZipPlus4 &value)
void SetPostalCodeType(const PostalCodeType &value)
PostalCodeDetails & WithUspsZipPlus4(UspsZipPlus4 &&value)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOPLACES_API PostalCodeDetails(Aws::Utils::Json::JsonView jsonValue)
PostalCodeDetails & WithPostalCodeType(const PostalCodeType &value)
PostalCodeDetails & WithPostalCode(const Aws::String &value)
void SetPostalCode(const Aws::String &value)
PostalCodeDetails & WithPostalCodeType(PostalCodeType &&value)
void SetPostalAuthority(PostalAuthority &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue