Class BotMetadata

    • Method Detail

      • name

        public final String name()

        The name of the bot.

        Returns:
        The name of the bot.
      • description

        public final String description()

        A description of the bot.

        Returns:
        A description of the bot.
      • status

        public final Status status()

        The status of the bot.

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

        Returns:
        The status of the bot.
        See Also:
        Status
      • statusAsString

        public final String statusAsString()

        The status of the bot.

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

        Returns:
        The status of the bot.
        See Also:
        Status
      • lastUpdatedDate

        public final Instant lastUpdatedDate()

        The date that the bot was updated. When you create a bot, the creation date and last updated date are the same.

        Returns:
        The date that the bot was updated. When you create a bot, the creation date and last updated date are the same.
      • createdDate

        public final Instant createdDate()

        The date that the bot was created.

        Returns:
        The date that the bot was created.
      • version

        public final String version()

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

        Returns:
        The version of the bot. For a new bot, the version is always $LATEST.
      • 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)