AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AddressSummary.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
30 public:
31 AWS_PARTNERCENTRALSELLING_API AddressSummary() = default;
32 AWS_PARTNERCENTRALSELLING_API AddressSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PARTNERCENTRALSELLING_API AddressSummary& 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 AddressSummary& 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 AddressSummary& 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 AddressSummary& 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 private:
120 Aws::String m_city;
121
122 Aws::String m_postalCode;
123
124 Aws::String m_stateOrRegion;
125
126 CountryCode m_countryCode{CountryCode::NOT_SET};
127 bool m_cityHasBeenSet = false;
128 bool m_postalCodeHasBeenSet = false;
129 bool m_stateOrRegionHasBeenSet = false;
130 bool m_countryCodeHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace PartnerCentralSelling
135} // namespace Aws
AddressSummary & WithStateOrRegion(StateOrRegionT &&value)
AWS_PARTNERCENTRALSELLING_API AddressSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
AddressSummary & WithCountryCode(CountryCode value)
AWS_PARTNERCENTRALSELLING_API AddressSummary()=default
AddressSummary & WithPostalCode(PostalCodeT &&value)
AWS_PARTNERCENTRALSELLING_API AddressSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue