AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
S3ResultItem.h
1
6#pragma once
7#include <aws/backupsearch/BackupSearch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BackupSearch
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BACKUPSEARCH_API S3ResultItem() = default;
37 AWS_BACKUPSEARCH_API S3ResultItem(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BACKUPSEARCH_API S3ResultItem& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BACKUPSEARCH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetBackupResourceArn() const { return m_backupResourceArn; }
48 inline bool BackupResourceArnHasBeenSet() const { return m_backupResourceArnHasBeenSet; }
49 template<typename BackupResourceArnT = Aws::String>
50 void SetBackupResourceArn(BackupResourceArnT&& value) { m_backupResourceArnHasBeenSet = true; m_backupResourceArn = std::forward<BackupResourceArnT>(value); }
51 template<typename BackupResourceArnT = Aws::String>
52 S3ResultItem& WithBackupResourceArn(BackupResourceArnT&& value) { SetBackupResourceArn(std::forward<BackupResourceArnT>(value)); return *this;}
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) { m_sourceResourceArnHasBeenSet = true; m_sourceResourceArn = std::forward<SourceResourceArnT>(value); }
64 template<typename SourceResourceArnT = Aws::String>
65 S3ResultItem& WithSourceResourceArn(SourceResourceArnT&& value) { SetSourceResourceArn(std::forward<SourceResourceArnT>(value)); return *this;}
67
69
72 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
73 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
74 template<typename BackupVaultNameT = Aws::String>
75 void SetBackupVaultName(BackupVaultNameT&& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = std::forward<BackupVaultNameT>(value); }
76 template<typename BackupVaultNameT = Aws::String>
77 S3ResultItem& WithBackupVaultName(BackupVaultNameT&& value) { SetBackupVaultName(std::forward<BackupVaultNameT>(value)); return *this;}
79
81
85 inline const Aws::String& GetObjectKey() const { return m_objectKey; }
86 inline bool ObjectKeyHasBeenSet() const { return m_objectKeyHasBeenSet; }
87 template<typename ObjectKeyT = Aws::String>
88 void SetObjectKey(ObjectKeyT&& value) { m_objectKeyHasBeenSet = true; m_objectKey = std::forward<ObjectKeyT>(value); }
89 template<typename ObjectKeyT = Aws::String>
90 S3ResultItem& WithObjectKey(ObjectKeyT&& value) { SetObjectKey(std::forward<ObjectKeyT>(value)); return *this;}
92
94
98 inline long long GetObjectSize() const { return m_objectSize; }
99 inline bool ObjectSizeHasBeenSet() const { return m_objectSizeHasBeenSet; }
100 inline void SetObjectSize(long long value) { m_objectSizeHasBeenSet = true; m_objectSize = value; }
101 inline S3ResultItem& WithObjectSize(long long value) { SetObjectSize(value); return *this;}
103
105
109 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
110 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
111 template<typename CreationTimeT = Aws::Utils::DateTime>
112 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
113 template<typename CreationTimeT = Aws::Utils::DateTime>
114 S3ResultItem& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
116
118
122 inline const Aws::String& GetETag() const { return m_eTag; }
123 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
124 template<typename ETagT = Aws::String>
125 void SetETag(ETagT&& value) { m_eTagHasBeenSet = true; m_eTag = std::forward<ETagT>(value); }
126 template<typename ETagT = Aws::String>
127 S3ResultItem& WithETag(ETagT&& value) { SetETag(std::forward<ETagT>(value)); return *this;}
129
131
135 inline const Aws::String& GetVersionId() const { return m_versionId; }
136 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
137 template<typename VersionIdT = Aws::String>
138 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet = true; m_versionId = std::forward<VersionIdT>(value); }
139 template<typename VersionIdT = Aws::String>
140 S3ResultItem& WithVersionId(VersionIdT&& value) { SetVersionId(std::forward<VersionIdT>(value)); return *this;}
142 private:
143
144 Aws::String m_backupResourceArn;
145 bool m_backupResourceArnHasBeenSet = false;
146
147 Aws::String m_sourceResourceArn;
148 bool m_sourceResourceArnHasBeenSet = false;
149
150 Aws::String m_backupVaultName;
151 bool m_backupVaultNameHasBeenSet = false;
152
153 Aws::String m_objectKey;
154 bool m_objectKeyHasBeenSet = false;
155
156 long long m_objectSize{0};
157 bool m_objectSizeHasBeenSet = false;
158
159 Aws::Utils::DateTime m_creationTime{};
160 bool m_creationTimeHasBeenSet = false;
161
162 Aws::String m_eTag;
163 bool m_eTagHasBeenSet = false;
164
165 Aws::String m_versionId;
166 bool m_versionIdHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace BackupSearch
171} // 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