/*
* 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
{
///
/// Container for the parameters to the PutBotAlias operation.
/// Creates an alias for the specified version of the bot or replaces an alias for the
/// specified bot. To change the version of the bot that the alias points to, replace
/// the alias. For more information about aliases, see versioning-aliases.
///
///
///
/// This operation requires permissions for the lex:PutBotAlias
action.
///
///
public partial class PutBotAliasRequest : AmazonLexModelBuildingServiceRequest
{
private string _botName;
private string _botVersion;
private string _checksum;
private ConversationLogsRequest _conversationLogs;
private string _description;
private string _name;
private List _tags = new List();
///
/// Gets and sets the property BotName.
///
/// The name of the bot.
///
///
[AWSProperty(Required=true, Min=2, Max=50)]
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 BotVersion.
///
/// The version of the bot.
///
///
[AWSProperty(Required=true, Min=1, Max=64)]
public string BotVersion
{
get { return this._botVersion; }
set { this._botVersion = value; }
}
// Check to see if BotVersion property is set
internal bool IsSetBotVersion()
{
return this._botVersion != null;
}
///
/// Gets and sets the property Checksum.
///
/// Identifies a specific revision of the $LATEST
version.
///
///
///
/// When you create a new bot alias, leave the checksum
field blank. If you
/// specify a checksum you get a BadRequestException
exception.
///
///
///
/// When you want to update a bot alias, set the checksum
field to the checksum
/// of the most recent revision of the $LATEST
version. If you don't specify
/// the checksum
field, or if the checksum does not match the $LATEST
/// version, you get a PreconditionFailedException
exception.
///
///
public string Checksum
{
get { return this._checksum; }
set { this._checksum = value; }
}
// Check to see if Checksum property is set
internal bool IsSetChecksum()
{
return this._checksum != null;
}
///
/// Gets and sets the property ConversationLogs.
///
/// Settings for conversation logs for the alias.
///
///
public ConversationLogsRequest ConversationLogs
{
get { return this._conversationLogs; }
set { this._conversationLogs = value; }
}
// Check to see if ConversationLogs property is set
internal bool IsSetConversationLogs()
{
return this._conversationLogs != null;
}
///
/// Gets and sets the property Description.
///
/// A description of the alias.
///
///
[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 Name.
///
/// The name of the alias. The name is not case sensitive.
///
///
[AWSProperty(Required=true, Min=1, Max=100)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property Tags.
///
/// A list of tags to add to the bot alias. You can only add tags when you create an alias,
/// you can't use the PutBotAlias
operation to update the tags on a bot alias.
/// To update tags, use the TagResource
operation.
///
///
[AWSProperty(Min=0, Max=200)]
public List Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}