/*
* 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 StartMigration operation.
///
public partial class StartMigrationResponse : AmazonWebServiceResponse
{
private string _migrationId;
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 MigrationId.
///
/// The unique identifier that Amazon Lex assigned to the migration.
///
///
[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 MigrationStrategy.
///
/// The strategy used to conduct the migration.
///
///
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 used for the Amazon Lex V1 bot.
///
///
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 that you are migrating 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 bot to migrate 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 for the Amazon Lex V2 bot.
///
///
[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;
}
}
}