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