AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Task.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/appflow/model/ConnectorOperator.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/appflow/model/TaskType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/appflow/model/OperatorPropertiesKeys.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Appflow
27{
28namespace Model
29{
30
37 class Task
38 {
39 public:
40 AWS_APPFLOW_API Task();
41 AWS_APPFLOW_API Task(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPFLOW_API Task& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::Vector<Aws::String>& GetSourceFields() const{ return m_sourceFields; }
51 inline bool SourceFieldsHasBeenSet() const { return m_sourceFieldsHasBeenSet; }
52 inline void SetSourceFields(const Aws::Vector<Aws::String>& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields = value; }
53 inline void SetSourceFields(Aws::Vector<Aws::String>&& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields = std::move(value); }
54 inline Task& WithSourceFields(const Aws::Vector<Aws::String>& value) { SetSourceFields(value); return *this;}
55 inline Task& WithSourceFields(Aws::Vector<Aws::String>&& value) { SetSourceFields(std::move(value)); return *this;}
56 inline Task& AddSourceFields(const Aws::String& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields.push_back(value); return *this; }
57 inline Task& AddSourceFields(Aws::String&& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields.push_back(std::move(value)); return *this; }
58 inline Task& AddSourceFields(const char* value) { m_sourceFieldsHasBeenSet = true; m_sourceFields.push_back(value); return *this; }
60
62
65 inline const ConnectorOperator& GetConnectorOperator() const{ return m_connectorOperator; }
66 inline bool ConnectorOperatorHasBeenSet() const { return m_connectorOperatorHasBeenSet; }
67 inline void SetConnectorOperator(const ConnectorOperator& value) { m_connectorOperatorHasBeenSet = true; m_connectorOperator = value; }
68 inline void SetConnectorOperator(ConnectorOperator&& value) { m_connectorOperatorHasBeenSet = true; m_connectorOperator = std::move(value); }
69 inline Task& WithConnectorOperator(const ConnectorOperator& value) { SetConnectorOperator(value); return *this;}
70 inline Task& WithConnectorOperator(ConnectorOperator&& value) { SetConnectorOperator(std::move(value)); return *this;}
72
74
78 inline const Aws::String& GetDestinationField() const{ return m_destinationField; }
79 inline bool DestinationFieldHasBeenSet() const { return m_destinationFieldHasBeenSet; }
80 inline void SetDestinationField(const Aws::String& value) { m_destinationFieldHasBeenSet = true; m_destinationField = value; }
81 inline void SetDestinationField(Aws::String&& value) { m_destinationFieldHasBeenSet = true; m_destinationField = std::move(value); }
82 inline void SetDestinationField(const char* value) { m_destinationFieldHasBeenSet = true; m_destinationField.assign(value); }
83 inline Task& WithDestinationField(const Aws::String& value) { SetDestinationField(value); return *this;}
84 inline Task& WithDestinationField(Aws::String&& value) { SetDestinationField(std::move(value)); return *this;}
85 inline Task& WithDestinationField(const char* value) { SetDestinationField(value); return *this;}
87
89
93 inline const TaskType& GetTaskType() const{ return m_taskType; }
94 inline bool TaskTypeHasBeenSet() const { return m_taskTypeHasBeenSet; }
95 inline void SetTaskType(const TaskType& value) { m_taskTypeHasBeenSet = true; m_taskType = value; }
96 inline void SetTaskType(TaskType&& value) { m_taskTypeHasBeenSet = true; m_taskType = std::move(value); }
97 inline Task& WithTaskType(const TaskType& value) { SetTaskType(value); return *this;}
98 inline Task& WithTaskType(TaskType&& value) { SetTaskType(std::move(value)); return *this;}
100
102
106 inline const Aws::Map<OperatorPropertiesKeys, Aws::String>& GetTaskProperties() const{ return m_taskProperties; }
107 inline bool TaskPropertiesHasBeenSet() const { return m_taskPropertiesHasBeenSet; }
108 inline void SetTaskProperties(const Aws::Map<OperatorPropertiesKeys, Aws::String>& value) { m_taskPropertiesHasBeenSet = true; m_taskProperties = value; }
109 inline void SetTaskProperties(Aws::Map<OperatorPropertiesKeys, Aws::String>&& value) { m_taskPropertiesHasBeenSet = true; m_taskProperties = std::move(value); }
112 inline Task& AddTaskProperties(const OperatorPropertiesKeys& key, const Aws::String& value) { m_taskPropertiesHasBeenSet = true; m_taskProperties.emplace(key, value); return *this; }
113 inline Task& AddTaskProperties(OperatorPropertiesKeys&& key, const Aws::String& value) { m_taskPropertiesHasBeenSet = true; m_taskProperties.emplace(std::move(key), value); return *this; }
114 inline Task& AddTaskProperties(const OperatorPropertiesKeys& key, Aws::String&& value) { m_taskPropertiesHasBeenSet = true; m_taskProperties.emplace(key, std::move(value)); return *this; }
115 inline Task& AddTaskProperties(OperatorPropertiesKeys&& key, Aws::String&& value) { m_taskPropertiesHasBeenSet = true; m_taskProperties.emplace(std::move(key), std::move(value)); return *this; }
116 inline Task& AddTaskProperties(OperatorPropertiesKeys&& key, const char* value) { m_taskPropertiesHasBeenSet = true; m_taskProperties.emplace(std::move(key), value); return *this; }
117 inline Task& AddTaskProperties(const OperatorPropertiesKeys& key, const char* value) { m_taskPropertiesHasBeenSet = true; m_taskProperties.emplace(key, value); return *this; }
119 private:
120
121 Aws::Vector<Aws::String> m_sourceFields;
122 bool m_sourceFieldsHasBeenSet = false;
123
124 ConnectorOperator m_connectorOperator;
125 bool m_connectorOperatorHasBeenSet = false;
126
127 Aws::String m_destinationField;
128 bool m_destinationFieldHasBeenSet = false;
129
130 TaskType m_taskType;
131 bool m_taskTypeHasBeenSet = false;
132
134 bool m_taskPropertiesHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace Appflow
139} // namespace Aws
bool TaskTypeHasBeenSet() const
Definition Task.h:94
void SetTaskType(TaskType &&value)
Definition Task.h:96
const Aws::Vector< Aws::String > & GetSourceFields() const
Definition Task.h:50
Task & WithSourceFields(Aws::Vector< Aws::String > &&value)
Definition Task.h:55
Task & WithDestinationField(const Aws::String &value)
Definition Task.h:83
void SetDestinationField(const char *value)
Definition Task.h:82
Task & AddTaskProperties(const OperatorPropertiesKeys &key, const char *value)
Definition Task.h:117
void SetDestinationField(const Aws::String &value)
Definition Task.h:80
void SetConnectorOperator(const ConnectorOperator &value)
Definition Task.h:67
const ConnectorOperator & GetConnectorOperator() const
Definition Task.h:65
Task & WithTaskProperties(const Aws::Map< OperatorPropertiesKeys, Aws::String > &value)
Definition Task.h:110
bool ConnectorOperatorHasBeenSet() const
Definition Task.h:66
Task & AddSourceFields(const Aws::String &value)
Definition Task.h:56
void SetTaskProperties(const Aws::Map< OperatorPropertiesKeys, Aws::String > &value)
Definition Task.h:108
void SetTaskProperties(Aws::Map< OperatorPropertiesKeys, Aws::String > &&value)
Definition Task.h:109
void SetConnectorOperator(ConnectorOperator &&value)
Definition Task.h:68
const TaskType & GetTaskType() const
Definition Task.h:93
Task & WithConnectorOperator(const ConnectorOperator &value)
Definition Task.h:69
Task & AddTaskProperties(OperatorPropertiesKeys &&key, Aws::String &&value)
Definition Task.h:115
Task & WithDestinationField(const char *value)
Definition Task.h:85
Task & WithTaskType(TaskType &&value)
Definition Task.h:98
AWS_APPFLOW_API Task()
void SetDestinationField(Aws::String &&value)
Definition Task.h:81
void SetSourceFields(Aws::Vector< Aws::String > &&value)
Definition Task.h:53
Task & AddTaskProperties(const OperatorPropertiesKeys &key, Aws::String &&value)
Definition Task.h:114
Task & AddTaskProperties(const OperatorPropertiesKeys &key, const Aws::String &value)
Definition Task.h:112
bool TaskPropertiesHasBeenSet() const
Definition Task.h:107
Task & WithTaskType(const TaskType &value)
Definition Task.h:97
Task & WithDestinationField(Aws::String &&value)
Definition Task.h:84
bool DestinationFieldHasBeenSet() const
Definition Task.h:79
bool SourceFieldsHasBeenSet() const
Definition Task.h:51
Task & WithTaskProperties(Aws::Map< OperatorPropertiesKeys, Aws::String > &&value)
Definition Task.h:111
void SetTaskType(const TaskType &value)
Definition Task.h:95
void SetSourceFields(const Aws::Vector< Aws::String > &value)
Definition Task.h:52
Task & WithConnectorOperator(ConnectorOperator &&value)
Definition Task.h:70
AWS_APPFLOW_API Task(Aws::Utils::Json::JsonView jsonValue)
Task & AddSourceFields(Aws::String &&value)
Definition Task.h:57
AWS_APPFLOW_API Task & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
Task & AddTaskProperties(OperatorPropertiesKeys &&key, const Aws::String &value)
Definition Task.h:113
Task & AddSourceFields(const char *value)
Definition Task.h:58
Task & AddTaskProperties(OperatorPropertiesKeys &&key, const char *value)
Definition Task.h:116
const Aws::String & GetDestinationField() const
Definition Task.h:78
Task & WithSourceFields(const Aws::Vector< Aws::String > &value)
Definition Task.h:54
const Aws::Map< OperatorPropertiesKeys, Aws::String > & GetTaskProperties() const
Definition Task.h:106
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue