/*
* 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 forecast-2018-06-26.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.ForecastService.Model
{
///
/// Provides a summary of the dataset import job properties used in the ListDatasetImportJobs
/// operation. To get the complete set of properties, call the DescribeDatasetImportJob
/// operation, and provide the DatasetImportJobArn
.
///
public partial class DatasetImportJobSummary
{
private DateTime? _creationTime;
private string _datasetImportJobArn;
private string _datasetImportJobName;
private DataSource _dataSource;
private ImportMode _importMode;
private DateTime? _lastModificationTime;
private string _message;
private string _status;
///
/// Gets and sets the property CreationTime.
///
/// When the dataset import job was created.
///
///
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
///
/// Gets and sets the property DatasetImportJobArn.
///
/// The Amazon Resource Name (ARN) of the dataset import job.
///
///
[AWSProperty(Max=256)]
public string DatasetImportJobArn
{
get { return this._datasetImportJobArn; }
set { this._datasetImportJobArn = value; }
}
// Check to see if DatasetImportJobArn property is set
internal bool IsSetDatasetImportJobArn()
{
return this._datasetImportJobArn != null;
}
///
/// Gets and sets the property DatasetImportJobName.
///
/// The name of the dataset import job.
///
///
[AWSProperty(Min=1, Max=63)]
public string DatasetImportJobName
{
get { return this._datasetImportJobName; }
set { this._datasetImportJobName = value; }
}
// Check to see if DatasetImportJobName property is set
internal bool IsSetDatasetImportJobName()
{
return this._datasetImportJobName != null;
}
///
/// Gets and sets the property DataSource.
///
/// The location of the training data to import and an Identity and Access Management
/// (IAM) role that Amazon Forecast can assume to access the data. The training data must
/// be stored in an Amazon S3 bucket.
///
///
///
/// If encryption is used, DataSource
includes an Key Management Service
/// (KMS) key.
///
///
public DataSource DataSource
{
get { return this._dataSource; }
set { this._dataSource = value; }
}
// Check to see if DataSource property is set
internal bool IsSetDataSource()
{
return this._dataSource != null;
}
///
/// Gets and sets the property ImportMode.
///
/// The import mode of the dataset import job, FULL or INCREMENTAL.
///
///
public ImportMode ImportMode
{
get { return this._importMode; }
set { this._importMode = value; }
}
// Check to see if ImportMode property is set
internal bool IsSetImportMode()
{
return this._importMode != null;
}
///
/// Gets and sets the property LastModificationTime.
///
/// The last time the resource was modified. The timestamp depends on the status of the
/// job:
///
/// -
///
///
CREATE_PENDING
- The CreationTime
.
///
/// -
///
///
CREATE_IN_PROGRESS
- The current timestamp.
///
/// -
///
///
CREATE_STOPPING
- The current timestamp.
///
/// -
///
///
CREATE_STOPPED
- When the job stopped.
///
/// -
///
///
ACTIVE
or CREATE_FAILED
- When the job finished or failed.
///
///
///
public DateTime LastModificationTime
{
get { return this._lastModificationTime.GetValueOrDefault(); }
set { this._lastModificationTime = value; }
}
// Check to see if LastModificationTime property is set
internal bool IsSetLastModificationTime()
{
return this._lastModificationTime.HasValue;
}
///
/// Gets and sets the property Message.
///
/// If an error occurred, an informational message about the error.
///
///
public string Message
{
get { return this._message; }
set { this._message = value; }
}
// Check to see if Message property is set
internal bool IsSetMessage()
{
return this._message != null;
}
///
/// Gets and sets the property Status.
///
/// The status of the dataset import job. States include:
///
/// -
///
///
ACTIVE
///
/// -
///
///
CREATE_PENDING
, CREATE_IN_PROGRESS
, CREATE_FAILED
///
///
/// -
///
///
DELETE_PENDING
, DELETE_IN_PROGRESS
, DELETE_FAILED
///
///
/// -
///
///
CREATE_STOPPING
, CREATE_STOPPED
///
///
///
[AWSProperty(Max=256)]
public string Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}