AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Selector.h
1
6#pragma once
7#include <aws/datapipeline/DataPipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datapipeline/model/Operator.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DataPipeline
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DATAPIPELINE_API Selector() = default;
37 AWS_DATAPIPELINE_API Selector(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATAPIPELINE_API Selector& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline const Aws::String& GetFieldName() const { return m_fieldName; }
50 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
51 template<typename FieldNameT = Aws::String>
52 void SetFieldName(FieldNameT&& value) { m_fieldNameHasBeenSet = true; m_fieldName = std::forward<FieldNameT>(value); }
53 template<typename FieldNameT = Aws::String>
54 Selector& WithFieldName(FieldNameT&& value) { SetFieldName(std::forward<FieldNameT>(value)); return *this;}
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) { m_operatorHasBeenSet = true; m_operator = std::forward<OperatorT>(value); }
63 template<typename OperatorT = Operator>
64 Selector& WithOperator(OperatorT&& value) { SetOperator(std::forward<OperatorT>(value)); return *this;}
66 private:
67
68 Aws::String m_fieldName;
69 bool m_fieldNameHasBeenSet = false;
70
71 Operator m_operator;
72 bool m_operatorHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace DataPipeline
77} // namespace Aws
AWS_DATAPIPELINE_API Selector()=default
AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
Selector & WithOperator(OperatorT &&value)
Definition Selector.h:64
const Operator & GetOperator() const
Definition Selector.h:59
const Aws::String & GetFieldName() const
Definition Selector.h:49
void SetFieldName(FieldNameT &&value)
Definition Selector.h:52
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:54
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue