/*
* 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 lex-models-2017-04-19.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.LexModelBuildingService.Model
{
///
/// This is the response object from the GetImport operation.
///
public partial class GetImportResponse : AmazonWebServiceResponse
{
private DateTime? _createdDate;
private List _failureReason = new List();
private string _importId;
private ImportStatus _importStatus;
private MergeStrategy _mergeStrategy;
private string _name;
private ResourceType _resourceType;
///
/// Gets and sets the property CreatedDate.
///
/// A timestamp for the date and time that the import job was created.
///
///
public DateTime CreatedDate
{
get { return this._createdDate.GetValueOrDefault(); }
set { this._createdDate = value; }
}
// Check to see if CreatedDate property is set
internal bool IsSetCreatedDate()
{
return this._createdDate.HasValue;
}
///
/// Gets and sets the property FailureReason.
///
/// A string that describes why an import job failed to complete.
///
///
public List FailureReason
{
get { return this._failureReason; }
set { this._failureReason = value; }
}
// Check to see if FailureReason property is set
internal bool IsSetFailureReason()
{
return this._failureReason != null && this._failureReason.Count > 0;
}
///
/// Gets and sets the property ImportId.
///
/// The identifier for the specific import job.
///
///
public string ImportId
{
get { return this._importId; }
set { this._importId = value; }
}
// Check to see if ImportId property is set
internal bool IsSetImportId()
{
return this._importId != null;
}
///
/// Gets and sets the property ImportStatus.
///
/// The status of the import job. If the status is FAILED
, you can get the
/// reason for the failure from the failureReason
field.
///
///
public ImportStatus ImportStatus
{
get { return this._importStatus; }
set { this._importStatus = value; }
}
// Check to see if ImportStatus property is set
internal bool IsSetImportStatus()
{
return this._importStatus != null;
}
///
/// Gets and sets the property MergeStrategy.
///
/// The action taken when there was a conflict between an existing resource and a resource
/// in the import file.
///
///
public MergeStrategy MergeStrategy
{
get { return this._mergeStrategy; }
set { this._mergeStrategy = value; }
}
// Check to see if MergeStrategy property is set
internal bool IsSetMergeStrategy()
{
return this._mergeStrategy != null;
}
///
/// Gets and sets the property Name.
///
/// The name given to the import job.
///
///
[AWSProperty(Min=1, Max=100)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property ResourceType.
///
/// The type of resource imported.
///
///
public ResourceType ResourceType
{
get { return this._resourceType; }
set { this._resourceType = value; }
}
// Check to see if ResourceType property is set
internal bool IsSetResourceType()
{
return this._resourceType != null;
}
}
}