AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TaskObject.h
1
6#pragma once
7#include <aws/datapipeline/DataPipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/datapipeline/model/PipelineObject.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DataPipeline
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_DATAPIPELINE_API TaskObject();
38 AWS_DATAPIPELINE_API TaskObject(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATAPIPELINE_API TaskObject& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetTaskId() const{ return m_taskId; }
49 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
50 inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
51 inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
52 inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
53 inline TaskObject& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
54 inline TaskObject& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
55 inline TaskObject& WithTaskId(const char* value) { SetTaskId(value); return *this;}
57
59
62 inline const Aws::String& GetPipelineId() const{ return m_pipelineId; }
63 inline bool PipelineIdHasBeenSet() const { return m_pipelineIdHasBeenSet; }
64 inline void SetPipelineId(const Aws::String& value) { m_pipelineIdHasBeenSet = true; m_pipelineId = value; }
65 inline void SetPipelineId(Aws::String&& value) { m_pipelineIdHasBeenSet = true; m_pipelineId = std::move(value); }
66 inline void SetPipelineId(const char* value) { m_pipelineIdHasBeenSet = true; m_pipelineId.assign(value); }
67 inline TaskObject& WithPipelineId(const Aws::String& value) { SetPipelineId(value); return *this;}
68 inline TaskObject& WithPipelineId(Aws::String&& value) { SetPipelineId(std::move(value)); return *this;}
69 inline TaskObject& WithPipelineId(const char* value) { SetPipelineId(value); return *this;}
71
73
77 inline const Aws::String& GetAttemptId() const{ return m_attemptId; }
78 inline bool AttemptIdHasBeenSet() const { return m_attemptIdHasBeenSet; }
79 inline void SetAttemptId(const Aws::String& value) { m_attemptIdHasBeenSet = true; m_attemptId = value; }
80 inline void SetAttemptId(Aws::String&& value) { m_attemptIdHasBeenSet = true; m_attemptId = std::move(value); }
81 inline void SetAttemptId(const char* value) { m_attemptIdHasBeenSet = true; m_attemptId.assign(value); }
82 inline TaskObject& WithAttemptId(const Aws::String& value) { SetAttemptId(value); return *this;}
83 inline TaskObject& WithAttemptId(Aws::String&& value) { SetAttemptId(std::move(value)); return *this;}
84 inline TaskObject& WithAttemptId(const char* value) { SetAttemptId(value); return *this;}
86
88
92 inline const Aws::Map<Aws::String, PipelineObject>& GetObjects() const{ return m_objects; }
93 inline bool ObjectsHasBeenSet() const { return m_objectsHasBeenSet; }
94 inline void SetObjects(const Aws::Map<Aws::String, PipelineObject>& value) { m_objectsHasBeenSet = true; m_objects = value; }
95 inline void SetObjects(Aws::Map<Aws::String, PipelineObject>&& value) { m_objectsHasBeenSet = true; m_objects = std::move(value); }
96 inline TaskObject& WithObjects(const Aws::Map<Aws::String, PipelineObject>& value) { SetObjects(value); return *this;}
97 inline TaskObject& WithObjects(Aws::Map<Aws::String, PipelineObject>&& value) { SetObjects(std::move(value)); return *this;}
98 inline TaskObject& AddObjects(const Aws::String& key, const PipelineObject& value) { m_objectsHasBeenSet = true; m_objects.emplace(key, value); return *this; }
99 inline TaskObject& AddObjects(Aws::String&& key, const PipelineObject& value) { m_objectsHasBeenSet = true; m_objects.emplace(std::move(key), value); return *this; }
100 inline TaskObject& AddObjects(const Aws::String& key, PipelineObject&& value) { m_objectsHasBeenSet = true; m_objects.emplace(key, std::move(value)); return *this; }
101 inline TaskObject& AddObjects(Aws::String&& key, PipelineObject&& value) { m_objectsHasBeenSet = true; m_objects.emplace(std::move(key), std::move(value)); return *this; }
102 inline TaskObject& AddObjects(const char* key, PipelineObject&& value) { m_objectsHasBeenSet = true; m_objects.emplace(key, std::move(value)); return *this; }
103 inline TaskObject& AddObjects(const char* key, const PipelineObject& value) { m_objectsHasBeenSet = true; m_objects.emplace(key, value); return *this; }
105 private:
106
107 Aws::String m_taskId;
108 bool m_taskIdHasBeenSet = false;
109
110 Aws::String m_pipelineId;
111 bool m_pipelineIdHasBeenSet = false;
112
113 Aws::String m_attemptId;
114 bool m_attemptIdHasBeenSet = false;
115
117 bool m_objectsHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace DataPipeline
122} // namespace Aws
void SetPipelineId(const char *value)
Definition TaskObject.h:66
TaskObject & WithAttemptId(const Aws::String &value)
Definition TaskObject.h:82
TaskObject & WithPipelineId(const Aws::String &value)
Definition TaskObject.h:67
TaskObject & WithAttemptId(const char *value)
Definition TaskObject.h:84
void SetObjects(const Aws::Map< Aws::String, PipelineObject > &value)
Definition TaskObject.h:94
const Aws::String & GetTaskId() const
Definition TaskObject.h:48
TaskObject & AddObjects(const char *key, const PipelineObject &value)
Definition TaskObject.h:103
TaskObject & WithPipelineId(Aws::String &&value)
Definition TaskObject.h:68
void SetTaskId(const Aws::String &value)
Definition TaskObject.h:50
TaskObject & WithAttemptId(Aws::String &&value)
Definition TaskObject.h:83
AWS_DATAPIPELINE_API TaskObject & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, PipelineObject > & GetObjects() const
Definition TaskObject.h:92
void SetAttemptId(const char *value)
Definition TaskObject.h:81
TaskObject & WithTaskId(Aws::String &&value)
Definition TaskObject.h:54
TaskObject & AddObjects(Aws::String &&key, const PipelineObject &value)
Definition TaskObject.h:99
TaskObject & AddObjects(Aws::String &&key, PipelineObject &&value)
Definition TaskObject.h:101
TaskObject & AddObjects(const Aws::String &key, PipelineObject &&value)
Definition TaskObject.h:100
const Aws::String & GetPipelineId() const
Definition TaskObject.h:62
TaskObject & AddObjects(const char *key, PipelineObject &&value)
Definition TaskObject.h:102
TaskObject & WithTaskId(const char *value)
Definition TaskObject.h:55
AWS_DATAPIPELINE_API TaskObject()
TaskObject & WithObjects(Aws::Map< Aws::String, PipelineObject > &&value)
Definition TaskObject.h:97
TaskObject & AddObjects(const Aws::String &key, const PipelineObject &value)
Definition TaskObject.h:98
void SetObjects(Aws::Map< Aws::String, PipelineObject > &&value)
Definition TaskObject.h:95
AWS_DATAPIPELINE_API TaskObject(Aws::Utils::Json::JsonView jsonValue)
TaskObject & WithTaskId(const Aws::String &value)
Definition TaskObject.h:53
TaskObject & WithPipelineId(const char *value)
Definition TaskObject.h:69
void SetPipelineId(Aws::String &&value)
Definition TaskObject.h:65
TaskObject & WithObjects(const Aws::Map< Aws::String, PipelineObject > &value)
Definition TaskObject.h:96
void SetAttemptId(Aws::String &&value)
Definition TaskObject.h:80
const Aws::String & GetAttemptId() const
Definition TaskObject.h:77
AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTaskId(Aws::String &&value)
Definition TaskObject.h:51
void SetAttemptId(const Aws::String &value)
Definition TaskObject.h:79
void SetTaskId(const char *value)
Definition TaskObject.h:52
void SetPipelineId(const Aws::String &value)
Definition TaskObject.h:64
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue