AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39 AWS_QBUSINESS_API DocumentDetails(Aws::Utils::Json::JsonView jsonValue);
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 inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; }
51 inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); }
52 inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); }
53 inline DocumentDetails& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;}
54 inline DocumentDetails& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;}
55 inline DocumentDetails& WithDocumentId(const char* value) { SetDocumentId(value); return *this;}
57
59
62 inline const DocumentStatus& GetStatus() const{ return m_status; }
63 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 inline void SetStatus(const DocumentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
65 inline void SetStatus(DocumentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
66 inline DocumentDetails& WithStatus(const DocumentStatus& value) { SetStatus(value); return *this;}
67 inline DocumentDetails& WithStatus(DocumentStatus&& value) { SetStatus(std::move(value)); return *this;}
69
71
74 inline const ErrorDetail& GetError() const{ return m_error; }
75 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
76 inline void SetError(const ErrorDetail& value) { m_errorHasBeenSet = true; m_error = value; }
77 inline void SetError(ErrorDetail&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
78 inline DocumentDetails& WithError(const ErrorDetail& value) { SetError(value); return *this;}
79 inline DocumentDetails& WithError(ErrorDetail&& value) { SetError(std::move(value)); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
87 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
88 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
89 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
90 inline DocumentDetails& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
91 inline DocumentDetails& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
93
95
98 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
99 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
100 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
101 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
102 inline DocumentDetails& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
103 inline DocumentDetails& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
105 private:
106
107 Aws::String m_documentId;
108 bool m_documentIdHasBeenSet = false;
109
110 DocumentStatus m_status;
111 bool m_statusHasBeenSet = false;
112
113 ErrorDetail m_error;
114 bool m_errorHasBeenSet = false;
115
116 Aws::Utils::DateTime m_createdAt;
117 bool m_createdAtHasBeenSet = false;
118
119 Aws::Utils::DateTime m_updatedAt;
120 bool m_updatedAtHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace QBusiness
125} // namespace Aws
DocumentDetails & WithDocumentId(const Aws::String &value)
DocumentDetails & WithUpdatedAt(Aws::Utils::DateTime &&value)
AWS_QBUSINESS_API DocumentDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
DocumentDetails & WithError(const ErrorDetail &value)
DocumentDetails & WithStatus(const DocumentStatus &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetStatus(DocumentStatus &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
DocumentDetails & WithDocumentId(Aws::String &&value)
const Aws::String & GetDocumentId() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetDocumentId(const Aws::String &value)
const DocumentStatus & GetStatus() const
void SetUpdatedAt(Aws::Utils::DateTime &&value)
DocumentDetails & WithDocumentId(const char *value)
void SetDocumentId(Aws::String &&value)
AWS_QBUSINESS_API DocumentDetails(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(const DocumentStatus &value)
const ErrorDetail & GetError() const
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
DocumentDetails & WithStatus(DocumentStatus &&value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
DocumentDetails & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetError(const ErrorDetail &value)
DocumentDetails & WithCreatedAt(const Aws::Utils::DateTime &value)
DocumentDetails & WithUpdatedAt(const Aws::Utils::DateTime &value)
DocumentDetails & WithError(ErrorDetail &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue