AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
BatchDeleteDocumentResponseFailedDocument.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kendra/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 kendra
23{
24namespace Model
25{
26
34 {
35 public:
39 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template<typename IdT = Aws::String>
49 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
50 template<typename IdT = Aws::String>
51 BatchDeleteDocumentResponseFailedDocument& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
53
55
59 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
60 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
61 template<typename DataSourceIdT = Aws::String>
62 void SetDataSourceId(DataSourceIdT&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::forward<DataSourceIdT>(value); }
63 template<typename DataSourceIdT = Aws::String>
64 BatchDeleteDocumentResponseFailedDocument& WithDataSourceId(DataSourceIdT&& value) { SetDataSourceId(std::forward<DataSourceIdT>(value)); return *this;}
66
68
71 inline ErrorCode GetErrorCode() const { return m_errorCode; }
72 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
73 inline void SetErrorCode(ErrorCode value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
76
78
81 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
82 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
83 template<typename ErrorMessageT = Aws::String>
84 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
85 template<typename ErrorMessageT = Aws::String>
86 BatchDeleteDocumentResponseFailedDocument& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
88 private:
89
90 Aws::String m_id;
91 bool m_idHasBeenSet = false;
92
93 Aws::String m_dataSourceId;
94 bool m_dataSourceIdHasBeenSet = false;
95
96 ErrorCode m_errorCode{ErrorCode::NOT_SET};
97 bool m_errorCodeHasBeenSet = false;
98
99 Aws::String m_errorMessage;
100 bool m_errorMessageHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace kendra
105} // namespace Aws
AWS_KENDRA_API BatchDeleteDocumentResponseFailedDocument & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchDeleteDocumentResponseFailedDocument & WithErrorCode(ErrorCode value)
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KENDRA_API BatchDeleteDocumentResponseFailedDocument(Aws::Utils::Json::JsonView jsonValue)
BatchDeleteDocumentResponseFailedDocument & WithErrorMessage(ErrorMessageT &&value)
BatchDeleteDocumentResponseFailedDocument & WithDataSourceId(DataSourceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue