AWS SDK for C++  1.8.152
AWS SDK for C++
GetPullRequestApprovalStatesResult.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 CodeCommit
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Aws::Vector<Approval>& GetApprovals() const{ return m_approvals; }
40 
44  inline void SetApprovals(const Aws::Vector<Approval>& value) { m_approvals = value; }
45 
49  inline void SetApprovals(Aws::Vector<Approval>&& value) { m_approvals = std::move(value); }
50 
54  inline GetPullRequestApprovalStatesResult& WithApprovals(const Aws::Vector<Approval>& value) { SetApprovals(value); return *this;}
55 
59  inline GetPullRequestApprovalStatesResult& WithApprovals(Aws::Vector<Approval>&& value) { SetApprovals(std::move(value)); return *this;}
60 
64  inline GetPullRequestApprovalStatesResult& AddApprovals(const Approval& value) { m_approvals.push_back(value); return *this; }
65 
69  inline GetPullRequestApprovalStatesResult& AddApprovals(Approval&& value) { m_approvals.push_back(std::move(value)); return *this; }
70 
71  private:
72 
73  Aws::Vector<Approval> m_approvals;
74  };
75 
76 } // namespace Model
77 } // namespace CodeCommit
78 } // namespace Aws
Aws::CodeCommit::Model::GetPullRequestApprovalStatesResult::GetPullRequestApprovalStatesResult
GetPullRequestApprovalStatesResult()
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::GetPullRequestApprovalStatesResult::WithApprovals
GetPullRequestApprovalStatesResult & WithApprovals(Aws::Vector< Approval > &&value)
Definition: GetPullRequestApprovalStatesResult.h:59
Aws::CodeCommit::Model::GetPullRequestApprovalStatesResult::WithApprovals
GetPullRequestApprovalStatesResult & WithApprovals(const Aws::Vector< Approval > &value)
Definition: GetPullRequestApprovalStatesResult.h:54
Aws::CodeCommit::Model::GetPullRequestApprovalStatesResult::SetApprovals
void SetApprovals(const Aws::Vector< Approval > &value)
Definition: GetPullRequestApprovalStatesResult.h:44
Aws::CodeCommit::Model::GetPullRequestApprovalStatesResult::GetApprovals
const Aws::Vector< Approval > & GetApprovals() const
Definition: GetPullRequestApprovalStatesResult.h:39
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Approval.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::GetPullRequestApprovalStatesResult::AddApprovals
GetPullRequestApprovalStatesResult & AddApprovals(Approval &&value)
Definition: GetPullRequestApprovalStatesResult.h:69
Aws::CodeCommit::Model::GetPullRequestApprovalStatesResult::operator=
GetPullRequestApprovalStatesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::GetPullRequestApprovalStatesResult
Definition: GetPullRequestApprovalStatesResult.h:29
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::GetPullRequestApprovalStatesResult::SetApprovals
void SetApprovals(Aws::Vector< Approval > &&value)
Definition: GetPullRequestApprovalStatesResult.h:49
Aws::CodeCommit::Model::GetPullRequestApprovalStatesResult::GetPullRequestApprovalStatesResult
GetPullRequestApprovalStatesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::GetPullRequestApprovalStatesResult::AddApprovals
GetPullRequestApprovalStatesResult & AddApprovals(const Approval &value)
Definition: GetPullRequestApprovalStatesResult.h:64
Aws::CodeCommit::Model::Approval
Definition: Approval.h:34