Interface ServiceState.Builder

  • Method Details

    • attributeFilters

      ServiceState.Builder attributeFilters(Collection<AttributeFilter> attributeFilters)

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

      Parameters:
      attributeFilters - The attribute filters that were applied when retrieving this service state.
      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.

      Parameters:
      attributeFilters - The attribute filters that were applied when retrieving this service state.
      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.

      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 service entity information for this service state.

      Parameters:
      service - The service entity information for this service state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • latestChangeEvents

      ServiceState.Builder latestChangeEvents(Collection<ChangeEvent> latestChangeEvents)

      An array of the most recent change events that may have affected this service, such as deployments or configuration changes.

      Parameters:
      latestChangeEvents - An array of the most recent change events that may have affected this service, such as deployments or configuration changes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • latestChangeEvents

      ServiceState.Builder latestChangeEvents(ChangeEvent... latestChangeEvents)

      An array of the most recent change events that may have affected this service, such as deployments or configuration changes.

      Parameters:
      latestChangeEvents - An array of the most recent change events that may have affected this service, such as deployments or configuration changes.
      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 of the most recent change events that may have affected this service, such as deployments or configuration changes.

      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: