/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace CodeCommit { namespace Model { /** */ class UpdateApprovalRuleTemplateContentRequest : public CodeCommitRequest { public: AWS_CODECOMMIT_API UpdateApprovalRuleTemplateContentRequest(); // 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 "UpdateApprovalRuleTemplateContent"; } AWS_CODECOMMIT_API Aws::String SerializePayload() const override; AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the approval rule template where you want to update the content * of the rule.

*/ inline const Aws::String& GetApprovalRuleTemplateName() const{ return m_approvalRuleTemplateName; } /** *

The name of the approval rule template where you want to update the content * of the rule.

*/ inline bool ApprovalRuleTemplateNameHasBeenSet() const { return m_approvalRuleTemplateNameHasBeenSet; } /** *

The name of the approval rule template where you want to update the content * of the rule.

*/ inline void SetApprovalRuleTemplateName(const Aws::String& value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName = value; } /** *

The name of the approval rule template where you want to update the content * of the rule.

*/ inline void SetApprovalRuleTemplateName(Aws::String&& value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName = std::move(value); } /** *

The name of the approval rule template where you want to update the content * of the rule.

*/ inline void SetApprovalRuleTemplateName(const char* value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName.assign(value); } /** *

The name of the approval rule template where you want to update the content * of the rule.

*/ inline UpdateApprovalRuleTemplateContentRequest& WithApprovalRuleTemplateName(const Aws::String& value) { SetApprovalRuleTemplateName(value); return *this;} /** *

The name of the approval rule template where you want to update the content * of the rule.

*/ inline UpdateApprovalRuleTemplateContentRequest& WithApprovalRuleTemplateName(Aws::String&& value) { SetApprovalRuleTemplateName(std::move(value)); return *this;} /** *

The name of the approval rule template where you want to update the content * of the rule.

*/ inline UpdateApprovalRuleTemplateContentRequest& WithApprovalRuleTemplateName(const char* value) { SetApprovalRuleTemplateName(value); return *this;} /** *

The content that replaces the existing content of the rule. Content * statements must be complete. You cannot provide only the changes.

*/ inline const Aws::String& GetNewRuleContent() const{ return m_newRuleContent; } /** *

The content that replaces the existing content of the rule. Content * statements must be complete. You cannot provide only the changes.

*/ inline bool NewRuleContentHasBeenSet() const { return m_newRuleContentHasBeenSet; } /** *

The content that replaces the existing content of the rule. Content * statements must be complete. You cannot provide only the changes.

*/ inline void SetNewRuleContent(const Aws::String& value) { m_newRuleContentHasBeenSet = true; m_newRuleContent = value; } /** *

The content that replaces the existing content of the rule. Content * statements must be complete. You cannot provide only the changes.

*/ inline void SetNewRuleContent(Aws::String&& value) { m_newRuleContentHasBeenSet = true; m_newRuleContent = std::move(value); } /** *

The content that replaces the existing content of the rule. Content * statements must be complete. You cannot provide only the changes.

*/ inline void SetNewRuleContent(const char* value) { m_newRuleContentHasBeenSet = true; m_newRuleContent.assign(value); } /** *

The content that replaces the existing content of the rule. Content * statements must be complete. You cannot provide only the changes.

*/ inline UpdateApprovalRuleTemplateContentRequest& WithNewRuleContent(const Aws::String& value) { SetNewRuleContent(value); return *this;} /** *

The content that replaces the existing content of the rule. Content * statements must be complete. You cannot provide only the changes.

*/ inline UpdateApprovalRuleTemplateContentRequest& WithNewRuleContent(Aws::String&& value) { SetNewRuleContent(std::move(value)); return *this;} /** *

The content that replaces the existing content of the rule. Content * statements must be complete. You cannot provide only the changes.

*/ inline UpdateApprovalRuleTemplateContentRequest& WithNewRuleContent(const char* value) { SetNewRuleContent(value); return *this;} /** *

The SHA-256 hash signature for the content of the approval rule. You can * retrieve this information by using GetPullRequest.

*/ inline const Aws::String& GetExistingRuleContentSha256() const{ return m_existingRuleContentSha256; } /** *

The SHA-256 hash signature for the content of the approval rule. You can * retrieve this information by using GetPullRequest.

*/ inline bool ExistingRuleContentSha256HasBeenSet() const { return m_existingRuleContentSha256HasBeenSet; } /** *

The SHA-256 hash signature for the content of the approval rule. You can * retrieve this information by using GetPullRequest.

*/ inline void SetExistingRuleContentSha256(const Aws::String& value) { m_existingRuleContentSha256HasBeenSet = true; m_existingRuleContentSha256 = value; } /** *

The SHA-256 hash signature for the content of the approval rule. You can * retrieve this information by using GetPullRequest.

*/ inline void SetExistingRuleContentSha256(Aws::String&& value) { m_existingRuleContentSha256HasBeenSet = true; m_existingRuleContentSha256 = std::move(value); } /** *

The SHA-256 hash signature for the content of the approval rule. You can * retrieve this information by using GetPullRequest.

*/ inline void SetExistingRuleContentSha256(const char* value) { m_existingRuleContentSha256HasBeenSet = true; m_existingRuleContentSha256.assign(value); } /** *

The SHA-256 hash signature for the content of the approval rule. You can * retrieve this information by using GetPullRequest.

*/ inline UpdateApprovalRuleTemplateContentRequest& WithExistingRuleContentSha256(const Aws::String& value) { SetExistingRuleContentSha256(value); return *this;} /** *

The SHA-256 hash signature for the content of the approval rule. You can * retrieve this information by using GetPullRequest.

*/ inline UpdateApprovalRuleTemplateContentRequest& WithExistingRuleContentSha256(Aws::String&& value) { SetExistingRuleContentSha256(std::move(value)); return *this;} /** *

The SHA-256 hash signature for the content of the approval rule. You can * retrieve this information by using GetPullRequest.

*/ inline UpdateApprovalRuleTemplateContentRequest& WithExistingRuleContentSha256(const char* value) { SetExistingRuleContentSha256(value); return *this;} private: Aws::String m_approvalRuleTemplateName; bool m_approvalRuleTemplateNameHasBeenSet = false; Aws::String m_newRuleContent; bool m_newRuleContentHasBeenSet = false; Aws::String m_existingRuleContentSha256; bool m_existingRuleContentSha256HasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws