/*
* 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 DescribeBot operation.
///
public partial class DescribeBotResponse : AmazonWebServiceResponse
{
private string _botId;
private List _botMembers = new List();
private string _botName;
private BotStatus _botStatus;
private BotType _botType;
private DateTime? _creationDateTime;
private DataPrivacy _dataPrivacy;
private string _description;
private List _failureReasons = new List();
private int? _idleSessionTTLInSeconds;
private DateTime? _lastUpdatedDateTime;
private string _roleArn;
///
/// Gets and sets the property BotId.
///
/// The unique identifier of the bot.
///
///
[AWSProperty(Min=10, Max=10)]
public string BotId
{
get { return this._botId; }
set { this._botId = value; }
}
// Check to see if BotId property is set
internal bool IsSetBotId()
{
return this._botId != null;
}
///
/// Gets and sets the property BotMembers.
///
/// The list of bots in the network that was described.
///
///
[AWSProperty(Min=0, Max=10)]
public List BotMembers
{
get { return this._botMembers; }
set { this._botMembers = value; }
}
// Check to see if BotMembers property is set
internal bool IsSetBotMembers()
{
return this._botMembers != null && this._botMembers.Count > 0;
}
///
/// Gets and sets the property BotName.
///
/// The name of the bot.
///
///
[AWSProperty(Min=1, Max=100)]
public string BotName
{
get { return this._botName; }
set { this._botName = value; }
}
// Check to see if BotName property is set
internal bool IsSetBotName()
{
return this._botName != null;
}
///
/// Gets and sets the property BotStatus.
///
/// The current status of the bot. When the status is Available
the bot is
/// ready to be used in conversations with users.
///
///
public BotStatus BotStatus
{
get { return this._botStatus; }
set { this._botStatus = value; }
}
// Check to see if BotStatus property is set
internal bool IsSetBotStatus()
{
return this._botStatus != null;
}
///
/// Gets and sets the property BotType.
///
/// The type of the bot that was described.
///
///
public BotType BotType
{
get { return this._botType; }
set { this._botType = value; }
}
// Check to see if BotType property is set
internal bool IsSetBotType()
{
return this._botType != null;
}
///
/// Gets and sets the property CreationDateTime.
///
/// A timestamp of the date and time that the bot 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 DataPrivacy.
///
/// Settings for managing data privacy of the bot and its conversations with users.
///
///
public DataPrivacy DataPrivacy
{
get { return this._dataPrivacy; }
set { this._dataPrivacy = value; }
}
// Check to see if DataPrivacy property is set
internal bool IsSetDataPrivacy()
{
return this._dataPrivacy != null;
}
///
/// Gets and sets the property Description.
///
/// The description of the bot.
///
///
[AWSProperty(Min=0, Max=200)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property FailureReasons.
///
/// If the botStatus
is Failed
, this contains a list of reasons
/// that the bot couldn't be built.
///
///
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 IdleSessionTTLInSeconds.
///
/// The maximum time in seconds that Amazon Lex retains the data gathered in a conversation.
///
///
[AWSProperty(Min=60, Max=86400)]
public int IdleSessionTTLInSeconds
{
get { return this._idleSessionTTLInSeconds.GetValueOrDefault(); }
set { this._idleSessionTTLInSeconds = value; }
}
// Check to see if IdleSessionTTLInSeconds property is set
internal bool IsSetIdleSessionTTLInSeconds()
{
return this._idleSessionTTLInSeconds.HasValue;
}
///
/// Gets and sets the property LastUpdatedDateTime.
///
/// A timestamp of the date and time that the bot was last 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 RoleArn.
///
/// The Amazon Resource Name (ARN) of an IAM role that has permission to access the bot.
///
///
[AWSProperty(Min=32, Max=2048)]
public string RoleArn
{
get { return this._roleArn; }
set { this._roleArn = value; }
}
// Check to see if RoleArn property is set
internal bool IsSetRoleArn()
{
return this._roleArn != null;
}
}
}