AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
AttachmentItem.h
1
6#pragma once
7#include <aws/connectparticipant/ConnectParticipant_EXPORTS.h>
8#include <aws/connectparticipant/model/ArtifactStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ConnectParticipant {
21namespace Model {
22
30 public:
31 AWS_CONNECTPARTICIPANT_API AttachmentItem() = default;
32 AWS_CONNECTPARTICIPANT_API AttachmentItem(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECTPARTICIPANT_API AttachmentItem& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
43 inline const Aws::String& GetContentType() const { return m_contentType; }
44 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
45 template <typename ContentTypeT = Aws::String>
46 void SetContentType(ContentTypeT&& value) {
47 m_contentTypeHasBeenSet = true;
48 m_contentType = std::forward<ContentTypeT>(value);
49 }
50 template <typename ContentTypeT = Aws::String>
51 AttachmentItem& WithContentType(ContentTypeT&& value) {
52 SetContentType(std::forward<ContentTypeT>(value));
53 return *this;
54 }
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) {
65 m_attachmentIdHasBeenSet = true;
66 m_attachmentId = std::forward<AttachmentIdT>(value);
67 }
68 template <typename AttachmentIdT = Aws::String>
69 AttachmentItem& WithAttachmentId(AttachmentIdT&& value) {
70 SetAttachmentId(std::forward<AttachmentIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetAttachmentName() const { return m_attachmentName; }
80 inline bool AttachmentNameHasBeenSet() const { return m_attachmentNameHasBeenSet; }
81 template <typename AttachmentNameT = Aws::String>
82 void SetAttachmentName(AttachmentNameT&& value) {
83 m_attachmentNameHasBeenSet = true;
84 m_attachmentName = std::forward<AttachmentNameT>(value);
85 }
86 template <typename AttachmentNameT = Aws::String>
87 AttachmentItem& WithAttachmentName(AttachmentNameT&& value) {
88 SetAttachmentName(std::forward<AttachmentNameT>(value));
89 return *this;
90 }
92
94
97 inline ArtifactStatus GetStatus() const { return m_status; }
98 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
99 inline void SetStatus(ArtifactStatus value) {
100 m_statusHasBeenSet = true;
101 m_status = value;
102 }
104 SetStatus(value);
105 return *this;
106 }
108 private:
109 Aws::String m_contentType;
110
111 Aws::String m_attachmentId;
112
113 Aws::String m_attachmentName;
114
116 bool m_contentTypeHasBeenSet = false;
117 bool m_attachmentIdHasBeenSet = false;
118 bool m_attachmentNameHasBeenSet = false;
119 bool m_statusHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace ConnectParticipant
124} // 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