/*
* 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 comprehend-2017-11-27.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.Comprehend.Model
{
///
/// The system identified one of the following warnings while processing the input document:
///
/// -
///
/// The document to classify is plain text, but the classifier is a native model.
///
///
-
///
/// The document to classify is semi-structured, but the classifier is a plain-text model.
///
///
///
public partial class WarningsListItem
{
private int? _page;
private PageBasedWarningCode _warnCode;
private string _warnMessage;
///
/// Gets and sets the property Page.
///
/// Page number in the input document.
///
///
public int Page
{
get { return this._page.GetValueOrDefault(); }
set { this._page = value; }
}
// Check to see if Page property is set
internal bool IsSetPage()
{
return this._page.HasValue;
}
///
/// Gets and sets the property WarnCode.
///
/// The type of warning.
///
///
public PageBasedWarningCode WarnCode
{
get { return this._warnCode; }
set { this._warnCode = value; }
}
// Check to see if WarnCode property is set
internal bool IsSetWarnCode()
{
return this._warnCode != null;
}
///
/// Gets and sets the property WarnMessage.
///
/// Text message associated with the warning.
///
///
[AWSProperty(Min=1)]
public string WarnMessage
{
get { return this._warnMessage; }
set { this._warnMessage = value; }
}
// Check to see if WarnMessage property is set
internal bool IsSetWarnMessage()
{
return this._warnMessage != null;
}
}
}