AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Selector.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datapipeline/DataPipeline_EXPORTS.h>
9#include <aws/datapipeline/model/Operator.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataPipeline {
21namespace Model {
22
29class Selector {
30 public:
31 AWS_DATAPIPELINE_API Selector() = default;
32 AWS_DATAPIPELINE_API Selector(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DATAPIPELINE_API Selector& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
43 inline const Aws::String& GetFieldName() const { return m_fieldName; }
44 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
45 template <typename FieldNameT = Aws::String>
46 void SetFieldName(FieldNameT&& value) {
47 m_fieldNameHasBeenSet = true;
48 m_fieldName = std::forward<FieldNameT>(value);
49 }
50 template <typename FieldNameT = Aws::String>
51 Selector& WithFieldName(FieldNameT&& value) {
52 SetFieldName(std::forward<FieldNameT>(value));
53 return *this;
54 }
56
58
59 inline const Operator& GetOperator() const { return m_operator; }
60 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
61 template <typename OperatorT = Operator>
62 void SetOperator(OperatorT&& value) {
63 m_operatorHasBeenSet = true;
64 m_operator = std::forward<OperatorT>(value);
65 }
66 template <typename OperatorT = Operator>
67 Selector& WithOperator(OperatorT&& value) {
68 SetOperator(std::forward<OperatorT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_fieldName;
74
75 Operator m_operator;
76 bool m_fieldNameHasBeenSet = false;
77 bool m_operatorHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace DataPipeline
82} // namespace Aws
AWS_DATAPIPELINE_API Selector()=default
AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
Selector & WithOperator(OperatorT &&value)
Definition Selector.h:67
const Operator & GetOperator() const
Definition Selector.h:59
const Aws::String & GetFieldName() const
Definition Selector.h:43
void SetFieldName(FieldNameT &&value)
Definition Selector.h:46
AWS_DATAPIPELINE_API Selector & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOperator(OperatorT &&value)
Definition Selector.h:62
AWS_DATAPIPELINE_API Selector(Aws::Utils::Json::JsonView jsonValue)
Selector & WithFieldName(FieldNameT &&value)
Definition Selector.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue