AWS SDK for C++  1.9.109
AWS SDK for C++
Field.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 DataPipeline
22 {
23 namespace Model
24 {
25 
35  {
36  public:
37  Field();
41 
42 
46  inline const Aws::String& GetKey() const{ return m_key; }
47 
51  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
52 
56  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
57 
61  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
62 
66  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
67 
71  inline Field& WithKey(const Aws::String& value) { SetKey(value); return *this;}
72 
76  inline Field& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
77 
81  inline Field& WithKey(const char* value) { SetKey(value); return *this;}
82 
83 
87  inline const Aws::String& GetStringValue() const{ return m_stringValue; }
88 
92  inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
93 
97  inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
98 
102  inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
103 
107  inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
108 
112  inline Field& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
113 
117  inline Field& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
118 
122  inline Field& WithStringValue(const char* value) { SetStringValue(value); return *this;}
123 
124 
128  inline const Aws::String& GetRefValue() const{ return m_refValue; }
129 
133  inline bool RefValueHasBeenSet() const { return m_refValueHasBeenSet; }
134 
138  inline void SetRefValue(const Aws::String& value) { m_refValueHasBeenSet = true; m_refValue = value; }
139 
143  inline void SetRefValue(Aws::String&& value) { m_refValueHasBeenSet = true; m_refValue = std::move(value); }
144 
148  inline void SetRefValue(const char* value) { m_refValueHasBeenSet = true; m_refValue.assign(value); }
149 
153  inline Field& WithRefValue(const Aws::String& value) { SetRefValue(value); return *this;}
154 
158  inline Field& WithRefValue(Aws::String&& value) { SetRefValue(std::move(value)); return *this;}
159 
163  inline Field& WithRefValue(const char* value) { SetRefValue(value); return *this;}
164 
165  private:
166 
167  Aws::String m_key;
168  bool m_keyHasBeenSet;
169 
170  Aws::String m_stringValue;
171  bool m_stringValueHasBeenSet;
172 
173  Aws::String m_refValue;
174  bool m_refValueHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace DataPipeline
179 } // namespace Aws
Aws::DataPipeline::Model::Field::GetKey
const Aws::String & GetKey() const
Definition: Field.h:46
Aws::DataPipeline::Model::Field::WithKey
Field & WithKey(const char *value)
Definition: Field.h:81
Aws::DataPipeline::Model::Field::SetRefValue
void SetRefValue(const Aws::String &value)
Definition: Field.h:138
Aws::DataPipeline::Model::Field::SetStringValue
void SetStringValue(const char *value)
Definition: Field.h:107
Aws::DataPipeline::Model::Field::operator=
Field & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DataPipeline::Model::Field::SetKey
void SetKey(const Aws::String &value)
Definition: Field.h:56
Aws::DataPipeline::Model::Field::StringValueHasBeenSet
bool StringValueHasBeenSet() const
Definition: Field.h:92
Aws::DataPipeline::Model::Field::SetStringValue
void SetStringValue(Aws::String &&value)
Definition: Field.h:102
Aws::DataPipeline::Model::Field::WithStringValue
Field & WithStringValue(const char *value)
Definition: Field.h:122
Aws::DataPipeline::Model::Field::WithStringValue
Field & WithStringValue(const Aws::String &value)
Definition: Field.h:112
Aws::DataPipeline::Model::Field::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DataPipeline::Model::Field::WithRefValue
Field & WithRefValue(const Aws::String &value)
Definition: Field.h:153
Aws::DataPipeline::Model::Field::WithStringValue
Field & WithStringValue(Aws::String &&value)
Definition: Field.h:117
DataPipeline_EXPORTS.h
Aws::DataPipeline::Model::Field::GetStringValue
const Aws::String & GetStringValue() const
Definition: Field.h:87
Aws::DataPipeline::Model::Field::Field
Field()
Aws::DataPipeline::Model::Field::SetRefValue
void SetRefValue(Aws::String &&value)
Definition: Field.h:143
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::DataPipeline::Model::Field::SetStringValue
void SetStringValue(const Aws::String &value)
Definition: Field.h:97
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::DataPipeline::Model::Field::WithKey
Field & WithKey(Aws::String &&value)
Definition: Field.h:76
Aws::DataPipeline::Model::Field::GetRefValue
const Aws::String & GetRefValue() const
Definition: Field.h:128
Aws::DataPipeline::Model::Field::SetKey
void SetKey(const char *value)
Definition: Field.h:66
Aws::DataPipeline::Model::Field
Definition: Field.h:35
Aws::DataPipeline::Model::Field::SetKey
void SetKey(Aws::String &&value)
Definition: Field.h:61
Aws
Definition: AccessManagementClient.h:15
AWS_DATAPIPELINE_API
#define AWS_DATAPIPELINE_API
Definition: DataPipeline_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataPipeline::Model::Field::RefValueHasBeenSet
bool RefValueHasBeenSet() const
Definition: Field.h:133
Aws::DataPipeline::Model::Field::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Field.h:51
Aws::DataPipeline::Model::Field::WithRefValue
Field & WithRefValue(const char *value)
Definition: Field.h:163
Aws::DataPipeline::Model::Field::WithRefValue
Field & WithRefValue(Aws::String &&value)
Definition: Field.h:158
Aws::DataPipeline::Model::Field::WithKey
Field & WithKey(const Aws::String &value)
Definition: Field.h:71
Aws::DataPipeline::Model::Field::SetRefValue
void SetRefValue(const char *value)
Definition: Field.h:148
Aws::DataPipeline::Model::Field::Field
Field(Aws::Utils::Json::JsonView jsonValue)