Interface ListInstancesResponse.Builder

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

  • Method Details

    • instances

      Summary information about the instances that are associated with the specified service.

      Parameters:
      instances - Summary information about the instances that are associated with the specified service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instances

      Summary information about the instances that are associated with the specified service.

      Parameters:
      instances - Summary information about the instances that are associated with the specified service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instances

      Summary information about the instances that are associated with the specified service.

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

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

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

      ListInstancesResponse.Builder nextToken(String nextToken)

      If more than MaxResults instances match the specified criteria, you can submit another ListInstances request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

      Parameters:
      nextToken - If more than MaxResults instances match the specified criteria, you can submit another ListInstances request to get the next group of results. Specify the value of NextToken from the previous response in the next request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.