AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
AttachmentOutput.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/AttachmentStatus.h>
10#include <aws/qbusiness/model/ErrorDetail.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QBusiness {
22namespace Model {
23
30 public:
31 AWS_QBUSINESS_API AttachmentOutput() = default;
32 AWS_QBUSINESS_API AttachmentOutput(Aws::Utils::Json::JsonView jsonValue);
34 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 AttachmentOutput& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline AttachmentStatus GetStatus() const { return m_status; }
59 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
60 inline void SetStatus(AttachmentStatus value) {
61 m_statusHasBeenSet = true;
62 m_status = value;
63 }
65 SetStatus(value);
66 return *this;
67 }
69
71
74 inline const ErrorDetail& GetError() const { return m_error; }
75 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
76 template <typename ErrorT = ErrorDetail>
77 void SetError(ErrorT&& value) {
78 m_errorHasBeenSet = true;
79 m_error = std::forward<ErrorT>(value);
80 }
81 template <typename ErrorT = ErrorDetail>
82 AttachmentOutput& WithError(ErrorT&& value) {
83 SetError(std::forward<ErrorT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
93 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
94 template <typename AttachmentIdT = Aws::String>
95 void SetAttachmentId(AttachmentIdT&& value) {
96 m_attachmentIdHasBeenSet = true;
97 m_attachmentId = std::forward<AttachmentIdT>(value);
98 }
99 template <typename AttachmentIdT = Aws::String>
100 AttachmentOutput& WithAttachmentId(AttachmentIdT&& value) {
101 SetAttachmentId(std::forward<AttachmentIdT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetConversationId() const { return m_conversationId; }
111 inline bool ConversationIdHasBeenSet() const { return m_conversationIdHasBeenSet; }
112 template <typename ConversationIdT = Aws::String>
113 void SetConversationId(ConversationIdT&& value) {
114 m_conversationIdHasBeenSet = true;
115 m_conversationId = std::forward<ConversationIdT>(value);
116 }
117 template <typename ConversationIdT = Aws::String>
118 AttachmentOutput& WithConversationId(ConversationIdT&& value) {
119 SetConversationId(std::forward<ConversationIdT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_name;
125
127
128 ErrorDetail m_error;
129
130 Aws::String m_attachmentId;
131
132 Aws::String m_conversationId;
133 bool m_nameHasBeenSet = false;
134 bool m_statusHasBeenSet = false;
135 bool m_errorHasBeenSet = false;
136 bool m_attachmentIdHasBeenSet = false;
137 bool m_conversationIdHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace QBusiness
142} // namespace Aws
AttachmentOutput & WithStatus(AttachmentStatus value)
AWS_QBUSINESS_API AttachmentOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
void SetStatus(AttachmentStatus value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QBUSINESS_API AttachmentOutput()=default
AttachmentOutput & WithError(ErrorT &&value)
const Aws::String & GetConversationId() const
void SetAttachmentId(AttachmentIdT &&value)
void SetConversationId(ConversationIdT &&value)
const Aws::String & GetAttachmentId() const
AttachmentOutput & WithConversationId(ConversationIdT &&value)
const ErrorDetail & GetError() const
AttachmentOutput & WithAttachmentId(AttachmentIdT &&value)
AWS_QBUSINESS_API AttachmentOutput(Aws::Utils::Json::JsonView jsonValue)
AttachmentOutput & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue