Interface ServiceState.Builder

  • Method Details

    • attributeFilters

      ServiceState.Builder attributeFilters(Collection<AttributeFilter> attributeFilters)

      The attribute filters that were applied when retrieving this service state information.

      Parameters:
      attributeFilters - The attribute filters that were applied when retrieving this service state information.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributeFilters

      ServiceState.Builder attributeFilters(AttributeFilter... attributeFilters)

      The attribute filters that were applied when retrieving this service state information.

      Parameters:
      attributeFilters - The attribute filters that were applied when retrieving this service state information.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributeFilters

      ServiceState.Builder attributeFilters(Consumer<AttributeFilter.Builder>... attributeFilters)

      The attribute filters that were applied when retrieving this service state information.

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

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

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

      The key attributes that identify this service, including Type, Name, and Environment information.

      Parameters:
      service - The key attributes that identify this service, including Type, Name, and Environment information.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • latestChangeEvents

      ServiceState.Builder latestChangeEvents(Collection<ChangeEvent> latestChangeEvents)

      An array containing the most recent change events for this service, such as deployments, with information about when they occurred and who initiated them.

      Parameters:
      latestChangeEvents - An array containing the most recent change events for this service, such as deployments, with information about when they occurred and who initiated them.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • latestChangeEvents

      ServiceState.Builder latestChangeEvents(ChangeEvent... latestChangeEvents)

      An array containing the most recent change events for this service, such as deployments, with information about when they occurred and who initiated them.

      Parameters:
      latestChangeEvents - An array containing the most recent change events for this service, such as deployments, with information about when they occurred and who initiated them.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • latestChangeEvents

      ServiceState.Builder latestChangeEvents(Consumer<ChangeEvent.Builder>... latestChangeEvents)

      An array containing the most recent change events for this service, such as deployments, with information about when they occurred and who initiated them.

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

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

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