/*
* 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 codebuild-2016-10-06.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.CodeBuild.Model
{
///
/// Container for the parameters to the GetReportGroupTrend operation.
/// Analyzes and accumulates test report values for the specified test reports.
///
public partial class GetReportGroupTrendRequest : AmazonCodeBuildRequest
{
private int? _numOfReports;
private string _reportGroupArn;
private ReportGroupTrendFieldType _trendField;
///
/// Gets and sets the property NumOfReports.
///
/// The number of reports to analyze. This operation always retrieves the most recent
/// reports.
///
///
///
/// If this parameter is omitted, the most recent 100 reports are analyzed.
///
///
[AWSProperty(Min=1, Max=100)]
public int NumOfReports
{
get { return this._numOfReports.GetValueOrDefault(); }
set { this._numOfReports = value; }
}
// Check to see if NumOfReports property is set
internal bool IsSetNumOfReports()
{
return this._numOfReports.HasValue;
}
///
/// Gets and sets the property ReportGroupArn.
///
/// The ARN of the report group that contains the reports to analyze.
///
///
[AWSProperty(Required=true, Min=1)]
public string ReportGroupArn
{
get { return this._reportGroupArn; }
set { this._reportGroupArn = value; }
}
// Check to see if ReportGroupArn property is set
internal bool IsSetReportGroupArn()
{
return this._reportGroupArn != null;
}
///
/// Gets and sets the property TrendField.
///
/// The test report value to accumulate. This must be one of the following values:
///
/// - Test reports:
-
- DURATION
-
///
/// Accumulate the test run times for the specified reports.
///
///
- PASS_RATE
-
///
/// Accumulate the percentage of tests that passed for the specified test reports.
///
///
- TOTAL
-
///
/// Accumulate the total number of tests for the specified test reports.
///
///
- Code coverage reports:
-
- BRANCH_COVERAGE
/// -
///
/// Accumulate the branch coverage percentages for the specified test reports.
///
///
- BRANCHES_COVERED
-
///
/// Accumulate the branches covered values for the specified test reports.
///
///
- BRANCHES_MISSED
-
///
/// Accumulate the branches missed values for the specified test reports.
///
///
- LINE_COVERAGE
-
///
/// Accumulate the line coverage percentages for the specified test reports.
///
///
- LINES_COVERED
-
///
/// Accumulate the lines covered values for the specified test reports.
///
///
- LINES_MISSED
-
///
/// Accumulate the lines not covered values for the specified test reports.
///
///
///
[AWSProperty(Required=true)]
public ReportGroupTrendFieldType TrendField
{
get { return this._trendField; }
set { this._trendField = value; }
}
// Check to see if TrendField property is set
internal bool IsSetTrendField()
{
return this._trendField != null;
}
}
}