AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Task.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/customer-profiles/model/ConnectorOperator.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/customer-profiles/model/TaskType.h>
13#include <aws/customer-profiles/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 CustomerProfiles
27{
28namespace Model
29{
30
37 class Task
38 {
39 public:
40 AWS_CUSTOMERPROFILES_API Task() = default;
41 AWS_CUSTOMERPROFILES_API Task(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CUSTOMERPROFILES_API Task& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const ConnectorOperator& GetConnectorOperator() const { return m_connectorOperator; }
51 inline bool ConnectorOperatorHasBeenSet() const { return m_connectorOperatorHasBeenSet; }
52 template<typename ConnectorOperatorT = ConnectorOperator>
53 void SetConnectorOperator(ConnectorOperatorT&& value) { m_connectorOperatorHasBeenSet = true; m_connectorOperator = std::forward<ConnectorOperatorT>(value); }
54 template<typename ConnectorOperatorT = ConnectorOperator>
55 Task& WithConnectorOperator(ConnectorOperatorT&& value) { SetConnectorOperator(std::forward<ConnectorOperatorT>(value)); return *this;}
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) { m_destinationFieldHasBeenSet = true; m_destinationField = std::forward<DestinationFieldT>(value); }
67 template<typename DestinationFieldT = Aws::String>
68 Task& WithDestinationField(DestinationFieldT&& value) { SetDestinationField(std::forward<DestinationFieldT>(value)); return *this;}
70
72
75 inline const Aws::Vector<Aws::String>& GetSourceFields() const { return m_sourceFields; }
76 inline bool SourceFieldsHasBeenSet() const { return m_sourceFieldsHasBeenSet; }
77 template<typename SourceFieldsT = Aws::Vector<Aws::String>>
78 void SetSourceFields(SourceFieldsT&& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields = std::forward<SourceFieldsT>(value); }
79 template<typename SourceFieldsT = Aws::Vector<Aws::String>>
80 Task& WithSourceFields(SourceFieldsT&& value) { SetSourceFields(std::forward<SourceFieldsT>(value)); return *this;}
81 template<typename SourceFieldsT = Aws::String>
82 Task& AddSourceFields(SourceFieldsT&& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields.emplace_back(std::forward<SourceFieldsT>(value)); return *this; }
84
86
90 inline const Aws::Map<OperatorPropertiesKeys, Aws::String>& GetTaskProperties() const { return m_taskProperties; }
91 inline bool TaskPropertiesHasBeenSet() const { return m_taskPropertiesHasBeenSet; }
92 template<typename TaskPropertiesT = Aws::Map<OperatorPropertiesKeys, Aws::String>>
93 void SetTaskProperties(TaskPropertiesT&& value) { m_taskPropertiesHasBeenSet = true; m_taskProperties = std::forward<TaskPropertiesT>(value); }
94 template<typename TaskPropertiesT = Aws::Map<OperatorPropertiesKeys, Aws::String>>
95 Task& WithTaskProperties(TaskPropertiesT&& value) { SetTaskProperties(std::forward<TaskPropertiesT>(value)); return *this;}
97 m_taskPropertiesHasBeenSet = true; m_taskProperties.emplace(key, value); 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) { m_taskTypeHasBeenSet = true; m_taskType = value; }
109 inline Task& WithTaskType(TaskType value) { SetTaskType(value); return *this;}
111 private:
112
113 ConnectorOperator m_connectorOperator;
114 bool m_connectorOperatorHasBeenSet = false;
115
116 Aws::String m_destinationField;
117 bool m_destinationFieldHasBeenSet = false;
118
119 Aws::Vector<Aws::String> m_sourceFields;
120 bool m_sourceFieldsHasBeenSet = false;
121
123 bool m_taskPropertiesHasBeenSet = false;
124
125 TaskType m_taskType{TaskType::NOT_SET};
126 bool m_taskTypeHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace CustomerProfiles
131} // namespace Aws
AWS_CUSTOMERPROFILES_API Task()=default
Task & WithTaskType(TaskType value)
Definition Task.h:109
Task & WithConnectorOperator(ConnectorOperatorT &&value)
Definition Task.h:55
Task & AddTaskProperties(OperatorPropertiesKeys key, Aws::String value)
Definition Task.h:96
const Aws::String & GetDestinationField() const
Definition Task.h:63
void SetDestinationField(DestinationFieldT &&value)
Definition Task.h:66
void SetSourceFields(SourceFieldsT &&value)
Definition Task.h:78
bool ConnectorOperatorHasBeenSet() const
Definition Task.h:51
void SetTaskType(TaskType value)
Definition Task.h:108
Task & WithSourceFields(SourceFieldsT &&value)
Definition Task.h:80
AWS_CUSTOMERPROFILES_API Task & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSourceFields() const
Definition Task.h:75
const Aws::Map< OperatorPropertiesKeys, Aws::String > & GetTaskProperties() const
Definition Task.h:90
bool TaskPropertiesHasBeenSet() const
Definition Task.h:91
TaskType GetTaskType() const
Definition Task.h:106
bool DestinationFieldHasBeenSet() const
Definition Task.h:64
AWS_CUSTOMERPROFILES_API Task(Aws::Utils::Json::JsonView jsonValue)
Task & AddSourceFields(SourceFieldsT &&value)
Definition Task.h:82
void SetTaskProperties(TaskPropertiesT &&value)
Definition Task.h:93
const ConnectorOperator & GetConnectorOperator() const
Definition Task.h:50
Task & WithDestinationField(DestinationFieldT &&value)
Definition Task.h:68
bool SourceFieldsHasBeenSet() const
Definition Task.h:76
void SetConnectorOperator(ConnectorOperatorT &&value)
Definition Task.h:53
Task & WithTaskProperties(TaskPropertiesT &&value)
Definition Task.h:95
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