AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ProcessingConfiguration.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/Processor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Firehose {
21namespace Model {
22
29 public:
30 AWS_FIREHOSE_API ProcessingConfiguration() = default;
33 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline bool GetEnabled() const { return m_enabled; }
40 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
41 inline void SetEnabled(bool value) {
42 m_enabledHasBeenSet = true;
43 m_enabled = value;
44 }
46 SetEnabled(value);
47 return *this;
48 }
50
52
55 inline const Aws::Vector<Processor>& GetProcessors() const { return m_processors; }
56 inline bool ProcessorsHasBeenSet() const { return m_processorsHasBeenSet; }
57 template <typename ProcessorsT = Aws::Vector<Processor>>
58 void SetProcessors(ProcessorsT&& value) {
59 m_processorsHasBeenSet = true;
60 m_processors = std::forward<ProcessorsT>(value);
61 }
62 template <typename ProcessorsT = Aws::Vector<Processor>>
64 SetProcessors(std::forward<ProcessorsT>(value));
65 return *this;
66 }
67 template <typename ProcessorsT = Processor>
68 ProcessingConfiguration& AddProcessors(ProcessorsT&& value) {
69 m_processorsHasBeenSet = true;
70 m_processors.emplace_back(std::forward<ProcessorsT>(value));
71 return *this;
72 }
74 private:
75 bool m_enabled{false};
76
77 Aws::Vector<Processor> m_processors;
78 bool m_enabledHasBeenSet = false;
79 bool m_processorsHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace Firehose
84} // namespace Aws
ProcessingConfiguration & AddProcessors(ProcessorsT &&value)
AWS_FIREHOSE_API ProcessingConfiguration(Aws::Utils::Json::JsonView jsonValue)
ProcessingConfiguration & WithEnabled(bool value)
ProcessingConfiguration & WithProcessors(ProcessorsT &&value)
const Aws::Vector< Processor > & GetProcessors() const
AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FIREHOSE_API ProcessingConfiguration()=default
AWS_FIREHOSE_API ProcessingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue