AWS SDK for C++  1.9.40
AWS SDK for C++
ListBackupJobsResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace Backup
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline const Aws::Vector<BackupJob>& GetBackupJobs() const{ return m_backupJobs; }
42 
47  inline void SetBackupJobs(const Aws::Vector<BackupJob>& value) { m_backupJobs = value; }
48 
53  inline void SetBackupJobs(Aws::Vector<BackupJob>&& value) { m_backupJobs = std::move(value); }
54 
59  inline ListBackupJobsResult& WithBackupJobs(const Aws::Vector<BackupJob>& value) { SetBackupJobs(value); return *this;}
60 
65  inline ListBackupJobsResult& WithBackupJobs(Aws::Vector<BackupJob>&& value) { SetBackupJobs(std::move(value)); return *this;}
66 
71  inline ListBackupJobsResult& AddBackupJobs(const BackupJob& value) { m_backupJobs.push_back(value); return *this; }
72 
77  inline ListBackupJobsResult& AddBackupJobs(BackupJob&& value) { m_backupJobs.push_back(std::move(value)); return *this; }
78 
79 
86  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
87 
94  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
95 
102  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
103 
110  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
111 
118  inline ListBackupJobsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
119 
126  inline ListBackupJobsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
127 
134  inline ListBackupJobsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
135 
136  private:
137 
138  Aws::Vector<BackupJob> m_backupJobs;
139 
140  Aws::String m_nextToken;
141  };
142 
143 } // namespace Model
144 } // namespace Backup
145 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Backup::Model::ListBackupJobsResult::WithBackupJobs
ListBackupJobsResult & WithBackupJobs(Aws::Vector< BackupJob > &&value)
Definition: ListBackupJobsResult.h:65
Aws::Backup::Model::ListBackupJobsResult::AddBackupJobs
ListBackupJobsResult & AddBackupJobs(BackupJob &&value)
Definition: ListBackupJobsResult.h:77
Aws::Backup::Model::ListBackupJobsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListBackupJobsResult.h:94
Aws::Backup::Model::ListBackupJobsResult::WithNextToken
ListBackupJobsResult & WithNextToken(const char *value)
Definition: ListBackupJobsResult.h:134
Aws::Backup::Model::ListBackupJobsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListBackupJobsResult.h:110
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
Aws::Backup::Model::BackupJob
Definition: BackupJob.h:36
Aws::Backup::Model::ListBackupJobsResult
Definition: ListBackupJobsResult.h:30
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Backup::Model::ListBackupJobsResult::WithNextToken
ListBackupJobsResult & WithNextToken(const Aws::String &value)
Definition: ListBackupJobsResult.h:118
Aws::Backup::Model::ListBackupJobsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListBackupJobsResult.h:86
AWSVector.h
Aws::Backup::Model::ListBackupJobsResult::ListBackupJobsResult
ListBackupJobsResult()
Aws::Backup::Model::ListBackupJobsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListBackupJobsResult.h:102
Aws::Backup::Model::ListBackupJobsResult::SetBackupJobs
void SetBackupJobs(Aws::Vector< BackupJob > &&value)
Definition: ListBackupJobsResult.h:53
Aws::Backup::Model::ListBackupJobsResult::WithBackupJobs
ListBackupJobsResult & WithBackupJobs(const Aws::Vector< BackupJob > &value)
Definition: ListBackupJobsResult.h:59
Aws::Backup::Model::ListBackupJobsResult::operator=
ListBackupJobsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSString.h
Aws::Backup::Model::ListBackupJobsResult::ListBackupJobsResult
ListBackupJobsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Backup::Model::ListBackupJobsResult::GetBackupJobs
const Aws::Vector< BackupJob > & GetBackupJobs() const
Definition: ListBackupJobsResult.h:41
Aws::Backup::Model::ListBackupJobsResult::AddBackupJobs
ListBackupJobsResult & AddBackupJobs(const BackupJob &value)
Definition: ListBackupJobsResult.h:71
Backup_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Backup::Model::ListBackupJobsResult::SetBackupJobs
void SetBackupJobs(const Aws::Vector< BackupJob > &value)
Definition: ListBackupJobsResult.h:47
BackupJob.h
Aws::Backup::Model::ListBackupJobsResult::WithNextToken
ListBackupJobsResult & WithNextToken(Aws::String &&value)
Definition: ListBackupJobsResult.h:126