AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Field.h
1
6#pragma once
7#include <aws/datapipeline/DataPipeline_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 DataPipeline
22{
23namespace Model
24{
25
34 class Field
35 {
36 public:
37 AWS_DATAPIPELINE_API Field();
38 AWS_DATAPIPELINE_API Field(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATAPIPELINE_API Field& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetKey() const{ return m_key; }
48 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
49 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
50 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
51 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
52 inline Field& WithKey(const Aws::String& value) { SetKey(value); return *this;}
53 inline Field& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
54 inline Field& WithKey(const char* value) { SetKey(value); return *this;}
56
58
61 inline const Aws::String& GetStringValue() const{ return m_stringValue; }
62 inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
63 inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
64 inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
65 inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
66 inline Field& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
67 inline Field& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
68 inline Field& WithStringValue(const char* value) { SetStringValue(value); return *this;}
70
72
75 inline const Aws::String& GetRefValue() const{ return m_refValue; }
76 inline bool RefValueHasBeenSet() const { return m_refValueHasBeenSet; }
77 inline void SetRefValue(const Aws::String& value) { m_refValueHasBeenSet = true; m_refValue = value; }
78 inline void SetRefValue(Aws::String&& value) { m_refValueHasBeenSet = true; m_refValue = std::move(value); }
79 inline void SetRefValue(const char* value) { m_refValueHasBeenSet = true; m_refValue.assign(value); }
80 inline Field& WithRefValue(const Aws::String& value) { SetRefValue(value); return *this;}
81 inline Field& WithRefValue(Aws::String&& value) { SetRefValue(std::move(value)); return *this;}
82 inline Field& WithRefValue(const char* value) { SetRefValue(value); return *this;}
84 private:
85
86 Aws::String m_key;
87 bool m_keyHasBeenSet = false;
88
89 Aws::String m_stringValue;
90 bool m_stringValueHasBeenSet = false;
91
92 Aws::String m_refValue;
93 bool m_refValueHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace DataPipeline
98} // namespace Aws
Field & WithStringValue(Aws::String &&value)
Definition Field.h:67
void SetKey(const char *value)
Definition Field.h:51
Field & WithRefValue(Aws::String &&value)
Definition Field.h:81
void SetStringValue(const Aws::String &value)
Definition Field.h:63
const Aws::String & GetStringValue() const
Definition Field.h:61
bool StringValueHasBeenSet() const
Definition Field.h:62
Field & WithStringValue(const char *value)
Definition Field.h:68
Field & WithKey(const char *value)
Definition Field.h:54
void SetRefValue(const Aws::String &value)
Definition Field.h:77
void SetStringValue(const char *value)
Definition Field.h:65
void SetKey(Aws::String &&value)
Definition Field.h:50
Field & WithRefValue(const Aws::String &value)
Definition Field.h:80
void SetRefValue(Aws::String &&value)
Definition Field.h:78
const Aws::String & GetKey() const
Definition Field.h:47
const Aws::String & GetRefValue() const
Definition Field.h:75
void SetKey(const Aws::String &value)
Definition Field.h:49
void SetRefValue(const char *value)
Definition Field.h:79
AWS_DATAPIPELINE_API Field(Aws::Utils::Json::JsonView jsonValue)
Field & WithKey(Aws::String &&value)
Definition Field.h:53
Field & WithKey(const Aws::String &value)
Definition Field.h:52
void SetStringValue(Aws::String &&value)
Definition Field.h:64
Field & WithRefValue(const char *value)
Definition Field.h:82
AWS_DATAPIPELINE_API Field()
bool RefValueHasBeenSet() const
Definition Field.h:76
AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
Field & WithStringValue(const Aws::String &value)
Definition Field.h:66
AWS_DATAPIPELINE_API Field & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue