AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListPartsResult.h
1
6#pragma once
7#include <aws/glacier/Glacier_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glacier/model/PartListElement.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Glacier
26{
27namespace Model
28{
36 {
37 public:
38 AWS_GLACIER_API ListPartsResult() = default;
41
42
44
47 inline const Aws::String& GetMultipartUploadId() const { return m_multipartUploadId; }
48 template<typename MultipartUploadIdT = Aws::String>
49 void SetMultipartUploadId(MultipartUploadIdT&& value) { m_multipartUploadIdHasBeenSet = true; m_multipartUploadId = std::forward<MultipartUploadIdT>(value); }
50 template<typename MultipartUploadIdT = Aws::String>
51 ListPartsResult& WithMultipartUploadId(MultipartUploadIdT&& value) { SetMultipartUploadId(std::forward<MultipartUploadIdT>(value)); return *this;}
53
55
59 inline const Aws::String& GetVaultARN() const { return m_vaultARN; }
60 template<typename VaultARNT = Aws::String>
61 void SetVaultARN(VaultARNT&& value) { m_vaultARNHasBeenSet = true; m_vaultARN = std::forward<VaultARNT>(value); }
62 template<typename VaultARNT = Aws::String>
63 ListPartsResult& WithVaultARN(VaultARNT&& value) { SetVaultARN(std::forward<VaultARNT>(value)); return *this;}
65
67
71 inline const Aws::String& GetArchiveDescription() const { return m_archiveDescription; }
72 template<typename ArchiveDescriptionT = Aws::String>
73 void SetArchiveDescription(ArchiveDescriptionT&& value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription = std::forward<ArchiveDescriptionT>(value); }
74 template<typename ArchiveDescriptionT = Aws::String>
75 ListPartsResult& WithArchiveDescription(ArchiveDescriptionT&& value) { SetArchiveDescription(std::forward<ArchiveDescriptionT>(value)); return *this;}
77
79
83 inline long long GetPartSizeInBytes() const { return m_partSizeInBytes; }
84 inline void SetPartSizeInBytes(long long value) { m_partSizeInBytesHasBeenSet = true; m_partSizeInBytes = value; }
85 inline ListPartsResult& WithPartSizeInBytes(long long value) { SetPartSizeInBytes(value); return *this;}
87
89
92 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
93 template<typename CreationDateT = Aws::String>
94 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
95 template<typename CreationDateT = Aws::String>
96 ListPartsResult& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
98
100
105 inline const Aws::Vector<PartListElement>& GetParts() const { return m_parts; }
106 template<typename PartsT = Aws::Vector<PartListElement>>
107 void SetParts(PartsT&& value) { m_partsHasBeenSet = true; m_parts = std::forward<PartsT>(value); }
108 template<typename PartsT = Aws::Vector<PartListElement>>
109 ListPartsResult& WithParts(PartsT&& value) { SetParts(std::forward<PartsT>(value)); return *this;}
110 template<typename PartsT = PartListElement>
111 ListPartsResult& AddParts(PartsT&& value) { m_partsHasBeenSet = true; m_parts.emplace_back(std::forward<PartsT>(value)); return *this; }
113
115
120 inline const Aws::String& GetMarker() const { return m_marker; }
121 template<typename MarkerT = Aws::String>
122 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
123 template<typename MarkerT = Aws::String>
124 ListPartsResult& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
126
128
129 inline const Aws::String& GetRequestId() const { return m_requestId; }
130 template<typename RequestIdT = Aws::String>
131 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
132 template<typename RequestIdT = Aws::String>
133 ListPartsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
135 private:
136
137 Aws::String m_multipartUploadId;
138 bool m_multipartUploadIdHasBeenSet = false;
139
140 Aws::String m_vaultARN;
141 bool m_vaultARNHasBeenSet = false;
142
143 Aws::String m_archiveDescription;
144 bool m_archiveDescriptionHasBeenSet = false;
145
146 long long m_partSizeInBytes{0};
147 bool m_partSizeInBytesHasBeenSet = false;
148
149 Aws::String m_creationDate;
150 bool m_creationDateHasBeenSet = false;
151
153 bool m_partsHasBeenSet = false;
154
155 Aws::String m_marker;
156 bool m_markerHasBeenSet = false;
157
158 Aws::String m_requestId;
159 bool m_requestIdHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace Glacier
164} // namespace Aws
ListPartsResult & WithCreationDate(CreationDateT &&value)
const Aws::String & GetCreationDate() const
ListPartsResult & WithVaultARN(VaultARNT &&value)
ListPartsResult & WithParts(PartsT &&value)
const Aws::String & GetArchiveDescription() const
const Aws::String & GetVaultARN() const
AWS_GLACIER_API ListPartsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetArchiveDescription(ArchiveDescriptionT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetMultipartUploadId() const
AWS_GLACIER_API ListPartsResult()=default
void SetPartSizeInBytes(long long value)
ListPartsResult & WithMultipartUploadId(MultipartUploadIdT &&value)
ListPartsResult & WithArchiveDescription(ArchiveDescriptionT &&value)
ListPartsResult & WithRequestId(RequestIdT &&value)
ListPartsResult & WithPartSizeInBytes(long long value)
const Aws::Vector< PartListElement > & GetParts() const
AWS_GLACIER_API ListPartsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListPartsResult & AddParts(PartsT &&value)
ListPartsResult & WithMarker(MarkerT &&value)
void SetVaultARN(VaultARNT &&value)
void SetCreationDate(CreationDateT &&value)
void SetMultipartUploadId(MultipartUploadIdT &&value)
const Aws::String & GetMarker() const
void SetRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue