/*
* 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
{
///
/// Container for the parameters to the CreateBotVersion operation.
/// Creates a new version of the bot based on the DRAFT
version. If the DRAFT
/// version of this resource hasn't changed since you created the last version, Amazon
/// Lex doesn't create a new version, it returns the last created version.
///
///
///
/// When you create the first version of a bot, Amazon Lex sets the version to 1. Subsequent
/// versions increment by 1.
///
///
public partial class CreateBotVersionRequest : AmazonLexModelsV2Request
{
private string _botId;
private Dictionary _botVersionLocaleSpecification = new Dictionary();
private string _description;
///
/// Gets and sets the property BotId.
///
/// The identifier of the bot to create the version for.
///
///
[AWSProperty(Required=true, 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 BotVersionLocaleSpecification.
///
/// Specifies the locales that Amazon Lex adds to this version. You can choose the Draft
/// version or any other previously published version for each locale. When you specify
/// a source version, the locale data is copied from the source version to the new version.
///
///
[AWSProperty(Required=true, Min=1)]
public Dictionary BotVersionLocaleSpecification
{
get { return this._botVersionLocaleSpecification; }
set { this._botVersionLocaleSpecification = value; }
}
// Check to see if BotVersionLocaleSpecification property is set
internal bool IsSetBotVersionLocaleSpecification()
{
return this._botVersionLocaleSpecification != null && this._botVersionLocaleSpecification.Count > 0;
}
///
/// Gets and sets the property Description.
///
/// A description of the version. Use the description to help identify the version in
/// lists.
///
///
[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;
}
}
}