AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FailedCustomVocabularyItem.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lexv2-models/model/ErrorCode.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LexModelsV2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LEXMODELSV2_API FailedCustomVocabularyItem();
39 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetItemId() const{ return m_itemId; }
48 inline bool ItemIdHasBeenSet() const { return m_itemIdHasBeenSet; }
49 inline void SetItemId(const Aws::String& value) { m_itemIdHasBeenSet = true; m_itemId = value; }
50 inline void SetItemId(Aws::String&& value) { m_itemIdHasBeenSet = true; m_itemId = std::move(value); }
51 inline void SetItemId(const char* value) { m_itemIdHasBeenSet = true; m_itemId.assign(value); }
52 inline FailedCustomVocabularyItem& WithItemId(const Aws::String& value) { SetItemId(value); return *this;}
53 inline FailedCustomVocabularyItem& WithItemId(Aws::String&& value) { SetItemId(std::move(value)); return *this;}
54 inline FailedCustomVocabularyItem& WithItemId(const char* value) { SetItemId(value); return *this;}
56
58
62 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
63 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
64 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
65 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
66 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
67 inline FailedCustomVocabularyItem& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
68 inline FailedCustomVocabularyItem& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
69 inline FailedCustomVocabularyItem& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
71
73
77 inline const ErrorCode& GetErrorCode() const{ return m_errorCode; }
78 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
79 inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
80 inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
81 inline FailedCustomVocabularyItem& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;}
82 inline FailedCustomVocabularyItem& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
84 private:
85
86 Aws::String m_itemId;
87 bool m_itemIdHasBeenSet = false;
88
89 Aws::String m_errorMessage;
90 bool m_errorMessageHasBeenSet = false;
91
92 ErrorCode m_errorCode;
93 bool m_errorCodeHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace LexModelsV2
98} // namespace Aws
FailedCustomVocabularyItem & WithErrorCode(const ErrorCode &value)
FailedCustomVocabularyItem & WithErrorMessage(const Aws::String &value)
FailedCustomVocabularyItem & WithErrorMessage(const char *value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
FailedCustomVocabularyItem & WithItemId(Aws::String &&value)
FailedCustomVocabularyItem & WithItemId(const Aws::String &value)
FailedCustomVocabularyItem & WithErrorMessage(Aws::String &&value)
AWS_LEXMODELSV2_API FailedCustomVocabularyItem & operator=(Aws::Utils::Json::JsonView jsonValue)
FailedCustomVocabularyItem & WithErrorCode(ErrorCode &&value)
FailedCustomVocabularyItem & WithItemId(const char *value)
AWS_LEXMODELSV2_API FailedCustomVocabularyItem(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue