This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-codecommit/include/aws/codecommit/model/UpdatePullRequestApprovalRuleContentRequest.h

386 lines
21 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codecommit/CodeCommit_EXPORTS.h>
#include <aws/codecommit/CodeCommitRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeCommit
{
namespace Model
{
/**
*/
class AWS_CODECOMMIT_API UpdatePullRequestApprovalRuleContentRequest : public CodeCommitRequest
{
public:
UpdatePullRequestApprovalRuleContentRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "UpdatePullRequestApprovalRuleContent"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The system-generated ID of the pull request.</p>
*/
inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; }
/**
* <p>The system-generated ID of the pull request.</p>
*/
inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
/**
* <p>The system-generated ID of the pull request.</p>
*/
inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
/**
* <p>The system-generated ID of the pull request.</p>
*/
inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
/**
* <p>The system-generated ID of the pull request.</p>
*/
inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
/**
* <p>The system-generated ID of the pull request.</p>
*/
inline UpdatePullRequestApprovalRuleContentRequest& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;}
/**
* <p>The system-generated ID of the pull request.</p>
*/
inline UpdatePullRequestApprovalRuleContentRequest& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
/**
* <p>The system-generated ID of the pull request.</p>
*/
inline UpdatePullRequestApprovalRuleContentRequest& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
/**
* <p>The name of the approval rule you want to update.</p>
*/
inline const Aws::String& GetApprovalRuleName() const{ return m_approvalRuleName; }
/**
* <p>The name of the approval rule you want to update.</p>
*/
inline bool ApprovalRuleNameHasBeenSet() const { return m_approvalRuleNameHasBeenSet; }
/**
* <p>The name of the approval rule you want to update.</p>
*/
inline void SetApprovalRuleName(const Aws::String& value) { m_approvalRuleNameHasBeenSet = true; m_approvalRuleName = value; }
/**
* <p>The name of the approval rule you want to update.</p>
*/
inline void SetApprovalRuleName(Aws::String&& value) { m_approvalRuleNameHasBeenSet = true; m_approvalRuleName = std::move(value); }
/**
* <p>The name of the approval rule you want to update.</p>
*/
inline void SetApprovalRuleName(const char* value) { m_approvalRuleNameHasBeenSet = true; m_approvalRuleName.assign(value); }
/**
* <p>The name of the approval rule you want to update.</p>
*/
inline UpdatePullRequestApprovalRuleContentRequest& WithApprovalRuleName(const Aws::String& value) { SetApprovalRuleName(value); return *this;}
/**
* <p>The name of the approval rule you want to update.</p>
*/
inline UpdatePullRequestApprovalRuleContentRequest& WithApprovalRuleName(Aws::String&& value) { SetApprovalRuleName(std::move(value)); return *this;}
/**
* <p>The name of the approval rule you want to update.</p>
*/
inline UpdatePullRequestApprovalRuleContentRequest& WithApprovalRuleName(const char* value) { SetApprovalRuleName(value); return *this;}
/**
* <p>The SHA-256 hash signature for the content of the approval rule. You can
* retrieve this information by using <a>GetPullRequest</a>.</p>
*/
inline const Aws::String& GetExistingRuleContentSha256() const{ return m_existingRuleContentSha256; }
/**
* <p>The SHA-256 hash signature for the content of the approval rule. You can
* retrieve this information by using <a>GetPullRequest</a>.</p>
*/
inline bool ExistingRuleContentSha256HasBeenSet() const { return m_existingRuleContentSha256HasBeenSet; }
/**
* <p>The SHA-256 hash signature for the content of the approval rule. You can
* retrieve this information by using <a>GetPullRequest</a>.</p>
*/
inline void SetExistingRuleContentSha256(const Aws::String& value) { m_existingRuleContentSha256HasBeenSet = true; m_existingRuleContentSha256 = value; }
/**
* <p>The SHA-256 hash signature for the content of the approval rule. You can
* retrieve this information by using <a>GetPullRequest</a>.</p>
*/
inline void SetExistingRuleContentSha256(Aws::String&& value) { m_existingRuleContentSha256HasBeenSet = true; m_existingRuleContentSha256 = std::move(value); }
/**
* <p>The SHA-256 hash signature for the content of the approval rule. You can
* retrieve this information by using <a>GetPullRequest</a>.</p>
*/
inline void SetExistingRuleContentSha256(const char* value) { m_existingRuleContentSha256HasBeenSet = true; m_existingRuleContentSha256.assign(value); }
/**
* <p>The SHA-256 hash signature for the content of the approval rule. You can
* retrieve this information by using <a>GetPullRequest</a>.</p>
*/
inline UpdatePullRequestApprovalRuleContentRequest& WithExistingRuleContentSha256(const Aws::String& value) { SetExistingRuleContentSha256(value); return *this;}
/**
* <p>The SHA-256 hash signature for the content of the approval rule. You can
* retrieve this information by using <a>GetPullRequest</a>.</p>
*/
inline UpdatePullRequestApprovalRuleContentRequest& WithExistingRuleContentSha256(Aws::String&& value) { SetExistingRuleContentSha256(std::move(value)); return *this;}
/**
* <p>The SHA-256 hash signature for the content of the approval rule. You can
* retrieve this information by using <a>GetPullRequest</a>.</p>
*/
inline UpdatePullRequestApprovalRuleContentRequest& WithExistingRuleContentSha256(const char* value) { SetExistingRuleContentSha256(value); return *this;}
/**
* <p>The updated content for the approval rule.</p> <p>When you update the
* content of the approval rule, you can specify approvers in an approval pool in
* one of two ways:</p> <ul> <li> <p> <b>CodeCommitApprovers</b>: This option only
* requires an AWS account and a resource. It can be used for both IAM users and
* federated access users whose name matches the provided resource name. This is a
* very powerful option that offers a great deal of flexibility. For example, if
* you specify the AWS account <i>123456789012</i> and <i>Mary_Major</i>, all of
* the following are counted as approvals coming from that user:</p> <ul> <li>
* <p>An IAM user in the account
* (arn:aws:iam::<i>123456789012</i>:user/<i>Mary_Major</i>)</p> </li> <li> <p>A
* federated user identified in IAM as Mary_Major
* (arn:aws:sts::<i>123456789012</i>:federated-user/<i>Mary_Major</i>)</p> </li>
* </ul> <p>This option does not recognize an active session of someone assuming
* the role of CodeCommitReview with a role session name of <i>Mary_Major</i>
* (arn:aws:sts::<i>123456789012</i>:assumed-role/CodeCommitReview/<i>Mary_Major</i>)
* unless you include a wildcard (*Mary_Major).</p> </li> <li> <p> <b>Fully
* qualified ARN</b>: This option allows you to specify the fully qualified Amazon
* Resource Name (ARN) of the IAM user or role. </p> </li> </ul> <p>For more
* information about IAM ARNs, wildcards, and formats, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html">IAM
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
*/
inline const Aws::String& GetNewRuleContent() const{ return m_newRuleContent; }
/**
* <p>The updated content for the approval rule.</p> <p>When you update the
* content of the approval rule, you can specify approvers in an approval pool in
* one of two ways:</p> <ul> <li> <p> <b>CodeCommitApprovers</b>: This option only
* requires an AWS account and a resource. It can be used for both IAM users and
* federated access users whose name matches the provided resource name. This is a
* very powerful option that offers a great deal of flexibility. For example, if
* you specify the AWS account <i>123456789012</i> and <i>Mary_Major</i>, all of
* the following are counted as approvals coming from that user:</p> <ul> <li>
* <p>An IAM user in the account
* (arn:aws:iam::<i>123456789012</i>:user/<i>Mary_Major</i>)</p> </li> <li> <p>A
* federated user identified in IAM as Mary_Major
* (arn:aws:sts::<i>123456789012</i>:federated-user/<i>Mary_Major</i>)</p> </li>
* </ul> <p>This option does not recognize an active session of someone assuming
* the role of CodeCommitReview with a role session name of <i>Mary_Major</i>
* (arn:aws:sts::<i>123456789012</i>:assumed-role/CodeCommitReview/<i>Mary_Major</i>)
* unless you include a wildcard (*Mary_Major).</p> </li> <li> <p> <b>Fully
* qualified ARN</b>: This option allows you to specify the fully qualified Amazon
* Resource Name (ARN) of the IAM user or role. </p> </li> </ul> <p>For more
* information about IAM ARNs, wildcards, and formats, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html">IAM
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
*/
inline bool NewRuleContentHasBeenSet() const { return m_newRuleContentHasBeenSet; }
/**
* <p>The updated content for the approval rule.</p> <p>When you update the
* content of the approval rule, you can specify approvers in an approval pool in
* one of two ways:</p> <ul> <li> <p> <b>CodeCommitApprovers</b>: This option only
* requires an AWS account and a resource. It can be used for both IAM users and
* federated access users whose name matches the provided resource name. This is a
* very powerful option that offers a great deal of flexibility. For example, if
* you specify the AWS account <i>123456789012</i> and <i>Mary_Major</i>, all of
* the following are counted as approvals coming from that user:</p> <ul> <li>
* <p>An IAM user in the account
* (arn:aws:iam::<i>123456789012</i>:user/<i>Mary_Major</i>)</p> </li> <li> <p>A
* federated user identified in IAM as Mary_Major
* (arn:aws:sts::<i>123456789012</i>:federated-user/<i>Mary_Major</i>)</p> </li>
* </ul> <p>This option does not recognize an active session of someone assuming
* the role of CodeCommitReview with a role session name of <i>Mary_Major</i>
* (arn:aws:sts::<i>123456789012</i>:assumed-role/CodeCommitReview/<i>Mary_Major</i>)
* unless you include a wildcard (*Mary_Major).</p> </li> <li> <p> <b>Fully
* qualified ARN</b>: This option allows you to specify the fully qualified Amazon
* Resource Name (ARN) of the IAM user or role. </p> </li> </ul> <p>For more
* information about IAM ARNs, wildcards, and formats, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html">IAM
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
*/
inline void SetNewRuleContent(const Aws::String& value) { m_newRuleContentHasBeenSet = true; m_newRuleContent = value; }
/**
* <p>The updated content for the approval rule.</p> <p>When you update the
* content of the approval rule, you can specify approvers in an approval pool in
* one of two ways:</p> <ul> <li> <p> <b>CodeCommitApprovers</b>: This option only
* requires an AWS account and a resource. It can be used for both IAM users and
* federated access users whose name matches the provided resource name. This is a
* very powerful option that offers a great deal of flexibility. For example, if
* you specify the AWS account <i>123456789012</i> and <i>Mary_Major</i>, all of
* the following are counted as approvals coming from that user:</p> <ul> <li>
* <p>An IAM user in the account
* (arn:aws:iam::<i>123456789012</i>:user/<i>Mary_Major</i>)</p> </li> <li> <p>A
* federated user identified in IAM as Mary_Major
* (arn:aws:sts::<i>123456789012</i>:federated-user/<i>Mary_Major</i>)</p> </li>
* </ul> <p>This option does not recognize an active session of someone assuming
* the role of CodeCommitReview with a role session name of <i>Mary_Major</i>
* (arn:aws:sts::<i>123456789012</i>:assumed-role/CodeCommitReview/<i>Mary_Major</i>)
* unless you include a wildcard (*Mary_Major).</p> </li> <li> <p> <b>Fully
* qualified ARN</b>: This option allows you to specify the fully qualified Amazon
* Resource Name (ARN) of the IAM user or role. </p> </li> </ul> <p>For more
* information about IAM ARNs, wildcards, and formats, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html">IAM
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
*/
inline void SetNewRuleContent(Aws::String&& value) { m_newRuleContentHasBeenSet = true; m_newRuleContent = std::move(value); }
/**
* <p>The updated content for the approval rule.</p> <p>When you update the
* content of the approval rule, you can specify approvers in an approval pool in
* one of two ways:</p> <ul> <li> <p> <b>CodeCommitApprovers</b>: This option only
* requires an AWS account and a resource. It can be used for both IAM users and
* federated access users whose name matches the provided resource name. This is a
* very powerful option that offers a great deal of flexibility. For example, if
* you specify the AWS account <i>123456789012</i> and <i>Mary_Major</i>, all of
* the following are counted as approvals coming from that user:</p> <ul> <li>
* <p>An IAM user in the account
* (arn:aws:iam::<i>123456789012</i>:user/<i>Mary_Major</i>)</p> </li> <li> <p>A
* federated user identified in IAM as Mary_Major
* (arn:aws:sts::<i>123456789012</i>:federated-user/<i>Mary_Major</i>)</p> </li>
* </ul> <p>This option does not recognize an active session of someone assuming
* the role of CodeCommitReview with a role session name of <i>Mary_Major</i>
* (arn:aws:sts::<i>123456789012</i>:assumed-role/CodeCommitReview/<i>Mary_Major</i>)
* unless you include a wildcard (*Mary_Major).</p> </li> <li> <p> <b>Fully
* qualified ARN</b>: This option allows you to specify the fully qualified Amazon
* Resource Name (ARN) of the IAM user or role. </p> </li> </ul> <p>For more
* information about IAM ARNs, wildcards, and formats, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html">IAM
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
*/
inline void SetNewRuleContent(const char* value) { m_newRuleContentHasBeenSet = true; m_newRuleContent.assign(value); }
/**
* <p>The updated content for the approval rule.</p> <p>When you update the
* content of the approval rule, you can specify approvers in an approval pool in
* one of two ways:</p> <ul> <li> <p> <b>CodeCommitApprovers</b>: This option only
* requires an AWS account and a resource. It can be used for both IAM users and
* federated access users whose name matches the provided resource name. This is a
* very powerful option that offers a great deal of flexibility. For example, if
* you specify the AWS account <i>123456789012</i> and <i>Mary_Major</i>, all of
* the following are counted as approvals coming from that user:</p> <ul> <li>
* <p>An IAM user in the account
* (arn:aws:iam::<i>123456789012</i>:user/<i>Mary_Major</i>)</p> </li> <li> <p>A
* federated user identified in IAM as Mary_Major
* (arn:aws:sts::<i>123456789012</i>:federated-user/<i>Mary_Major</i>)</p> </li>
* </ul> <p>This option does not recognize an active session of someone assuming
* the role of CodeCommitReview with a role session name of <i>Mary_Major</i>
* (arn:aws:sts::<i>123456789012</i>:assumed-role/CodeCommitReview/<i>Mary_Major</i>)
* unless you include a wildcard (*Mary_Major).</p> </li> <li> <p> <b>Fully
* qualified ARN</b>: This option allows you to specify the fully qualified Amazon
* Resource Name (ARN) of the IAM user or role. </p> </li> </ul> <p>For more
* information about IAM ARNs, wildcards, and formats, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html">IAM
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
*/
inline UpdatePullRequestApprovalRuleContentRequest& WithNewRuleContent(const Aws::String& value) { SetNewRuleContent(value); return *this;}
/**
* <p>The updated content for the approval rule.</p> <p>When you update the
* content of the approval rule, you can specify approvers in an approval pool in
* one of two ways:</p> <ul> <li> <p> <b>CodeCommitApprovers</b>: This option only
* requires an AWS account and a resource. It can be used for both IAM users and
* federated access users whose name matches the provided resource name. This is a
* very powerful option that offers a great deal of flexibility. For example, if
* you specify the AWS account <i>123456789012</i> and <i>Mary_Major</i>, all of
* the following are counted as approvals coming from that user:</p> <ul> <li>
* <p>An IAM user in the account
* (arn:aws:iam::<i>123456789012</i>:user/<i>Mary_Major</i>)</p> </li> <li> <p>A
* federated user identified in IAM as Mary_Major
* (arn:aws:sts::<i>123456789012</i>:federated-user/<i>Mary_Major</i>)</p> </li>
* </ul> <p>This option does not recognize an active session of someone assuming
* the role of CodeCommitReview with a role session name of <i>Mary_Major</i>
* (arn:aws:sts::<i>123456789012</i>:assumed-role/CodeCommitReview/<i>Mary_Major</i>)
* unless you include a wildcard (*Mary_Major).</p> </li> <li> <p> <b>Fully
* qualified ARN</b>: This option allows you to specify the fully qualified Amazon
* Resource Name (ARN) of the IAM user or role. </p> </li> </ul> <p>For more
* information about IAM ARNs, wildcards, and formats, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html">IAM
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
*/
inline UpdatePullRequestApprovalRuleContentRequest& WithNewRuleContent(Aws::String&& value) { SetNewRuleContent(std::move(value)); return *this;}
/**
* <p>The updated content for the approval rule.</p> <p>When you update the
* content of the approval rule, you can specify approvers in an approval pool in
* one of two ways:</p> <ul> <li> <p> <b>CodeCommitApprovers</b>: This option only
* requires an AWS account and a resource. It can be used for both IAM users and
* federated access users whose name matches the provided resource name. This is a
* very powerful option that offers a great deal of flexibility. For example, if
* you specify the AWS account <i>123456789012</i> and <i>Mary_Major</i>, all of
* the following are counted as approvals coming from that user:</p> <ul> <li>
* <p>An IAM user in the account
* (arn:aws:iam::<i>123456789012</i>:user/<i>Mary_Major</i>)</p> </li> <li> <p>A
* federated user identified in IAM as Mary_Major
* (arn:aws:sts::<i>123456789012</i>:federated-user/<i>Mary_Major</i>)</p> </li>
* </ul> <p>This option does not recognize an active session of someone assuming
* the role of CodeCommitReview with a role session name of <i>Mary_Major</i>
* (arn:aws:sts::<i>123456789012</i>:assumed-role/CodeCommitReview/<i>Mary_Major</i>)
* unless you include a wildcard (*Mary_Major).</p> </li> <li> <p> <b>Fully
* qualified ARN</b>: This option allows you to specify the fully qualified Amazon
* Resource Name (ARN) of the IAM user or role. </p> </li> </ul> <p>For more
* information about IAM ARNs, wildcards, and formats, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html">IAM
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
*/
inline UpdatePullRequestApprovalRuleContentRequest& WithNewRuleContent(const char* value) { SetNewRuleContent(value); return *this;}
private:
Aws::String m_pullRequestId;
bool m_pullRequestIdHasBeenSet;
Aws::String m_approvalRuleName;
bool m_approvalRuleNameHasBeenSet;
Aws::String m_existingRuleContentSha256;
bool m_existingRuleContentSha256HasBeenSet;
Aws::String m_newRuleContent;
bool m_newRuleContentHasBeenSet;
};
} // namespace Model
} // namespace CodeCommit
} // namespace Aws