AWS SDK for C++  1.9.104
AWS SDK for C++
Locale.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace MTurk
22 {
23 namespace Model
24 {
25 
33  {
34  public:
35  Locale();
39 
40 
45  inline const Aws::String& GetCountry() const{ return m_country; }
46 
51  inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
52 
57  inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; }
58 
63  inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
64 
69  inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); }
70 
75  inline Locale& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
76 
81  inline Locale& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;}
82 
87  inline Locale& WithCountry(const char* value) { SetCountry(value); return *this;}
88 
89 
94  inline const Aws::String& GetSubdivision() const{ return m_subdivision; }
95 
100  inline bool SubdivisionHasBeenSet() const { return m_subdivisionHasBeenSet; }
101 
106  inline void SetSubdivision(const Aws::String& value) { m_subdivisionHasBeenSet = true; m_subdivision = value; }
107 
112  inline void SetSubdivision(Aws::String&& value) { m_subdivisionHasBeenSet = true; m_subdivision = std::move(value); }
113 
118  inline void SetSubdivision(const char* value) { m_subdivisionHasBeenSet = true; m_subdivision.assign(value); }
119 
124  inline Locale& WithSubdivision(const Aws::String& value) { SetSubdivision(value); return *this;}
125 
130  inline Locale& WithSubdivision(Aws::String&& value) { SetSubdivision(std::move(value)); return *this;}
131 
136  inline Locale& WithSubdivision(const char* value) { SetSubdivision(value); return *this;}
137 
138  private:
139 
140  Aws::String m_country;
141  bool m_countryHasBeenSet;
142 
143  Aws::String m_subdivision;
144  bool m_subdivisionHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace MTurk
149 } // namespace Aws
Aws::MTurk::Model::Locale::WithCountry
Locale & WithCountry(const Aws::String &value)
Definition: Locale.h:75
Aws::MTurk::Model::Locale::SetCountry
void SetCountry(const Aws::String &value)
Definition: Locale.h:57
Aws::MTurk::Model::Locale::SetSubdivision
void SetSubdivision(Aws::String &&value)
Definition: Locale.h:112
Aws::MTurk::Model::Locale::WithCountry
Locale & WithCountry(const char *value)
Definition: Locale.h:87
Aws::MTurk::Model::Locale::SetSubdivision
void SetSubdivision(const char *value)
Definition: Locale.h:118
Aws::MTurk::Model::Locale::GetSubdivision
const Aws::String & GetSubdivision() const
Definition: Locale.h:94
Aws::MTurk::Model::Locale::WithCountry
Locale & WithCountry(Aws::String &&value)
Definition: Locale.h:81
Aws::MTurk::Model::Locale::Locale
Locale(Aws::Utils::Json::JsonView jsonValue)
Aws::MTurk::Model::Locale::SetSubdivision
void SetSubdivision(const Aws::String &value)
Definition: Locale.h:106
Aws::MTurk::Model::Locale::GetCountry
const Aws::String & GetCountry() const
Definition: Locale.h:45
Aws::MTurk::Model::Locale::WithSubdivision
Locale & WithSubdivision(const char *value)
Definition: Locale.h:136
Aws::MTurk::Model::Locale::SetCountry
void SetCountry(Aws::String &&value)
Definition: Locale.h:63
Aws::MTurk::Model::Locale::WithSubdivision
Locale & WithSubdivision(const Aws::String &value)
Definition: Locale.h:124
Aws::MTurk::Model::Locale::WithSubdivision
Locale & WithSubdivision(Aws::String &&value)
Definition: Locale.h:130
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MTurk::Model::Locale::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
MTurk_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::Locale::SetCountry
void SetCountry(const char *value)
Definition: Locale.h:69
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::Locale::SubdivisionHasBeenSet
bool SubdivisionHasBeenSet() const
Definition: Locale.h:100
Aws::MTurk::Model::Locale::CountryHasBeenSet
bool CountryHasBeenSet() const
Definition: Locale.h:51
Aws::MTurk::Model::Locale
Definition: Locale.h:33
Aws::MTurk::Model::Locale::operator=
Locale & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MTurk::Model::Locale::Locale
Locale()