Interface Capability.Builder

  • Method Details

    • id

      A unique identifier for this capability within the extension's configuration.

      Parameters:
      id - A unique identifier for this capability within the extension's configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • purpose

      Capability.Builder purpose(String purpose)

      A description of why the extension needs this capability and how it will be used.

      Parameters:
      purpose - A description of why the extension needs this capability and how it will be used.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • required

      Capability.Builder required(Boolean required)

      Whether this capability is mandatory for the extension to function. Defaults to false.

      Parameters:
      required - Whether this capability is mandatory for the extension to function. Defaults to false.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definition

      Capability.Builder definition(CapabilityDefinition definition)

      The type-specific details of the requested capability.

      Parameters:
      definition - The type-specific details of the requested capability.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definition

      default Capability.Builder definition(Consumer<CapabilityDefinition.Builder> definition)

      The type-specific details of the requested capability.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to definition(CapabilityDefinition).

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