AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Attachment.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sesv2/SESV2_EXPORTS.h>
10#include <aws/sesv2/model/AttachmentContentDisposition.h>
11#include <aws/sesv2/model/AttachmentContentTransferEncoding.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SESV2 {
23namespace Model {
24
31 public:
32 AWS_SESV2_API Attachment() = default;
33 AWS_SESV2_API Attachment(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline const Aws::Utils::ByteBuffer& GetRawContent() const { return m_rawContent; }
45 inline bool RawContentHasBeenSet() const { return m_rawContentHasBeenSet; }
46 template <typename RawContentT = Aws::Utils::ByteBuffer>
47 void SetRawContent(RawContentT&& value) {
48 m_rawContentHasBeenSet = true;
49 m_rawContent = std::forward<RawContentT>(value);
50 }
51 template <typename RawContentT = Aws::Utils::ByteBuffer>
52 Attachment& WithRawContent(RawContentT&& value) {
53 SetRawContent(std::forward<RawContentT>(value));
54 return *this;
55 }
57
59
63 inline AttachmentContentDisposition GetContentDisposition() const { return m_contentDisposition; }
64 inline bool ContentDispositionHasBeenSet() const { return m_contentDispositionHasBeenSet; }
66 m_contentDispositionHasBeenSet = true;
67 m_contentDisposition = value;
68 }
74
76
82 inline const Aws::String& GetFileName() const { return m_fileName; }
83 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
84 template <typename FileNameT = Aws::String>
85 void SetFileName(FileNameT&& value) {
86 m_fileNameHasBeenSet = true;
87 m_fileName = std::forward<FileNameT>(value);
88 }
89 template <typename FileNameT = Aws::String>
90 Attachment& WithFileName(FileNameT&& value) {
91 SetFileName(std::forward<FileNameT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetContentDescription() const { return m_contentDescription; }
101 inline bool ContentDescriptionHasBeenSet() const { return m_contentDescriptionHasBeenSet; }
102 template <typename ContentDescriptionT = Aws::String>
103 void SetContentDescription(ContentDescriptionT&& value) {
104 m_contentDescriptionHasBeenSet = true;
105 m_contentDescription = std::forward<ContentDescriptionT>(value);
106 }
107 template <typename ContentDescriptionT = Aws::String>
108 Attachment& WithContentDescription(ContentDescriptionT&& value) {
109 SetContentDescription(std::forward<ContentDescriptionT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetContentId() const { return m_contentId; }
120 inline bool ContentIdHasBeenSet() const { return m_contentIdHasBeenSet; }
121 template <typename ContentIdT = Aws::String>
122 void SetContentId(ContentIdT&& value) {
123 m_contentIdHasBeenSet = true;
124 m_contentId = std::forward<ContentIdT>(value);
125 }
126 template <typename ContentIdT = Aws::String>
127 Attachment& WithContentId(ContentIdT&& value) {
128 SetContentId(std::forward<ContentIdT>(value));
129 return *this;
130 }
132
134
138 inline AttachmentContentTransferEncoding GetContentTransferEncoding() const { return m_contentTransferEncoding; }
139 inline bool ContentTransferEncodingHasBeenSet() const { return m_contentTransferEncodingHasBeenSet; }
141 m_contentTransferEncodingHasBeenSet = true;
142 m_contentTransferEncoding = value;
143 }
149
151
155 inline const Aws::String& GetContentType() const { return m_contentType; }
156 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
157 template <typename ContentTypeT = Aws::String>
158 void SetContentType(ContentTypeT&& value) {
159 m_contentTypeHasBeenSet = true;
160 m_contentType = std::forward<ContentTypeT>(value);
161 }
162 template <typename ContentTypeT = Aws::String>
163 Attachment& WithContentType(ContentTypeT&& value) {
164 SetContentType(std::forward<ContentTypeT>(value));
165 return *this;
166 }
168 private:
169 Aws::Utils::ByteBuffer m_rawContent{};
170
172
173 Aws::String m_fileName;
174
175 Aws::String m_contentDescription;
176
177 Aws::String m_contentId;
178
180
181 Aws::String m_contentType;
182 bool m_rawContentHasBeenSet = false;
183 bool m_contentDispositionHasBeenSet = false;
184 bool m_fileNameHasBeenSet = false;
185 bool m_contentDescriptionHasBeenSet = false;
186 bool m_contentIdHasBeenSet = false;
187 bool m_contentTransferEncodingHasBeenSet = false;
188 bool m_contentTypeHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace SESV2
193} // namespace Aws
void SetContentDisposition(AttachmentContentDisposition value)
Definition Attachment.h:65
Attachment & WithContentTransferEncoding(AttachmentContentTransferEncoding value)
Definition Attachment.h:144
void SetRawContent(RawContentT &&value)
Definition Attachment.h:47
const Aws::String & GetContentDescription() const
Definition Attachment.h:100
AWS_SESV2_API Attachment()=default
void SetContentId(ContentIdT &&value)
Definition Attachment.h:122
const Aws::String & GetFileName() const
Definition Attachment.h:82
AttachmentContentDisposition GetContentDisposition() const
Definition Attachment.h:63
bool ContentTransferEncodingHasBeenSet() const
Definition Attachment.h:139
const Aws::String & GetContentId() const
Definition Attachment.h:119
bool ContentDescriptionHasBeenSet() const
Definition Attachment.h:101
void SetFileName(FileNameT &&value)
Definition Attachment.h:85
const Aws::Utils::ByteBuffer & GetRawContent() const
Definition Attachment.h:44
bool RawContentHasBeenSet() const
Definition Attachment.h:45
AWS_SESV2_API Attachment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContentTransferEncoding(AttachmentContentTransferEncoding value)
Definition Attachment.h:140
const Aws::String & GetContentType() const
Definition Attachment.h:155
Attachment & WithContentDescription(ContentDescriptionT &&value)
Definition Attachment.h:108
Attachment & WithContentDisposition(AttachmentContentDisposition value)
Definition Attachment.h:69
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
Attachment & WithRawContent(RawContentT &&value)
Definition Attachment.h:52
AttachmentContentTransferEncoding GetContentTransferEncoding() const
Definition Attachment.h:138
Attachment & WithContentType(ContentTypeT &&value)
Definition Attachment.h:163
Attachment & WithFileName(FileNameT &&value)
Definition Attachment.h:90
Attachment & WithContentId(ContentIdT &&value)
Definition Attachment.h:127
bool ContentDispositionHasBeenSet() const
Definition Attachment.h:64
void SetContentType(ContentTypeT &&value)
Definition Attachment.h:158
void SetContentDescription(ContentDescriptionT &&value)
Definition Attachment.h:103
AWS_SESV2_API Attachment(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue