Interface ListPeeringsResponse.Builder

    • Method Detail

      • peerings

        ListPeeringsResponse.Builder peerings​(Collection<Peering> peerings)

        Lists the transit gateway peerings for the ListPeerings request.

        Parameters:
        peerings - Lists the transit gateway peerings for the ListPeerings request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • peerings

        ListPeeringsResponse.Builder peerings​(Peering... peerings)

        Lists the transit gateway peerings for the ListPeerings request.

        Parameters:
        peerings - Lists the transit gateway peerings for the ListPeerings request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • peerings

        ListPeeringsResponse.Builder peerings​(Consumer<Peering.Builder>... peerings)

        Lists the transit gateway peerings for the ListPeerings request.

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

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

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

        ListPeeringsResponse.Builder nextToken​(String nextToken)

        The token for the next page of results.

        Parameters:
        nextToken - The token for the next page of results.
        Returns:
        Returns a reference to this object so that method calls can be chained together.