/*
* 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
{
///
/// Contains configuration information about a batch build project.
///
public partial class ProjectBuildBatchConfig
{
private BatchReportModeType _batchReportMode;
private bool? _combineArtifacts;
private BatchRestrictions _restrictions;
private string _serviceRole;
private int? _timeoutInMins;
///
/// Gets and sets the property BatchReportMode.
///
/// Specifies how build status reports are sent to the source provider for the batch build.
/// This property is only used when the source provider for your project is Bitbucket,
/// GitHub, or GitHub Enterprise, and your project is configured to report build statuses
/// to the source provider.
///
/// - REPORT_AGGREGATED_BATCH
-
///
/// (Default) Aggregate all of the build statuses into a single status report.
///
///
- REPORT_INDIVIDUAL_BUILDS
-
///
/// Send a separate status report for each individual build.
///
///
///
public BatchReportModeType BatchReportMode
{
get { return this._batchReportMode; }
set { this._batchReportMode = value; }
}
// Check to see if BatchReportMode property is set
internal bool IsSetBatchReportMode()
{
return this._batchReportMode != null;
}
///
/// Gets and sets the property CombineArtifacts.
///
/// Specifies if the build artifacts for the batch build should be combined into a single
/// artifact location.
///
///
public bool CombineArtifacts
{
get { return this._combineArtifacts.GetValueOrDefault(); }
set { this._combineArtifacts = value; }
}
// Check to see if CombineArtifacts property is set
internal bool IsSetCombineArtifacts()
{
return this._combineArtifacts.HasValue;
}
///
/// Gets and sets the property Restrictions.
///
/// A BatchRestrictions
object that specifies the restrictions for the batch
/// build.
///
///
public BatchRestrictions Restrictions
{
get { return this._restrictions; }
set { this._restrictions = value; }
}
// Check to see if Restrictions property is set
internal bool IsSetRestrictions()
{
return this._restrictions != null;
}
///
/// Gets and sets the property ServiceRole.
///
/// Specifies the service role ARN for the batch build project.
///
///
[AWSProperty(Min=1)]
public string ServiceRole
{
get { return this._serviceRole; }
set { this._serviceRole = value; }
}
// Check to see if ServiceRole property is set
internal bool IsSetServiceRole()
{
return this._serviceRole != null;
}
///
/// Gets and sets the property TimeoutInMins.
///
/// Specifies the maximum amount of time, in minutes, that the batch build must be completed
/// in.
///
///
public int TimeoutInMins
{
get { return this._timeoutInMins.GetValueOrDefault(); }
set { this._timeoutInMins = value; }
}
// Check to see if TimeoutInMins property is set
internal bool IsSetTimeoutInMins()
{
return this._timeoutInMins.HasValue;
}
}
}