/*
* 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 robomaker-2018-06-29.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.RoboMaker.Model
{
///
/// Information about a simulation job batch.
///
public partial class SimulationJobBatchSummary
{
private string _arn;
private DateTime? _createdAt;
private int? _createdRequestCount;
private int? _failedRequestCount;
private DateTime? _lastUpdatedAt;
private int? _pendingRequestCount;
private SimulationJobBatchStatus _status;
///
/// Gets and sets the property Arn.
///
/// The Amazon Resource Name (ARN) of the batch.
///
///
[AWSProperty(Min=1, Max=1224)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
///
/// Gets and sets the property CreatedAt.
///
/// The time, in milliseconds since the epoch, when the simulation job batch was created.
///
///
public DateTime CreatedAt
{
get { return this._createdAt.GetValueOrDefault(); }
set { this._createdAt = value; }
}
// Check to see if CreatedAt property is set
internal bool IsSetCreatedAt()
{
return this._createdAt.HasValue;
}
///
/// Gets and sets the property CreatedRequestCount.
///
/// The number of created simulation job requests.
///
///
public int CreatedRequestCount
{
get { return this._createdRequestCount.GetValueOrDefault(); }
set { this._createdRequestCount = value; }
}
// Check to see if CreatedRequestCount property is set
internal bool IsSetCreatedRequestCount()
{
return this._createdRequestCount.HasValue;
}
///
/// Gets and sets the property FailedRequestCount.
///
/// The number of failed simulation job requests.
///
///
public int FailedRequestCount
{
get { return this._failedRequestCount.GetValueOrDefault(); }
set { this._failedRequestCount = value; }
}
// Check to see if FailedRequestCount property is set
internal bool IsSetFailedRequestCount()
{
return this._failedRequestCount.HasValue;
}
///
/// Gets and sets the property LastUpdatedAt.
///
/// The time, in milliseconds since the epoch, when the simulation job batch was last
/// updated.
///
///
public DateTime LastUpdatedAt
{
get { return this._lastUpdatedAt.GetValueOrDefault(); }
set { this._lastUpdatedAt = value; }
}
// Check to see if LastUpdatedAt property is set
internal bool IsSetLastUpdatedAt()
{
return this._lastUpdatedAt.HasValue;
}
///
/// Gets and sets the property PendingRequestCount.
///
/// The number of pending simulation job requests.
///
///
public int PendingRequestCount
{
get { return this._pendingRequestCount.GetValueOrDefault(); }
set { this._pendingRequestCount = value; }
}
// Check to see if PendingRequestCount property is set
internal bool IsSetPendingRequestCount()
{
return this._pendingRequestCount.HasValue;
}
///
/// Gets and sets the property Status.
///
/// The status of the simulation job batch.
///
/// - Pending
-
///
/// The simulation job batch request is pending.
///
///
- InProgress
-
///
/// The simulation job batch is in progress.
///
///
- Failed
-
///
/// The simulation job batch failed. One or more simulation job requests could not be
/// completed due to an internal failure (like
InternalServiceError
). See
/// failureCode
and failureReason
for more information.
///
/// - Completed
-
///
/// The simulation batch job completed. A batch is complete when (1) there are no pending
/// simulation job requests in the batch and none of the failed simulation job requests
/// are due to
InternalServiceError
and (2) when all created simulation jobs
/// have reached a terminal state (for example, Completed
or Failed
).
///
///
/// - Canceled
-
///
/// The simulation batch job was cancelled.
///
///
- Canceling
-
///
/// The simulation batch job is being cancelled.
///
///
- Completing
-
///
/// The simulation batch job is completing.
///
///
- TimingOut
-
///
/// The simulation job batch is timing out.
///
///
///
/// If a batch timing out, and there are pending requests that were failing due to an
/// internal failure (like
InternalServiceError
), the batch status will be
/// Failed
. If there are no such failing request, the batch status will be
/// TimedOut
.
///
/// - TimedOut
-
///
/// The simulation batch job timed out.
///
///
///
public SimulationJobBatchStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}