Class Bot

    • Method Detail

      • botId

        public final String botId()

        The bot ID.

        Returns:
        The bot ID.
      • userId

        public final String userId()

        The unique ID for the bot user.

        Returns:
        The unique ID for the bot user.
      • displayName

        public final String displayName()

        The bot display name.

        Returns:
        The bot display name.
      • botType

        public final BotType botType()

        The bot type.

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

        Returns:
        The bot type.
        See Also:
        BotType
      • botTypeAsString

        public final String botTypeAsString()

        The bot type.

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

        Returns:
        The bot type.
        See Also:
        BotType
      • disabled

        public final Boolean disabled()

        When true, the bot is stopped from running in your account.

        Returns:
        When true, the bot is stopped from running in your account.
      • createdTimestamp

        public final Instant createdTimestamp()

        The bot creation timestamp, in ISO 8601 format.

        Returns:
        The bot creation timestamp, in ISO 8601 format.
      • updatedTimestamp

        public final Instant updatedTimestamp()

        The updated bot timestamp, in ISO 8601 format.

        Returns:
        The updated bot timestamp, in ISO 8601 format.
      • botEmail

        public final String botEmail()

        The bot email address.

        Returns:
        The bot email address.
      • securityToken

        public final String securityToken()

        The security token used to authenticate Amazon Chime with the outgoing event endpoint.

        Returns:
        The security token used to authenticate Amazon Chime with the outgoing event endpoint.
      • serializableBuilderClass

        public static Class<? extends Bot.Builder> serializableBuilderClass()
      • 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)