AWS SDK for C++  0.12.9
AWS SDK for C++
TaskObject.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace DataPipeline
31 {
32 namespace Model
33 {
34 
40  {
41  public:
42  TaskObject();
43  TaskObject(const Aws::Utils::Json::JsonValue& jsonValue);
44  TaskObject& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
51  inline const Aws::String& GetTaskId() const{ return m_taskId; }
52 
57  inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
58 
63  inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
64 
69  inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
70 
75  inline TaskObject& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
76 
81  inline TaskObject& WithTaskId(Aws::String&& value) { SetTaskId(value); return *this;}
82 
87  inline TaskObject& WithTaskId(const char* value) { SetTaskId(value); return *this;}
88 
92  inline const Aws::String& GetPipelineId() const{ return m_pipelineId; }
93 
97  inline void SetPipelineId(const Aws::String& value) { m_pipelineIdHasBeenSet = true; m_pipelineId = value; }
98 
102  inline void SetPipelineId(Aws::String&& value) { m_pipelineIdHasBeenSet = true; m_pipelineId = value; }
103 
107  inline void SetPipelineId(const char* value) { m_pipelineIdHasBeenSet = true; m_pipelineId.assign(value); }
108 
112  inline TaskObject& WithPipelineId(const Aws::String& value) { SetPipelineId(value); return *this;}
113 
117  inline TaskObject& WithPipelineId(Aws::String&& value) { SetPipelineId(value); return *this;}
118 
122  inline TaskObject& WithPipelineId(const char* value) { SetPipelineId(value); return *this;}
123 
128  inline const Aws::String& GetAttemptId() const{ return m_attemptId; }
129 
134  inline void SetAttemptId(const Aws::String& value) { m_attemptIdHasBeenSet = true; m_attemptId = value; }
135 
140  inline void SetAttemptId(Aws::String&& value) { m_attemptIdHasBeenSet = true; m_attemptId = value; }
141 
146  inline void SetAttemptId(const char* value) { m_attemptIdHasBeenSet = true; m_attemptId.assign(value); }
147 
152  inline TaskObject& WithAttemptId(const Aws::String& value) { SetAttemptId(value); return *this;}
153 
158  inline TaskObject& WithAttemptId(Aws::String&& value) { SetAttemptId(value); return *this;}
159 
164  inline TaskObject& WithAttemptId(const char* value) { SetAttemptId(value); return *this;}
165 
170  inline const Aws::Map<Aws::String, PipelineObject>& GetObjects() const{ return m_objects; }
171 
176  inline void SetObjects(const Aws::Map<Aws::String, PipelineObject>& value) { m_objectsHasBeenSet = true; m_objects = value; }
177 
182  inline void SetObjects(Aws::Map<Aws::String, PipelineObject>&& value) { m_objectsHasBeenSet = true; m_objects = value; }
183 
188  inline TaskObject& WithObjects(const Aws::Map<Aws::String, PipelineObject>& value) { SetObjects(value); return *this;}
189 
194  inline TaskObject& WithObjects(Aws::Map<Aws::String, PipelineObject>&& value) { SetObjects(value); return *this;}
195 
200  inline TaskObject& AddObjects(const Aws::String& key, const PipelineObject& value) { m_objectsHasBeenSet = true; m_objects[key] = value; return *this; }
201 
206  inline TaskObject& AddObjects(Aws::String&& key, const PipelineObject& value) { m_objectsHasBeenSet = true; m_objects[key] = value; return *this; }
207 
212  inline TaskObject& AddObjects(const Aws::String& key, PipelineObject&& value) { m_objectsHasBeenSet = true; m_objects[key] = value; return *this; }
213 
218  inline TaskObject& AddObjects(Aws::String&& key, PipelineObject&& value) { m_objectsHasBeenSet = true; m_objects[key] = value; return *this; }
219 
224  inline TaskObject& AddObjects(const char* key, PipelineObject&& value) { m_objectsHasBeenSet = true; m_objects[key] = value; return *this; }
225 
230  inline TaskObject& AddObjects(const char* key, const PipelineObject& value) { m_objectsHasBeenSet = true; m_objects[key] = value; return *this; }
231 
232  private:
233  Aws::String m_taskId;
234  bool m_taskIdHasBeenSet;
235  Aws::String m_pipelineId;
236  bool m_pipelineIdHasBeenSet;
237  Aws::String m_attemptId;
238  bool m_attemptIdHasBeenSet;
240  bool m_objectsHasBeenSet;
241  };
242 
243 } // namespace Model
244 } // namespace DataPipeline
245 } // namespace Aws
TaskObject & WithPipelineId(Aws::String &&value)
Definition: TaskObject.h:117
void SetObjects(Aws::Map< Aws::String, PipelineObject > &&value)
Definition: TaskObject.h:182
void SetTaskId(const Aws::String &value)
Definition: TaskObject.h:57
TaskObject & WithAttemptId(const char *value)
Definition: TaskObject.h:164
TaskObject & WithTaskId(const char *value)
Definition: TaskObject.h:87
TaskObject & WithObjects(const Aws::Map< Aws::String, PipelineObject > &value)
Definition: TaskObject.h:188
void SetTaskId(const char *value)
Definition: TaskObject.h:69
void SetPipelineId(const char *value)
Definition: TaskObject.h:107
void SetTaskId(Aws::String &&value)
Definition: TaskObject.h:63
void SetAttemptId(const Aws::String &value)
Definition: TaskObject.h:134
const Aws::String & GetTaskId() const
Definition: TaskObject.h:51
const Aws::String & GetPipelineId() const
Definition: TaskObject.h:92
void SetObjects(const Aws::Map< Aws::String, PipelineObject > &value)
Definition: TaskObject.h:176
TaskObject & WithPipelineId(const Aws::String &value)
Definition: TaskObject.h:112
TaskObject & AddObjects(const Aws::String &key, const PipelineObject &value)
Definition: TaskObject.h:200
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
TaskObject & WithAttemptId(const Aws::String &value)
Definition: TaskObject.h:152
TaskObject & AddObjects(const Aws::String &key, PipelineObject &&value)
Definition: TaskObject.h:212
TaskObject & AddObjects(Aws::String &&key, const PipelineObject &value)
Definition: TaskObject.h:206
#define AWS_DATAPIPELINE_API
TaskObject & AddObjects(const char *key, PipelineObject &&value)
Definition: TaskObject.h:224
void SetAttemptId(Aws::String &&value)
Definition: TaskObject.h:140
void SetPipelineId(const Aws::String &value)
Definition: TaskObject.h:97
TaskObject & AddObjects(Aws::String &&key, PipelineObject &&value)
Definition: TaskObject.h:218
TaskObject & WithAttemptId(Aws::String &&value)
Definition: TaskObject.h:158
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TaskObject & WithPipelineId(const char *value)
Definition: TaskObject.h:122
TaskObject & AddObjects(const char *key, const PipelineObject &value)
Definition: TaskObject.h:230
void SetAttemptId(const char *value)
Definition: TaskObject.h:146
const Aws::String & GetAttemptId() const
Definition: TaskObject.h:128
const Aws::Map< Aws::String, PipelineObject > & GetObjects() const
Definition: TaskObject.h:170
TaskObject & WithTaskId(const Aws::String &value)
Definition: TaskObject.h:75
TaskObject & WithObjects(Aws::Map< Aws::String, PipelineObject > &&value)
Definition: TaskObject.h:194
void SetPipelineId(Aws::String &&value)
Definition: TaskObject.h:102
TaskObject & WithTaskId(Aws::String &&value)
Definition: TaskObject.h:81
JSON (JavaScript Object Notation).