AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
CompletedMultipartUpload.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/s3/S3_EXPORTS.h>
9#include <aws/s3/model/CompletedPart.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace S3 {
20namespace Model {
21
29 public:
30 AWS_S3_API CompletedMultipartUpload() = default;
33
34 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
42 inline const Aws::Vector<CompletedPart>& GetParts() const { return m_parts; }
43 inline bool PartsHasBeenSet() const { return m_partsHasBeenSet; }
44 template <typename PartsT = Aws::Vector<CompletedPart>>
45 void SetParts(PartsT&& value) {
46 m_partsHasBeenSet = true;
47 m_parts = std::forward<PartsT>(value);
48 }
49 template <typename PartsT = Aws::Vector<CompletedPart>>
51 SetParts(std::forward<PartsT>(value));
52 return *this;
53 }
54 template <typename PartsT = CompletedPart>
56 m_partsHasBeenSet = true;
57 m_parts.emplace_back(std::forward<PartsT>(value));
58 return *this;
59 }
61 private:
63 bool m_partsHasBeenSet = false;
64};
65
66} // namespace Model
67} // namespace S3
68} // 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