AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
Headquarters.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/partnercentral-account/PartnerCentralAccount_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace PartnerCentralAccount {
20namespace Model {
21
30 public:
31 AWS_PARTNERCENTRALACCOUNT_API Headquarters() = default;
32 AWS_PARTNERCENTRALACCOUNT_API Headquarters(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PARTNERCENTRALACCOUNT_API Headquarters& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PARTNERCENTRALACCOUNT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
42 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
43 template <typename CountryCodeT = Aws::String>
44 void SetCountryCode(CountryCodeT&& value) {
45 m_countryCodeHasBeenSet = true;
46 m_countryCode = std::forward<CountryCodeT>(value);
47 }
48 template <typename CountryCodeT = Aws::String>
49 Headquarters& WithCountryCode(CountryCodeT&& value) {
50 SetCountryCode(std::forward<CountryCodeT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetSubdivisionCode() const { return m_subdivisionCode; }
62 inline bool SubdivisionCodeHasBeenSet() const { return m_subdivisionCodeHasBeenSet; }
63 template <typename SubdivisionCodeT = Aws::String>
64 void SetSubdivisionCode(SubdivisionCodeT&& value) {
65 m_subdivisionCodeHasBeenSet = true;
66 m_subdivisionCode = std::forward<SubdivisionCodeT>(value);
67 }
68 template <typename SubdivisionCodeT = Aws::String>
69 Headquarters& WithSubdivisionCode(SubdivisionCodeT&& value) {
70 SetSubdivisionCode(std::forward<SubdivisionCodeT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_countryCode;
76
77 Aws::String m_subdivisionCode;
78 bool m_countryCodeHasBeenSet = false;
79 bool m_subdivisionCodeHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace PartnerCentralAccount
84} // namespace Aws
AWS_PARTNERCENTRALACCOUNT_API Headquarters & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALACCOUNT_API Aws::Utils::Json::JsonValue Jsonize() const
Headquarters & WithSubdivisionCode(SubdivisionCodeT &&value)
AWS_PARTNERCENTRALACCOUNT_API Headquarters(Aws::Utils::Json::JsonView jsonValue)
void SetSubdivisionCode(SubdivisionCodeT &&value)
AWS_PARTNERCENTRALACCOUNT_API Headquarters()=default
Headquarters & WithCountryCode(CountryCodeT &&value)
const Aws::String & GetSubdivisionCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue