AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; }
49 inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
50 inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); }
51 inline Locale& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
52 inline Locale& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;}
53 inline Locale& WithCountry(const char* value) { SetCountry(value); return *this;}
55
57
61 inline const Aws::String& GetSubdivision() const{ return m_subdivision; }
62 inline bool SubdivisionHasBeenSet() const { return m_subdivisionHasBeenSet; }
63 inline void SetSubdivision(const Aws::String& value) { m_subdivisionHasBeenSet = true; m_subdivision = value; }
64 inline void SetSubdivision(Aws::String&& value) { m_subdivisionHasBeenSet = true; m_subdivision = std::move(value); }
65 inline void SetSubdivision(const char* value) { m_subdivisionHasBeenSet = true; m_subdivision.assign(value); }
66 inline Locale& WithSubdivision(const Aws::String& value) { SetSubdivision(value); return *this;}
67 inline Locale& WithSubdivision(Aws::String&& value) { SetSubdivision(std::move(value)); return *this;}
68 inline Locale& WithSubdivision(const char* value) { SetSubdivision(value); return *this;}
70 private:
71
72 Aws::String m_country;
73 bool m_countryHasBeenSet = false;
74
75 Aws::String m_subdivision;
76 bool m_subdivisionHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace MTurk
81} // namespace Aws
void SetCountry(const char *value)
Definition Locale.h:50
const Aws::String & GetSubdivision() const
Definition Locale.h:61
void SetCountry(const Aws::String &value)
Definition Locale.h:48
AWS_MTURK_API Locale(Aws::Utils::Json::JsonView jsonValue)
bool SubdivisionHasBeenSet() const
Definition Locale.h:62
Locale & WithCountry(const Aws::String &value)
Definition Locale.h:51
void SetSubdivision(const Aws::String &value)
Definition Locale.h:63
Locale & WithCountry(const char *value)
Definition Locale.h:53
Locale & WithCountry(Aws::String &&value)
Definition Locale.h:52
AWS_MTURK_API Locale()
bool CountryHasBeenSet() const
Definition Locale.h:47
AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSubdivision(Aws::String &&value)
Definition Locale.h:64
AWS_MTURK_API Locale & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCountry() const
Definition Locale.h:46
Locale & WithSubdivision(Aws::String &&value)
Definition Locale.h:67
void SetCountry(Aws::String &&value)
Definition Locale.h:49
Locale & WithSubdivision(const char *value)
Definition Locale.h:68
void SetSubdivision(const char *value)
Definition Locale.h:65
Locale & WithSubdivision(const Aws::String &value)
Definition Locale.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue