/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Returns information about the template that created the approval rule for a
* pull request.See Also:
AWS
* API Reference
The ID of the template that created the approval rule.
*/ inline const Aws::String& GetApprovalRuleTemplateId() const{ return m_approvalRuleTemplateId; } /** *The ID of the template that created the approval rule.
*/ inline bool ApprovalRuleTemplateIdHasBeenSet() const { return m_approvalRuleTemplateIdHasBeenSet; } /** *The ID of the template that created the approval rule.
*/ inline void SetApprovalRuleTemplateId(const Aws::String& value) { m_approvalRuleTemplateIdHasBeenSet = true; m_approvalRuleTemplateId = value; } /** *The ID of the template that created the approval rule.
*/ inline void SetApprovalRuleTemplateId(Aws::String&& value) { m_approvalRuleTemplateIdHasBeenSet = true; m_approvalRuleTemplateId = std::move(value); } /** *The ID of the template that created the approval rule.
*/ inline void SetApprovalRuleTemplateId(const char* value) { m_approvalRuleTemplateIdHasBeenSet = true; m_approvalRuleTemplateId.assign(value); } /** *The ID of the template that created the approval rule.
*/ inline OriginApprovalRuleTemplate& WithApprovalRuleTemplateId(const Aws::String& value) { SetApprovalRuleTemplateId(value); return *this;} /** *The ID of the template that created the approval rule.
*/ inline OriginApprovalRuleTemplate& WithApprovalRuleTemplateId(Aws::String&& value) { SetApprovalRuleTemplateId(std::move(value)); return *this;} /** *The ID of the template that created the approval rule.
*/ inline OriginApprovalRuleTemplate& WithApprovalRuleTemplateId(const char* value) { SetApprovalRuleTemplateId(value); return *this;} /** *The name of the template that created the approval rule.
*/ inline const Aws::String& GetApprovalRuleTemplateName() const{ return m_approvalRuleTemplateName; } /** *The name of the template that created the approval rule.
*/ inline bool ApprovalRuleTemplateNameHasBeenSet() const { return m_approvalRuleTemplateNameHasBeenSet; } /** *The name of the template that created the approval rule.
*/ inline void SetApprovalRuleTemplateName(const Aws::String& value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName = value; } /** *The name of the template that created the approval rule.
*/ inline void SetApprovalRuleTemplateName(Aws::String&& value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName = std::move(value); } /** *The name of the template that created the approval rule.
*/ inline void SetApprovalRuleTemplateName(const char* value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName.assign(value); } /** *The name of the template that created the approval rule.
*/ inline OriginApprovalRuleTemplate& WithApprovalRuleTemplateName(const Aws::String& value) { SetApprovalRuleTemplateName(value); return *this;} /** *The name of the template that created the approval rule.
*/ inline OriginApprovalRuleTemplate& WithApprovalRuleTemplateName(Aws::String&& value) { SetApprovalRuleTemplateName(std::move(value)); return *this;} /** *The name of the template that created the approval rule.
*/ inline OriginApprovalRuleTemplate& WithApprovalRuleTemplateName(const char* value) { SetApprovalRuleTemplateName(value); return *this;} private: Aws::String m_approvalRuleTemplateId; bool m_approvalRuleTemplateIdHasBeenSet = false; Aws::String m_approvalRuleTemplateName; bool m_approvalRuleTemplateNameHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws