AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Operator.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datapipeline/DataPipeline_EXPORTS.h>
10#include <aws/datapipeline/model/OperatorType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DataPipeline {
22namespace Model {
23
30class Operator {
31 public:
32 AWS_DATAPIPELINE_API Operator() = default;
33 AWS_DATAPIPELINE_API Operator(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATAPIPELINE_API Operator& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
58 inline OperatorType GetType() const { return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 inline void SetType(OperatorType value) {
61 m_typeHasBeenSet = true;
62 m_type = value;
63 }
65 SetType(value);
66 return *this;
67 }
69
71
74 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
75 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
76 template <typename ValuesT = Aws::Vector<Aws::String>>
77 void SetValues(ValuesT&& value) {
78 m_valuesHasBeenSet = true;
79 m_values = std::forward<ValuesT>(value);
80 }
81 template <typename ValuesT = Aws::Vector<Aws::String>>
82 Operator& WithValues(ValuesT&& value) {
83 SetValues(std::forward<ValuesT>(value));
84 return *this;
85 }
86 template <typename ValuesT = Aws::String>
87 Operator& AddValues(ValuesT&& value) {
88 m_valuesHasBeenSet = true;
89 m_values.emplace_back(std::forward<ValuesT>(value));
90 return *this;
91 }
93 private:
95
97 bool m_typeHasBeenSet = false;
98 bool m_valuesHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace DataPipeline
103} // namespace Aws
Operator & WithType(OperatorType value)
Definition Operator.h:64
AWS_DATAPIPELINE_API Operator & operator=(Aws::Utils::Json::JsonView jsonValue)
Operator & WithValues(ValuesT &&value)
Definition Operator.h:82
void SetValues(ValuesT &&value)
Definition Operator.h:77
AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATAPIPELINE_API Operator()=default
const Aws::Vector< Aws::String > & GetValues() const
Definition Operator.h:74
AWS_DATAPIPELINE_API Operator(Aws::Utils::Json::JsonView jsonValue)
void SetType(OperatorType value)
Definition Operator.h:60
Operator & AddValues(ValuesT &&value)
Definition Operator.h:87
OperatorType GetType() const
Definition Operator.h:58
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue