AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Jurisdiction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/taxsettings/TaxSettings_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace TaxSettings {
20namespace Model {
21
30 public:
31 AWS_TAXSETTINGS_API Jurisdiction() = default;
32 AWS_TAXSETTINGS_API Jurisdiction(Aws::Utils::Json::JsonView jsonValue);
33 AWS_TAXSETTINGS_API Jurisdiction& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_TAXSETTINGS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
41 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
42 template <typename CountryCodeT = Aws::String>
43 void SetCountryCode(CountryCodeT&& value) {
44 m_countryCodeHasBeenSet = true;
45 m_countryCode = std::forward<CountryCodeT>(value);
46 }
47 template <typename CountryCodeT = Aws::String>
48 Jurisdiction& WithCountryCode(CountryCodeT&& value) {
49 SetCountryCode(std::forward<CountryCodeT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetStateOrRegion() const { return m_stateOrRegion; }
60 inline bool StateOrRegionHasBeenSet() const { return m_stateOrRegionHasBeenSet; }
61 template <typename StateOrRegionT = Aws::String>
62 void SetStateOrRegion(StateOrRegionT&& value) {
63 m_stateOrRegionHasBeenSet = true;
64 m_stateOrRegion = std::forward<StateOrRegionT>(value);
65 }
66 template <typename StateOrRegionT = Aws::String>
67 Jurisdiction& WithStateOrRegion(StateOrRegionT&& value) {
68 SetStateOrRegion(std::forward<StateOrRegionT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_countryCode;
74
75 Aws::String m_stateOrRegion;
76 bool m_countryCodeHasBeenSet = false;
77 bool m_stateOrRegionHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace TaxSettings
82} // namespace Aws
AWS_TAXSETTINGS_API Jurisdiction()=default
const Aws::String & GetCountryCode() const
Jurisdiction & WithStateOrRegion(StateOrRegionT &&value)
void SetStateOrRegion(StateOrRegionT &&value)
const Aws::String & GetStateOrRegion() const
AWS_TAXSETTINGS_API Jurisdiction(Aws::Utils::Json::JsonView jsonValue)
AWS_TAXSETTINGS_API Jurisdiction & operator=(Aws::Utils::Json::JsonView jsonValue)
Jurisdiction & WithCountryCode(CountryCodeT &&value)
AWS_TAXSETTINGS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCountryCode(CountryCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue