AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Processor.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/firehose/Firehose_EXPORTS.h>
9#include <aws/firehose/model/ProcessorParameter.h>
10#include <aws/firehose/model/ProcessorType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Firehose {
22namespace Model {
23
33class Processor {
34 public:
35 AWS_FIREHOSE_API Processor() = default;
36 AWS_FIREHOSE_API Processor(Aws::Utils::Json::JsonView jsonValue);
37 AWS_FIREHOSE_API Processor& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline ProcessorType GetType() const { return m_type; }
45 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
46 inline void SetType(ProcessorType value) {
47 m_typeHasBeenSet = true;
48 m_type = value;
49 }
51 SetType(value);
52 return *this;
53 }
55
57
60 inline const Aws::Vector<ProcessorParameter>& GetParameters() const { return m_parameters; }
61 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
62 template <typename ParametersT = Aws::Vector<ProcessorParameter>>
63 void SetParameters(ParametersT&& value) {
64 m_parametersHasBeenSet = true;
65 m_parameters = std::forward<ParametersT>(value);
66 }
67 template <typename ParametersT = Aws::Vector<ProcessorParameter>>
68 Processor& WithParameters(ParametersT&& value) {
69 SetParameters(std::forward<ParametersT>(value));
70 return *this;
71 }
72 template <typename ParametersT = ProcessorParameter>
73 Processor& AddParameters(ParametersT&& value) {
74 m_parametersHasBeenSet = true;
75 m_parameters.emplace_back(std::forward<ParametersT>(value));
76 return *this;
77 }
79 private:
81
83 bool m_typeHasBeenSet = false;
84 bool m_parametersHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace Firehose
89} // namespace Aws
Processor & WithParameters(ParametersT &&value)
Definition Processor.h:68
const Aws::Vector< ProcessorParameter > & GetParameters() const
Definition Processor.h:60
AWS_FIREHOSE_API Processor()=default
AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FIREHOSE_API Processor & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(ProcessorType value)
Definition Processor.h:46
void SetParameters(ParametersT &&value)
Definition Processor.h:63
Processor & WithType(ProcessorType value)
Definition Processor.h:50
Processor & AddParameters(ParametersT &&value)
Definition Processor.h:73
AWS_FIREHOSE_API Processor(Aws::Utils::Json::JsonView jsonValue)
ProcessorType GetType() const
Definition Processor.h:44
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue