AWS SDK for C++

AWS SDK for C++ Version 1.11.871

Loading...
Searching...
No Matches
LeadAddress.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace PartnerCentralSelling {
20namespace Model {
21
29 public:
30 AWS_PARTNERCENTRALSELLING_API LeadAddress() = default;
31 AWS_PARTNERCENTRALSELLING_API LeadAddress(Aws::Utils::Json::JsonView jsonValue);
32 AWS_PARTNERCENTRALSELLING_API LeadAddress& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetCity() const { return m_city; }
40 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
41 template <typename CityT = Aws::String>
42 void SetCity(CityT&& value) {
43 m_cityHasBeenSet = true;
44 m_city = std::forward<CityT>(value);
45 }
46 template <typename CityT = Aws::String>
47 LeadAddress& WithCity(CityT&& value) {
48 SetCity(std::forward<CityT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
58 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
59 template <typename PostalCodeT = Aws::String>
60 void SetPostalCode(PostalCodeT&& value) {
61 m_postalCodeHasBeenSet = true;
62 m_postalCode = std::forward<PostalCodeT>(value);
63 }
64 template <typename PostalCodeT = Aws::String>
65 LeadAddress& WithPostalCode(PostalCodeT&& value) {
66 SetPostalCode(std::forward<PostalCodeT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetStateOrRegion() const { return m_stateOrRegion; }
76 inline bool StateOrRegionHasBeenSet() const { return m_stateOrRegionHasBeenSet; }
77 template <typename StateOrRegionT = Aws::String>
78 void SetStateOrRegion(StateOrRegionT&& value) {
79 m_stateOrRegionHasBeenSet = true;
80 m_stateOrRegion = std::forward<StateOrRegionT>(value);
81 }
82 template <typename StateOrRegionT = Aws::String>
83 LeadAddress& WithStateOrRegion(StateOrRegionT&& value) {
84 SetStateOrRegion(std::forward<StateOrRegionT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
94 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
95 template <typename CountryCodeT = Aws::String>
96 void SetCountryCode(CountryCodeT&& value) {
97 m_countryCodeHasBeenSet = true;
98 m_countryCode = std::forward<CountryCodeT>(value);
99 }
100 template <typename CountryCodeT = Aws::String>
101 LeadAddress& WithCountryCode(CountryCodeT&& value) {
102 SetCountryCode(std::forward<CountryCodeT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_city;
108
109 Aws::String m_postalCode;
110
111 Aws::String m_stateOrRegion;
112
113 Aws::String m_countryCode;
114 bool m_cityHasBeenSet = false;
115 bool m_postalCodeHasBeenSet = false;
116 bool m_stateOrRegionHasBeenSet = false;
117 bool m_countryCodeHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace PartnerCentralSelling
122} // namespace Aws
LeadAddress & WithCountryCode(CountryCodeT &&value)
LeadAddress & WithPostalCode(PostalCodeT &&value)
Definition LeadAddress.h:65
LeadAddress & WithStateOrRegion(StateOrRegionT &&value)
Definition LeadAddress.h:83
const Aws::String & GetPostalCode() const
Definition LeadAddress.h:57
void SetStateOrRegion(StateOrRegionT &&value)
Definition LeadAddress.h:78
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PARTNERCENTRALSELLING_API LeadAddress & operator=(Aws::Utils::Json::JsonView jsonValue)
LeadAddress & WithCity(CityT &&value)
Definition LeadAddress.h:47
const Aws::String & GetStateOrRegion() const
Definition LeadAddress.h:75
const Aws::String & GetCountryCode() const
Definition LeadAddress.h:93
AWS_PARTNERCENTRALSELLING_API LeadAddress()=default
AWS_PARTNERCENTRALSELLING_API LeadAddress(Aws::Utils::Json::JsonView jsonValue)
void SetCountryCode(CountryCodeT &&value)
Definition LeadAddress.h:96
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue