AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
S3ResultItem.h
1
6#pragma once
7#include <aws/backupsearch/BackupSearch_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BackupSearch {
21namespace Model {
22
30 public:
31 AWS_BACKUPSEARCH_API S3ResultItem() = default;
32 AWS_BACKUPSEARCH_API S3ResultItem(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BACKUPSEARCH_API S3ResultItem& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BACKUPSEARCH_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetBackupResourceArn() const { return m_backupResourceArn; }
42 inline bool BackupResourceArnHasBeenSet() const { return m_backupResourceArnHasBeenSet; }
43 template <typename BackupResourceArnT = Aws::String>
44 void SetBackupResourceArn(BackupResourceArnT&& value) {
45 m_backupResourceArnHasBeenSet = true;
46 m_backupResourceArn = std::forward<BackupResourceArnT>(value);
47 }
48 template <typename BackupResourceArnT = Aws::String>
49 S3ResultItem& WithBackupResourceArn(BackupResourceArnT&& value) {
50 SetBackupResourceArn(std::forward<BackupResourceArnT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetSourceResourceArn() const { return m_sourceResourceArn; }
61 inline bool SourceResourceArnHasBeenSet() const { return m_sourceResourceArnHasBeenSet; }
62 template <typename SourceResourceArnT = Aws::String>
63 void SetSourceResourceArn(SourceResourceArnT&& value) {
64 m_sourceResourceArnHasBeenSet = true;
65 m_sourceResourceArn = std::forward<SourceResourceArnT>(value);
66 }
67 template <typename SourceResourceArnT = Aws::String>
68 S3ResultItem& WithSourceResourceArn(SourceResourceArnT&& value) {
69 SetSourceResourceArn(std::forward<SourceResourceArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
79 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
80 template <typename BackupVaultNameT = Aws::String>
81 void SetBackupVaultName(BackupVaultNameT&& value) {
82 m_backupVaultNameHasBeenSet = true;
83 m_backupVaultName = std::forward<BackupVaultNameT>(value);
84 }
85 template <typename BackupVaultNameT = Aws::String>
86 S3ResultItem& WithBackupVaultName(BackupVaultNameT&& value) {
87 SetBackupVaultName(std::forward<BackupVaultNameT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetObjectKey() const { return m_objectKey; }
98 inline bool ObjectKeyHasBeenSet() const { return m_objectKeyHasBeenSet; }
99 template <typename ObjectKeyT = Aws::String>
100 void SetObjectKey(ObjectKeyT&& value) {
101 m_objectKeyHasBeenSet = true;
102 m_objectKey = std::forward<ObjectKeyT>(value);
103 }
104 template <typename ObjectKeyT = Aws::String>
105 S3ResultItem& WithObjectKey(ObjectKeyT&& value) {
106 SetObjectKey(std::forward<ObjectKeyT>(value));
107 return *this;
108 }
110
112
116 inline long long GetObjectSize() const { return m_objectSize; }
117 inline bool ObjectSizeHasBeenSet() const { return m_objectSizeHasBeenSet; }
118 inline void SetObjectSize(long long value) {
119 m_objectSizeHasBeenSet = true;
120 m_objectSize = value;
121 }
122 inline S3ResultItem& WithObjectSize(long long value) {
123 SetObjectSize(value);
124 return *this;
125 }
127
129
133 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
134 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
135 template <typename CreationTimeT = Aws::Utils::DateTime>
136 void SetCreationTime(CreationTimeT&& value) {
137 m_creationTimeHasBeenSet = true;
138 m_creationTime = std::forward<CreationTimeT>(value);
139 }
140 template <typename CreationTimeT = Aws::Utils::DateTime>
141 S3ResultItem& WithCreationTime(CreationTimeT&& value) {
142 SetCreationTime(std::forward<CreationTimeT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::String& GetETag() const { return m_eTag; }
153 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
154 template <typename ETagT = Aws::String>
155 void SetETag(ETagT&& value) {
156 m_eTagHasBeenSet = true;
157 m_eTag = std::forward<ETagT>(value);
158 }
159 template <typename ETagT = Aws::String>
160 S3ResultItem& WithETag(ETagT&& value) {
161 SetETag(std::forward<ETagT>(value));
162 return *this;
163 }
165
167
171 inline const Aws::String& GetVersionId() const { return m_versionId; }
172 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
173 template <typename VersionIdT = Aws::String>
174 void SetVersionId(VersionIdT&& value) {
175 m_versionIdHasBeenSet = true;
176 m_versionId = std::forward<VersionIdT>(value);
177 }
178 template <typename VersionIdT = Aws::String>
179 S3ResultItem& WithVersionId(VersionIdT&& value) {
180 SetVersionId(std::forward<VersionIdT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_backupResourceArn;
186
187 Aws::String m_sourceResourceArn;
188
189 Aws::String m_backupVaultName;
190
191 Aws::String m_objectKey;
192
193 long long m_objectSize{0};
194
195 Aws::Utils::DateTime m_creationTime{};
196
197 Aws::String m_eTag;
198
199 Aws::String m_versionId;
200 bool m_backupResourceArnHasBeenSet = false;
201 bool m_sourceResourceArnHasBeenSet = false;
202 bool m_backupVaultNameHasBeenSet = false;
203 bool m_objectKeyHasBeenSet = false;
204 bool m_objectSizeHasBeenSet = false;
205 bool m_creationTimeHasBeenSet = false;
206 bool m_eTagHasBeenSet = false;
207 bool m_versionIdHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace BackupSearch
212} // namespace Aws
S3ResultItem & WithSourceResourceArn(SourceResourceArnT &&value)
void SetSourceResourceArn(SourceResourceArnT &&value)
const Aws::String & GetSourceResourceArn() const
AWS_BACKUPSEARCH_API Aws::Utils::Json::JsonValue Jsonize() const
S3ResultItem & WithObjectKey(ObjectKeyT &&value)
const Aws::String & GetBackupResourceArn() const
AWS_BACKUPSEARCH_API S3ResultItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetVersionId() const
S3ResultItem & WithObjectSize(long long value)
AWS_BACKUPSEARCH_API S3ResultItem()=default
void SetCreationTime(CreationTimeT &&value)
void SetBackupVaultName(BackupVaultNameT &&value)
S3ResultItem & WithCreationTime(CreationTimeT &&value)
void SetVersionId(VersionIdT &&value)
S3ResultItem & WithBackupVaultName(BackupVaultNameT &&value)
const Aws::String & GetETag() const
const Aws::String & GetBackupVaultName() const
const Aws::Utils::DateTime & GetCreationTime() const
S3ResultItem & WithBackupResourceArn(BackupResourceArnT &&value)
S3ResultItem & WithVersionId(VersionIdT &&value)
void SetBackupResourceArn(BackupResourceArnT &&value)
void SetObjectKey(ObjectKeyT &&value)
S3ResultItem & WithETag(ETagT &&value)
const Aws::String & GetObjectKey() const
AWS_BACKUPSEARCH_API S3ResultItem(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue