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 PutSlotType operation.

Inheritance Hierarchy

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

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

Syntax

C#
public class PutSlotTypeResponse : AmazonWebServiceResponse

The PutSlotTypeResponse type exposes the following members

Constructors

NameDescription
Public Method PutSlotTypeResponse()

Properties

NameTypeDescription
Public Property Checksum System.String

Gets and sets the property Checksum.

Checksum of the $LATEST version of the slot type.

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 slot type was created.

Public Property Description System.String

Gets and sets the property Description.

A description of the slot type.

Public Property EnumerationValues System.Collections.Generic.List<Amazon.LexModelBuildingService.Model.EnumerationValue>

Gets and sets the property EnumerationValues.

A list of EnumerationValue objects that defines the values that the slot type can take.

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 slot type was updated. When you create a slot type, the creation date and last update date are the same.

Public Property Name System.String

Gets and sets the property Name.

The name of the slot type.

Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property ValueSelectionStrategy Amazon.LexModelBuildingService.SlotValueSelectionStrategy

Gets and sets the property ValueSelectionStrategy.

The slot resolution strategy that Amazon Lex uses to determine the value of the slot. For more information, see PutSlotType.

Public Property Version System.String

Gets and sets the property Version.

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

Examples

This example shows how to create a slot type that describes pizza sauces.

To Create a Slot Type


var response = client.PutSlotType(new PutSlotTypeRequest 
{
    Name = "PizzaSauceType",
    Description = "Available pizza sauces",
    EnumerationValues = new List {
        new EnumerationValue { Value = "red" },
        new EnumerationValue { Value = "white" }
    }
});

string version = response.Version;
string name = response.Name;
string checksum = response.Checksum;
DateTime createdDate = response.CreatedDate;
string description = response.Description;
List enumerationValues = response.EnumerationValues;
DateTime lastUpdatedDate = response.LastUpdatedDate;

            

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