Class YouComSearchConfigBuilder

java.lang.Object
dev.tachyonmcp.extensions.tools.youcom.search.YouComSearchConfigBuilder

@Generated(from="dev.tachyonmcp.extensions.tools.youcom.search.YouComSearchConfig", generator="Immutables") @Generated("org.immutables.processor.ProxyProcessor") public final class YouComSearchConfigBuilder extends Object
YouComSearchConfigBuilder collects parameters and invokes the static factory method: new dev.tachyonmcp.extensions.tools.youcom.search.YouComSearchConfig(..). Call the build() method to get a result of type dev.tachyonmcp.extensions.tools.youcom.search.YouComSearchConfig.

YouComSearchConfigBuilder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Constructor Details

    • YouComSearchConfigBuilder

      public YouComSearchConfigBuilder()
      Creates a builder for YouComSearchConfig instances.
       new YouComSearchConfigBuilder()
          .apiKey(String | null) // nullable apiKey
          .freeTier(Boolean | null) // nullable freeTier
          .baseUrl(String | null) // nullable baseUrl
          .build();
       
  • Method Details

    • from

      public final YouComSearchConfigBuilder from(YouComSearchConfig instance)
      Fill a builder with attribute values from the provided YouComSearchConfig instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • apiKey

      public final YouComSearchConfigBuilder apiKey(@Nullable String apiKey)
      Initializes the value for the apiKey attribute.
      Parameters:
      apiKey - The value for apiKey (can be null)
      Returns:
      this builder for use in a chained invocation
    • freeTier

      public final YouComSearchConfigBuilder freeTier(@Nullable Boolean freeTier)
      Initializes the value for the freeTier attribute.
      Parameters:
      freeTier - The value for freeTier (can be null)
      Returns:
      this builder for use in a chained invocation
    • baseUrl

      public final YouComSearchConfigBuilder baseUrl(@Nullable String baseUrl)
      Initializes the value for the baseUrl attribute.
      Parameters:
      baseUrl - The value for baseUrl (can be null)
      Returns:
      this builder for use in a chained invocation
    • build

      public YouComSearchConfig build()
      Invokes new dev.tachyonmcp.extensions.tools.youcom.search.YouComSearchConfig(..) using the collected parameters and returns the result of the invocation
      Returns:
      A result of type dev.tachyonmcp.extensions.tools.youcom.search.YouComSearchConfig
      Throws:
      IllegalStateException - if any required attributes are missing