AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/support/Support_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Support {
21namespace Model {
22
32 public:
33 AWS_SUPPORT_API Attachment() = default;
34 AWS_SUPPORT_API Attachment(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SUPPORT_API Attachment& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetFileName() const { return m_fileName; }
43 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
44 template <typename FileNameT = Aws::String>
45 void SetFileName(FileNameT&& value) {
46 m_fileNameHasBeenSet = true;
47 m_fileName = std::forward<FileNameT>(value);
48 }
49 template <typename FileNameT = Aws::String>
50 Attachment& WithFileName(FileNameT&& value) {
51 SetFileName(std::forward<FileNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Utils::ByteBuffer& GetData() const { return m_data; }
61 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
62 template <typename DataT = Aws::Utils::ByteBuffer>
63 void SetData(DataT&& value) {
64 m_dataHasBeenSet = true;
65 m_data = std::forward<DataT>(value);
66 }
67 template <typename DataT = Aws::Utils::ByteBuffer>
68 Attachment& WithData(DataT&& value) {
69 SetData(std::forward<DataT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_fileName;
75
77 bool m_fileNameHasBeenSet = false;
78 bool m_dataHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Support
83} // namespace Aws
AWS_SUPPORT_API Attachment(Aws::Utils::Json::JsonView jsonValue)
void SetData(DataT &&value)
Definition Attachment.h:63
AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const
Attachment & WithData(DataT &&value)
Definition Attachment.h:68
Attachment & WithFileName(FileNameT &&value)
Definition Attachment.h:50
const Aws::String & GetFileName() const
Definition Attachment.h:42
AWS_SUPPORT_API Attachment()=default
void SetFileName(FileNameT &&value)
Definition Attachment.h:45
AWS_SUPPORT_API Attachment & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::ByteBuffer & GetData() const
Definition Attachment.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue