/*
* 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 StartImport operation.
///
public partial class StartImportResponse : AmazonWebServiceResponse
{
private DateTime? _createdDate;
private string _importId;
private ImportStatus _importStatus;
private MergeStrategy _mergeStrategy;
private string _name;
private ResourceType _resourceType;
private List _tags = new List();
///
/// Gets and sets the property CreatedDate.
///
/// A timestamp for the date and time that the import job was requested.
///
///
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 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 using the GetImport
operation.
///
///
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 to take when there is a merge conflict.
///
///
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 to import.
///
///
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;
}
///
/// Gets and sets the property Tags.
///
/// A list of tags added to the imported bot.
///
///
[AWSProperty(Min=0, Max=200)]
public List Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}