AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CompletedMultipartUpload.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.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:
38
40
41
47 inline const Aws::Vector<CompletedPart>& GetParts() const{ return m_parts; }
48
54 inline bool PartsHasBeenSet() const { return m_partsHasBeenSet; }
55
61 inline void SetParts(const Aws::Vector<CompletedPart>& value) { m_partsHasBeenSet = true; m_parts = value; }
62
68 inline void SetParts(Aws::Vector<CompletedPart>&& value) { m_partsHasBeenSet = true; m_parts = std::move(value); }
69
75 inline CompletedMultipartUpload& WithParts(const Aws::Vector<CompletedPart>& value) { SetParts(value); return *this;}
76
82 inline CompletedMultipartUpload& WithParts(Aws::Vector<CompletedPart>&& value) { SetParts(std::move(value)); return *this;}
83
89 inline CompletedMultipartUpload& AddParts(const CompletedPart& value) { m_partsHasBeenSet = true; m_parts.push_back(value); return *this; }
90
96 inline CompletedMultipartUpload& AddParts(CompletedPart&& value) { m_partsHasBeenSet = true; m_parts.push_back(std::move(value)); return *this; }
97
98 private:
99
101 bool m_partsHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace S3
106} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
const Aws::Vector< CompletedPart > & GetParts() const
CompletedMultipartUpload & AddParts(const CompletedPart &value)
CompletedMultipartUpload & AddParts(CompletedPart &&value)
CompletedMultipartUpload & WithParts(const Aws::Vector< CompletedPart > &value)
void SetParts(Aws::Vector< CompletedPart > &&value)
AWS_S3_API CompletedMultipartUpload & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CompletedMultipartUpload & WithParts(Aws::Vector< CompletedPart > &&value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetParts(const Aws::Vector< CompletedPart > &value)
AWS_S3_API CompletedMultipartUpload(const Aws::Utils::Xml::XmlNode &xmlNode)
std::vector< T, Aws::Allocator< T > > Vector