/*
* 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 the summary for an execution job for an Amplify app.
///
public partial class JobSummary
{
private string _commitId;
private string _commitMessage;
private DateTime? _commitTime;
private DateTime? _endTime;
private string _jobArn;
private string _jobId;
private JobType _jobType;
private DateTime? _startTime;
private JobStatus _status;
///
/// Gets and sets the property CommitId.
///
/// The commit ID from a third-party repository provider for the job.
///
///
[AWSProperty(Required=true, Max=255)]
public string CommitId
{
get { return this._commitId; }
set { this._commitId = value; }
}
// Check to see if CommitId property is set
internal bool IsSetCommitId()
{
return this._commitId != null;
}
///
/// Gets and sets the property CommitMessage.
///
/// The commit message from a third-party repository provider for the job.
///
///
[AWSProperty(Required=true, Max=10000)]
public string CommitMessage
{
get { return this._commitMessage; }
set { this._commitMessage = value; }
}
// Check to see if CommitMessage property is set
internal bool IsSetCommitMessage()
{
return this._commitMessage != null;
}
///
/// Gets and sets the property CommitTime.
///
/// The commit date and time for the job.
///
///
[AWSProperty(Required=true)]
public DateTime CommitTime
{
get { return this._commitTime.GetValueOrDefault(); }
set { this._commitTime = value; }
}
// Check to see if CommitTime property is set
internal bool IsSetCommitTime()
{
return this._commitTime.HasValue;
}
///
/// Gets and sets the property EndTime.
///
/// The end date and time for the job.
///
///
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 JobArn.
///
/// The Amazon Resource Name (ARN) for the job.
///
///
[AWSProperty(Required=true, Max=1000)]
public string JobArn
{
get { return this._jobArn; }
set { this._jobArn = value; }
}
// Check to see if JobArn property is set
internal bool IsSetJobArn()
{
return this._jobArn != null;
}
///
/// Gets and sets the property JobId.
///
/// The unique ID for the job.
///
///
[AWSProperty(Required=true, Max=255)]
public string JobId
{
get { return this._jobId; }
set { this._jobId = value; }
}
// Check to see if JobId property is set
internal bool IsSetJobId()
{
return this._jobId != null;
}
///
/// Gets and sets the property JobType.
///
/// The type for the job. If the value is RELEASE
, the job was manually
/// released from its source by using the StartJob
API. If the value is RETRY
,
/// the job was manually retried using the StartJob
API. If the value is
/// WEB_HOOK
, the job was automatically triggered by webhooks.
///
///
[AWSProperty(Required=true, Max=10)]
public JobType JobType
{
get { return this._jobType; }
set { this._jobType = value; }
}
// Check to see if JobType property is set
internal bool IsSetJobType()
{
return this._jobType != null;
}
///
/// Gets and sets the property StartTime.
///
/// The start date and time for the job.
///
///
[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 current status for the job.
///
///
[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;
}
}
}