Skip to content

Generate withOptions(Consumer<Builder>) returning a new immutable client #60

Description

@OmarAlJarrah

Problem

There's no ergonomic way to derive a lightly-reconfigured client. This depends on having a single cloneable client config (we currently have split config with no toBuilder()).

Proposed change

First decide whether to introduce a single cloneable client-config with toBuilder(). If yes, generate withOptions(Consumer<Builder>) returning a new immutable client. If we keep split config, close this.

Acceptance

  • Decision on unified client config
  • withOptions if config supports it

Dependencies


Priority: medium · Effort: medium

Metadata

Metadata

Assignees

No one assigned

    Labels

    codegenfuture KotlinPoet codegenenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions