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

Contains error information for an asset property value entry that is * associated with the BatchGetAssetPropertyValue * API.

See Also:

AWS * API Reference

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

The error code.

*/ inline const BatchGetAssetPropertyValueErrorCode& GetErrorCode() const{ return m_errorCode; } /** *

The error code.

*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *

The error code.

*/ inline void SetErrorCode(const BatchGetAssetPropertyValueErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *

The error code.

*/ inline void SetErrorCode(BatchGetAssetPropertyValueErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *

The error code.

*/ inline BatchGetAssetPropertyValueErrorEntry& WithErrorCode(const BatchGetAssetPropertyValueErrorCode& value) { SetErrorCode(value); return *this;} /** *

The error code.

*/ inline BatchGetAssetPropertyValueErrorEntry& WithErrorCode(BatchGetAssetPropertyValueErrorCode&& value) { SetErrorCode(std::move(value)); return *this;} /** *

The associated error message.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

The associated error message.

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

The associated error message.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

The associated error message.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

The associated error message.

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

The associated error message.

*/ inline BatchGetAssetPropertyValueErrorEntry& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

The associated error message.

*/ inline BatchGetAssetPropertyValueErrorEntry& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

The associated error message.

*/ inline BatchGetAssetPropertyValueErrorEntry& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *

The ID of the entry.

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

The ID of the entry.

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

The ID of the entry.

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

The ID of the entry.

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

The ID of the entry.

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

The ID of the entry.

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

The ID of the entry.

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

The ID of the entry.

*/ inline BatchGetAssetPropertyValueErrorEntry& WithEntryId(const char* value) { SetEntryId(value); return *this;} private: BatchGetAssetPropertyValueErrorCode m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; Aws::String m_entryId; bool m_entryIdHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws