AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FailedDocument.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/model/ErrorDetail.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 QBusiness
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_QBUSINESS_API FailedDocument();
38 AWS_QBUSINESS_API FailedDocument(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetId() const{ return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
52 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
53 inline FailedDocument& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline FailedDocument& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline FailedDocument& WithId(const char* value) { SetId(value); return *this;}
57
59
62 inline const ErrorDetail& GetError() const{ return m_error; }
63 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
64 inline void SetError(const ErrorDetail& value) { m_errorHasBeenSet = true; m_error = value; }
65 inline void SetError(ErrorDetail&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
66 inline FailedDocument& WithError(const ErrorDetail& value) { SetError(value); return *this;}
67 inline FailedDocument& WithError(ErrorDetail&& value) { SetError(std::move(value)); return *this;}
69
71
75 inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; }
76 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
77 inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; }
78 inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::move(value); }
79 inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); }
80 inline FailedDocument& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;}
81 inline FailedDocument& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;}
82 inline FailedDocument& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;}
84 private:
85
86 Aws::String m_id;
87 bool m_idHasBeenSet = false;
88
89 ErrorDetail m_error;
90 bool m_errorHasBeenSet = false;
91
92 Aws::String m_dataSourceId;
93 bool m_dataSourceIdHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace QBusiness
98} // namespace Aws
FailedDocument & WithDataSourceId(const char *value)
FailedDocument & WithDataSourceId(const Aws::String &value)
FailedDocument & WithError(ErrorDetail &&value)
const ErrorDetail & GetError() const
void SetError(ErrorDetail &&value)
void SetDataSourceId(const char *value)
void SetId(Aws::String &&value)
FailedDocument & WithError(const ErrorDetail &value)
const Aws::String & GetId() const
FailedDocument & WithId(const char *value)
void SetDataSourceId(Aws::String &&value)
const Aws::String & GetDataSourceId() const
AWS_QBUSINESS_API FailedDocument & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API FailedDocument(Aws::Utils::Json::JsonView jsonValue)
FailedDocument & WithId(const Aws::String &value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDataSourceId(const Aws::String &value)
FailedDocument & WithDataSourceId(Aws::String &&value)
void SetId(const Aws::String &value)
void SetError(const ErrorDetail &value)
FailedDocument & WithId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue