AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
EBSResultItem.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 EBSResultItem() = default;
32 AWS_BACKUPSEARCH_API EBSResultItem(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BACKUPSEARCH_API EBSResultItem& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BACKUPSEARCH_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::String& GetBackupResourceArn() const { return m_backupResourceArn; }
43 inline bool BackupResourceArnHasBeenSet() const { return m_backupResourceArnHasBeenSet; }
44 template <typename BackupResourceArnT = Aws::String>
45 void SetBackupResourceArn(BackupResourceArnT&& value) {
46 m_backupResourceArnHasBeenSet = true;
47 m_backupResourceArn = std::forward<BackupResourceArnT>(value);
48 }
49 template <typename BackupResourceArnT = Aws::String>
50 EBSResultItem& WithBackupResourceArn(BackupResourceArnT&& value) {
51 SetBackupResourceArn(std::forward<BackupResourceArnT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetSourceResourceArn() const { return m_sourceResourceArn; }
63 inline bool SourceResourceArnHasBeenSet() const { return m_sourceResourceArnHasBeenSet; }
64 template <typename SourceResourceArnT = Aws::String>
65 void SetSourceResourceArn(SourceResourceArnT&& value) {
66 m_sourceResourceArnHasBeenSet = true;
67 m_sourceResourceArn = std::forward<SourceResourceArnT>(value);
68 }
69 template <typename SourceResourceArnT = Aws::String>
70 EBSResultItem& WithSourceResourceArn(SourceResourceArnT&& value) {
71 SetSourceResourceArn(std::forward<SourceResourceArnT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
81 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
82 template <typename BackupVaultNameT = Aws::String>
83 void SetBackupVaultName(BackupVaultNameT&& value) {
84 m_backupVaultNameHasBeenSet = true;
85 m_backupVaultName = std::forward<BackupVaultNameT>(value);
86 }
87 template <typename BackupVaultNameT = Aws::String>
88 EBSResultItem& WithBackupVaultName(BackupVaultNameT&& value) {
89 SetBackupVaultName(std::forward<BackupVaultNameT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetFileSystemIdentifier() const { return m_fileSystemIdentifier; }
100 inline bool FileSystemIdentifierHasBeenSet() const { return m_fileSystemIdentifierHasBeenSet; }
101 template <typename FileSystemIdentifierT = Aws::String>
102 void SetFileSystemIdentifier(FileSystemIdentifierT&& value) {
103 m_fileSystemIdentifierHasBeenSet = true;
104 m_fileSystemIdentifier = std::forward<FileSystemIdentifierT>(value);
105 }
106 template <typename FileSystemIdentifierT = Aws::String>
107 EBSResultItem& WithFileSystemIdentifier(FileSystemIdentifierT&& value) {
108 SetFileSystemIdentifier(std::forward<FileSystemIdentifierT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::String& GetFilePath() const { return m_filePath; }
119 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
120 template <typename FilePathT = Aws::String>
121 void SetFilePath(FilePathT&& value) {
122 m_filePathHasBeenSet = true;
123 m_filePath = std::forward<FilePathT>(value);
124 }
125 template <typename FilePathT = Aws::String>
126 EBSResultItem& WithFilePath(FilePathT&& value) {
127 SetFilePath(std::forward<FilePathT>(value));
128 return *this;
129 }
131
133
137 inline long long GetFileSize() const { return m_fileSize; }
138 inline bool FileSizeHasBeenSet() const { return m_fileSizeHasBeenSet; }
139 inline void SetFileSize(long long value) {
140 m_fileSizeHasBeenSet = true;
141 m_fileSize = value;
142 }
143 inline EBSResultItem& WithFileSize(long long value) {
144 SetFileSize(value);
145 return *this;
146 }
148
150
154 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
155 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
156 template <typename CreationTimeT = Aws::Utils::DateTime>
157 void SetCreationTime(CreationTimeT&& value) {
158 m_creationTimeHasBeenSet = true;
159 m_creationTime = std::forward<CreationTimeT>(value);
160 }
161 template <typename CreationTimeT = Aws::Utils::DateTime>
162 EBSResultItem& WithCreationTime(CreationTimeT&& value) {
163 SetCreationTime(std::forward<CreationTimeT>(value));
164 return *this;
165 }
167
169
173 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
174 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
175 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
176 void SetLastModifiedTime(LastModifiedTimeT&& value) {
177 m_lastModifiedTimeHasBeenSet = true;
178 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
179 }
180 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
181 EBSResultItem& WithLastModifiedTime(LastModifiedTimeT&& value) {
182 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
183 return *this;
184 }
186 private:
187 Aws::String m_backupResourceArn;
188
189 Aws::String m_sourceResourceArn;
190
191 Aws::String m_backupVaultName;
192
193 Aws::String m_fileSystemIdentifier;
194
195 Aws::String m_filePath;
196
197 long long m_fileSize{0};
198
199 Aws::Utils::DateTime m_creationTime{};
200
201 Aws::Utils::DateTime m_lastModifiedTime{};
202 bool m_backupResourceArnHasBeenSet = false;
203 bool m_sourceResourceArnHasBeenSet = false;
204 bool m_backupVaultNameHasBeenSet = false;
205 bool m_fileSystemIdentifierHasBeenSet = false;
206 bool m_filePathHasBeenSet = false;
207 bool m_fileSizeHasBeenSet = false;
208 bool m_creationTimeHasBeenSet = false;
209 bool m_lastModifiedTimeHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace BackupSearch
214} // namespace Aws
AWS_BACKUPSEARCH_API EBSResultItem(Aws::Utils::Json::JsonView jsonValue)
EBSResultItem & WithFileSize(long long value)
EBSResultItem & WithSourceResourceArn(SourceResourceArnT &&value)
const Aws::String & GetBackupResourceArn() const
AWS_BACKUPSEARCH_API EBSResultItem()=default
const Aws::String & GetFileSystemIdentifier() const
EBSResultItem & WithBackupVaultName(BackupVaultNameT &&value)
EBSResultItem & WithLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetCreationTime(CreationTimeT &&value)
void SetSourceResourceArn(SourceResourceArnT &&value)
void SetBackupVaultName(BackupVaultNameT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
AWS_BACKUPSEARCH_API EBSResultItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetBackupVaultName() const
AWS_BACKUPSEARCH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBackupResourceArn(BackupResourceArnT &&value)
EBSResultItem & WithBackupResourceArn(BackupResourceArnT &&value)
EBSResultItem & WithFileSystemIdentifier(FileSystemIdentifierT &&value)
const Aws::String & GetSourceResourceArn() const
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::String & GetFilePath() const
EBSResultItem & WithFilePath(FilePathT &&value)
EBSResultItem & WithCreationTime(CreationTimeT &&value)
void SetFileSystemIdentifier(FileSystemIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue