AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
52 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
53 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
54 inline AttachmentItem& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
55 inline AttachmentItem& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
56 inline AttachmentItem& WithContentType(const char* value) { SetContentType(value); return *this;}
58
60
63 inline const Aws::String& GetAttachmentId() const{ return m_attachmentId; }
64 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
65 inline void SetAttachmentId(const Aws::String& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = value; }
66 inline void SetAttachmentId(Aws::String&& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = std::move(value); }
67 inline void SetAttachmentId(const char* value) { m_attachmentIdHasBeenSet = true; m_attachmentId.assign(value); }
68 inline AttachmentItem& WithAttachmentId(const Aws::String& value) { SetAttachmentId(value); return *this;}
69 inline AttachmentItem& WithAttachmentId(Aws::String&& value) { SetAttachmentId(std::move(value)); return *this;}
70 inline AttachmentItem& WithAttachmentId(const char* value) { SetAttachmentId(value); return *this;}
72
74
77 inline const Aws::String& GetAttachmentName() const{ return m_attachmentName; }
78 inline bool AttachmentNameHasBeenSet() const { return m_attachmentNameHasBeenSet; }
79 inline void SetAttachmentName(const Aws::String& value) { m_attachmentNameHasBeenSet = true; m_attachmentName = value; }
80 inline void SetAttachmentName(Aws::String&& value) { m_attachmentNameHasBeenSet = true; m_attachmentName = std::move(value); }
81 inline void SetAttachmentName(const char* value) { m_attachmentNameHasBeenSet = true; m_attachmentName.assign(value); }
82 inline AttachmentItem& WithAttachmentName(const Aws::String& value) { SetAttachmentName(value); return *this;}
83 inline AttachmentItem& WithAttachmentName(Aws::String&& value) { SetAttachmentName(std::move(value)); return *this;}
84 inline AttachmentItem& WithAttachmentName(const char* value) { SetAttachmentName(value); return *this;}
86
88
91 inline const ArtifactStatus& GetStatus() const{ return m_status; }
92 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
93 inline void SetStatus(const ArtifactStatus& value) { m_statusHasBeenSet = true; m_status = value; }
94 inline void SetStatus(ArtifactStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
95 inline AttachmentItem& WithStatus(const ArtifactStatus& value) { SetStatus(value); return *this;}
96 inline AttachmentItem& WithStatus(ArtifactStatus&& value) { SetStatus(std::move(value)); return *this;}
98 private:
99
100 Aws::String m_contentType;
101 bool m_contentTypeHasBeenSet = false;
102
103 Aws::String m_attachmentId;
104 bool m_attachmentIdHasBeenSet = false;
105
106 Aws::String m_attachmentName;
107 bool m_attachmentNameHasBeenSet = false;
108
109 ArtifactStatus m_status;
110 bool m_statusHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace ConnectParticipant
115} // namespace Aws
AttachmentItem & WithContentType(Aws::String &&value)
void SetAttachmentName(const Aws::String &value)
AttachmentItem & WithAttachmentId(const char *value)
AttachmentItem & WithAttachmentId(Aws::String &&value)
AttachmentItem & WithAttachmentName(const Aws::String &value)
AttachmentItem & WithContentType(const Aws::String &value)
void SetAttachmentId(const Aws::String &value)
AttachmentItem & WithStatus(ArtifactStatus &&value)
AttachmentItem & WithAttachmentName(const char *value)
void SetStatus(const ArtifactStatus &value)
AWS_CONNECTPARTICIPANT_API AttachmentItem()
const ArtifactStatus & GetStatus() const
AttachmentItem & WithContentType(const char *value)
AttachmentItem & WithStatus(const ArtifactStatus &value)
AttachmentItem & WithAttachmentId(const Aws::String &value)
AttachmentItem & WithAttachmentName(Aws::String &&value)
AWS_CONNECTPARTICIPANT_API AttachmentItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContentType(const Aws::String &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