Record Class DashScopeApiSpec.SearchOptions
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.spec.DashScopeApiSpec.SearchOptions
- Enclosing class:
- DashScopeApiSpec
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns the value of thecitationFormatrecord component.Returns the value of theenableCitationrecord component.Returns the value of theenableSourcerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theforcedSearchrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thesearchStrategyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SearchOptions
public SearchOptions(Boolean enableSource, Boolean enableCitation, String citationFormat, Boolean forcedSearch, String searchStrategy) Creates an instance of aSearchOptionsrecord class.- Parameters:
enableSource- the value for theenableSourcerecord componentenableCitation- the value for theenableCitationrecord componentcitationFormat- the value for thecitationFormatrecord componentforcedSearch- the value for theforcedSearchrecord componentsearchStrategy- the value for thesearchStrategyrecord component
-
-
Method Details
-
builder
-
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). -
enableSource
Returns the value of theenableSourcerecord component.- Returns:
- the value of the
enableSourcerecord component
-
enableCitation
Returns the value of theenableCitationrecord component.- Returns:
- the value of the
enableCitationrecord component
-
citationFormat
Returns the value of thecitationFormatrecord component.- Returns:
- the value of the
citationFormatrecord component
-
forcedSearch
Returns the value of theforcedSearchrecord component.- Returns:
- the value of the
forcedSearchrecord component
-
searchStrategy
Returns the value of thesearchStrategyrecord component.- Returns:
- the value of the
searchStrategyrecord component
-