AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
DocumentDetails.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/QBusiness_EXPORTS.h>
10#include <aws/qbusiness/model/DocumentStatus.h>
11#include <aws/qbusiness/model/ErrorDetail.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QBusiness {
23namespace Model {
24
32 public:
33 AWS_QBUSINESS_API DocumentDetails() = default;
36 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetDocumentId() const { return m_documentId; }
43 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
44 template <typename DocumentIdT = Aws::String>
45 void SetDocumentId(DocumentIdT&& value) {
46 m_documentIdHasBeenSet = true;
47 m_documentId = std::forward<DocumentIdT>(value);
48 }
49 template <typename DocumentIdT = Aws::String>
51 SetDocumentId(std::forward<DocumentIdT>(value));
52 return *this;
53 }
55
57
60 inline DocumentStatus GetStatus() const { return m_status; }
61 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
62 inline void SetStatus(DocumentStatus value) {
63 m_statusHasBeenSet = true;
64 m_status = value;
65 }
67 SetStatus(value);
68 return *this;
69 }
71
73
76 inline const ErrorDetail& GetError() const { return m_error; }
77 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
78 template <typename ErrorT = ErrorDetail>
79 void SetError(ErrorT&& value) {
80 m_errorHasBeenSet = true;
81 m_error = std::forward<ErrorT>(value);
82 }
83 template <typename ErrorT = ErrorDetail>
85 SetError(std::forward<ErrorT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
95 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
96 template <typename CreatedAtT = Aws::Utils::DateTime>
97 void SetCreatedAt(CreatedAtT&& value) {
98 m_createdAtHasBeenSet = true;
99 m_createdAt = std::forward<CreatedAtT>(value);
100 }
101 template <typename CreatedAtT = Aws::Utils::DateTime>
103 SetCreatedAt(std::forward<CreatedAtT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
113 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
114 template <typename UpdatedAtT = Aws::Utils::DateTime>
115 void SetUpdatedAt(UpdatedAtT&& value) {
116 m_updatedAtHasBeenSet = true;
117 m_updatedAt = std::forward<UpdatedAtT>(value);
118 }
119 template <typename UpdatedAtT = Aws::Utils::DateTime>
121 SetUpdatedAt(std::forward<UpdatedAtT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_documentId;
127
129
130 ErrorDetail m_error;
131
132 Aws::Utils::DateTime m_createdAt{};
133
134 Aws::Utils::DateTime m_updatedAt{};
135 bool m_documentIdHasBeenSet = false;
136 bool m_statusHasBeenSet = false;
137 bool m_errorHasBeenSet = false;
138 bool m_createdAtHasBeenSet = false;
139 bool m_updatedAtHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace QBusiness
144} // namespace Aws
void SetDocumentId(DocumentIdT &&value)
DocumentDetails & WithStatus(DocumentStatus value)
AWS_QBUSINESS_API DocumentDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
DocumentDetails & WithError(ErrorT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
DocumentDetails & WithCreatedAt(CreatedAtT &&value)
void SetStatus(DocumentStatus value)
const Aws::String & GetDocumentId() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetCreatedAt(CreatedAtT &&value)
DocumentDetails & WithUpdatedAt(UpdatedAtT &&value)
AWS_QBUSINESS_API DocumentDetails(Aws::Utils::Json::JsonView jsonValue)
DocumentDetails & WithDocumentId(DocumentIdT &&value)
const ErrorDetail & GetError() const
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QBUSINESS_API DocumentDetails()=default
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