/* * 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 codeguru-reviewer-2019-09-19.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.CodeGuruReviewer.Model { /// /// Container for the parameters to the AssociateRepository operation. /// Use to associate an Amazon Web Services CodeCommit repository or a repository managed /// by Amazon Web Services CodeStar Connections with Amazon CodeGuru Reviewer. When you /// associate a repository, CodeGuru Reviewer reviews source code changes in the repository's /// pull requests and provides automatic recommendations. You can view recommendations /// using the CodeGuru Reviewer console. For more information, see Recommendations /// in Amazon CodeGuru Reviewer in the Amazon CodeGuru Reviewer User Guide. /// /// /// /// /// If you associate a CodeCommit or S3 repository, it must be in the same Amazon Web /// Services Region and Amazon Web Services account where its CodeGuru Reviewer code reviews /// are configured. /// /// /// /// Bitbucket and GitHub Enterprise Server repositories are managed by Amazon Web Services /// CodeStar Connections to connect to CodeGuru Reviewer. For more information, see Associate /// a repository in the Amazon CodeGuru Reviewer User Guide. /// /// /// /// You cannot use the CodeGuru Reviewer SDK or the Amazon Web Services CLI to associate /// a GitHub repository with Amazon CodeGuru Reviewer. To associate a GitHub repository, /// use the console. For more information, see Getting /// started with CodeGuru Reviewer in the CodeGuru Reviewer User Guide. /// /// /// public partial class AssociateRepositoryRequest : AmazonCodeGuruReviewerRequest { private string _clientRequestToken; private KMSKeyDetails _kmsKeyDetails; private Repository _repository; private Dictionary _tags = new Dictionary(); /// /// Gets and sets the property ClientRequestToken. /// /// Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate /// repository associations if there are failures and retries. /// /// [AWSProperty(Min=1, Max=64)] public string ClientRequestToken { get { return this._clientRequestToken; } set { this._clientRequestToken = value; } } // Check to see if ClientRequestToken property is set internal bool IsSetClientRequestToken() { return this._clientRequestToken != null; } /// /// Gets and sets the property KMSKeyDetails. /// /// A KMSKeyDetails object that contains: /// ///
  • /// /// The encryption option for this repository association. It is either owned by Amazon /// Web Services Key Management Service (KMS) (AWS_OWNED_CMK) or customer /// managed (CUSTOMER_MANAGED_CMK). /// ///
  • /// /// The ID of the Amazon Web Services KMS key that is associated with this repository /// association. /// ///
///
public KMSKeyDetails KMSKeyDetails { get { return this._kmsKeyDetails; } set { this._kmsKeyDetails = value; } } // Check to see if KMSKeyDetails property is set internal bool IsSetKMSKeyDetails() { return this._kmsKeyDetails != null; } /// /// Gets and sets the property Repository. /// /// The repository to associate. /// /// [AWSProperty(Required=true)] public Repository Repository { get { return this._repository; } set { this._repository = value; } } // Check to see if Repository property is set internal bool IsSetRepository() { return this._repository != null; } /// /// Gets and sets the property Tags. /// /// An array of key-value pairs used to tag an associated repository. A tag is a custom /// attribute label with two parts: /// ///
  • /// /// A tag key (for example, CostCenter, Environment, /// Project, or Secret). Tag keys are case sensitive. /// ///
  • /// /// An optional field known as a tag value (for example, 111122223333, /// Production, or a team name). Omitting the tag value is the same as using /// an empty string. Like tag keys, tag values are case sensitive. /// ///
///
[AWSProperty(Min=1, Max=50)] public Dictionary Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }