AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Locale.h
1
6#pragma once
7#include <aws/mturk-requester/MTurk_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 MTurk
22{
23namespace Model
24{
25
32 class Locale
33 {
34 public:
35 AWS_MTURK_API Locale() = default;
36 AWS_MTURK_API Locale(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MTURK_API Locale& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetCountry() const { return m_country; }
47 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
48 template<typename CountryT = Aws::String>
49 void SetCountry(CountryT&& value) { m_countryHasBeenSet = true; m_country = std::forward<CountryT>(value); }
50 template<typename CountryT = Aws::String>
51 Locale& WithCountry(CountryT&& value) { SetCountry(std::forward<CountryT>(value)); return *this;}
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) { m_subdivisionHasBeenSet = true; m_subdivision = std::forward<SubdivisionT>(value); }
63 template<typename SubdivisionT = Aws::String>
64 Locale& WithSubdivision(SubdivisionT&& value) { SetSubdivision(std::forward<SubdivisionT>(value)); return *this;}
66 private:
67
68 Aws::String m_country;
69 bool m_countryHasBeenSet = false;
70
71 Aws::String m_subdivision;
72 bool m_subdivisionHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace MTurk
77} // namespace Aws
Locale & WithSubdivision(SubdivisionT &&value)
Definition Locale.h:64
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:49
Locale & WithCountry(CountryT &&value)
Definition Locale.h:51
bool CountryHasBeenSet() const
Definition Locale.h:47
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:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue