/*
* 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
{
///
/// Information about a stage for a build.
///
public partial class BuildPhase
{
private List _contexts = new List();
private long? _durationInSeconds;
private DateTime? _endTime;
private StatusType _phaseStatus;
private BuildPhaseType _phaseType;
private DateTime? _startTime;
///
/// Gets and sets the property Contexts.
///
/// Additional information about a build phase, especially to help troubleshoot a failed
/// build.
///
///
public List Contexts
{
get { return this._contexts; }
set { this._contexts = value; }
}
// Check to see if Contexts property is set
internal bool IsSetContexts()
{
return this._contexts != null && this._contexts.Count > 0;
}
///
/// Gets and sets the property DurationInSeconds.
///
/// How long, in seconds, between the starting and ending times of the build's phase.
///
///
public long DurationInSeconds
{
get { return this._durationInSeconds.GetValueOrDefault(); }
set { this._durationInSeconds = value; }
}
// Check to see if DurationInSeconds property is set
internal bool IsSetDurationInSeconds()
{
return this._durationInSeconds.HasValue;
}
///
/// Gets and sets the property EndTime.
///
/// When the build phase ended, expressed in Unix time format.
///
///
public DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set { this._endTime = value; }
}
// Check to see if EndTime property is set
internal bool IsSetEndTime()
{
return this._endTime.HasValue;
}
///
/// Gets and sets the property PhaseStatus.
///
/// The current status of the build phase. Valid values include:
///
/// - FAILED
-
///
/// The build phase failed.
///
///
- FAULT
-
///
/// The build phase faulted.
///
///
- IN_PROGRESS
-
///
/// The build phase is still in progress.
///
///
- STOPPED
-
///
/// The build phase stopped.
///
///
- SUCCEEDED
-
///
/// The build phase succeeded.
///
///
- TIMED_OUT
-
///
/// The build phase timed out.
///
///
///
public StatusType PhaseStatus
{
get { return this._phaseStatus; }
set { this._phaseStatus = value; }
}
// Check to see if PhaseStatus property is set
internal bool IsSetPhaseStatus()
{
return this._phaseStatus != null;
}
///
/// Gets and sets the property PhaseType.
///
/// The name of the build phase. Valid values include:
///
/// - BUILD
-
///
/// Core build activities typically occur in this build phase.
///
///
- COMPLETED
-
///
/// The build has been completed.
///
///
- DOWNLOAD_SOURCE
-
///
/// Source code is being downloaded in this build phase.
///
///
- FINALIZING
-
///
/// The build process is completing in this build phase.
///
///
- INSTALL
-
///
/// Installation activities typically occur in this build phase.
///
///
- POST_BUILD
-
///
/// Post-build activities typically occur in this build phase.
///
///
- PRE_BUILD
-
///
/// Pre-build activities typically occur in this build phase.
///
///
- PROVISIONING
-
///
/// The build environment is being set up.
///
///
- QUEUED
-
///
/// The build has been submitted and is queued behind other submitted builds.
///
///
- SUBMITTED
-
///
/// The build has been submitted.
///
///
- UPLOAD_ARTIFACTS
-
///
/// Build output artifacts are being uploaded to the output location.
///
///
///
public BuildPhaseType PhaseType
{
get { return this._phaseType; }
set { this._phaseType = value; }
}
// Check to see if PhaseType property is set
internal bool IsSetPhaseType()
{
return this._phaseType != null;
}
///
/// Gets and sets the property StartTime.
///
/// When the build phase started, expressed in Unix time format.
///
///
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set { this._startTime = value; }
}
// Check to see if StartTime property is set
internal bool IsSetStartTime()
{
return this._startTime.HasValue;
}
}
}