Interface GetRecommendationsRequest.Builder

    • Method Detail

      • assistantId

        GetRecommendationsRequest.Builder assistantId​(String assistantId)

        The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

        Parameters:
        assistantId - The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • maxResults

        GetRecommendationsRequest.Builder maxResults​(Integer maxResults)

        The maximum number of results to return per page.

        Parameters:
        maxResults - The maximum number of results to return per page.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sessionId

        GetRecommendationsRequest.Builder sessionId​(String sessionId)

        The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.

        Parameters:
        sessionId - The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • waitTimeSeconds

        GetRecommendationsRequest.Builder waitTimeSeconds​(Integer waitTimeSeconds)

        The duration (in seconds) for which the call waits for a recommendation to be made available before returning. If a recommendation is available, the call returns sooner than WaitTimeSeconds. If no messages are available and the wait time expires, the call returns successfully with an empty list.

        Parameters:
        waitTimeSeconds - The duration (in seconds) for which the call waits for a recommendation to be made available before returning. If a recommendation is available, the call returns sooner than WaitTimeSeconds . If no messages are available and the wait time expires, the call returns successfully with an empty list.
        Returns:
        Returns a reference to this object so that method calls can be chained together.