Class Citation
java.lang.Object
com.sap.ai.sdk.orchestration.model.Citation
Citation
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Citation.Buildercreate()Create a type-safe, fluent-api builder object to construct a newCitationinstance with all required arguments.Set the endIndex of thisCitationinstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theCitation.End index of the citation in the response textgetRefId()Unique identifier for inline citationStart index of the citation in the response textgetTitle()Title of the citationgetUrl()URL of the citationinthashCode()Set the refId of thisCitationinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisCitationinstance.voidsetEndIndex(Integer endIndex) Set the endIndex of thisCitationinstance.voidSet the refId of thisCitationinstance.voidsetStartIndex(Integer startIndex) Set the startIndex of thisCitationinstance.voidSet the title of thisCitationinstance.voidSet the url of thisCitationinstance.startIndex(Integer startIndex) Set the startIndex of thisCitationinstance and return the same instance.Set the title of thisCitationinstance and return the same instance.toMap()Get the value of all properties of thisCitationinstance including unrecognized properties.toString()Set the url of thisCitationinstance and return the same instance.
-
Constructor Details
-
Citation
protected Citation()Default constructor for Citation.
-
-
Method Details
-
refId
Set the refId of thisCitationinstance and return the same instance.- Parameters:
refId- Unique identifier for inline citation- Returns:
- The same instance of this
Citationclass
-
getRefId
Unique identifier for inline citation- Returns:
- refId The refId of this
Citationinstance.
-
setRefId
Set the refId of thisCitationinstance.- Parameters:
refId- Unique identifier for inline citation
-
title
Set the title of thisCitationinstance and return the same instance.- Parameters:
title- Title of the citation- Returns:
- The same instance of this
Citationclass
-
getTitle
Title of the citation- Returns:
- title The title of this
Citationinstance.
-
setTitle
Set the title of thisCitationinstance.- Parameters:
title- Title of the citation
-
url
Set the url of thisCitationinstance and return the same instance.- Parameters:
url- URL of the citation- Returns:
- The same instance of this
Citationclass
-
getUrl
URL of the citation- Returns:
- url The url of this
Citationinstance.
-
setUrl
Set the url of thisCitationinstance.- Parameters:
url- URL of the citation
-
startIndex
Set the startIndex of thisCitationinstance and return the same instance.- Parameters:
startIndex- Start index of the citation in the response text- Returns:
- The same instance of this
Citationclass
-
getStartIndex
Start index of the citation in the response text- Returns:
- startIndex The startIndex of this
Citationinstance.
-
setStartIndex
Set the startIndex of thisCitationinstance.- Parameters:
startIndex- Start index of the citation in the response text
-
endIndex
Set the endIndex of thisCitationinstance and return the same instance.- Parameters:
endIndex- End index of the citation in the response text- Returns:
- The same instance of this
Citationclass
-
getEndIndex
End index of the citation in the response text- Returns:
- endIndex The endIndex of this
Citationinstance.
-
setEndIndex
Set the endIndex of thisCitationinstance.- Parameters:
endIndex- End index of the citation in the response text
-
getCustomFieldNames
Get the names of the unrecognizable properties of theCitation.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisCitationinstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisCitationinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisCitationinstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a type-safe, fluent-api builder object to construct a newCitationinstance with all required arguments.
-
toMap()instead.