/*
* 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
{
///
/// This is the response object from the PutIntent operation.
///
public partial class PutIntentResponse : AmazonWebServiceResponse
{
private string _checksum;
private Statement _conclusionStatement;
private Prompt _confirmationPrompt;
private DateTime? _createdDate;
private bool? _createVersion;
private string _description;
private CodeHook _dialogCodeHook;
private FollowUpPrompt _followUpPrompt;
private FulfillmentActivity _fulfillmentActivity;
private List _inputContexts = new List();
private KendraConfiguration _kendraConfiguration;
private DateTime? _lastUpdatedDate;
private string _name;
private List _outputContexts = new List();
private string _parentIntentSignature;
private Statement _rejectionStatement;
private List _sampleUtterances = new List();
private List _slots = new List();
private string _version;
///
/// Gets and sets the property Checksum.
///
/// Checksum of the $LATEST
version of the intent created or updated.
///
///
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 ConclusionStatement.
///
/// After the Lambda function specified in thefulfillmentActivity
intent fulfills
/// the intent, Amazon Lex conveys this statement to the user.
///
///
public Statement ConclusionStatement
{
get { return this._conclusionStatement; }
set { this._conclusionStatement = value; }
}
// Check to see if ConclusionStatement property is set
internal bool IsSetConclusionStatement()
{
return this._conclusionStatement != null;
}
///
/// Gets and sets the property ConfirmationPrompt.
///
/// If defined in the intent, Amazon Lex prompts the user to confirm the intent before
/// fulfilling it.
///
///
public Prompt ConfirmationPrompt
{
get { return this._confirmationPrompt; }
set { this._confirmationPrompt = value; }
}
// Check to see if ConfirmationPrompt property is set
internal bool IsSetConfirmationPrompt()
{
return this._confirmationPrompt != null;
}
///
/// Gets and sets the property CreatedDate.
///
/// The date that the intent was created.
///
///
public DateTime CreatedDate
{
get { return this._createdDate.GetValueOrDefault(); }
set { this._createdDate = value; }
}
// Check to see if CreatedDate property is set
internal bool IsSetCreatedDate()
{
return this._createdDate.HasValue;
}
///
/// Gets and sets the property CreateVersion.
///
/// True
if a new version of the intent was created. If the createVersion
/// field was not specified in the request, the createVersion
field is set
/// to false in the response.
///
///
public bool CreateVersion
{
get { return this._createVersion.GetValueOrDefault(); }
set { this._createVersion = value; }
}
// Check to see if CreateVersion property is set
internal bool IsSetCreateVersion()
{
return this._createVersion.HasValue;
}
///
/// Gets and sets the property Description.
///
/// A description of the intent.
///
///
[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 DialogCodeHook.
///
/// If defined in the intent, Amazon Lex invokes this Lambda function for each user input.
///
///
public CodeHook DialogCodeHook
{
get { return this._dialogCodeHook; }
set { this._dialogCodeHook = value; }
}
// Check to see if DialogCodeHook property is set
internal bool IsSetDialogCodeHook()
{
return this._dialogCodeHook != null;
}
///
/// Gets and sets the property FollowUpPrompt.
///
/// If defined in the intent, Amazon Lex uses this prompt to solicit additional user activity
/// after the intent is fulfilled.
///
///
public FollowUpPrompt FollowUpPrompt
{
get { return this._followUpPrompt; }
set { this._followUpPrompt = value; }
}
// Check to see if FollowUpPrompt property is set
internal bool IsSetFollowUpPrompt()
{
return this._followUpPrompt != null;
}
///
/// Gets and sets the property FulfillmentActivity.
///
/// If defined in the intent, Amazon Lex invokes this Lambda function to fulfill the intent
/// after the user provides all of the information required by the intent.
///
///
public FulfillmentActivity FulfillmentActivity
{
get { return this._fulfillmentActivity; }
set { this._fulfillmentActivity = value; }
}
// Check to see if FulfillmentActivity property is set
internal bool IsSetFulfillmentActivity()
{
return this._fulfillmentActivity != null;
}
///
/// Gets and sets the property InputContexts.
///
/// An array of InputContext
objects that lists the contexts that must be
/// active for Amazon Lex to choose the intent in a conversation with the user.
///
///
[AWSProperty(Min=0, Max=5)]
public List InputContexts
{
get { return this._inputContexts; }
set { this._inputContexts = value; }
}
// Check to see if InputContexts property is set
internal bool IsSetInputContexts()
{
return this._inputContexts != null && this._inputContexts.Count > 0;
}
///
/// Gets and sets the property KendraConfiguration.
///
/// Configuration information, if any, required to connect to an Amazon Kendra index and
/// use the AMAZON.KendraSearchIntent
intent.
///
///
public KendraConfiguration KendraConfiguration
{
get { return this._kendraConfiguration; }
set { this._kendraConfiguration = value; }
}
// Check to see if KendraConfiguration property is set
internal bool IsSetKendraConfiguration()
{
return this._kendraConfiguration != null;
}
///
/// Gets and sets the property LastUpdatedDate.
///
/// The date that the intent was updated. When you create a resource, the creation date
/// and last update dates are the same.
///
///
public DateTime LastUpdatedDate
{
get { return this._lastUpdatedDate.GetValueOrDefault(); }
set { this._lastUpdatedDate = value; }
}
// Check to see if LastUpdatedDate property is set
internal bool IsSetLastUpdatedDate()
{
return this._lastUpdatedDate.HasValue;
}
///
/// Gets and sets the property Name.
///
/// The name of the intent.
///
///
[AWSProperty(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 OutputContexts.
///
/// An array of OutputContext
objects that lists the contexts that the intent
/// activates when the intent is fulfilled.
///
///
[AWSProperty(Min=0, Max=10)]
public List OutputContexts
{
get { return this._outputContexts; }
set { this._outputContexts = value; }
}
// Check to see if OutputContexts property is set
internal bool IsSetOutputContexts()
{
return this._outputContexts != null && this._outputContexts.Count > 0;
}
///
/// Gets and sets the property ParentIntentSignature.
///
/// A unique identifier for the built-in intent that this intent is based on.
///
///
public string ParentIntentSignature
{
get { return this._parentIntentSignature; }
set { this._parentIntentSignature = value; }
}
// Check to see if ParentIntentSignature property is set
internal bool IsSetParentIntentSignature()
{
return this._parentIntentSignature != null;
}
///
/// Gets and sets the property RejectionStatement.
///
/// If the user answers "no" to the question defined in confirmationPrompt
/// Amazon Lex responds with this statement to acknowledge that the intent was canceled.
///
///
///
public Statement RejectionStatement
{
get { return this._rejectionStatement; }
set { this._rejectionStatement = value; }
}
// Check to see if RejectionStatement property is set
internal bool IsSetRejectionStatement()
{
return this._rejectionStatement != null;
}
///
/// Gets and sets the property SampleUtterances.
///
/// An array of sample utterances that are configured for the intent.
///
///
[AWSProperty(Min=0, Max=1500)]
public List SampleUtterances
{
get { return this._sampleUtterances; }
set { this._sampleUtterances = value; }
}
// Check to see if SampleUtterances property is set
internal bool IsSetSampleUtterances()
{
return this._sampleUtterances != null && this._sampleUtterances.Count > 0;
}
///
/// Gets and sets the property Slots.
///
/// An array of intent slots that are configured for the intent.
///
///
[AWSProperty(Min=0, Max=100)]
public List Slots
{
get { return this._slots; }
set { this._slots = value; }
}
// Check to see if Slots property is set
internal bool IsSetSlots()
{
return this._slots != null && this._slots.Count > 0;
}
///
/// Gets and sets the property Version.
///
/// The version of the intent. For a new intent, the version is always $LATEST
.
///
///
[AWSProperty(Min=1, Max=64)]
public string Version
{
get { return this._version; }
set { this._version = value; }
}
// Check to see if Version property is set
internal bool IsSetVersion()
{
return this._version != null;
}
}
}