AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DocumentDetails.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/DocumentStatus.h>
10#include <aws/qbusiness/model/ErrorDetail.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QBusiness
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_QBUSINESS_API DocumentDetails() = default;
41 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetDocumentId() const { return m_documentId; }
49 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
50 template<typename DocumentIdT = Aws::String>
51 void SetDocumentId(DocumentIdT&& value) { m_documentIdHasBeenSet = true; m_documentId = std::forward<DocumentIdT>(value); }
52 template<typename DocumentIdT = Aws::String>
53 DocumentDetails& WithDocumentId(DocumentIdT&& value) { SetDocumentId(std::forward<DocumentIdT>(value)); return *this;}
55
57
60 inline DocumentStatus GetStatus() const { return m_status; }
61 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
62 inline void SetStatus(DocumentStatus value) { m_statusHasBeenSet = true; m_status = value; }
63 inline DocumentDetails& WithStatus(DocumentStatus value) { SetStatus(value); return *this;}
65
67
70 inline const ErrorDetail& GetError() const { return m_error; }
71 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
72 template<typename ErrorT = ErrorDetail>
73 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
74 template<typename ErrorT = ErrorDetail>
75 DocumentDetails& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
77
79
82 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
83 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
84 template<typename CreatedAtT = Aws::Utils::DateTime>
85 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
86 template<typename CreatedAtT = Aws::Utils::DateTime>
87 DocumentDetails& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
95 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
96 template<typename UpdatedAtT = Aws::Utils::DateTime>
97 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
98 template<typename UpdatedAtT = Aws::Utils::DateTime>
99 DocumentDetails& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
101 private:
102
103 Aws::String m_documentId;
104 bool m_documentIdHasBeenSet = false;
105
107 bool m_statusHasBeenSet = false;
108
109 ErrorDetail m_error;
110 bool m_errorHasBeenSet = false;
111
112 Aws::Utils::DateTime m_createdAt{};
113 bool m_createdAtHasBeenSet = false;
114
115 Aws::Utils::DateTime m_updatedAt{};
116 bool m_updatedAtHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace QBusiness
121} // 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)
void SetUpdatedAt(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