Interface ListArchivesResponse.Builder

    • Method Detail

      • archives

        ListArchivesResponse.Builder archives​(Collection<Archive> archives)

        An array of Archive objects that include details about an archive.

        Parameters:
        archives - An array of Archive objects that include details about an archive.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • archives

        ListArchivesResponse.Builder archives​(Archive... archives)

        An array of Archive objects that include details about an archive.

        Parameters:
        archives - An array of Archive objects that include details about an archive.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • archives

        ListArchivesResponse.Builder archives​(Consumer<Archive.Builder>... archives)

        An array of Archive objects that include details about an archive.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #archives(List).

        Parameters:
        archives - a consumer that will call methods on Archive.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #archives(java.util.Collection)
      • nextToken

        ListArchivesResponse.Builder nextToken​(String nextToken)

        A token indicating there are more results available. If there are no more results, no token is included in the response.

        The value of nextToken is a unique pagination token for each page. To retrieve the next page of results, make the call again using the returned token. Keep all other arguments unchanged.

        Using an expired pagination token results in an HTTP 400 InvalidToken error.

        Parameters:
        nextToken - A token indicating there are more results available. If there are no more results, no token is included in the response.

        The value of nextToken is a unique pagination token for each page. To retrieve the next page of results, make the call again using the returned token. Keep all other arguments unchanged.

        Using an expired pagination token results in an HTTP 400 InvalidToken error.

        Returns:
        Returns a reference to this object so that method calls can be chained together.