AWS SDK for C++

AWS SDK for C++ Version 1.11.887

Loading...
Searching...
No Matches
CompleteAttachmentUploadRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/support/SupportRequest.h>
10#include <aws/support/Support_EXPORTS.h>
11#include <aws/support/model/CompletedUpload.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Support {
17namespace Model {
18
22 public:
23 AWS_SUPPORT_API CompleteAttachmentUploadRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CompleteAttachmentUpload"; }
30
31 AWS_SUPPORT_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetUploadId() const { return m_uploadId; }
40 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
41 template <typename UploadIdT = Aws::String>
42 void SetUploadId(UploadIdT&& value) {
43 m_uploadIdHasBeenSet = true;
44 m_uploadId = std::forward<UploadIdT>(value);
45 }
46 template <typename UploadIdT = Aws::String>
48 SetUploadId(std::forward<UploadIdT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::Vector<CompletedUpload>& GetCompletedUploads() const { return m_completedUploads; }
60 inline bool CompletedUploadsHasBeenSet() const { return m_completedUploadsHasBeenSet; }
61 template <typename CompletedUploadsT = Aws::Vector<CompletedUpload>>
62 void SetCompletedUploads(CompletedUploadsT&& value) {
63 m_completedUploadsHasBeenSet = true;
64 m_completedUploads = std::forward<CompletedUploadsT>(value);
65 }
66 template <typename CompletedUploadsT = Aws::Vector<CompletedUpload>>
68 SetCompletedUploads(std::forward<CompletedUploadsT>(value));
69 return *this;
70 }
71 template <typename CompletedUploadsT = CompletedUpload>
73 m_completedUploadsHasBeenSet = true;
74 m_completedUploads.emplace_back(std::forward<CompletedUploadsT>(value));
75 return *this;
76 }
78
80
87 inline bool GetDryRun() const { return m_dryRun; }
88 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
89 inline void SetDryRun(bool value) {
90 m_dryRunHasBeenSet = true;
91 m_dryRun = value;
92 }
94 SetDryRun(value);
95 return *this;
96 }
98 private:
99 Aws::String m_uploadId;
100
101 Aws::Vector<CompletedUpload> m_completedUploads;
102
103 bool m_dryRun{false};
104 bool m_uploadIdHasBeenSet = false;
105 bool m_completedUploadsHasBeenSet = false;
106 bool m_dryRunHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace Support
111} // namespace Aws
CompleteAttachmentUploadRequest & WithCompletedUploads(CompletedUploadsT &&value)
CompleteAttachmentUploadRequest & AddCompletedUploads(CompletedUploadsT &&value)
CompleteAttachmentUploadRequest & WithUploadId(UploadIdT &&value)
AWS_SUPPORT_API CompleteAttachmentUploadRequest()=default
CompleteAttachmentUploadRequest & WithDryRun(bool value)
AWS_SUPPORT_API Aws::String SerializePayload() const override
const Aws::Vector< CompletedUpload > & GetCompletedUploads() const
AWS_SUPPORT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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