/** * 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 IoTSiteWise { namespace Model { /** *

Contains error information for asset property value entries that are * associated with the BatchPutAssetPropertyValue * API.

See Also:

AWS * API Reference

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

The ID of the failed entry.

*/ inline const Aws::String& GetEntryId() const{ return m_entryId; } /** *

The ID of the failed entry.

*/ inline bool EntryIdHasBeenSet() const { return m_entryIdHasBeenSet; } /** *

The ID of the failed entry.

*/ inline void SetEntryId(const Aws::String& value) { m_entryIdHasBeenSet = true; m_entryId = value; } /** *

The ID of the failed entry.

*/ inline void SetEntryId(Aws::String&& value) { m_entryIdHasBeenSet = true; m_entryId = std::move(value); } /** *

The ID of the failed entry.

*/ inline void SetEntryId(const char* value) { m_entryIdHasBeenSet = true; m_entryId.assign(value); } /** *

The ID of the failed entry.

*/ inline BatchPutAssetPropertyErrorEntry& WithEntryId(const Aws::String& value) { SetEntryId(value); return *this;} /** *

The ID of the failed entry.

*/ inline BatchPutAssetPropertyErrorEntry& WithEntryId(Aws::String&& value) { SetEntryId(std::move(value)); return *this;} /** *

The ID of the failed entry.

*/ inline BatchPutAssetPropertyErrorEntry& WithEntryId(const char* value) { SetEntryId(value); return *this;} /** *

The list of update property value errors.

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

The list of update property value errors.

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

The list of update property value errors.

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

The list of update property value errors.

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

The list of update property value errors.

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

The list of update property value errors.

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

The list of update property value errors.

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

The list of update property value errors.

*/ inline BatchPutAssetPropertyErrorEntry& AddErrors(BatchPutAssetPropertyError&& value) { m_errorsHasBeenSet = true; m_errors.push_back(std::move(value)); return *this; } private: Aws::String m_entryId; bool m_entryIdHasBeenSet = false; Aws::Vector m_errors; bool m_errorsHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws