AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

This is the response object from the PutIntent operation.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.LexModelBuildingService.Model.PutIntentResponse

Namespace: Amazon.LexModelBuildingService.Model
Assembly: AWSSDK.LexModelBuildingService.dll
Version: 3.x.y.z

Syntax

C#
public class PutIntentResponse : AmazonWebServiceResponse

The PutIntentResponse type exposes the following members

Constructors

NameDescription
Public Method PutIntentResponse()

Properties

NameTypeDescription
Public Property Checksum System.String

Gets and sets the property Checksum.

Checksum of the $LATESTversion of the intent created or updated.

Public Property ConclusionStatement Amazon.LexModelBuildingService.Model.Statement

Gets and sets the property ConclusionStatement.

After the Lambda function specified in thefulfillmentActivityintent fulfills the intent, Amazon Lex conveys this statement to the user.

Public Property ConfirmationPrompt Amazon.LexModelBuildingService.Model.Prompt

Gets and sets the property ConfirmationPrompt.

If defined in the intent, Amazon Lex prompts the user to confirm the intent before fulfilling it.

Public Property ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property CreatedDate System.DateTime

Gets and sets the property CreatedDate.

The date that the intent was created.

Public Property Description System.String

Gets and sets the property Description.

A description of the intent.

Public Property DialogCodeHook Amazon.LexModelBuildingService.Model.CodeHook

Gets and sets the property DialogCodeHook.

If defined in the intent, Amazon Lex invokes this Lambda function for each user input.

Public Property FollowUpPrompt Amazon.LexModelBuildingService.Model.FollowUpPrompt

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 Property FulfillmentActivity Amazon.LexModelBuildingService.Model.FulfillmentActivity

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 Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property LastUpdatedDate System.DateTime

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 Property Name System.String

Gets and sets the property Name.

The name of the intent.

Public Property ParentIntentSignature System.String

Gets and sets the property ParentIntentSignature.

A unique identifier for the built-in intent that this intent is based on.

Public Property RejectionStatement Amazon.LexModelBuildingService.Model.Statement

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 Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property SampleUtterances System.Collections.Generic.List<System.String>

Gets and sets the property SampleUtterances.

An array of sample utterances that are configured for the intent.

Public Property Slots System.Collections.Generic.List<Amazon.LexModelBuildingService.Model.Slot>

Gets and sets the property Slots.

An array of intent slots that are configured for the intent.

Public Property Version System.String

Gets and sets the property Version.

The version of the intent. For a new intent, the version is always $LATEST.

Examples

This example shows how to create an intent for ordering pizzas.

To create an intent


var response = client.PutIntent(new PutIntentRequest 
{
    Name = "DocOrderPizza",
    ConclusionStatement = new Statement {
        Messages = new List {
            new Message {
                Content = "All right, I ordered  you a {Crust} crust {Type} pizza with {Sauce} sauce.",
                ContentType = "PlainText"
            },
            new Message {
                Content = "OK, your {Crust} crust {Type} pizza with {Sauce} sauce is on the way.",
                ContentType = "PlainText"
            }
        },
        ResponseCard = "foo"
    },
    ConfirmationPrompt = new Prompt {
        MaxAttempts = 1,
        Messages = new List {
            new Message {
                Content = "Should I order  your {Crust} crust {Type} pizza with {Sauce} sauce?",
                ContentType = "PlainText"
            }
        }
    },
    Description = "Order a pizza from a local pizzeria.",
    FulfillmentActivity = new FulfillmentActivity { Type = "ReturnIntent" },
    RejectionStatement = new Statement { Messages = new List {
        new Message {
            Content = "Ok, I'll cancel your order.",
            ContentType = "PlainText"
        },
        new Message {
            Content = "I cancelled your order.",
            ContentType = "PlainText"
        }
    } },
    SampleUtterances = new List {
        "Order me a pizza.",
        "Order me a {Type} pizza.",
        "I want a {Crust} crust {Type} pizza",
        "I want a {Crust} crust {Type} pizza with {Sauce} sauce."
    },
    Slots = new List {
        new Slot {
            Name = "Type",
            Description = "The type of pizza to order.",
            Priority = 1,
            SampleUtterances = new List {
                "Get me a {Type} pizza.",
                "A {Type} pizza please.",
                "I'd like a {Type} pizza."
            },
            SlotConstraint = "Required",
            SlotType = "DocPizzaType",
            SlotTypeVersion = "$LATEST",
            ValueElicitationPrompt = new Prompt {
                MaxAttempts = 1,
                Messages = new List {
                    new Message {
                        Content = "What type of pizza would you like?",
                        ContentType = "PlainText"
                    },
                    new Message {
                        Content = "Vegie or cheese pizza?",
                        ContentType = "PlainText"
                    },
                    new Message {
                        Content = "I can get you a vegie or a cheese pizza.",
                        ContentType = "PlainText"
                    }
                }
            }
        },
        new Slot {
            Name = "Crust",
            Description = "The type of pizza crust to order.",
            Priority = 2,
            SampleUtterances = new List {
                "Make it a {Crust} crust.",
                "I'd like a {Crust} crust."
            },
            SlotConstraint = "Required",
            SlotType = "DocPizzaCrustType",
            SlotTypeVersion = "$LATEST",
            ValueElicitationPrompt = new Prompt {
                MaxAttempts = 1,
                Messages = new List {
                    new Message {
                        Content = "What type of crust would you like?",
                        ContentType = "PlainText"
                    },
                    new Message {
                        Content = "Thick or thin crust?",
                        ContentType = "PlainText"
                    }
                }
            }
        },
        new Slot {
            Name = "Sauce",
            Description = "The type of sauce to use on the pizza.",
            Priority = 3,
            SampleUtterances = new List {
                "Make it {Sauce} sauce.",
                "I'd like {Sauce} sauce."
            },
            SlotConstraint = "Required",
            SlotType = "DocPizzaSauceType",
            SlotTypeVersion = "$LATEST",
            ValueElicitationPrompt = new Prompt {
                MaxAttempts = 1,
                Messages = new List {
                    new Message {
                        Content = "White or red sauce?",
                        ContentType = "PlainText"
                    },
                    new Message {
                        Content = "Garlic or tomato sauce?",
                        ContentType = "PlainText"
                    }
                }
            }
        }
    }
});

string version = response.Version;
string name = response.Name;
string checksum = response.Checksum;
Statement conclusionStatement = response.ConclusionStatement;
Prompt confirmationPrompt = response.ConfirmationPrompt;
DateTime createdDate = response.CreatedDate;
string description = response.Description;
FulfillmentActivity fulfillmentActivity = response.FulfillmentActivity;
DateTime lastUpdatedDate = response.LastUpdatedDate;
Statement rejectionStatement = response.RejectionStatement;
List sampleUtterances = response.SampleUtterances;
List slots = response.Slots;

            

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms