AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
AttachmentInput.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/QBusiness_EXPORTS.h>
10#include <aws/qbusiness/model/CopyFromSource.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QBusiness {
22namespace Model {
23
32 public:
33 AWS_QBUSINESS_API AttachmentInput() = default;
34 AWS_QBUSINESS_API AttachmentInput(Aws::Utils::Json::JsonView jsonValue);
36 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Utils::ByteBuffer& GetData() const { return m_data; }
43 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
44 template <typename DataT = Aws::Utils::ByteBuffer>
45 void SetData(DataT&& value) {
46 m_dataHasBeenSet = true;
47 m_data = std::forward<DataT>(value);
48 }
49 template <typename DataT = Aws::Utils::ByteBuffer>
50 AttachmentInput& WithData(DataT&& value) {
51 SetData(std::forward<DataT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
68 AttachmentInput& WithName(NameT&& value) {
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline const CopyFromSource& GetCopyFrom() const { return m_copyFrom; }
79 inline bool CopyFromHasBeenSet() const { return m_copyFromHasBeenSet; }
80 template <typename CopyFromT = CopyFromSource>
81 void SetCopyFrom(CopyFromT&& value) {
82 m_copyFromHasBeenSet = true;
83 m_copyFrom = std::forward<CopyFromT>(value);
84 }
85 template <typename CopyFromT = CopyFromSource>
86 AttachmentInput& WithCopyFrom(CopyFromT&& value) {
87 SetCopyFrom(std::forward<CopyFromT>(value));
88 return *this;
89 }
91 private:
93
94 Aws::String m_name;
95
96 CopyFromSource m_copyFrom;
97 bool m_dataHasBeenSet = false;
98 bool m_nameHasBeenSet = false;
99 bool m_copyFromHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace QBusiness
104} // namespace Aws
AttachmentInput & WithName(NameT &&value)
AWS_QBUSINESS_API AttachmentInput()=default
const CopyFromSource & GetCopyFrom() const
AWS_QBUSINESS_API AttachmentInput(Aws::Utils::Json::JsonView jsonValue)
AttachmentInput & WithCopyFrom(CopyFromT &&value)
AttachmentInput & WithData(DataT &&value)
const Aws::String & GetName() const
AWS_QBUSINESS_API AttachmentInput & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::ByteBuffer & GetData() const
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue