AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
StartAttachmentUploadRequest.h
1
6#pragma once
7#include <aws/connectparticipant/ConnectParticipantRequest.h>
8#include <aws/connectparticipant/ConnectParticipant_EXPORTS.h>
9#include <aws/core/utils/UUID.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ConnectParticipant {
16namespace Model {
17
21 public:
22 AWS_CONNECTPARTICIPANT_API StartAttachmentUploadRequest() = 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 "StartAttachmentUpload"; }
29
30 AWS_CONNECTPARTICIPANT_API Aws::String SerializePayload() const override;
31
32 AWS_CONNECTPARTICIPANT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
41 inline const Aws::String& GetContentType() const { return m_contentType; }
42 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
43 template <typename ContentTypeT = Aws::String>
44 void SetContentType(ContentTypeT&& value) {
45 m_contentTypeHasBeenSet = true;
46 m_contentType = std::forward<ContentTypeT>(value);
47 }
48 template <typename ContentTypeT = Aws::String>
50 SetContentType(std::forward<ContentTypeT>(value));
51 return *this;
52 }
54
56
59 inline long long GetAttachmentSizeInBytes() const { return m_attachmentSizeInBytes; }
60 inline bool AttachmentSizeInBytesHasBeenSet() const { return m_attachmentSizeInBytesHasBeenSet; }
61 inline void SetAttachmentSizeInBytes(long long value) {
62 m_attachmentSizeInBytesHasBeenSet = true;
63 m_attachmentSizeInBytes = value;
64 }
67 return *this;
68 }
70
72
75 inline const Aws::String& GetAttachmentName() const { return m_attachmentName; }
76 inline bool AttachmentNameHasBeenSet() const { return m_attachmentNameHasBeenSet; }
77 template <typename AttachmentNameT = Aws::String>
78 void SetAttachmentName(AttachmentNameT&& value) {
79 m_attachmentNameHasBeenSet = true;
80 m_attachmentName = std::forward<AttachmentNameT>(value);
81 }
82 template <typename AttachmentNameT = Aws::String>
84 SetAttachmentName(std::forward<AttachmentNameT>(value));
85 return *this;
86 }
88
90
97 inline const Aws::String& GetClientToken() const { return m_clientToken; }
98 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
99 template <typename ClientTokenT = Aws::String>
100 void SetClientToken(ClientTokenT&& value) {
101 m_clientTokenHasBeenSet = true;
102 m_clientToken = std::forward<ClientTokenT>(value);
103 }
104 template <typename ClientTokenT = Aws::String>
106 SetClientToken(std::forward<ClientTokenT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetConnectionToken() const { return m_connectionToken; }
116 inline bool ConnectionTokenHasBeenSet() const { return m_connectionTokenHasBeenSet; }
117 template <typename ConnectionTokenT = Aws::String>
118 void SetConnectionToken(ConnectionTokenT&& value) {
119 m_connectionTokenHasBeenSet = true;
120 m_connectionToken = std::forward<ConnectionTokenT>(value);
121 }
122 template <typename ConnectionTokenT = Aws::String>
124 SetConnectionToken(std::forward<ConnectionTokenT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_contentType;
130
131 long long m_attachmentSizeInBytes{0};
132
133 Aws::String m_attachmentName;
134
136
137 Aws::String m_connectionToken;
138 bool m_contentTypeHasBeenSet = false;
139 bool m_attachmentSizeInBytesHasBeenSet = false;
140 bool m_attachmentNameHasBeenSet = false;
141 bool m_clientTokenHasBeenSet = true;
142 bool m_connectionTokenHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace ConnectParticipant
147} // namespace Aws
StartAttachmentUploadRequest & WithAttachmentName(AttachmentNameT &&value)
StartAttachmentUploadRequest & WithAttachmentSizeInBytes(long long value)
AWS_CONNECTPARTICIPANT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartAttachmentUploadRequest & WithContentType(ContentTypeT &&value)
AWS_CONNECTPARTICIPANT_API StartAttachmentUploadRequest()=default
StartAttachmentUploadRequest & WithClientToken(ClientTokenT &&value)
AWS_CONNECTPARTICIPANT_API Aws::String SerializePayload() const override
StartAttachmentUploadRequest & WithConnectionToken(ConnectionTokenT &&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