/* * 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 information about a stage for a batch build. /// public partial class BuildBatchPhase { private List _contexts = new List(); private long? _durationInSeconds; private DateTime? _endTime; private StatusType _phaseStatus; private BuildBatchPhaseType _phaseType; private DateTime? _startTime; /// /// Gets and sets the property Contexts. /// /// Additional information about the batch build phase. Especially to help troubleshoot /// a failed batch 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 batch 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 batch 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 batch 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 batch build phase. Valid values include: /// ///
COMBINE_ARTIFACTS
/// /// Build output artifacts are being combined and uploaded to the output location. /// ///
DOWNLOAD_BATCHSPEC
/// /// The batch build specification is being downloaded. /// ///
FAILED
/// /// One or more of the builds failed. /// ///
IN_PROGRESS
/// /// The batch build is in progress. /// ///
STOPPED
/// /// The batch build was stopped. /// ///
SUBMITTED
/// /// The btach build has been submitted. /// ///
SUCCEEDED
/// /// The batch build succeeded. /// ///
///
public BuildBatchPhaseType 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 batch 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; } } }