/*
* 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 GetMigration operation.
///
public partial class GetMigrationResponse : AmazonWebServiceResponse
{
private List _alerts = new List();
private string _migrationId;
private MigrationStatus _migrationStatus;
private MigrationStrategy _migrationStrategy;
private DateTime? _migrationTimestamp;
private Locale _v1BotLocale;
private string _v1BotName;
private string _v1BotVersion;
private string _v2BotId;
private string _v2BotRole;
///
/// Gets and sets the property Alerts.
///
/// A list of alerts and warnings that indicate issues with the migration for the Amazon
/// Lex V1 bot to Amazon Lex V2. You receive a warning when an Amazon Lex V1 feature has
/// a different implementation if Amazon Lex V2.
///
///
///
/// For more information, see Migrating
/// a bot in the Amazon Lex V2 developer guide.
///
///
public List Alerts
{
get { return this._alerts; }
set { this._alerts = value; }
}
// Check to see if Alerts property is set
internal bool IsSetAlerts()
{
return this._alerts != null && this._alerts.Count > 0;
}
///
/// Gets and sets the property MigrationId.
///
/// The unique identifier of the migration. This is the same as the identifier used when
/// calling the GetMigration
operation.
///
///
[AWSProperty(Min=10, Max=10)]
public string MigrationId
{
get { return this._migrationId; }
set { this._migrationId = value; }
}
// Check to see if MigrationId property is set
internal bool IsSetMigrationId()
{
return this._migrationId != null;
}
///
/// Gets and sets the property MigrationStatus.
///
/// Indicates the status of the migration. When the status is COMPLETE
the
/// migration is finished and the bot is available in Amazon Lex V2. There may be alerts
/// and warnings that need to be resolved to complete the migration.
///
///
public MigrationStatus MigrationStatus
{
get { return this._migrationStatus; }
set { this._migrationStatus = value; }
}
// Check to see if MigrationStatus property is set
internal bool IsSetMigrationStatus()
{
return this._migrationStatus != null;
}
///
/// Gets and sets the property MigrationStrategy.
///
/// The strategy used to conduct the migration.
///
/// -
///
///
CREATE_NEW
- Creates a new Amazon Lex V2 bot and migrates the Amazon
/// Lex V1 bot to the new bot.
///
/// -
///
///
UPDATE_EXISTING
- Overwrites the existing Amazon Lex V2 bot metadata
/// and the locale being migrated. It doesn't change any other locales in the Amazon Lex
/// V2 bot. If the locale doesn't exist, a new locale is created in the Amazon Lex V2
/// bot.
///
///
///
public MigrationStrategy MigrationStrategy
{
get { return this._migrationStrategy; }
set { this._migrationStrategy = value; }
}
// Check to see if MigrationStrategy property is set
internal bool IsSetMigrationStrategy()
{
return this._migrationStrategy != null;
}
///
/// Gets and sets the property MigrationTimestamp.
///
/// The date and time that the migration started.
///
///
public DateTime MigrationTimestamp
{
get { return this._migrationTimestamp.GetValueOrDefault(); }
set { this._migrationTimestamp = value; }
}
// Check to see if MigrationTimestamp property is set
internal bool IsSetMigrationTimestamp()
{
return this._migrationTimestamp.HasValue;
}
///
/// Gets and sets the property V1BotLocale.
///
/// The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2.
///
///
public Locale V1BotLocale
{
get { return this._v1BotLocale; }
set { this._v1BotLocale = value; }
}
// Check to see if V1BotLocale property is set
internal bool IsSetV1BotLocale()
{
return this._v1BotLocale != null;
}
///
/// Gets and sets the property V1BotName.
///
/// The name of the Amazon Lex V1 bot migrated to Amazon Lex V2.
///
///
[AWSProperty(Min=2, Max=50)]
public string V1BotName
{
get { return this._v1BotName; }
set { this._v1BotName = value; }
}
// Check to see if V1BotName property is set
internal bool IsSetV1BotName()
{
return this._v1BotName != null;
}
///
/// Gets and sets the property V1BotVersion.
///
/// The version of the Amazon Lex V1 bot migrated to Amazon Lex V2.
///
///
[AWSProperty(Min=1, Max=64)]
public string V1BotVersion
{
get { return this._v1BotVersion; }
set { this._v1BotVersion = value; }
}
// Check to see if V1BotVersion property is set
internal bool IsSetV1BotVersion()
{
return this._v1BotVersion != null;
}
///
/// Gets and sets the property V2BotId.
///
/// The unique identifier of the Amazon Lex V2 bot that the Amazon Lex V1 is being migrated
/// to.
///
///
[AWSProperty(Min=10, Max=10)]
public string V2BotId
{
get { return this._v2BotId; }
set { this._v2BotId = value; }
}
// Check to see if V2BotId property is set
internal bool IsSetV2BotId()
{
return this._v2BotId != null;
}
///
/// Gets and sets the property V2BotRole.
///
/// The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
///
///
[AWSProperty(Min=20, Max=2048)]
public string V2BotRole
{
get { return this._v2BotRole; }
set { this._v2BotRole = value; }
}
// Check to see if V2BotRole property is set
internal bool IsSetV2BotRole()
{
return this._v2BotRole != null;
}
}
}