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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInitializes the value for theapiKeyattribute.Initializes the value for thebaseUrlattribute.build()Invokesnew dev.tachyonmcp.extensions.tools.youcom.search.YouComSearchConfig(..)using the collected parameters and returns the result of the invocationInitializes the value for thefreeTierattribute.from(YouComSearchConfig instance) Fill a builder with attribute values from the providedYouComSearchConfiginstance.
-
Constructor Details
-
YouComSearchConfigBuilder
public YouComSearchConfigBuilder()Creates a builder forYouComSearchConfiginstances.new YouComSearchConfigBuilder() .apiKey(String | null) // nullableapiKey.freeTier(Boolean | null) // nullablefreeTier.baseUrl(String | null) // nullablebaseUrl.build();
-
-
Method Details
-
from
Fill a builder with attribute values from the providedYouComSearchConfiginstance. 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:
thisbuilder for use in a chained invocation
-
apiKey
Initializes the value for theapiKeyattribute.- Parameters:
apiKey- The value for apiKey (can benull)- Returns:
thisbuilder for use in a chained invocation
-
freeTier
Initializes the value for thefreeTierattribute.- Parameters:
freeTier- The value for freeTier (can benull)- Returns:
thisbuilder for use in a chained invocation
-
baseUrl
Initializes the value for thebaseUrlattribute.- Parameters:
baseUrl- The value for baseUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
Invokesnew 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
-