AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Processor.h
1
6#pragma once
7#include <aws/firehose/Firehose_EXPORTS.h>
8#include <aws/firehose/model/ProcessorType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/firehose/model/ProcessorParameter.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 Firehose
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_FIREHOSE_API Processor() = default;
41 AWS_FIREHOSE_API Processor(Aws::Utils::Json::JsonView jsonValue);
42 AWS_FIREHOSE_API Processor& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline ProcessorType GetType() const { return m_type; }
51 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
52 inline void SetType(ProcessorType value) { m_typeHasBeenSet = true; m_type = value; }
53 inline Processor& WithType(ProcessorType value) { SetType(value); return *this;}
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) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
64 template<typename ParametersT = Aws::Vector<ProcessorParameter>>
65 Processor& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
66 template<typename ParametersT = ProcessorParameter>
67 Processor& AddParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters.emplace_back(std::forward<ParametersT>(value)); return *this; }
69 private:
70
72 bool m_typeHasBeenSet = false;
73
75 bool m_parametersHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Firehose
80} // namespace Aws
Processor & WithParameters(ParametersT &&value)
Definition Processor.h:65
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:52
void SetParameters(ParametersT &&value)
Definition Processor.h:63
Processor & WithType(ProcessorType value)
Definition Processor.h:53
Processor & AddParameters(ParametersT &&value)
Definition Processor.h:67
AWS_FIREHOSE_API Processor(Aws::Utils::Json::JsonView jsonValue)
ProcessorType GetType() const
Definition Processor.h:50
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue