/*
* 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 models.lex.v2-2020-08-07.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.LexModelsV2.Model
{
///
/// This is the response object from the DescribeExport operation.
///
public partial class DescribeExportResponse : AmazonWebServiceResponse
{
private DateTime? _creationDateTime;
private string _downloadUrl;
private string _exportId;
private ExportStatus _exportStatus;
private List _failureReasons = new List();
private ImportExportFileFormat _fileFormat;
private DateTime? _lastUpdatedDateTime;
private ExportResourceSpecification _resourceSpecification;
///
/// Gets and sets the property CreationDateTime.
///
/// The date and time that the export was created.
///
///
public DateTime CreationDateTime
{
get { return this._creationDateTime.GetValueOrDefault(); }
set { this._creationDateTime = value; }
}
// Check to see if CreationDateTime property is set
internal bool IsSetCreationDateTime()
{
return this._creationDateTime.HasValue;
}
///
/// Gets and sets the property DownloadUrl.
///
/// A pre-signed S3 URL that points to the bot or bot locale archive. The URL is only
/// available for 5 minutes after calling the DescribeExport
operation.
///
///
[AWSProperty(Min=1, Max=1024)]
public string DownloadUrl
{
get { return this._downloadUrl; }
set { this._downloadUrl = value; }
}
// Check to see if DownloadUrl property is set
internal bool IsSetDownloadUrl()
{
return this._downloadUrl != null;
}
///
/// Gets and sets the property ExportId.
///
/// The unique identifier of the described export.
///
///
[AWSProperty(Min=10, Max=10)]
public string ExportId
{
get { return this._exportId; }
set { this._exportId = value; }
}
// Check to see if ExportId property is set
internal bool IsSetExportId()
{
return this._exportId != null;
}
///
/// Gets and sets the property ExportStatus.
///
/// The status of the export. When the status is Complete
the export archive
/// file is available for download.
///
///
public ExportStatus ExportStatus
{
get { return this._exportStatus; }
set { this._exportStatus = value; }
}
// Check to see if ExportStatus property is set
internal bool IsSetExportStatus()
{
return this._exportStatus != null;
}
///
/// Gets and sets the property FailureReasons.
///
/// If the exportStatus
is failed, contains one or more reasons why the export
/// could not be completed.
///
///
public List FailureReasons
{
get { return this._failureReasons; }
set { this._failureReasons = value; }
}
// Check to see if FailureReasons property is set
internal bool IsSetFailureReasons()
{
return this._failureReasons != null && this._failureReasons.Count > 0;
}
///
/// Gets and sets the property FileFormat.
///
/// The file format used in the files that describe the resource.
///
///
public ImportExportFileFormat FileFormat
{
get { return this._fileFormat; }
set { this._fileFormat = value; }
}
// Check to see if FileFormat property is set
internal bool IsSetFileFormat()
{
return this._fileFormat != null;
}
///
/// Gets and sets the property LastUpdatedDateTime.
///
/// The last date and time that the export was updated.
///
///
public DateTime LastUpdatedDateTime
{
get { return this._lastUpdatedDateTime.GetValueOrDefault(); }
set { this._lastUpdatedDateTime = value; }
}
// Check to see if LastUpdatedDateTime property is set
internal bool IsSetLastUpdatedDateTime()
{
return this._lastUpdatedDateTime.HasValue;
}
///
/// Gets and sets the property ResourceSpecification.
///
/// The bot, bot ID, and optional locale ID of the exported bot or bot locale.
///
///
public ExportResourceSpecification ResourceSpecification
{
get { return this._resourceSpecification; }
set { this._resourceSpecification = value; }
}
// Check to see if ResourceSpecification property is set
internal bool IsSetResourceSpecification()
{
return this._resourceSpecification != null;
}
}
}