AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ProcessingConfiguration.h
1
6#pragma once
7#include <aws/firehose/Firehose_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/firehose/model/Processor.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 Firehose
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_FIREHOSE_API ProcessingConfiguration() = default;
38 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline bool GetEnabled() const { return m_enabled; }
46 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
47 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
48 inline ProcessingConfiguration& WithEnabled(bool value) { SetEnabled(value); return *this;}
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) { m_processorsHasBeenSet = true; m_processors = std::forward<ProcessorsT>(value); }
59 template<typename ProcessorsT = Aws::Vector<Processor>>
60 ProcessingConfiguration& WithProcessors(ProcessorsT&& value) { SetProcessors(std::forward<ProcessorsT>(value)); return *this;}
61 template<typename ProcessorsT = Processor>
62 ProcessingConfiguration& AddProcessors(ProcessorsT&& value) { m_processorsHasBeenSet = true; m_processors.emplace_back(std::forward<ProcessorsT>(value)); return *this; }
64 private:
65
66 bool m_enabled{false};
67 bool m_enabledHasBeenSet = false;
68
69 Aws::Vector<Processor> m_processors;
70 bool m_processorsHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace Firehose
75} // 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