/*
* 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
{
///
/// Provides information about alerts and warnings that Amazon Lex sends during a migration.
/// The alerts include information about how to resolve the issue.
///
public partial class MigrationAlert
{
private List _details = new List();
private string _message;
private List _referenceurLs = new List();
private MigrationAlertType _type;
///
/// Gets and sets the property Details.
///
/// Additional details about the alert.
///
///
public List Details
{
get { return this._details; }
set { this._details = value; }
}
// Check to see if Details property is set
internal bool IsSetDetails()
{
return this._details != null && this._details.Count > 0;
}
///
/// Gets and sets the property Message.
///
/// A message that describes why the alert was issued.
///
///
public string Message
{
get { return this._message; }
set { this._message = value; }
}
// Check to see if Message property is set
internal bool IsSetMessage()
{
return this._message != null;
}
///
/// Gets and sets the property ReferenceURLs.
///
/// A link to the Amazon Lex documentation that describes how to resolve the alert.
///
///
public List ReferenceURLs
{
get { return this._referenceurLs; }
set { this._referenceurLs = value; }
}
// Check to see if ReferenceURLs property is set
internal bool IsSetReferenceURLs()
{
return this._referenceurLs != null && this._referenceurLs.Count > 0;
}
///
/// Gets and sets the property Type.
///
/// The type of alert. There are two kinds of alerts:
///
/// -
///
///
ERROR
- There was an issue with the migration that can't be resolved.
/// The migration stops.
///
/// -
///
///
WARN
- There was an issue with the migration that requires manual changes
/// to the new Amazon Lex V2 bot. The migration continues.
///
///
///
public MigrationAlertType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}