AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
PullRequestBuildPolicy.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/PullRequestBuildCommentApproval.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codebuild/model/PullRequestBuildApproverRole.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeBuild
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_CODEBUILD_API PullRequestBuildPolicy() = default;
42 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
57 inline PullRequestBuildCommentApproval GetRequiresCommentApproval() const { return m_requiresCommentApproval; }
58 inline bool RequiresCommentApprovalHasBeenSet() const { return m_requiresCommentApprovalHasBeenSet; }
59 inline void SetRequiresCommentApproval(PullRequestBuildCommentApproval value) { m_requiresCommentApprovalHasBeenSet = true; m_requiresCommentApproval = value; }
62
64
71 inline const Aws::Vector<PullRequestBuildApproverRole>& GetApproverRoles() const { return m_approverRoles; }
72 inline bool ApproverRolesHasBeenSet() const { return m_approverRolesHasBeenSet; }
73 template<typename ApproverRolesT = Aws::Vector<PullRequestBuildApproverRole>>
74 void SetApproverRoles(ApproverRolesT&& value) { m_approverRolesHasBeenSet = true; m_approverRoles = std::forward<ApproverRolesT>(value); }
75 template<typename ApproverRolesT = Aws::Vector<PullRequestBuildApproverRole>>
76 PullRequestBuildPolicy& WithApproverRoles(ApproverRolesT&& value) { SetApproverRoles(std::forward<ApproverRolesT>(value)); return *this;}
77 inline PullRequestBuildPolicy& AddApproverRoles(PullRequestBuildApproverRole value) { m_approverRolesHasBeenSet = true; m_approverRoles.push_back(value); return *this; }
79 private:
80
82 bool m_requiresCommentApprovalHasBeenSet = false;
83
85 bool m_approverRolesHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace CodeBuild
90} // namespace Aws
PullRequestBuildPolicy & AddApproverRoles(PullRequestBuildApproverRole value)
PullRequestBuildPolicy & WithApproverRoles(ApproverRolesT &&value)
const Aws::Vector< PullRequestBuildApproverRole > & GetApproverRoles() const
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEBUILD_API PullRequestBuildPolicy()=default
void SetRequiresCommentApproval(PullRequestBuildCommentApproval value)
PullRequestBuildCommentApproval GetRequiresCommentApproval() const
AWS_CODEBUILD_API PullRequestBuildPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
PullRequestBuildPolicy & WithRequiresCommentApproval(PullRequestBuildCommentApproval value)
AWS_CODEBUILD_API PullRequestBuildPolicy(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue