/*
* 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 pinpoint-2016-12-01.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.Pinpoint.Model
{
///
/// Provides information about the status and settings of a job that imports endpoint
/// definitions from one or more files. The files can be stored in an Amazon Simple Storage
/// Service (Amazon S3) bucket or uploaded directly from a computer by using the Amazon
/// Pinpoint console.
///
public partial class ImportJobResponse
{
private string _applicationId;
private int? _completedPieces;
private string _completionDate;
private string _creationDate;
private ImportJobResource _definition;
private int? _failedPieces;
private List _failures = new List();
private string _id;
private JobStatus _jobStatus;
private int? _totalFailures;
private int? _totalPieces;
private int? _totalProcessed;
private string _type;
///
/// Gets and sets the property ApplicationId.
///
/// The unique identifier for the application that's associated with the import job.
///
///
[AWSProperty(Required=true)]
public string ApplicationId
{
get { return this._applicationId; }
set { this._applicationId = value; }
}
// Check to see if ApplicationId property is set
internal bool IsSetApplicationId()
{
return this._applicationId != null;
}
///
/// Gets and sets the property CompletedPieces.
///
/// The number of pieces that were processed successfully (completed) by the import job,
/// as of the time of the request.
///
///
public int CompletedPieces
{
get { return this._completedPieces.GetValueOrDefault(); }
set { this._completedPieces = value; }
}
// Check to see if CompletedPieces property is set
internal bool IsSetCompletedPieces()
{
return this._completedPieces.HasValue;
}
///
/// Gets and sets the property CompletionDate.
///
/// The date, in ISO 8601 format, when the import job was completed.
///
///
public string CompletionDate
{
get { return this._completionDate; }
set { this._completionDate = value; }
}
// Check to see if CompletionDate property is set
internal bool IsSetCompletionDate()
{
return this._completionDate != null;
}
///
/// Gets and sets the property CreationDate.
///
/// The date, in ISO 8601 format, when the import job was created.
///
///
[AWSProperty(Required=true)]
public string CreationDate
{
get { return this._creationDate; }
set { this._creationDate = value; }
}
// Check to see if CreationDate property is set
internal bool IsSetCreationDate()
{
return this._creationDate != null;
}
///
/// Gets and sets the property Definition.
///
/// The resource settings that apply to the import job.
///
///
[AWSProperty(Required=true)]
public ImportJobResource Definition
{
get { return this._definition; }
set { this._definition = value; }
}
// Check to see if Definition property is set
internal bool IsSetDefinition()
{
return this._definition != null;
}
///
/// Gets and sets the property FailedPieces.
///
/// The number of pieces that weren't processed successfully (failed) by the import job,
/// as of the time of the request.
///
///
public int FailedPieces
{
get { return this._failedPieces.GetValueOrDefault(); }
set { this._failedPieces = value; }
}
// Check to see if FailedPieces property is set
internal bool IsSetFailedPieces()
{
return this._failedPieces.HasValue;
}
///
/// Gets and sets the property Failures.
///
/// An array of entries, one for each of the first 100 entries that weren't processed
/// successfully (failed) by the import job, if any.
///
///
public List Failures
{
get { return this._failures; }
set { this._failures = value; }
}
// Check to see if Failures property is set
internal bool IsSetFailures()
{
return this._failures != null && this._failures.Count > 0;
}
///
/// Gets and sets the property Id.
///
/// The unique identifier for the import job.
///
///
[AWSProperty(Required=true)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
///
/// Gets and sets the property JobStatus.
///
/// The status of the import job. The job status is FAILED if Amazon Pinpoint wasn't able
/// to process one or more pieces in the job.
///
///
[AWSProperty(Required=true)]
public JobStatus JobStatus
{
get { return this._jobStatus; }
set { this._jobStatus = value; }
}
// Check to see if JobStatus property is set
internal bool IsSetJobStatus()
{
return this._jobStatus != null;
}
///
/// Gets and sets the property TotalFailures.
///
/// The total number of endpoint definitions that weren't processed successfully (failed)
/// by the import job, typically because an error, such as a syntax error, occurred.
///
///
public int TotalFailures
{
get { return this._totalFailures.GetValueOrDefault(); }
set { this._totalFailures = value; }
}
// Check to see if TotalFailures property is set
internal bool IsSetTotalFailures()
{
return this._totalFailures.HasValue;
}
///
/// Gets and sets the property TotalPieces.
///
/// The total number of pieces that must be processed to complete the import job. Each
/// piece consists of an approximately equal portion of the endpoint definitions that
/// are part of the import job.
///
///
public int TotalPieces
{
get { return this._totalPieces.GetValueOrDefault(); }
set { this._totalPieces = value; }
}
// Check to see if TotalPieces property is set
internal bool IsSetTotalPieces()
{
return this._totalPieces.HasValue;
}
///
/// Gets and sets the property TotalProcessed.
///
/// The total number of endpoint definitions that were processed by the import job.
///
///
public int TotalProcessed
{
get { return this._totalProcessed.GetValueOrDefault(); }
set { this._totalProcessed = value; }
}
// Check to see if TotalProcessed property is set
internal bool IsSetTotalProcessed()
{
return this._totalProcessed.HasValue;
}
///
/// Gets and sets the property Type.
///
/// The job type. This value is IMPORT for import jobs.
///
///
[AWSProperty(Required=true)]
public string Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}