AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Attachment.h
1
6#pragma once
7#include <aws/support/Support_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/Array.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 Support
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_SUPPORT_API Attachment() = default;
39 AWS_SUPPORT_API Attachment(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SUPPORT_API Attachment& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetFileName() const { return m_fileName; }
49 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
50 template<typename FileNameT = Aws::String>
51 void SetFileName(FileNameT&& value) { m_fileNameHasBeenSet = true; m_fileName = std::forward<FileNameT>(value); }
52 template<typename FileNameT = Aws::String>
53 Attachment& WithFileName(FileNameT&& value) { SetFileName(std::forward<FileNameT>(value)); return *this;}
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) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
64 template<typename DataT = Aws::Utils::ByteBuffer>
65 Attachment& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
67 private:
68
69 Aws::String m_fileName;
70 bool m_fileNameHasBeenSet = false;
71
73 bool m_dataHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Support
78} // 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:65
Attachment & WithFileName(FileNameT &&value)
Definition Attachment.h:53
const Aws::String & GetFileName() const
Definition Attachment.h:48
AWS_SUPPORT_API Attachment()=default
void SetFileName(FileNameT &&value)
Definition Attachment.h:51
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