Interface ListHostsResponse.Builder

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

  • Method Details

    • hosts

      A list of hosts and the details for each host, such as status, endpoint, and provider type.

      Parameters:
      hosts - A list of hosts and the details for each host, such as status, endpoint, and provider type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hosts

      A list of hosts and the details for each host, such as status, endpoint, and provider type.

      Parameters:
      hosts - A list of hosts and the details for each host, such as status, endpoint, and provider type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hosts

      A list of hosts and the details for each host, such as status, endpoint, and provider type.

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

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

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

      ListHostsResponse.Builder nextToken(String nextToken)

      A token that can be used in the next ListHosts call. To view all items in the list, continue to call this operation with each subsequent token until no more nextToken values are returned.

      Parameters:
      nextToken - A token that can be used in the next ListHosts call. To view all items in the list, continue to call this operation with each subsequent token until no more nextToken values are returned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.