Interface GetMatchesResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<GetMatchesResponse.Builder,GetMatchesResponse>, CustomerProfilesResponse.Builder, SdkBuilder<GetMatchesResponse.Builder,GetMatchesResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
GetMatchesResponse

public static interface GetMatchesResponse.Builder extends CustomerProfilesResponse.Builder, SdkPojo, CopyableBuilder<GetMatchesResponse.Builder,GetMatchesResponse>
  • Method Details

    • nextToken

      GetMatchesResponse.Builder nextToken(String nextToken)

      If there are additional results, this is the token for the next set of results.

      Parameters:
      nextToken - If there are additional results, this is the token for the next set of results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • matchGenerationDate

      GetMatchesResponse.Builder matchGenerationDate(Instant matchGenerationDate)

      The timestamp this version of Match Result generated.

      Parameters:
      matchGenerationDate - The timestamp this version of Match Result generated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • potentialMatches

      GetMatchesResponse.Builder potentialMatches(Integer potentialMatches)

      The number of potential matches found.

      Parameters:
      potentialMatches - The number of potential matches found.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • matches

      The list of matched profiles for this instance.

      Parameters:
      matches - The list of matched profiles for this instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • matches

      The list of matched profiles for this instance.

      Parameters:
      matches - The list of matched profiles for this instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • matches

      The list of matched profiles for this instance.

      This is a convenience method that creates an instance of the MatchItem.Builder avoiding the need to create one manually via MatchItem.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to matches(List<MatchItem>).

      Parameters:
      matches - a consumer that will call methods on MatchItem.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: