AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AttachmentItem.h
1
6#pragma once
7#include <aws/connectparticipant/ConnectParticipant_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connectparticipant/model/ArtifactStatus.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ConnectParticipant
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CONNECTPARTICIPANT_API AttachmentItem() = default;
37 AWS_CONNECTPARTICIPANT_API AttachmentItem(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTPARTICIPANT_API AttachmentItem& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline const Aws::String& GetContentType() const { return m_contentType; }
50 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
51 template<typename ContentTypeT = Aws::String>
52 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
53 template<typename ContentTypeT = Aws::String>
54 AttachmentItem& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
56
58
61 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
62 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
63 template<typename AttachmentIdT = Aws::String>
64 void SetAttachmentId(AttachmentIdT&& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = std::forward<AttachmentIdT>(value); }
65 template<typename AttachmentIdT = Aws::String>
66 AttachmentItem& WithAttachmentId(AttachmentIdT&& value) { SetAttachmentId(std::forward<AttachmentIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetAttachmentName() const { return m_attachmentName; }
74 inline bool AttachmentNameHasBeenSet() const { return m_attachmentNameHasBeenSet; }
75 template<typename AttachmentNameT = Aws::String>
76 void SetAttachmentName(AttachmentNameT&& value) { m_attachmentNameHasBeenSet = true; m_attachmentName = std::forward<AttachmentNameT>(value); }
77 template<typename AttachmentNameT = Aws::String>
78 AttachmentItem& WithAttachmentName(AttachmentNameT&& value) { SetAttachmentName(std::forward<AttachmentNameT>(value)); return *this;}
80
82
85 inline ArtifactStatus GetStatus() const { return m_status; }
86 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
87 inline void SetStatus(ArtifactStatus value) { m_statusHasBeenSet = true; m_status = value; }
88 inline AttachmentItem& WithStatus(ArtifactStatus value) { SetStatus(value); return *this;}
90 private:
91
92 Aws::String m_contentType;
93 bool m_contentTypeHasBeenSet = false;
94
95 Aws::String m_attachmentId;
96 bool m_attachmentIdHasBeenSet = false;
97
98 Aws::String m_attachmentName;
99 bool m_attachmentNameHasBeenSet = false;
100
102 bool m_statusHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace ConnectParticipant
107} // namespace Aws
void SetAttachmentName(AttachmentNameT &&value)
AttachmentItem & WithAttachmentName(AttachmentNameT &&value)
AttachmentItem & WithAttachmentId(AttachmentIdT &&value)
AWS_CONNECTPARTICIPANT_API AttachmentItem()=default
AWS_CONNECTPARTICIPANT_API AttachmentItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const
AttachmentItem & WithContentType(ContentTypeT &&value)
AttachmentItem & WithStatus(ArtifactStatus value)
AWS_CONNECTPARTICIPANT_API AttachmentItem(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAttachmentName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue