AWS SDK for C++  1.9.104
AWS SDK for C++
HITLayoutParameter.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 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetName() const{ return m_name; }
47 
51  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 
56  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57 
61  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 
66  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 
71  inline HITLayoutParameter& WithName(const Aws::String& value) { SetName(value); return *this;}
72 
76  inline HITLayoutParameter& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
77 
81  inline HITLayoutParameter& WithName(const char* value) { SetName(value); return *this;}
82 
83 
87  inline const Aws::String& GetValue() const{ return m_value; }
88 
92  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
93 
97  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
98 
102  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
103 
107  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
108 
112  inline HITLayoutParameter& WithValue(const Aws::String& value) { SetValue(value); return *this;}
113 
117  inline HITLayoutParameter& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
118 
122  inline HITLayoutParameter& WithValue(const char* value) { SetValue(value); return *this;}
123 
124  private:
125 
126  Aws::String m_name;
127  bool m_nameHasBeenSet;
128 
129  Aws::String m_value;
130  bool m_valueHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace MTurk
135 } // namespace Aws
Aws::MTurk::Model::HITLayoutParameter::operator=
HITLayoutParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MTurk::Model::HITLayoutParameter::HITLayoutParameter
HITLayoutParameter()
Aws::MTurk::Model::HITLayoutParameter::SetValue
void SetValue(Aws::String &&value)
Definition: HITLayoutParameter.h:102
Aws::MTurk::Model::HITLayoutParameter::GetValue
const Aws::String & GetValue() const
Definition: HITLayoutParameter.h:87
Aws::MTurk::Model::HITLayoutParameter::HITLayoutParameter
HITLayoutParameter(Aws::Utils::Json::JsonView jsonValue)
Aws::MTurk::Model::HITLayoutParameter::WithValue
HITLayoutParameter & WithValue(const Aws::String &value)
Definition: HITLayoutParameter.h:112
Aws::MTurk::Model::HITLayoutParameter::SetName
void SetName(const char *value)
Definition: HITLayoutParameter.h:66
Aws::MTurk::Model::HITLayoutParameter::WithName
HITLayoutParameter & WithName(Aws::String &&value)
Definition: HITLayoutParameter.h:76
Aws::MTurk::Model::HITLayoutParameter::WithValue
HITLayoutParameter & WithValue(Aws::String &&value)
Definition: HITLayoutParameter.h:117
Aws::MTurk::Model::HITLayoutParameter::WithName
HITLayoutParameter & WithName(const char *value)
Definition: HITLayoutParameter.h:81
Aws::MTurk::Model::HITLayoutParameter::SetValue
void SetValue(const char *value)
Definition: HITLayoutParameter.h:107
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MTurk::Model::HITLayoutParameter::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: HITLayoutParameter.h:92
Aws::MTurk::Model::HITLayoutParameter::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MTurk::Model::HITLayoutParameter
Definition: HITLayoutParameter.h:35
Aws::MTurk::Model::HITLayoutParameter::WithName
HITLayoutParameter & WithName(const Aws::String &value)
Definition: HITLayoutParameter.h:71
Aws::MTurk::Model::HITLayoutParameter::SetValue
void SetValue(const Aws::String &value)
Definition: HITLayoutParameter.h:97
Aws::MTurk::Model::HITLayoutParameter::GetName
const Aws::String & GetName() const
Definition: HITLayoutParameter.h:46
MTurk_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::HITLayoutParameter::SetName
void SetName(Aws::String &&value)
Definition: HITLayoutParameter.h:61
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::HITLayoutParameter::WithValue
HITLayoutParameter & WithValue(const char *value)
Definition: HITLayoutParameter.h:122
Aws::MTurk::Model::HITLayoutParameter::NameHasBeenSet
bool NameHasBeenSet() const
Definition: HITLayoutParameter.h:51
Aws::MTurk::Model::HITLayoutParameter::SetName
void SetName(const Aws::String &value)
Definition: HITLayoutParameter.h:56