/*
* 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 amplify-2017-07-25.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.Amplify.Model
{
///
/// Describes an execution step, for an execution job, for an Amplify app.
///
public partial class Step
{
private string _artifactsUrl;
private string _context;
private DateTime? _endTime;
private string _logUrl;
private Dictionary _screenshots = new Dictionary();
private DateTime? _startTime;
private JobStatus _status;
private string _statusReason;
private string _stepName;
private string _testArtifactsUrl;
private string _testConfigUrl;
///
/// Gets and sets the property ArtifactsUrl.
///
/// The URL to the artifact for the execution step.
///
///
[AWSProperty(Max=1000)]
public string ArtifactsUrl
{
get { return this._artifactsUrl; }
set { this._artifactsUrl = value; }
}
// Check to see if ArtifactsUrl property is set
internal bool IsSetArtifactsUrl()
{
return this._artifactsUrl != null;
}
///
/// Gets and sets the property Context.
///
/// The context for the current step. Includes a build image if the step is build.
///
///
public string Context
{
get { return this._context; }
set { this._context = value; }
}
// Check to see if Context property is set
internal bool IsSetContext()
{
return this._context != null;
}
///
/// Gets and sets the property EndTime.
///
/// The end date and time of the execution step.
///
///
[AWSProperty(Required=true)]
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 LogUrl.
///
/// The URL to the logs for the execution step.
///
///
[AWSProperty(Max=1000)]
public string LogUrl
{
get { return this._logUrl; }
set { this._logUrl = value; }
}
// Check to see if LogUrl property is set
internal bool IsSetLogUrl()
{
return this._logUrl != null;
}
///
/// Gets and sets the property Screenshots.
///
/// The list of screenshot URLs for the execution step, if relevant.
///
///
public Dictionary Screenshots
{
get { return this._screenshots; }
set { this._screenshots = value; }
}
// Check to see if Screenshots property is set
internal bool IsSetScreenshots()
{
return this._screenshots != null && this._screenshots.Count > 0;
}
///
/// Gets and sets the property StartTime.
///
/// The start date and time of the execution step.
///
///
[AWSProperty(Required=true)]
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;
}
///
/// Gets and sets the property Status.
///
/// The status of the execution step.
///
///
[AWSProperty(Required=true)]
public JobStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property StatusReason.
///
/// The reason for the current step status.
///
///
[AWSProperty(Max=1000)]
public string StatusReason
{
get { return this._statusReason; }
set { this._statusReason = value; }
}
// Check to see if StatusReason property is set
internal bool IsSetStatusReason()
{
return this._statusReason != null;
}
///
/// Gets and sets the property StepName.
///
/// The name of the execution step.
///
///
[AWSProperty(Required=true, Max=255)]
public string StepName
{
get { return this._stepName; }
set { this._stepName = value; }
}
// Check to see if StepName property is set
internal bool IsSetStepName()
{
return this._stepName != null;
}
///
/// Gets and sets the property TestArtifactsUrl.
///
/// The URL to the test artifact for the execution step.
///
///
[AWSProperty(Max=1000)]
public string TestArtifactsUrl
{
get { return this._testArtifactsUrl; }
set { this._testArtifactsUrl = value; }
}
// Check to see if TestArtifactsUrl property is set
internal bool IsSetTestArtifactsUrl()
{
return this._testArtifactsUrl != null;
}
///
/// Gets and sets the property TestConfigUrl.
///
/// The URL to the test configuration for the execution step.
///
///
[AWSProperty(Max=1000)]
public string TestConfigUrl
{
get { return this._testConfigUrl; }
set { this._testConfigUrl = value; }
}
// Check to see if TestConfigUrl property is set
internal bool IsSetTestConfigUrl()
{
return this._testConfigUrl != null;
}
}
}