AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Operator.h
1
6#pragma once
7#include <aws/datapipeline/DataPipeline_EXPORTS.h>
8#include <aws/datapipeline/model/OperatorType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DataPipeline
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_DATAPIPELINE_API Operator() = default;
38 AWS_DATAPIPELINE_API Operator(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATAPIPELINE_API Operator& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
64 inline OperatorType GetType() const { return m_type; }
65 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
66 inline void SetType(OperatorType value) { m_typeHasBeenSet = true; m_type = value; }
67 inline Operator& WithType(OperatorType value) { SetType(value); return *this;}
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) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
78 template<typename ValuesT = Aws::Vector<Aws::String>>
79 Operator& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
80 template<typename ValuesT = Aws::String>
81 Operator& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
83 private:
84
86 bool m_typeHasBeenSet = false;
87
89 bool m_valuesHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace DataPipeline
94} // namespace Aws
Operator & WithType(OperatorType value)
Definition Operator.h:67
AWS_DATAPIPELINE_API Operator & operator=(Aws::Utils::Json::JsonView jsonValue)
Operator & WithValues(ValuesT &&value)
Definition Operator.h:79
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:66
Operator & AddValues(ValuesT &&value)
Definition Operator.h:81
OperatorType GetType() const
Definition Operator.h:64
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue