AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Address.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
9#include <aws/partnercentral-selling/model/CountryCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PartnerCentralSelling {
21namespace Model {
22
29class Address {
30 public:
31 AWS_PARTNERCENTRALSELLING_API Address() = default;
32 AWS_PARTNERCENTRALSELLING_API Address(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PARTNERCENTRALSELLING_API Address& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetCity() const { return m_city; }
42 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
43 template <typename CityT = Aws::String>
44 void SetCity(CityT&& value) {
45 m_cityHasBeenSet = true;
46 m_city = std::forward<CityT>(value);
47 }
48 template <typename CityT = Aws::String>
49 Address& WithCity(CityT&& value) {
50 SetCity(std::forward<CityT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
61 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
62 template <typename PostalCodeT = Aws::String>
63 void SetPostalCode(PostalCodeT&& value) {
64 m_postalCodeHasBeenSet = true;
65 m_postalCode = std::forward<PostalCodeT>(value);
66 }
67 template <typename PostalCodeT = Aws::String>
68 Address& WithPostalCode(PostalCodeT&& value) {
69 SetPostalCode(std::forward<PostalCodeT>(value));
70 return *this;
71 }
73
75
89 inline const Aws::String& GetStateOrRegion() const { return m_stateOrRegion; }
90 inline bool StateOrRegionHasBeenSet() const { return m_stateOrRegionHasBeenSet; }
91 template <typename StateOrRegionT = Aws::String>
92 void SetStateOrRegion(StateOrRegionT&& value) {
93 m_stateOrRegionHasBeenSet = true;
94 m_stateOrRegion = std::forward<StateOrRegionT>(value);
95 }
96 template <typename StateOrRegionT = Aws::String>
97 Address& WithStateOrRegion(StateOrRegionT&& value) {
98 SetStateOrRegion(std::forward<StateOrRegionT>(value));
99 return *this;
100 }
102
104
108 inline CountryCode GetCountryCode() const { return m_countryCode; }
109 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
110 inline void SetCountryCode(CountryCode value) {
111 m_countryCodeHasBeenSet = true;
112 m_countryCode = value;
113 }
115 SetCountryCode(value);
116 return *this;
117 }
119
121
125 inline const Aws::String& GetStreetAddress() const { return m_streetAddress; }
126 inline bool StreetAddressHasBeenSet() const { return m_streetAddressHasBeenSet; }
127 template <typename StreetAddressT = Aws::String>
128 void SetStreetAddress(StreetAddressT&& value) {
129 m_streetAddressHasBeenSet = true;
130 m_streetAddress = std::forward<StreetAddressT>(value);
131 }
132 template <typename StreetAddressT = Aws::String>
133 Address& WithStreetAddress(StreetAddressT&& value) {
134 SetStreetAddress(std::forward<StreetAddressT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_city;
140
141 Aws::String m_postalCode;
142
143 Aws::String m_stateOrRegion;
144
145 CountryCode m_countryCode{CountryCode::NOT_SET};
146
147 Aws::String m_streetAddress;
148 bool m_cityHasBeenSet = false;
149 bool m_postalCodeHasBeenSet = false;
150 bool m_stateOrRegionHasBeenSet = false;
151 bool m_countryCodeHasBeenSet = false;
152 bool m_streetAddressHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace PartnerCentralSelling
157} // namespace Aws
Address & WithPostalCode(PostalCodeT &&value)
Definition Address.h:68
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPostalCode(PostalCodeT &&value)
Definition Address.h:63
Address & WithStreetAddress(StreetAddressT &&value)
Definition Address.h:133
Address & WithCountryCode(CountryCode value)
Definition Address.h:114
const Aws::String & GetCity() const
Definition Address.h:41
const Aws::String & GetStateOrRegion() const
Definition Address.h:89
AWS_PARTNERCENTRALSELLING_API Address()=default
void SetStreetAddress(StreetAddressT &&value)
Definition Address.h:128
void SetStateOrRegion(StateOrRegionT &&value)
Definition Address.h:92
void SetCountryCode(CountryCode value)
Definition Address.h:110
const Aws::String & GetPostalCode() const
Definition Address.h:60
Address & WithStateOrRegion(StateOrRegionT &&value)
Definition Address.h:97
const Aws::String & GetStreetAddress() const
Definition Address.h:125
AWS_PARTNERCENTRALSELLING_API Address(Aws::Utils::Json::JsonView jsonValue)
Address & WithCity(CityT &&value)
Definition Address.h:49
AWS_PARTNERCENTRALSELLING_API Address & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue