Interface Setting.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Setting.Builder,Setting>, SdkBuilder<Setting.Builder,Setting>, SdkPojo
Enclosing class:
Setting

@Mutable @NotThreadSafe public static interface Setting.Builder extends SdkPojo, CopyableBuilder<Setting.Builder,Setting>
  • Method Details

    • id

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

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

      Setting.Builder displayName(String displayName)

      A short, human-readable label for this setting, suitable for display in a UI.

      Parameters:
      displayName - A short, human-readable label for this setting, suitable for display in a UI.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      Setting.Builder description(String description)

      A description of what this setting controls and how it affects the extension's behavior.

      Parameters:
      description - A description of what this setting controls and how it affects the extension's behavior.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • required

      Setting.Builder required(Boolean required)

      Whether the deployer must provide a value for this setting. Defaults to false.

      Parameters:
      required - Whether the deployer must provide a value for this setting. Defaults to false.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • activeWhen

      Setting.Builder activeWhen(String activeWhen)

      A conditional expression referencing another setting's id. When specified, this setting is only active (visible and applicable) when the referenced condition is met.

      Parameters:
      activeWhen - A conditional expression referencing another setting's id. When specified, this setting is only active (visible and applicable) when the referenced condition is met.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definition

      Setting.Builder definition(SettingDefinition definition)

      The type and constraints for this setting's value.

      Parameters:
      definition - The type and constraints for this setting's value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definition

      default Setting.Builder definition(Consumer<SettingDefinition.Builder> definition)

      The type and constraints for this setting's value.

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

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

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