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

An object that contains information about errors returned by the * BatchPutProperty action.

See Also:

AWS * API Reference

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

A list of objects that contain information about errors returned by the * BatchPutProperty action.

*/ inline const Aws::Vector& GetErrors() const{ return m_errors; } /** *

A list of objects that contain information about errors returned by the * BatchPutProperty action.

*/ inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; } /** *

A list of objects that contain information about errors returned by the * BatchPutProperty action.

*/ inline void SetErrors(const Aws::Vector& value) { m_errorsHasBeenSet = true; m_errors = value; } /** *

A list of objects that contain information about errors returned by the * BatchPutProperty action.

*/ inline void SetErrors(Aws::Vector&& value) { m_errorsHasBeenSet = true; m_errors = std::move(value); } /** *

A list of objects that contain information about errors returned by the * BatchPutProperty action.

*/ inline BatchPutPropertyErrorEntry& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} /** *

A list of objects that contain information about errors returned by the * BatchPutProperty action.

*/ inline BatchPutPropertyErrorEntry& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} /** *

A list of objects that contain information about errors returned by the * BatchPutProperty action.

*/ inline BatchPutPropertyErrorEntry& AddErrors(const BatchPutPropertyError& value) { m_errorsHasBeenSet = true; m_errors.push_back(value); return *this; } /** *

A list of objects that contain information about errors returned by the * BatchPutProperty action.

*/ inline BatchPutPropertyErrorEntry& AddErrors(BatchPutPropertyError&& value) { m_errorsHasBeenSet = true; m_errors.push_back(std::move(value)); return *this; } private: Aws::Vector m_errors; bool m_errorsHasBeenSet = false; }; } // namespace Model } // namespace IoTTwinMaker } // namespace Aws