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 CreateVersion System.Boolean

Gets and sets the property CreateVersion.

True if a new version of the slot type was created. If the createVersion field was not specified in the request, the createVersion field is set to false in the response.

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 ParentSlotTypeSignature System.String

Gets and sets the property ParentSlotTypeSignature.

The built-in slot type used as the parent of the slot type.

Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property SlotTypeConfigurations System.Collections.Generic.List<Amazon.LexModelBuildingService.Model.SlotTypeConfiguration>

Gets and sets the property SlotTypeConfigurations.

Configuration information that extends the parent built-in slot type.

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 client = new AmazonLexModelBuildingServiceClient();
var response = client.PutSlotType(new PutSlotTypeRequest 
{
    Name = "PizzaSauceType",
    Description = "Available pizza sauces",
    EnumerationValues = new List<EnumerationValue> {
        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<EnumerationValue> enumerationValues = response.EnumerationValues;
DateTime lastUpdatedDate = response.LastUpdatedDate;

            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

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