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

The unique failed custom vocabulary item from the custom vocabulary * list.

See Also:

AWS * API Reference

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

The unique item identifer for the failed custom vocabulary item from the * custom vocabulary list.

*/ inline const Aws::String& GetItemId() const{ return m_itemId; } /** *

The unique item identifer for the failed custom vocabulary item from the * custom vocabulary list.

*/ inline bool ItemIdHasBeenSet() const { return m_itemIdHasBeenSet; } /** *

The unique item identifer for the failed custom vocabulary item from the * custom vocabulary list.

*/ inline void SetItemId(const Aws::String& value) { m_itemIdHasBeenSet = true; m_itemId = value; } /** *

The unique item identifer for the failed custom vocabulary item from the * custom vocabulary list.

*/ inline void SetItemId(Aws::String&& value) { m_itemIdHasBeenSet = true; m_itemId = std::move(value); } /** *

The unique item identifer for the failed custom vocabulary item from the * custom vocabulary list.

*/ inline void SetItemId(const char* value) { m_itemIdHasBeenSet = true; m_itemId.assign(value); } /** *

The unique item identifer for the failed custom vocabulary item from the * custom vocabulary list.

*/ inline FailedCustomVocabularyItem& WithItemId(const Aws::String& value) { SetItemId(value); return *this;} /** *

The unique item identifer for the failed custom vocabulary item from the * custom vocabulary list.

*/ inline FailedCustomVocabularyItem& WithItemId(Aws::String&& value) { SetItemId(std::move(value)); return *this;} /** *

The unique item identifer for the failed custom vocabulary item from the * custom vocabulary list.

*/ inline FailedCustomVocabularyItem& WithItemId(const char* value) { SetItemId(value); return *this;} /** *

The error message for the failed custom vocabulary item from the custom * vocabulary list.

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

The error message for the failed custom vocabulary item from the custom * vocabulary list.

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

The error message for the failed custom vocabulary item from the custom * vocabulary list.

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

The error message for the failed custom vocabulary item from the custom * vocabulary list.

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

The error message for the failed custom vocabulary item from the custom * vocabulary list.

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

The error message for the failed custom vocabulary item from the custom * vocabulary list.

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

The error message for the failed custom vocabulary item from the custom * vocabulary list.

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

The error message for the failed custom vocabulary item from the custom * vocabulary list.

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

The unique error code for the failed custom vocabulary item from the custom * vocabulary list.

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

The unique error code for the failed custom vocabulary item from the custom * vocabulary list.

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

The unique error code for the failed custom vocabulary item from the custom * vocabulary list.

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

The unique error code for the failed custom vocabulary item from the custom * vocabulary list.

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

The unique error code for the failed custom vocabulary item from the custom * vocabulary list.

*/ inline FailedCustomVocabularyItem& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;} /** *

The unique error code for the failed custom vocabulary item from the custom * vocabulary list.

*/ inline FailedCustomVocabularyItem& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;} private: Aws::String m_itemId; bool m_itemIdHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; ErrorCode m_errorCode; bool m_errorCodeHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws