Class SlotSummary

    • Method Detail

      • slotId

        public final String slotId()

        The unique identifier of the slot.

        Returns:
        The unique identifier of the slot.
      • slotName

        public final String slotName()

        The name given to the slot.

        Returns:
        The name given to the slot.
      • description

        public final String description()

        The description of the slot.

        Returns:
        The description of the slot.
      • slotConstraint

        public final SlotConstraint slotConstraint()

        Whether the slot is required or optional. An intent is complete when all required slots are filled.

        If the service returns an enum value that is not available in the current SDK version, slotConstraint will return SlotConstraint.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from slotConstraintAsString().

        Returns:
        Whether the slot is required or optional. An intent is complete when all required slots are filled.
        See Also:
        SlotConstraint
      • slotConstraintAsString

        public final String slotConstraintAsString()

        Whether the slot is required or optional. An intent is complete when all required slots are filled.

        If the service returns an enum value that is not available in the current SDK version, slotConstraint will return SlotConstraint.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from slotConstraintAsString().

        Returns:
        Whether the slot is required or optional. An intent is complete when all required slots are filled.
        See Also:
        SlotConstraint
      • slotTypeId

        public final String slotTypeId()

        The unique identifier for the slot type that defines the values for the slot.

        Returns:
        The unique identifier for the slot type that defines the values for the slot.
      • valueElicitationPromptSpecification

        public final PromptSpecification valueElicitationPromptSpecification()

        Prompts that are sent to the user to elicit a value for the slot.

        Returns:
        Prompts that are sent to the user to elicit a value for the slot.
      • lastUpdatedDateTime

        public final Instant lastUpdatedDateTime()

        The timestamp of the last date and time that the slot was updated.

        Returns:
        The timestamp of the last date and time that the slot was updated.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)