AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AttachmentOutput.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/AttachmentStatus.h>
10#include <aws/qbusiness/model/ErrorDetail.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QBusiness
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_QBUSINESS_API AttachmentOutput() = default;
37 AWS_QBUSINESS_API AttachmentOutput(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 AttachmentOutput& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
58 inline AttachmentStatus GetStatus() const { return m_status; }
59 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
60 inline void SetStatus(AttachmentStatus value) { m_statusHasBeenSet = true; m_status = value; }
61 inline AttachmentOutput& WithStatus(AttachmentStatus value) { SetStatus(value); return *this;}
63
65
68 inline const ErrorDetail& GetError() const { return m_error; }
69 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
70 template<typename ErrorT = ErrorDetail>
71 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
72 template<typename ErrorT = ErrorDetail>
73 AttachmentOutput& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
75
77
80 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
81 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
82 template<typename AttachmentIdT = Aws::String>
83 void SetAttachmentId(AttachmentIdT&& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = std::forward<AttachmentIdT>(value); }
84 template<typename AttachmentIdT = Aws::String>
85 AttachmentOutput& WithAttachmentId(AttachmentIdT&& value) { SetAttachmentId(std::forward<AttachmentIdT>(value)); return *this;}
87
89
92 inline const Aws::String& GetConversationId() const { return m_conversationId; }
93 inline bool ConversationIdHasBeenSet() const { return m_conversationIdHasBeenSet; }
94 template<typename ConversationIdT = Aws::String>
95 void SetConversationId(ConversationIdT&& value) { m_conversationIdHasBeenSet = true; m_conversationId = std::forward<ConversationIdT>(value); }
96 template<typename ConversationIdT = Aws::String>
97 AttachmentOutput& WithConversationId(ConversationIdT&& value) { SetConversationId(std::forward<ConversationIdT>(value)); return *this;}
99 private:
100
101 Aws::String m_name;
102 bool m_nameHasBeenSet = false;
103
105 bool m_statusHasBeenSet = false;
106
107 ErrorDetail m_error;
108 bool m_errorHasBeenSet = false;
109
110 Aws::String m_attachmentId;
111 bool m_attachmentIdHasBeenSet = false;
112
113 Aws::String m_conversationId;
114 bool m_conversationIdHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace QBusiness
119} // 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