AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MultipartUpload.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/s3/model/StorageClass.h>
11#include <aws/s3/model/Owner.h>
12#include <aws/s3/model/Initiator.h>
13#include <aws/s3/model/ChecksumAlgorithm.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace S3
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_S3_API MultipartUpload();
40 AWS_S3_API MultipartUpload(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
44
45
47
50 inline const Aws::String& GetUploadId() const{ return m_uploadId; }
51 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
52 inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
53 inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
54 inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
55 inline MultipartUpload& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
56 inline MultipartUpload& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
57 inline MultipartUpload& WithUploadId(const char* value) { SetUploadId(value); return *this;}
59
61
64 inline const Aws::String& GetKey() const{ return m_key; }
65 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
66 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
67 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
68 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
69 inline MultipartUpload& WithKey(const Aws::String& value) { SetKey(value); return *this;}
70 inline MultipartUpload& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
71 inline MultipartUpload& WithKey(const char* value) { SetKey(value); return *this;}
73
75
78 inline const Aws::Utils::DateTime& GetInitiated() const{ return m_initiated; }
79 inline bool InitiatedHasBeenSet() const { return m_initiatedHasBeenSet; }
80 inline void SetInitiated(const Aws::Utils::DateTime& value) { m_initiatedHasBeenSet = true; m_initiated = value; }
81 inline void SetInitiated(Aws::Utils::DateTime&& value) { m_initiatedHasBeenSet = true; m_initiated = std::move(value); }
82 inline MultipartUpload& WithInitiated(const Aws::Utils::DateTime& value) { SetInitiated(value); return *this;}
83 inline MultipartUpload& WithInitiated(Aws::Utils::DateTime&& value) { SetInitiated(std::move(value)); return *this;}
85
87
92 inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
93 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
94 inline void SetStorageClass(const StorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
95 inline void SetStorageClass(StorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
96 inline MultipartUpload& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
97 inline MultipartUpload& WithStorageClass(StorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
99
101
106 inline const Owner& GetOwner() const{ return m_owner; }
107 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
108 inline void SetOwner(const Owner& value) { m_ownerHasBeenSet = true; m_owner = value; }
109 inline void SetOwner(Owner&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
110 inline MultipartUpload& WithOwner(const Owner& value) { SetOwner(value); return *this;}
111 inline MultipartUpload& WithOwner(Owner&& value) { SetOwner(std::move(value)); return *this;}
113
115
118 inline const Initiator& GetInitiator() const{ return m_initiator; }
119 inline bool InitiatorHasBeenSet() const { return m_initiatorHasBeenSet; }
120 inline void SetInitiator(const Initiator& value) { m_initiatorHasBeenSet = true; m_initiator = value; }
121 inline void SetInitiator(Initiator&& value) { m_initiatorHasBeenSet = true; m_initiator = std::move(value); }
122 inline MultipartUpload& WithInitiator(const Initiator& value) { SetInitiator(value); return *this;}
123 inline MultipartUpload& WithInitiator(Initiator&& value) { SetInitiator(std::move(value)); return *this;}
125
127
130 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
131 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
132 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
133 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
135 inline MultipartUpload& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
137 private:
138
139 Aws::String m_uploadId;
140 bool m_uploadIdHasBeenSet = false;
141
142 Aws::String m_key;
143 bool m_keyHasBeenSet = false;
144
145 Aws::Utils::DateTime m_initiated;
146 bool m_initiatedHasBeenSet = false;
147
148 StorageClass m_storageClass;
149 bool m_storageClassHasBeenSet = false;
150
151 Owner m_owner;
152 bool m_ownerHasBeenSet = false;
153
154 Initiator m_initiator;
155 bool m_initiatorHasBeenSet = false;
156
157 ChecksumAlgorithm m_checksumAlgorithm;
158 bool m_checksumAlgorithmHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace S3
163} // namespace Aws
void SetOwner(const Owner &value)
void SetKey(Aws::String &&value)
MultipartUpload & WithUploadId(const char *value)
MultipartUpload & WithInitiated(const Aws::Utils::DateTime &value)
MultipartUpload & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
void SetUploadId(const char *value)
MultipartUpload & WithKey(const char *value)
const ChecksumAlgorithm & GetChecksumAlgorithm() const
void SetInitiator(const Initiator &value)
MultipartUpload & WithInitiator(Initiator &&value)
MultipartUpload & WithInitiator(const Initiator &value)
void SetInitiated(Aws::Utils::DateTime &&value)
MultipartUpload & WithInitiated(Aws::Utils::DateTime &&value)
const Aws::String & GetKey() const
MultipartUpload & WithOwner(Owner &&value)
AWS_S3_API MultipartUpload(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetKey(const char *value)
const Aws::String & GetUploadId() const
const Aws::Utils::DateTime & GetInitiated() const
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
MultipartUpload & WithStorageClass(const StorageClass &value)
void SetChecksumAlgorithm(ChecksumAlgorithm &&value)
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
MultipartUpload & WithKey(const Aws::String &value)
void SetStorageClass(const StorageClass &value)
void SetInitiated(const Aws::Utils::DateTime &value)
void SetInitiator(Initiator &&value)
MultipartUpload & WithUploadId(const Aws::String &value)
MultipartUpload & WithOwner(const Owner &value)
AWS_S3_API MultipartUpload & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
MultipartUpload & WithKey(Aws::String &&value)
void SetUploadId(Aws::String &&value)
void SetUploadId(const Aws::String &value)
MultipartUpload & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
MultipartUpload & WithStorageClass(StorageClass &&value)
void SetKey(const Aws::String &value)
MultipartUpload & WithUploadId(Aws::String &&value)
const Initiator & GetInitiator() const
const StorageClass & GetStorageClass() const
void SetStorageClass(StorageClass &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String