AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AttachmentInput.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qbusiness/model/CopyFromSource.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QBusiness
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_QBUSINESS_API AttachmentInput() = default;
39 AWS_QBUSINESS_API AttachmentInput(Aws::Utils::Json::JsonView jsonValue);
41 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Utils::ByteBuffer& GetData() const { return m_data; }
49 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
50 template<typename DataT = Aws::Utils::ByteBuffer>
51 void SetData(DataT&& value) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
52 template<typename DataT = Aws::Utils::ByteBuffer>
53 AttachmentInput& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
64 template<typename NameT = Aws::String>
65 AttachmentInput& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
67
69
72 inline const CopyFromSource& GetCopyFrom() const { return m_copyFrom; }
73 inline bool CopyFromHasBeenSet() const { return m_copyFromHasBeenSet; }
74 template<typename CopyFromT = CopyFromSource>
75 void SetCopyFrom(CopyFromT&& value) { m_copyFromHasBeenSet = true; m_copyFrom = std::forward<CopyFromT>(value); }
76 template<typename CopyFromT = CopyFromSource>
77 AttachmentInput& WithCopyFrom(CopyFromT&& value) { SetCopyFrom(std::forward<CopyFromT>(value)); return *this;}
79 private:
80
82 bool m_dataHasBeenSet = false;
83
84 Aws::String m_name;
85 bool m_nameHasBeenSet = false;
86
87 CopyFromSource m_copyFrom;
88 bool m_copyFromHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace QBusiness
93} // 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