AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AddressSummary.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
34 {
35 public:
36 AWS_PARTNERCENTRALSELLING_API AddressSummary() = default;
37 AWS_PARTNERCENTRALSELLING_API AddressSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PARTNERCENTRALSELLING_API AddressSummary& 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 AddressSummary& 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 AddressSummary& 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 AddressSummary& 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 AddressSummary& WithStateOrRegion(StateOrRegionT&& value) { SetStateOrRegion(std::forward<StateOrRegionT>(value)); return *this;}
101 private:
102
103 Aws::String m_city;
104 bool m_cityHasBeenSet = false;
105
106 CountryCode m_countryCode{CountryCode::NOT_SET};
107 bool m_countryCodeHasBeenSet = false;
108
109 Aws::String m_postalCode;
110 bool m_postalCodeHasBeenSet = false;
111
112 Aws::String m_stateOrRegion;
113 bool m_stateOrRegionHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace PartnerCentralSelling
118} // 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