AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CompletedMultipartUpload.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/s3/model/CompletedPart.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_S3_API CompletedMultipartUpload() = default;
38
39 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
48 inline const Aws::Vector<CompletedPart>& GetParts() const { return m_parts; }
49 inline bool PartsHasBeenSet() const { return m_partsHasBeenSet; }
50 template<typename PartsT = Aws::Vector<CompletedPart>>
51 void SetParts(PartsT&& value) { m_partsHasBeenSet = true; m_parts = std::forward<PartsT>(value); }
52 template<typename PartsT = Aws::Vector<CompletedPart>>
53 CompletedMultipartUpload& WithParts(PartsT&& value) { SetParts(std::forward<PartsT>(value)); return *this;}
54 template<typename PartsT = CompletedPart>
55 CompletedMultipartUpload& AddParts(PartsT&& value) { m_partsHasBeenSet = true; m_parts.emplace_back(std::forward<PartsT>(value)); return *this; }
57 private:
58
60 bool m_partsHasBeenSet = false;
61 };
62
63} // namespace Model
64} // namespace S3
65} // namespace Aws
AWS_S3_API CompletedMultipartUpload()=default
CompletedMultipartUpload & AddParts(PartsT &&value)
const Aws::Vector< CompletedPart > & GetParts() const
AWS_S3_API CompletedMultipartUpload & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CompletedMultipartUpload & WithParts(PartsT &&value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3_API CompletedMultipartUpload(const Aws::Utils::Xml::XmlNode &xmlNode)
std::vector< T, Aws::Allocator< T > > Vector