AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CompleteAttachmentUploadRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace ConnectParticipant
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CONNECTPARTICIPANT_API CompleteAttachmentUploadRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CompleteAttachmentUpload"; }
33
34 AWS_CONNECTPARTICIPANT_API Aws::String SerializePayload() const override;
35
36 AWS_CONNECTPARTICIPANT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::Vector<Aws::String>& GetAttachmentIds() const { return m_attachmentIds; }
44 inline bool AttachmentIdsHasBeenSet() const { return m_attachmentIdsHasBeenSet; }
45 template<typename AttachmentIdsT = Aws::Vector<Aws::String>>
46 void SetAttachmentIds(AttachmentIdsT&& value) { m_attachmentIdsHasBeenSet = true; m_attachmentIds = std::forward<AttachmentIdsT>(value); }
47 template<typename AttachmentIdsT = Aws::Vector<Aws::String>>
48 CompleteAttachmentUploadRequest& WithAttachmentIds(AttachmentIdsT&& value) { SetAttachmentIds(std::forward<AttachmentIdsT>(value)); return *this;}
49 template<typename AttachmentIdsT = Aws::String>
50 CompleteAttachmentUploadRequest& AddAttachmentIds(AttachmentIdsT&& value) { m_attachmentIdsHasBeenSet = true; m_attachmentIds.emplace_back(std::forward<AttachmentIdsT>(value)); return *this; }
52
54
61 inline const Aws::String& GetClientToken() const { return m_clientToken; }
62 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
63 template<typename ClientTokenT = Aws::String>
64 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
65 template<typename ClientTokenT = Aws::String>
66 CompleteAttachmentUploadRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
68
70
73 inline const Aws::String& GetConnectionToken() const { return m_connectionToken; }
74 inline bool ConnectionTokenHasBeenSet() const { return m_connectionTokenHasBeenSet; }
75 template<typename ConnectionTokenT = Aws::String>
76 void SetConnectionToken(ConnectionTokenT&& value) { m_connectionTokenHasBeenSet = true; m_connectionToken = std::forward<ConnectionTokenT>(value); }
77 template<typename ConnectionTokenT = Aws::String>
78 CompleteAttachmentUploadRequest& WithConnectionToken(ConnectionTokenT&& value) { SetConnectionToken(std::forward<ConnectionTokenT>(value)); return *this;}
80 private:
81
82 Aws::Vector<Aws::String> m_attachmentIds;
83 bool m_attachmentIdsHasBeenSet = false;
84
86 bool m_clientTokenHasBeenSet = true;
87
88 Aws::String m_connectionToken;
89 bool m_connectionTokenHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace ConnectParticipant
94} // namespace Aws
AWS_CONNECTPARTICIPANT_API CompleteAttachmentUploadRequest()=default
CompleteAttachmentUploadRequest & AddAttachmentIds(AttachmentIdsT &&value)
CompleteAttachmentUploadRequest & WithAttachmentIds(AttachmentIdsT &&value)
AWS_CONNECTPARTICIPANT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CONNECTPARTICIPANT_API Aws::String SerializePayload() const override
CompleteAttachmentUploadRequest & WithConnectionToken(ConnectionTokenT &&value)
CompleteAttachmentUploadRequest & WithClientToken(ClientTokenT &&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
std::vector< T, Aws::Allocator< T > > Vector