AWS SDK for C++  0.14.3
AWS SDK for C++
Field.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace DataPipeline
29 {
30 namespace Model
31 {
32 
39  {
40  public:
41  Field();
42  Field(const Aws::Utils::Json::JsonValue& jsonValue);
43  Field& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetKey() const{ return m_key; }
50 
54  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
55 
59  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = value; }
60 
64  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
65 
69  inline Field& WithKey(const Aws::String& value) { SetKey(value); return *this;}
70 
74  inline Field& WithKey(Aws::String&& value) { SetKey(value); return *this;}
75 
79  inline Field& WithKey(const char* value) { SetKey(value); return *this;}
80 
84  inline const Aws::String& GetStringValue() const{ return m_stringValue; }
85 
89  inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
90 
94  inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
95 
99  inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
100 
104  inline Field& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
105 
109  inline Field& WithStringValue(Aws::String&& value) { SetStringValue(value); return *this;}
110 
114  inline Field& WithStringValue(const char* value) { SetStringValue(value); return *this;}
115 
119  inline const Aws::String& GetRefValue() const{ return m_refValue; }
120 
124  inline void SetRefValue(const Aws::String& value) { m_refValueHasBeenSet = true; m_refValue = value; }
125 
129  inline void SetRefValue(Aws::String&& value) { m_refValueHasBeenSet = true; m_refValue = value; }
130 
134  inline void SetRefValue(const char* value) { m_refValueHasBeenSet = true; m_refValue.assign(value); }
135 
139  inline Field& WithRefValue(const Aws::String& value) { SetRefValue(value); return *this;}
140 
144  inline Field& WithRefValue(Aws::String&& value) { SetRefValue(value); return *this;}
145 
149  inline Field& WithRefValue(const char* value) { SetRefValue(value); return *this;}
150 
151  private:
152  Aws::String m_key;
153  bool m_keyHasBeenSet;
154  Aws::String m_stringValue;
155  bool m_stringValueHasBeenSet;
156  Aws::String m_refValue;
157  bool m_refValueHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace DataPipeline
162 } // namespace Aws
Field & WithStringValue(const Aws::String &value)
Definition: Field.h:104
const Aws::String & GetRefValue() const
Definition: Field.h:119
Field & WithRefValue(Aws::String &&value)
Definition: Field.h:144
const Aws::String & GetKey() const
Definition: Field.h:49
void SetRefValue(const Aws::String &value)
Definition: Field.h:124
const Aws::String & GetStringValue() const
Definition: Field.h:84
void SetKey(const char *value)
Definition: Field.h:64
void SetStringValue(Aws::String &&value)
Definition: Field.h:94
#define AWS_DATAPIPELINE_API
void SetRefValue(Aws::String &&value)
Definition: Field.h:129
Field & WithStringValue(Aws::String &&value)
Definition: Field.h:109
Field & WithStringValue(const char *value)
Definition: Field.h:114
void SetStringValue(const Aws::String &value)
Definition: Field.h:89
Field & WithRefValue(const char *value)
Definition: Field.h:149
Field & WithKey(const Aws::String &value)
Definition: Field.h:69
Field & WithRefValue(const Aws::String &value)
Definition: Field.h:139
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Field & WithKey(Aws::String &&value)
Definition: Field.h:74
Field & WithKey(const char *value)
Definition: Field.h:79
void SetStringValue(const char *value)
Definition: Field.h:99
void SetKey(const Aws::String &value)
Definition: Field.h:54
void SetKey(Aws::String &&value)
Definition: Field.h:59
JSON (JavaScript Object Notation).
void SetRefValue(const char *value)
Definition: Field.h:134