AWS SDK for C++

AWS SDK for C++ Version 1.11.771

Loading...
Searching...
No Matches
Locale.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mturk-requester/MTurk_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace MTurk {
20namespace Model {
21
28class Locale {
29 public:
30 AWS_MTURK_API Locale() = default;
31 AWS_MTURK_API Locale(Aws::Utils::Json::JsonView jsonValue);
32 AWS_MTURK_API Locale& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetCountry() const { return m_country; }
41 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
42 template <typename CountryT = Aws::String>
43 void SetCountry(CountryT&& value) {
44 m_countryHasBeenSet = true;
45 m_country = std::forward<CountryT>(value);
46 }
47 template <typename CountryT = Aws::String>
48 Locale& WithCountry(CountryT&& value) {
49 SetCountry(std::forward<CountryT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetSubdivision() const { return m_subdivision; }
60 inline bool SubdivisionHasBeenSet() const { return m_subdivisionHasBeenSet; }
61 template <typename SubdivisionT = Aws::String>
62 void SetSubdivision(SubdivisionT&& value) {
63 m_subdivisionHasBeenSet = true;
64 m_subdivision = std::forward<SubdivisionT>(value);
65 }
66 template <typename SubdivisionT = Aws::String>
67 Locale& WithSubdivision(SubdivisionT&& value) {
68 SetSubdivision(std::forward<SubdivisionT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_country;
74
75 Aws::String m_subdivision;
76 bool m_countryHasBeenSet = false;
77 bool m_subdivisionHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace MTurk
82} // namespace Aws
Locale & WithSubdivision(SubdivisionT &&value)
Definition Locale.h:67
const Aws::String & GetSubdivision() const
Definition Locale.h:59
AWS_MTURK_API Locale(Aws::Utils::Json::JsonView jsonValue)
bool SubdivisionHasBeenSet() const
Definition Locale.h:60
AWS_MTURK_API Locale()=default
void SetSubdivision(SubdivisionT &&value)
Definition Locale.h:62
void SetCountry(CountryT &&value)
Definition Locale.h:43
Locale & WithCountry(CountryT &&value)
Definition Locale.h:48
bool CountryHasBeenSet() const
Definition Locale.h:41
AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MTURK_API Locale & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCountry() const
Definition Locale.h:40
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue