AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
FailedDocument.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qbusiness/QBusiness_EXPORTS.h>
9#include <aws/qbusiness/model/ErrorDetail.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QBusiness {
21namespace Model {
22
31 public:
32 AWS_QBUSINESS_API FailedDocument() = default;
35 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const ErrorDetail& GetError() const { return m_error; }
61 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
62 template <typename ErrorT = ErrorDetail>
63 void SetError(ErrorT&& value) {
64 m_errorHasBeenSet = true;
65 m_error = std::forward<ErrorT>(value);
66 }
67 template <typename ErrorT = ErrorDetail>
69 SetError(std::forward<ErrorT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
80 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
81 template <typename DataSourceIdT = Aws::String>
83 m_dataSourceIdHasBeenSet = true;
84 m_dataSourceId = std::forward<DataSourceIdT>(value);
85 }
86 template <typename DataSourceIdT = Aws::String>
88 SetDataSourceId(std::forward<DataSourceIdT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_id;
94
95 ErrorDetail m_error;
96
97 Aws::String m_dataSourceId;
98 bool m_idHasBeenSet = false;
99 bool m_errorHasBeenSet = false;
100 bool m_dataSourceIdHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace QBusiness
105} // namespace Aws
const ErrorDetail & GetError() const
FailedDocument & WithDataSourceId(DataSourceIdT &&value)
const Aws::String & GetId() const
FailedDocument & WithError(ErrorT &&value)
AWS_QBUSINESS_API FailedDocument()=default
FailedDocument & WithId(IdT &&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)
void SetDataSourceId(DataSourceIdT &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue