AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Task.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/appflow/model/ConnectorOperator.h>
9#include <aws/appflow/model/OperatorPropertiesKeys.h>
10#include <aws/appflow/model/TaskType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Appflow {
25namespace Model {
26
33class Task {
34 public:
35 AWS_APPFLOW_API Task() = default;
36 AWS_APPFLOW_API Task(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPFLOW_API Task& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::Vector<Aws::String>& GetSourceFields() const { return m_sourceFields; }
45 inline bool SourceFieldsHasBeenSet() const { return m_sourceFieldsHasBeenSet; }
46 template <typename SourceFieldsT = Aws::Vector<Aws::String>>
47 void SetSourceFields(SourceFieldsT&& value) {
48 m_sourceFieldsHasBeenSet = true;
49 m_sourceFields = std::forward<SourceFieldsT>(value);
50 }
51 template <typename SourceFieldsT = Aws::Vector<Aws::String>>
52 Task& WithSourceFields(SourceFieldsT&& value) {
53 SetSourceFields(std::forward<SourceFieldsT>(value));
54 return *this;
55 }
56 template <typename SourceFieldsT = Aws::String>
57 Task& AddSourceFields(SourceFieldsT&& value) {
58 m_sourceFieldsHasBeenSet = true;
59 m_sourceFields.emplace_back(std::forward<SourceFieldsT>(value));
60 return *this;
61 }
63
65
68 inline const ConnectorOperator& GetConnectorOperator() const { return m_connectorOperator; }
69 inline bool ConnectorOperatorHasBeenSet() const { return m_connectorOperatorHasBeenSet; }
70 template <typename ConnectorOperatorT = ConnectorOperator>
71 void SetConnectorOperator(ConnectorOperatorT&& value) {
72 m_connectorOperatorHasBeenSet = true;
73 m_connectorOperator = std::forward<ConnectorOperatorT>(value);
74 }
75 template <typename ConnectorOperatorT = ConnectorOperator>
76 Task& WithConnectorOperator(ConnectorOperatorT&& value) {
77 SetConnectorOperator(std::forward<ConnectorOperatorT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::String& GetDestinationField() const { return m_destinationField; }
88 inline bool DestinationFieldHasBeenSet() const { return m_destinationFieldHasBeenSet; }
89 template <typename DestinationFieldT = Aws::String>
90 void SetDestinationField(DestinationFieldT&& value) {
91 m_destinationFieldHasBeenSet = true;
92 m_destinationField = std::forward<DestinationFieldT>(value);
93 }
94 template <typename DestinationFieldT = Aws::String>
95 Task& WithDestinationField(DestinationFieldT&& value) {
96 SetDestinationField(std::forward<DestinationFieldT>(value));
97 return *this;
98 }
100
102
106 inline TaskType GetTaskType() const { return m_taskType; }
107 inline bool TaskTypeHasBeenSet() const { return m_taskTypeHasBeenSet; }
108 inline void SetTaskType(TaskType value) {
109 m_taskTypeHasBeenSet = true;
110 m_taskType = value;
111 }
112 inline Task& WithTaskType(TaskType value) {
113 SetTaskType(value);
114 return *this;
115 }
117
119
123 inline const Aws::Map<OperatorPropertiesKeys, Aws::String>& GetTaskProperties() const { return m_taskProperties; }
124 inline bool TaskPropertiesHasBeenSet() const { return m_taskPropertiesHasBeenSet; }
125 template <typename TaskPropertiesT = Aws::Map<OperatorPropertiesKeys, Aws::String>>
126 void SetTaskProperties(TaskPropertiesT&& value) {
127 m_taskPropertiesHasBeenSet = true;
128 m_taskProperties = std::forward<TaskPropertiesT>(value);
129 }
130 template <typename TaskPropertiesT = Aws::Map<OperatorPropertiesKeys, Aws::String>>
131 Task& WithTaskProperties(TaskPropertiesT&& value) {
132 SetTaskProperties(std::forward<TaskPropertiesT>(value));
133 return *this;
134 }
136 m_taskPropertiesHasBeenSet = true;
137 m_taskProperties.emplace(key, value);
138 return *this;
139 }
141 private:
142 Aws::Vector<Aws::String> m_sourceFields;
143
144 ConnectorOperator m_connectorOperator;
145
146 Aws::String m_destinationField;
147
148 TaskType m_taskType{TaskType::NOT_SET};
149
151 bool m_sourceFieldsHasBeenSet = false;
152 bool m_connectorOperatorHasBeenSet = false;
153 bool m_destinationFieldHasBeenSet = false;
154 bool m_taskTypeHasBeenSet = false;
155 bool m_taskPropertiesHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace Appflow
160} // namespace Aws
bool TaskTypeHasBeenSet() const
Definition Task.h:107
const Aws::Vector< Aws::String > & GetSourceFields() const
Definition Task.h:44
const ConnectorOperator & GetConnectorOperator() const
Definition Task.h:68
void SetTaskProperties(TaskPropertiesT &&value)
Definition Task.h:126
bool ConnectorOperatorHasBeenSet() const
Definition Task.h:69
Task & WithDestinationField(DestinationFieldT &&value)
Definition Task.h:95
Task & AddTaskProperties(OperatorPropertiesKeys key, Aws::String value)
Definition Task.h:135
void SetSourceFields(SourceFieldsT &&value)
Definition Task.h:47
Task & WithConnectorOperator(ConnectorOperatorT &&value)
Definition Task.h:76
void SetDestinationField(DestinationFieldT &&value)
Definition Task.h:90
AWS_APPFLOW_API Task()=default
Task & WithTaskType(TaskType value)
Definition Task.h:112
void SetTaskType(TaskType value)
Definition Task.h:108
bool TaskPropertiesHasBeenSet() const
Definition Task.h:124
Task & WithTaskProperties(TaskPropertiesT &&value)
Definition Task.h:131
bool DestinationFieldHasBeenSet() const
Definition Task.h:88
bool SourceFieldsHasBeenSet() const
Definition Task.h:45
void SetConnectorOperator(ConnectorOperatorT &&value)
Definition Task.h:71
AWS_APPFLOW_API Task(Aws::Utils::Json::JsonView jsonValue)
TaskType GetTaskType() const
Definition Task.h:106
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:87
Task & AddSourceFields(SourceFieldsT &&value)
Definition Task.h:57
const Aws::Map< OperatorPropertiesKeys, Aws::String > & GetTaskProperties() const
Definition Task.h:123
Task & WithSourceFields(SourceFieldsT &&value)
Definition Task.h:52
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