AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
UploadListElement.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glacier/Glacier_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Glacier {
20namespace Model {
21
29 public:
30 AWS_GLACIER_API UploadListElement() = default;
33 AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetMultipartUploadId() const { return m_multipartUploadId; }
40 inline bool MultipartUploadIdHasBeenSet() const { return m_multipartUploadIdHasBeenSet; }
41 template <typename MultipartUploadIdT = Aws::String>
42 void SetMultipartUploadId(MultipartUploadIdT&& value) {
43 m_multipartUploadIdHasBeenSet = true;
44 m_multipartUploadId = std::forward<MultipartUploadIdT>(value);
45 }
46 template <typename MultipartUploadIdT = Aws::String>
47 UploadListElement& WithMultipartUploadId(MultipartUploadIdT&& value) {
48 SetMultipartUploadId(std::forward<MultipartUploadIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetVaultARN() const { return m_vaultARN; }
58 inline bool VaultARNHasBeenSet() const { return m_vaultARNHasBeenSet; }
59 template <typename VaultARNT = Aws::String>
60 void SetVaultARN(VaultARNT&& value) {
61 m_vaultARNHasBeenSet = true;
62 m_vaultARN = std::forward<VaultARNT>(value);
63 }
64 template <typename VaultARNT = Aws::String>
65 UploadListElement& WithVaultARN(VaultARNT&& value) {
66 SetVaultARN(std::forward<VaultARNT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetArchiveDescription() const { return m_archiveDescription; }
77 inline bool ArchiveDescriptionHasBeenSet() const { return m_archiveDescriptionHasBeenSet; }
78 template <typename ArchiveDescriptionT = Aws::String>
79 void SetArchiveDescription(ArchiveDescriptionT&& value) {
80 m_archiveDescriptionHasBeenSet = true;
81 m_archiveDescription = std::forward<ArchiveDescriptionT>(value);
82 }
83 template <typename ArchiveDescriptionT = Aws::String>
84 UploadListElement& WithArchiveDescription(ArchiveDescriptionT&& value) {
85 SetArchiveDescription(std::forward<ArchiveDescriptionT>(value));
86 return *this;
87 }
89
91
96 inline long long GetPartSizeInBytes() const { return m_partSizeInBytes; }
97 inline bool PartSizeInBytesHasBeenSet() const { return m_partSizeInBytesHasBeenSet; }
98 inline void SetPartSizeInBytes(long long value) {
99 m_partSizeInBytesHasBeenSet = true;
100 m_partSizeInBytes = value;
101 }
102 inline UploadListElement& WithPartSizeInBytes(long long value) {
103 SetPartSizeInBytes(value);
104 return *this;
105 }
107
109
112 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
113 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
114 template <typename CreationDateT = Aws::String>
115 void SetCreationDate(CreationDateT&& value) {
116 m_creationDateHasBeenSet = true;
117 m_creationDate = std::forward<CreationDateT>(value);
118 }
119 template <typename CreationDateT = Aws::String>
120 UploadListElement& WithCreationDate(CreationDateT&& value) {
121 SetCreationDate(std::forward<CreationDateT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_multipartUploadId;
127
128 Aws::String m_vaultARN;
129
130 Aws::String m_archiveDescription;
131
132 long long m_partSizeInBytes{0};
133
134 Aws::String m_creationDate;
135 bool m_multipartUploadIdHasBeenSet = false;
136 bool m_vaultARNHasBeenSet = false;
137 bool m_archiveDescriptionHasBeenSet = false;
138 bool m_partSizeInBytesHasBeenSet = false;
139 bool m_creationDateHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace Glacier
144} // namespace Aws
UploadListElement & WithVaultARN(VaultARNT &&value)
const Aws::String & GetVaultARN() const
void SetMultipartUploadId(MultipartUploadIdT &&value)
AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetMultipartUploadId() const
AWS_GLACIER_API UploadListElement & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLACIER_API UploadListElement()=default
const Aws::String & GetCreationDate() const
const Aws::String & GetArchiveDescription() const
UploadListElement & WithMultipartUploadId(MultipartUploadIdT &&value)
AWS_GLACIER_API UploadListElement(Aws::Utils::Json::JsonView jsonValue)
UploadListElement & WithArchiveDescription(ArchiveDescriptionT &&value)
void SetArchiveDescription(ArchiveDescriptionT &&value)
void SetCreationDate(CreationDateT &&value)
UploadListElement & WithCreationDate(CreationDateT &&value)
UploadListElement & WithPartSizeInBytes(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue