AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchItemError.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Comprehend
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_COMPREHEND_API BatchItemError();
37 AWS_COMPREHEND_API BatchItemError(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COMPREHEND_API BatchItemError& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline int GetIndex() const{ return m_index; }
47 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
48 inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; }
49 inline BatchItemError& WithIndex(int value) { SetIndex(value); return *this;}
51
53
56 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
57 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
58 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
59 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
60 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
61 inline BatchItemError& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
62 inline BatchItemError& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
63 inline BatchItemError& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
65
67
70 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
71 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
72 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
73 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
74 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
75 inline BatchItemError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
76 inline BatchItemError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
77 inline BatchItemError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
79 private:
80
81 int m_index;
82 bool m_indexHasBeenSet = false;
83
84 Aws::String m_errorCode;
85 bool m_errorCodeHasBeenSet = false;
86
87 Aws::String m_errorMessage;
88 bool m_errorMessageHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace Comprehend
93} // namespace Aws
BatchItemError & WithErrorMessage(const Aws::String &value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
void SetErrorCode(const Aws::String &value)
const Aws::String & GetErrorMessage() const
BatchItemError & WithErrorMessage(Aws::String &&value)
void SetErrorMessage(Aws::String &&value)
void SetErrorMessage(const char *value)
BatchItemError & WithErrorCode(const char *value)
AWS_COMPREHEND_API BatchItemError & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchItemError & WithErrorMessage(const char *value)
void SetErrorMessage(const Aws::String &value)
BatchItemError & WithErrorCode(Aws::String &&value)
void SetErrorCode(Aws::String &&value)
BatchItemError & WithIndex(int value)
BatchItemError & WithErrorCode(const Aws::String &value)
const Aws::String & GetErrorCode() const
AWS_COMPREHEND_API BatchItemError(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue