AWS SDK for C++

AWS SDK for C++ Version 1.11.838

Loading...
Searching...
No Matches
PutAttachmentRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/GlueRequest.h>
10#include <aws/glue/Glue_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Glue {
16namespace Model {
17
21 public:
22 AWS_GLUE_API PutAttachmentRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "PutAttachment"; }
29
30 AWS_GLUE_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetAssetIdentifier() const { return m_assetIdentifier; }
39 inline bool AssetIdentifierHasBeenSet() const { return m_assetIdentifierHasBeenSet; }
40 template <typename AssetIdentifierT = Aws::String>
41 void SetAssetIdentifier(AssetIdentifierT&& value) {
42 m_assetIdentifierHasBeenSet = true;
43 m_assetIdentifier = std::forward<AssetIdentifierT>(value);
44 }
45 template <typename AssetIdentifierT = Aws::String>
46 PutAttachmentRequest& WithAssetIdentifier(AssetIdentifierT&& value) {
47 SetAssetIdentifier(std::forward<AssetIdentifierT>(value));
48 return *this;
49 }
51
53
58 inline const Aws::String& GetIterableFormName() const { return m_iterableFormName; }
59 inline bool IterableFormNameHasBeenSet() const { return m_iterableFormNameHasBeenSet; }
60 template <typename IterableFormNameT = Aws::String>
61 void SetIterableFormName(IterableFormNameT&& value) {
62 m_iterableFormNameHasBeenSet = true;
63 m_iterableFormName = std::forward<IterableFormNameT>(value);
64 }
65 template <typename IterableFormNameT = Aws::String>
66 PutAttachmentRequest& WithIterableFormName(IterableFormNameT&& value) {
67 SetIterableFormName(std::forward<IterableFormNameT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetItemIdentifier() const { return m_itemIdentifier; }
78 inline bool ItemIdentifierHasBeenSet() const { return m_itemIdentifierHasBeenSet; }
79 template <typename ItemIdentifierT = Aws::String>
80 void SetItemIdentifier(ItemIdentifierT&& value) {
81 m_itemIdentifierHasBeenSet = true;
82 m_itemIdentifier = std::forward<ItemIdentifierT>(value);
83 }
84 template <typename ItemIdentifierT = Aws::String>
85 PutAttachmentRequest& WithItemIdentifier(ItemIdentifierT&& value) {
86 SetItemIdentifier(std::forward<ItemIdentifierT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetAttachmentName() const { return m_attachmentName; }
96 inline bool AttachmentNameHasBeenSet() const { return m_attachmentNameHasBeenSet; }
97 template <typename AttachmentNameT = Aws::String>
98 void SetAttachmentName(AttachmentNameT&& value) {
99 m_attachmentNameHasBeenSet = true;
100 m_attachmentName = std::forward<AttachmentNameT>(value);
101 }
102 template <typename AttachmentNameT = Aws::String>
103 PutAttachmentRequest& WithAttachmentName(AttachmentNameT&& value) {
104 SetAttachmentName(std::forward<AttachmentNameT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetContent() const { return m_content; }
115 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
116 template <typename ContentT = Aws::String>
117 void SetContent(ContentT&& value) {
118 m_contentHasBeenSet = true;
119 m_content = std::forward<ContentT>(value);
120 }
121 template <typename ContentT = Aws::String>
123 SetContent(std::forward<ContentT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetFormTypeId() const { return m_formTypeId; }
133 inline bool FormTypeIdHasBeenSet() const { return m_formTypeIdHasBeenSet; }
134 template <typename FormTypeIdT = Aws::String>
135 void SetFormTypeId(FormTypeIdT&& value) {
136 m_formTypeIdHasBeenSet = true;
137 m_formTypeId = std::forward<FormTypeIdT>(value);
138 }
139 template <typename FormTypeIdT = Aws::String>
140 PutAttachmentRequest& WithFormTypeId(FormTypeIdT&& value) {
141 SetFormTypeId(std::forward<FormTypeIdT>(value));
142 return *this;
143 }
145
147
151 inline const Aws::String& GetClientToken() const { return m_clientToken; }
152 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
153 template <typename ClientTokenT = Aws::String>
154 void SetClientToken(ClientTokenT&& value) {
155 m_clientTokenHasBeenSet = true;
156 m_clientToken = std::forward<ClientTokenT>(value);
157 }
158 template <typename ClientTokenT = Aws::String>
159 PutAttachmentRequest& WithClientToken(ClientTokenT&& value) {
160 SetClientToken(std::forward<ClientTokenT>(value));
161 return *this;
162 }
164 private:
165 Aws::String m_assetIdentifier;
166
167 Aws::String m_iterableFormName;
168
169 Aws::String m_itemIdentifier;
170
171 Aws::String m_attachmentName;
172
173 Aws::String m_content;
174
175 Aws::String m_formTypeId;
176
178 bool m_assetIdentifierHasBeenSet = false;
179 bool m_iterableFormNameHasBeenSet = false;
180 bool m_itemIdentifierHasBeenSet = false;
181 bool m_attachmentNameHasBeenSet = false;
182 bool m_contentHasBeenSet = false;
183 bool m_formTypeIdHasBeenSet = false;
184 bool m_clientTokenHasBeenSet = true;
185};
186
187} // namespace Model
188} // namespace Glue
189} // namespace Aws
PutAttachmentRequest & WithClientToken(ClientTokenT &&value)
const Aws::String & GetIterableFormName() const
PutAttachmentRequest & WithFormTypeId(FormTypeIdT &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutAttachmentRequest & WithContent(ContentT &&value)
PutAttachmentRequest & WithIterableFormName(IterableFormNameT &&value)
const Aws::String & GetAttachmentName() const
virtual const char * GetServiceRequestName() const override
PutAttachmentRequest & WithItemIdentifier(ItemIdentifierT &&value)
void SetIterableFormName(IterableFormNameT &&value)
const Aws::String & GetItemIdentifier() const
AWS_GLUE_API PutAttachmentRequest()=default
void SetAssetIdentifier(AssetIdentifierT &&value)
void SetItemIdentifier(ItemIdentifierT &&value)
const Aws::String & GetAssetIdentifier() const
void SetAttachmentName(AttachmentNameT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
PutAttachmentRequest & WithAssetIdentifier(AssetIdentifierT &&value)
PutAttachmentRequest & WithAttachmentName(AttachmentNameT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String