/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the codecommit-2015-04-13.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CodeCommit.Model { /// /// Container for the parameters to the CreateApprovalRuleTemplate operation. /// Creates a template for approval rules that can then be associated with one or more /// repositories in your AWS account. When you associate a template with a repository, /// AWS CodeCommit creates an approval rule that matches the conditions of the template /// for all pull requests that meet the conditions of the template. For more information, /// see AssociateApprovalRuleTemplateWithRepository. /// public partial class CreateApprovalRuleTemplateRequest : AmazonCodeCommitRequest { private string _approvalRuleTemplateContent; private string _approvalRuleTemplateDescription; private string _approvalRuleTemplateName; /// /// Gets and sets the property ApprovalRuleTemplateContent. /// /// The content of the approval rule that is created on pull requests in associated repositories. /// If you specify one or more destination references (branches), approval rules are created /// in an associated repository only if their destination references (branches) match /// those specified in the template. /// /// /// /// When you create the content of the approval rule template, you can specify approvers /// in an approval pool in one of two ways: /// /// /// /// For more information about IAM ARNs, wildcards, and formats, see IAM /// Identifiers in the IAM User Guide. /// /// /// [AWSProperty(Required=true, Min=1, Max=3000)] public string ApprovalRuleTemplateContent { get { return this._approvalRuleTemplateContent; } set { this._approvalRuleTemplateContent = value; } } // Check to see if ApprovalRuleTemplateContent property is set internal bool IsSetApprovalRuleTemplateContent() { return this._approvalRuleTemplateContent != null; } /// /// Gets and sets the property ApprovalRuleTemplateDescription. /// /// The description of the approval rule template. Consider providing a description that /// explains what this template does and when it might be appropriate to associate it /// with repositories. /// /// [AWSProperty(Min=0, Max=1000)] public string ApprovalRuleTemplateDescription { get { return this._approvalRuleTemplateDescription; } set { this._approvalRuleTemplateDescription = value; } } // Check to see if ApprovalRuleTemplateDescription property is set internal bool IsSetApprovalRuleTemplateDescription() { return this._approvalRuleTemplateDescription != null; } /// /// Gets and sets the property ApprovalRuleTemplateName. /// /// The name of the approval rule template. Provide descriptive names, because this name /// is applied to the approval rules created automatically in associated repositories. /// /// [AWSProperty(Required=true, Min=1, Max=100)] public string ApprovalRuleTemplateName { get { return this._approvalRuleTemplateName; } set { this._approvalRuleTemplateName = value; } } // Check to see if ApprovalRuleTemplateName property is set internal bool IsSetApprovalRuleTemplateName() { return this._approvalRuleTemplateName != null; } } }