AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
EBSResultItem.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 EBSResultItem() = default;
37 AWS_BACKUPSEARCH_API EBSResultItem(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BACKUPSEARCH_API EBSResultItem& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BACKUPSEARCH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const Aws::String& GetBackupResourceArn() const { return m_backupResourceArn; }
49 inline bool BackupResourceArnHasBeenSet() const { return m_backupResourceArnHasBeenSet; }
50 template<typename BackupResourceArnT = Aws::String>
51 void SetBackupResourceArn(BackupResourceArnT&& value) { m_backupResourceArnHasBeenSet = true; m_backupResourceArn = std::forward<BackupResourceArnT>(value); }
52 template<typename BackupResourceArnT = Aws::String>
53 EBSResultItem& WithBackupResourceArn(BackupResourceArnT&& value) { SetBackupResourceArn(std::forward<BackupResourceArnT>(value)); return *this;}
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) { m_sourceResourceArnHasBeenSet = true; m_sourceResourceArn = std::forward<SourceResourceArnT>(value); }
66 template<typename SourceResourceArnT = Aws::String>
67 EBSResultItem& WithSourceResourceArn(SourceResourceArnT&& value) { SetSourceResourceArn(std::forward<SourceResourceArnT>(value)); return *this;}
69
71
74 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
75 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
76 template<typename BackupVaultNameT = Aws::String>
77 void SetBackupVaultName(BackupVaultNameT&& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = std::forward<BackupVaultNameT>(value); }
78 template<typename BackupVaultNameT = Aws::String>
79 EBSResultItem& WithBackupVaultName(BackupVaultNameT&& value) { SetBackupVaultName(std::forward<BackupVaultNameT>(value)); return *this;}
81
83
87 inline const Aws::String& GetFileSystemIdentifier() const { return m_fileSystemIdentifier; }
88 inline bool FileSystemIdentifierHasBeenSet() const { return m_fileSystemIdentifierHasBeenSet; }
89 template<typename FileSystemIdentifierT = Aws::String>
90 void SetFileSystemIdentifier(FileSystemIdentifierT&& value) { m_fileSystemIdentifierHasBeenSet = true; m_fileSystemIdentifier = std::forward<FileSystemIdentifierT>(value); }
91 template<typename FileSystemIdentifierT = Aws::String>
92 EBSResultItem& WithFileSystemIdentifier(FileSystemIdentifierT&& value) { SetFileSystemIdentifier(std::forward<FileSystemIdentifierT>(value)); return *this;}
94
96
100 inline const Aws::String& GetFilePath() const { return m_filePath; }
101 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
102 template<typename FilePathT = Aws::String>
103 void SetFilePath(FilePathT&& value) { m_filePathHasBeenSet = true; m_filePath = std::forward<FilePathT>(value); }
104 template<typename FilePathT = Aws::String>
105 EBSResultItem& WithFilePath(FilePathT&& value) { SetFilePath(std::forward<FilePathT>(value)); return *this;}
107
109
113 inline long long GetFileSize() const { return m_fileSize; }
114 inline bool FileSizeHasBeenSet() const { return m_fileSizeHasBeenSet; }
115 inline void SetFileSize(long long value) { m_fileSizeHasBeenSet = true; m_fileSize = value; }
116 inline EBSResultItem& WithFileSize(long long value) { SetFileSize(value); return *this;}
118
120
124 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
125 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
126 template<typename CreationTimeT = Aws::Utils::DateTime>
127 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
128 template<typename CreationTimeT = Aws::Utils::DateTime>
129 EBSResultItem& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
131
133
137 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
138 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
139 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
140 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
141 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
142 EBSResultItem& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
144 private:
145
146 Aws::String m_backupResourceArn;
147 bool m_backupResourceArnHasBeenSet = false;
148
149 Aws::String m_sourceResourceArn;
150 bool m_sourceResourceArnHasBeenSet = false;
151
152 Aws::String m_backupVaultName;
153 bool m_backupVaultNameHasBeenSet = false;
154
155 Aws::String m_fileSystemIdentifier;
156 bool m_fileSystemIdentifierHasBeenSet = false;
157
158 Aws::String m_filePath;
159 bool m_filePathHasBeenSet = false;
160
161 long long m_fileSize{0};
162 bool m_fileSizeHasBeenSet = false;
163
164 Aws::Utils::DateTime m_creationTime{};
165 bool m_creationTimeHasBeenSet = false;
166
167 Aws::Utils::DateTime m_lastModifiedTime{};
168 bool m_lastModifiedTimeHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace BackupSearch
173} // 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