AWS SDK for C++  1.9.109
AWS SDK for C++
PollForJobsResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace CodePipeline
25 {
26 namespace Model
27 {
35  {
36  public:
40 
41 
45  inline const Aws::Vector<Job>& GetJobs() const{ return m_jobs; }
46 
50  inline void SetJobs(const Aws::Vector<Job>& value) { m_jobs = value; }
51 
55  inline void SetJobs(Aws::Vector<Job>&& value) { m_jobs = std::move(value); }
56 
60  inline PollForJobsResult& WithJobs(const Aws::Vector<Job>& value) { SetJobs(value); return *this;}
61 
65  inline PollForJobsResult& WithJobs(Aws::Vector<Job>&& value) { SetJobs(std::move(value)); return *this;}
66 
70  inline PollForJobsResult& AddJobs(const Job& value) { m_jobs.push_back(value); return *this; }
71 
75  inline PollForJobsResult& AddJobs(Job&& value) { m_jobs.push_back(std::move(value)); return *this; }
76 
77  private:
78 
79  Aws::Vector<Job> m_jobs;
80  };
81 
82 } // namespace Model
83 } // namespace CodePipeline
84 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
AWS_CODEPIPELINE_API
#define AWS_CODEPIPELINE_API
Definition: CodePipeline_EXPORTS.h:28
Aws::CodePipeline::Model::Job
Definition: Job.h:33
Aws::CodePipeline::Model::PollForJobsResult::WithJobs
PollForJobsResult & WithJobs(const Aws::Vector< Job > &value)
Definition: PollForJobsResult.h:60
Aws::CodePipeline::Model::PollForJobsResult::PollForJobsResult
PollForJobsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::CodePipeline::Model::PollForJobsResult::SetJobs
void SetJobs(Aws::Vector< Job > &&value)
Definition: PollForJobsResult.h:55
CodePipeline_EXPORTS.h
Job.h
Aws::CodePipeline::Model::PollForJobsResult
Definition: PollForJobsResult.h:35
Aws::CodePipeline::Model::PollForJobsResult::WithJobs
PollForJobsResult & WithJobs(Aws::Vector< Job > &&value)
Definition: PollForJobsResult.h:65
Aws::CodePipeline::Model::PollForJobsResult::SetJobs
void SetJobs(const Aws::Vector< Job > &value)
Definition: PollForJobsResult.h:50
Aws::CodePipeline::Model::PollForJobsResult::GetJobs
const Aws::Vector< Job > & GetJobs() const
Definition: PollForJobsResult.h:45
Aws::CodePipeline::Model::PollForJobsResult::operator=
PollForJobsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodePipeline::Model::PollForJobsResult::PollForJobsResult
PollForJobsResult()
Aws::CodePipeline::Model::PollForJobsResult::AddJobs
PollForJobsResult & AddJobs(Job &&value)
Definition: PollForJobsResult.h:75
Aws::CodePipeline::Model::PollForJobsResult::AddJobs
PollForJobsResult & AddJobs(const Job &value)
Definition: PollForJobsResult.h:70
Aws
Definition: AccessManagementClient.h:15