/* * 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 { /// /// Information about the summary of the code review. /// public partial class CodeReviewSummary { private string _codeReviewArn; private DateTime? _createdTimeStamp; private DateTime? _lastUpdatedTimeStamp; private MetricsSummary _metricsSummary; private string _name; private string _owner; private ProviderType _providerType; private string _pullRequestId; private string _repositoryName; private SourceCodeType _sourceCodeType; private JobState _state; private Type _type; /// /// Gets and sets the property CodeReviewArn. /// /// The Amazon Resource Name (ARN) of the CodeReview /// object. /// /// [AWSProperty(Min=1, Max=1600)] public string CodeReviewArn { get { return this._codeReviewArn; } set { this._codeReviewArn = value; } } // Check to see if CodeReviewArn property is set internal bool IsSetCodeReviewArn() { return this._codeReviewArn != null; } /// /// Gets and sets the property CreatedTimeStamp. /// /// The time, in milliseconds since the epoch, when the code review was created. /// /// public DateTime CreatedTimeStamp { get { return this._createdTimeStamp.GetValueOrDefault(); } set { this._createdTimeStamp = value; } } // Check to see if CreatedTimeStamp property is set internal bool IsSetCreatedTimeStamp() { return this._createdTimeStamp.HasValue; } /// /// Gets and sets the property LastUpdatedTimeStamp. /// /// The time, in milliseconds since the epoch, when the code review was last updated. /// /// public DateTime LastUpdatedTimeStamp { get { return this._lastUpdatedTimeStamp.GetValueOrDefault(); } set { this._lastUpdatedTimeStamp = value; } } // Check to see if LastUpdatedTimeStamp property is set internal bool IsSetLastUpdatedTimeStamp() { return this._lastUpdatedTimeStamp.HasValue; } /// /// Gets and sets the property MetricsSummary. /// /// The statistics from the code review. /// /// public MetricsSummary MetricsSummary { get { return this._metricsSummary; } set { this._metricsSummary = value; } } // Check to see if MetricsSummary property is set internal bool IsSetMetricsSummary() { return this._metricsSummary != null; } /// /// Gets and sets the property Name. /// /// The name of the code review. /// /// [AWSProperty(Min=1, Max=100)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property Owner. /// /// The owner of the repository. For an Amazon Web Services CodeCommit repository, this /// is the Amazon Web Services account ID of the account that owns the repository. For /// a GitHub, GitHub Enterprise Server, or Bitbucket repository, this is the username /// for the account that owns the repository. For an S3 repository, it can be the username /// or Amazon Web Services account ID. /// /// [AWSProperty(Min=1, Max=100)] public string Owner { get { return this._owner; } set { this._owner = value; } } // Check to see if Owner property is set internal bool IsSetOwner() { return this._owner != null; } /// /// Gets and sets the property ProviderType. /// /// The provider type of the repository association. /// /// public ProviderType ProviderType { get { return this._providerType; } set { this._providerType = value; } } // Check to see if ProviderType property is set internal bool IsSetProviderType() { return this._providerType != null; } /// /// Gets and sets the property PullRequestId. /// /// The pull request ID for the code review. /// /// [AWSProperty(Min=1, Max=64)] public string PullRequestId { get { return this._pullRequestId; } set { this._pullRequestId = value; } } // Check to see if PullRequestId property is set internal bool IsSetPullRequestId() { return this._pullRequestId != null; } /// /// Gets and sets the property RepositoryName. /// /// The name of the repository. /// /// [AWSProperty(Min=1, Max=100)] public string RepositoryName { get { return this._repositoryName; } set { this._repositoryName = value; } } // Check to see if RepositoryName property is set internal bool IsSetRepositoryName() { return this._repositoryName != null; } /// /// Gets and sets the property SourceCodeType. /// public SourceCodeType SourceCodeType { get { return this._sourceCodeType; } set { this._sourceCodeType = value; } } // Check to see if SourceCodeType property is set internal bool IsSetSourceCodeType() { return this._sourceCodeType != null; } /// /// Gets and sets the property State. /// /// The state of the code review. /// /// /// /// The valid code review states are: /// /// /// public JobState State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != null; } /// /// Gets and sets the property Type. /// /// The type of the code review. /// /// public Type Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }