DynamicList Class

  • java.lang.Object
    • com.microsoft.bot.ai.luis.DynamicList

public class DynamicList

Request Body element to use when passing Dynamic lists to the Luis Service call. Defines an extension for a list entity.

Constructor Summary

Constructor Description
DynamicList()

Initializes a new instance of the DynamicList class.

DynamicList(String entity, List<ListElement> requestLists)

Initializes a new instance of the DynamicList class.

Method Summary

Modifier and Type Method and Description
java.lang.String getEntity()

Gets the name of the list entity to extend.

java.util.List<ListElement> getList()

Gets the lists to append on the extended list entity.

void setEntity(String entity)

Sets the name of the list entity to extend.

void setList(List<ListElement> list)

Sets the lists to append on the extended list entity.

void validate()

Validate the object.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

DynamicList

public DynamicList()

Initializes a new instance of the DynamicList class.

DynamicList

public DynamicList(String entity, List requestLists)

Initializes a new instance of the DynamicList class.

Parameters:

entity - Entity field.
requestLists - List Elements to use when querying Luis Service.

Method Details

getEntity

public String getEntity()

Gets the name of the list entity to extend.

Returns:

The name of the list entity to extend.

getList

public List getList()

Gets the lists to append on the extended list entity.

Returns:

The lists to append on the extended list entity.

setEntity

public void setEntity(String entity)

Sets the name of the list entity to extend.

Parameters:

entity - The name of the list entity to extend.

setList

public void setList(List list)

Sets the lists to append on the extended list entity.

Parameters:

list - The lists to append on the extended list entity.

validate

public void validate()

Validate the object.

Throws:

java.lang.IllegalArgumentException - on null or invalid values.

Applies to