AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Address.h
1
6#pragma once
7#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/partnercentral-selling/model/CountryCode.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 PartnerCentralSelling
23{
24namespace Model
25{
26
33 class Address
34 {
35 public:
36 AWS_PARTNERCENTRALSELLING_API Address() = default;
37 AWS_PARTNERCENTRALSELLING_API Address(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PARTNERCENTRALSELLING_API Address& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetCity() const { return m_city; }
48 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
49 template<typename CityT = Aws::String>
50 void SetCity(CityT&& value) { m_cityHasBeenSet = true; m_city = std::forward<CityT>(value); }
51 template<typename CityT = Aws::String>
52 Address& WithCity(CityT&& value) { SetCity(std::forward<CityT>(value)); return *this;}
54
56
60 inline CountryCode GetCountryCode() const { return m_countryCode; }
61 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
62 inline void SetCountryCode(CountryCode value) { m_countryCodeHasBeenSet = true; m_countryCode = value; }
63 inline Address& WithCountryCode(CountryCode value) { SetCountryCode(value); return *this;}
65
67
71 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
72 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
73 template<typename PostalCodeT = Aws::String>
74 void SetPostalCode(PostalCodeT&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::forward<PostalCodeT>(value); }
75 template<typename PostalCodeT = Aws::String>
76 Address& WithPostalCode(PostalCodeT&& value) { SetPostalCode(std::forward<PostalCodeT>(value)); return *this;}
78
80
94 inline const Aws::String& GetStateOrRegion() const { return m_stateOrRegion; }
95 inline bool StateOrRegionHasBeenSet() const { return m_stateOrRegionHasBeenSet; }
96 template<typename StateOrRegionT = Aws::String>
97 void SetStateOrRegion(StateOrRegionT&& value) { m_stateOrRegionHasBeenSet = true; m_stateOrRegion = std::forward<StateOrRegionT>(value); }
98 template<typename StateOrRegionT = Aws::String>
99 Address& WithStateOrRegion(StateOrRegionT&& value) { SetStateOrRegion(std::forward<StateOrRegionT>(value)); return *this;}
101
103
107 inline const Aws::String& GetStreetAddress() const { return m_streetAddress; }
108 inline bool StreetAddressHasBeenSet() const { return m_streetAddressHasBeenSet; }
109 template<typename StreetAddressT = Aws::String>
110 void SetStreetAddress(StreetAddressT&& value) { m_streetAddressHasBeenSet = true; m_streetAddress = std::forward<StreetAddressT>(value); }
111 template<typename StreetAddressT = Aws::String>
112 Address& WithStreetAddress(StreetAddressT&& value) { SetStreetAddress(std::forward<StreetAddressT>(value)); return *this;}
114 private:
115
116 Aws::String m_city;
117 bool m_cityHasBeenSet = false;
118
119 CountryCode m_countryCode{CountryCode::NOT_SET};
120 bool m_countryCodeHasBeenSet = false;
121
122 Aws::String m_postalCode;
123 bool m_postalCodeHasBeenSet = false;
124
125 Aws::String m_stateOrRegion;
126 bool m_stateOrRegionHasBeenSet = false;
127
128 Aws::String m_streetAddress;
129 bool m_streetAddressHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace PartnerCentralSelling
134} // namespace Aws
Address & WithPostalCode(PostalCodeT &&value)
Definition Address.h:76
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPostalCode(PostalCodeT &&value)
Definition Address.h:74
Address & WithStreetAddress(StreetAddressT &&value)
Definition Address.h:112
Address & WithCountryCode(CountryCode value)
Definition Address.h:63
const Aws::String & GetCity() const
Definition Address.h:47
const Aws::String & GetStateOrRegion() const
Definition Address.h:94
AWS_PARTNERCENTRALSELLING_API Address()=default
void SetStreetAddress(StreetAddressT &&value)
Definition Address.h:110
void SetStateOrRegion(StateOrRegionT &&value)
Definition Address.h:97
void SetCountryCode(CountryCode value)
Definition Address.h:62
const Aws::String & GetPostalCode() const
Definition Address.h:71
Address & WithStateOrRegion(StateOrRegionT &&value)
Definition Address.h:99
const Aws::String & GetStreetAddress() const
Definition Address.h:107
AWS_PARTNERCENTRALSELLING_API Address(Aws::Utils::Json::JsonView jsonValue)
Address & WithCity(CityT &&value)
Definition Address.h:52
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