Interface ListInstancesRequest.Builder

  • Method Details

    • nextToken

      ListInstancesRequest.Builder nextToken(String nextToken)

      The pagination token to fetch the next page of instances.

      Parameters:
      nextToken - The pagination token to fetch the next page of instances.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxResults

      ListInstancesRequest.Builder maxResults(Integer maxResults)

      Specify the maximum number of instances to fetch in this paginated request.

      Parameters:
      maxResults - Specify the maximum number of instances to fetch in this paginated request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceNameFilter

      ListInstancesRequest.Builder instanceNameFilter(Collection<String> instanceNameFilter)

      The filter to ListInstances based on their names.

      Parameters:
      instanceNameFilter - The filter to ListInstances based on their names.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceNameFilter

      ListInstancesRequest.Builder instanceNameFilter(String... instanceNameFilter)

      The filter to ListInstances based on their names.

      Parameters:
      instanceNameFilter - The filter to ListInstances based on their names.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceStateFilterWithStrings

      ListInstancesRequest.Builder instanceStateFilterWithStrings(Collection<String> instanceStateFilter)

      The filter to ListInstances based on their state.

      Parameters:
      instanceStateFilter - The filter to ListInstances based on their state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceStateFilterWithStrings

      ListInstancesRequest.Builder instanceStateFilterWithStrings(String... instanceStateFilter)

      The filter to ListInstances based on their state.

      Parameters:
      instanceStateFilter - The filter to ListInstances based on their state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceStateFilter

      ListInstancesRequest.Builder instanceStateFilter(Collection<InstanceState> instanceStateFilter)

      The filter to ListInstances based on their state.

      Parameters:
      instanceStateFilter - The filter to ListInstances based on their state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceStateFilter

      ListInstancesRequest.Builder instanceStateFilter(InstanceState... instanceStateFilter)

      The filter to ListInstances based on their state.

      Parameters:
      instanceStateFilter - The filter to ListInstances based on their state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      ListInstancesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.