/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Firehose { namespace Model { /** *

Describes a data processor.

See Also:

AWS * API Reference

*/ class AWS_FIREHOSE_API Processor { public: Processor(); Processor(Aws::Utils::Json::JsonView jsonValue); Processor& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The type of processor.

*/ inline const ProcessorType& GetType() const{ return m_type; } /** *

The type of processor.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of processor.

*/ inline void SetType(const ProcessorType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of processor.

*/ inline void SetType(ProcessorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of processor.

*/ inline Processor& WithType(const ProcessorType& value) { SetType(value); return *this;} /** *

The type of processor.

*/ inline Processor& WithType(ProcessorType&& value) { SetType(std::move(value)); return *this;} /** *

The processor parameters.

*/ inline const Aws::Vector& GetParameters() const{ return m_parameters; } /** *

The processor parameters.

*/ inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } /** *

The processor parameters.

*/ inline void SetParameters(const Aws::Vector& value) { m_parametersHasBeenSet = true; m_parameters = value; } /** *

The processor parameters.

*/ inline void SetParameters(Aws::Vector&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } /** *

The processor parameters.

*/ inline Processor& WithParameters(const Aws::Vector& value) { SetParameters(value); return *this;} /** *

The processor parameters.

*/ inline Processor& WithParameters(Aws::Vector&& value) { SetParameters(std::move(value)); return *this;} /** *

The processor parameters.

*/ inline Processor& AddParameters(const ProcessorParameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; } /** *

The processor parameters.

*/ inline Processor& AddParameters(ProcessorParameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; } private: ProcessorType m_type; bool m_typeHasBeenSet; Aws::Vector m_parameters; bool m_parametersHasBeenSet; }; } // namespace Model } // namespace Firehose } // namespace Aws