AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Jurisdiction.h
1
6#pragma once
7#include <aws/taxsettings/TaxSettings_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace TaxSettings
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_TAXSETTINGS_API Jurisdiction() = default;
37 AWS_TAXSETTINGS_API Jurisdiction(Aws::Utils::Json::JsonView jsonValue);
38 AWS_TAXSETTINGS_API Jurisdiction& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TAXSETTINGS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
47 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
48 template<typename CountryCodeT = Aws::String>
49 void SetCountryCode(CountryCodeT&& value) { m_countryCodeHasBeenSet = true; m_countryCode = std::forward<CountryCodeT>(value); }
50 template<typename CountryCodeT = Aws::String>
51 Jurisdiction& WithCountryCode(CountryCodeT&& value) { SetCountryCode(std::forward<CountryCodeT>(value)); return *this;}
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) { m_stateOrRegionHasBeenSet = true; m_stateOrRegion = std::forward<StateOrRegionT>(value); }
63 template<typename StateOrRegionT = Aws::String>
64 Jurisdiction& WithStateOrRegion(StateOrRegionT&& value) { SetStateOrRegion(std::forward<StateOrRegionT>(value)); return *this;}
66 private:
67
68 Aws::String m_countryCode;
69 bool m_countryCodeHasBeenSet = false;
70
71 Aws::String m_stateOrRegion;
72 bool m_stateOrRegionHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace TaxSettings
77} // 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