Interface ListRegionsResponse.Builder

    • Method Detail

      • nextToken

        ListRegionsResponse.Builder nextToken​(String nextToken)

        If there is more data to be returned, this will be populated. It should be passed into the next-token request parameter of list-regions.

        Parameters:
        nextToken - If there is more data to be returned, this will be populated. It should be passed into the next-token request parameter of list-regions.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • regions

        ListRegionsResponse.Builder regions​(Collection<Region> regions)

        This is a list of Regions for a given account, or if the filtered parameter was used, a list of Regions that match the filter criteria set in the filter parameter.

        Parameters:
        regions - This is a list of Regions for a given account, or if the filtered parameter was used, a list of Regions that match the filter criteria set in the filter parameter.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • regions

        ListRegionsResponse.Builder regions​(Region... regions)

        This is a list of Regions for a given account, or if the filtered parameter was used, a list of Regions that match the filter criteria set in the filter parameter.

        Parameters:
        regions - This is a list of Regions for a given account, or if the filtered parameter was used, a list of Regions that match the filter criteria set in the filter parameter.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • regions

        ListRegionsResponse.Builder regions​(Consumer<Region.Builder>... regions)

        This is a list of Regions for a given account, or if the filtered parameter was used, a list of Regions that match the filter criteria set in the filter parameter.

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

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

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