AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartAttachmentUploadRequest.h
1
6#pragma once
7#include <aws/connectparticipant/ConnectParticipant_EXPORTS.h>
8#include <aws/connectparticipant/ConnectParticipantRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace ConnectParticipant
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CONNECTPARTICIPANT_API StartAttachmentUploadRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "StartAttachmentUpload"; }
32
33 AWS_CONNECTPARTICIPANT_API Aws::String SerializePayload() const override;
34
35 AWS_CONNECTPARTICIPANT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
45 inline const Aws::String& GetContentType() const { return m_contentType; }
46 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
47 template<typename ContentTypeT = Aws::String>
48 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
49 template<typename ContentTypeT = Aws::String>
50 StartAttachmentUploadRequest& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
52
54
57 inline long long GetAttachmentSizeInBytes() const { return m_attachmentSizeInBytes; }
58 inline bool AttachmentSizeInBytesHasBeenSet() const { return m_attachmentSizeInBytesHasBeenSet; }
59 inline void SetAttachmentSizeInBytes(long long value) { m_attachmentSizeInBytesHasBeenSet = true; m_attachmentSizeInBytes = value; }
62
64
67 inline const Aws::String& GetAttachmentName() const { return m_attachmentName; }
68 inline bool AttachmentNameHasBeenSet() const { return m_attachmentNameHasBeenSet; }
69 template<typename AttachmentNameT = Aws::String>
70 void SetAttachmentName(AttachmentNameT&& value) { m_attachmentNameHasBeenSet = true; m_attachmentName = std::forward<AttachmentNameT>(value); }
71 template<typename AttachmentNameT = Aws::String>
72 StartAttachmentUploadRequest& WithAttachmentName(AttachmentNameT&& value) { SetAttachmentName(std::forward<AttachmentNameT>(value)); return *this;}
74
76
83 inline const Aws::String& GetClientToken() const { return m_clientToken; }
84 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
85 template<typename ClientTokenT = Aws::String>
86 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
87 template<typename ClientTokenT = Aws::String>
88 StartAttachmentUploadRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
90
92
95 inline const Aws::String& GetConnectionToken() const { return m_connectionToken; }
96 inline bool ConnectionTokenHasBeenSet() const { return m_connectionTokenHasBeenSet; }
97 template<typename ConnectionTokenT = Aws::String>
98 void SetConnectionToken(ConnectionTokenT&& value) { m_connectionTokenHasBeenSet = true; m_connectionToken = std::forward<ConnectionTokenT>(value); }
99 template<typename ConnectionTokenT = Aws::String>
100 StartAttachmentUploadRequest& WithConnectionToken(ConnectionTokenT&& value) { SetConnectionToken(std::forward<ConnectionTokenT>(value)); return *this;}
102 private:
103
104 Aws::String m_contentType;
105 bool m_contentTypeHasBeenSet = false;
106
107 long long m_attachmentSizeInBytes{0};
108 bool m_attachmentSizeInBytesHasBeenSet = false;
109
110 Aws::String m_attachmentName;
111 bool m_attachmentNameHasBeenSet = false;
112
114 bool m_clientTokenHasBeenSet = true;
115
116 Aws::String m_connectionToken;
117 bool m_connectionTokenHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace ConnectParticipant
122} // 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