Record Class YouComSearchConfig
java.lang.Object
java.lang.Record
dev.tachyonmcp.extensions.tools.youcom.search.YouComSearchConfig
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionYouComSearchConfig(@Nullable String apiKey, @Nullable Boolean freeTier, @Nullable String baseUrl) Creates an instance of aYouComSearchConfigrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringapiKey()Returns the value of theapiKeyrecord component.@Nullable StringbaseUrl()Returns the value of thebaseUrlrecord component.static YouComSearchConfigBuilderbuilder()final booleanIndicates whether some other object is "equal to" this one.@Nullable BooleanfreeTier()Returns the value of thefreeTierrecord component.final inthashCode()Returns a hash code value for this object.booleanfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT_BASE
- See Also:
-
-
Constructor Details
-
YouComSearchConfig
public YouComSearchConfig(@Nullable String apiKey, @Nullable Boolean freeTier, @Nullable String baseUrl) Creates an instance of aYouComSearchConfigrecord class.- Parameters:
apiKey- the value for theapiKeyrecord componentfreeTier- the value for thefreeTierrecord componentbaseUrl- the value for thebaseUrlrecord component
-
-
Method Details
-
builder
-
effectiveBaseUrl
-
isFreeTier
public boolean isFreeTier() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
apiKey
Returns the value of theapiKeyrecord component.- Returns:
- the value of the
apiKeyrecord component
-
freeTier
Returns the value of thefreeTierrecord component.- Returns:
- the value of the
freeTierrecord component
-
baseUrl
Returns the value of thebaseUrlrecord component.- Returns:
- the value of the
baseUrlrecord component
-