AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename SourceFieldsT = Aws::Vector<Aws::String>>
53 void SetSourceFields(SourceFieldsT&& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields = std::forward<SourceFieldsT>(value); }
54 template<typename SourceFieldsT = Aws::Vector<Aws::String>>
55 Task& WithSourceFields(SourceFieldsT&& value) { SetSourceFields(std::forward<SourceFieldsT>(value)); return *this;}
56 template<typename SourceFieldsT = Aws::String>
57 Task& AddSourceFields(SourceFieldsT&& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields.emplace_back(std::forward<SourceFieldsT>(value)); return *this; }
59
61
64 inline const ConnectorOperator& GetConnectorOperator() const { return m_connectorOperator; }
65 inline bool ConnectorOperatorHasBeenSet() const { return m_connectorOperatorHasBeenSet; }
66 template<typename ConnectorOperatorT = ConnectorOperator>
67 void SetConnectorOperator(ConnectorOperatorT&& value) { m_connectorOperatorHasBeenSet = true; m_connectorOperator = std::forward<ConnectorOperatorT>(value); }
68 template<typename ConnectorOperatorT = ConnectorOperator>
69 Task& WithConnectorOperator(ConnectorOperatorT&& value) { SetConnectorOperator(std::forward<ConnectorOperatorT>(value)); return *this;}
71
73
77 inline const Aws::String& GetDestinationField() const { return m_destinationField; }
78 inline bool DestinationFieldHasBeenSet() const { return m_destinationFieldHasBeenSet; }
79 template<typename DestinationFieldT = Aws::String>
80 void SetDestinationField(DestinationFieldT&& value) { m_destinationFieldHasBeenSet = true; m_destinationField = std::forward<DestinationFieldT>(value); }
81 template<typename DestinationFieldT = Aws::String>
82 Task& WithDestinationField(DestinationFieldT&& value) { SetDestinationField(std::forward<DestinationFieldT>(value)); return *this;}
84
86
90 inline TaskType GetTaskType() const { return m_taskType; }
91 inline bool TaskTypeHasBeenSet() const { return m_taskTypeHasBeenSet; }
92 inline void SetTaskType(TaskType value) { m_taskTypeHasBeenSet = true; m_taskType = value; }
93 inline Task& WithTaskType(TaskType value) { SetTaskType(value); return *this;}
95
97
101 inline const Aws::Map<OperatorPropertiesKeys, Aws::String>& GetTaskProperties() const { return m_taskProperties; }
102 inline bool TaskPropertiesHasBeenSet() const { return m_taskPropertiesHasBeenSet; }
103 template<typename TaskPropertiesT = Aws::Map<OperatorPropertiesKeys, Aws::String>>
104 void SetTaskProperties(TaskPropertiesT&& value) { m_taskPropertiesHasBeenSet = true; m_taskProperties = std::forward<TaskPropertiesT>(value); }
105 template<typename TaskPropertiesT = Aws::Map<OperatorPropertiesKeys, Aws::String>>
106 Task& WithTaskProperties(TaskPropertiesT&& value) { SetTaskProperties(std::forward<TaskPropertiesT>(value)); return *this;}
108 m_taskPropertiesHasBeenSet = true; m_taskProperties.emplace(key, value); return *this;
109 }
111 private:
112
113 Aws::Vector<Aws::String> m_sourceFields;
114 bool m_sourceFieldsHasBeenSet = false;
115
116 ConnectorOperator m_connectorOperator;
117 bool m_connectorOperatorHasBeenSet = false;
118
119 Aws::String m_destinationField;
120 bool m_destinationFieldHasBeenSet = false;
121
122 TaskType m_taskType{TaskType::NOT_SET};
123 bool m_taskTypeHasBeenSet = false;
124
126 bool m_taskPropertiesHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace Appflow
131} // namespace Aws
bool TaskTypeHasBeenSet() const
Definition Task.h:91
const Aws::Vector< Aws::String > & GetSourceFields() const
Definition Task.h:50
const ConnectorOperator & GetConnectorOperator() const
Definition Task.h:64
void SetTaskProperties(TaskPropertiesT &&value)
Definition Task.h:104
bool ConnectorOperatorHasBeenSet() const
Definition Task.h:65
Task & WithDestinationField(DestinationFieldT &&value)
Definition Task.h:82
Task & AddTaskProperties(OperatorPropertiesKeys key, Aws::String value)
Definition Task.h:107
void SetSourceFields(SourceFieldsT &&value)
Definition Task.h:53
Task & WithConnectorOperator(ConnectorOperatorT &&value)
Definition Task.h:69
void SetDestinationField(DestinationFieldT &&value)
Definition Task.h:80
AWS_APPFLOW_API Task()=default
Task & WithTaskType(TaskType value)
Definition Task.h:93
void SetTaskType(TaskType value)
Definition Task.h:92
bool TaskPropertiesHasBeenSet() const
Definition Task.h:102
Task & WithTaskProperties(TaskPropertiesT &&value)
Definition Task.h:106
bool DestinationFieldHasBeenSet() const
Definition Task.h:78
bool SourceFieldsHasBeenSet() const
Definition Task.h:51
void SetConnectorOperator(ConnectorOperatorT &&value)
Definition Task.h:67
AWS_APPFLOW_API Task(Aws::Utils::Json::JsonView jsonValue)
TaskType GetTaskType() const
Definition Task.h:90
AWS_APPFLOW_API Task & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDestinationField() const
Definition Task.h:77
Task & AddSourceFields(SourceFieldsT &&value)
Definition Task.h:57
const Aws::Map< OperatorPropertiesKeys, Aws::String > & GetTaskProperties() const
Definition Task.h:101
Task & WithSourceFields(SourceFieldsT &&value)
Definition Task.h:55
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