Class CompletionPostResponse
java.lang.Object
com.sap.ai.sdk.orchestration.model.CompletionPostResponse
CompletionPostResponse
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for CompletionPostResponse. -
Method Summary
Modifier and TypeMethodDescriptionaddIntermediateFailuresItem(Error intermediateFailuresItem) Add one intermediateFailures instance to thisCompletionPostResponse.create()Create a type-safe, fluent-api builder object to construct a newCompletionPostResponseinstance with all required arguments.booleanfinalResult(LLMModuleResult finalResult) Set the finalResult of thisCompletionPostResponseinstance and return the same instance.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theCompletionPostResponse.Get finalResultList of errors encountered during processing for unsuccessful modules configurationsGet intermediateResultsID of the requestinthashCode()intermediateFailures(List<Error> intermediateFailures) Set the intermediateFailures of thisCompletionPostResponseinstance and return the same instance.intermediateResults(ModuleResults intermediateResults) Set the intermediateResults of thisCompletionPostResponseinstance and return the same instance.Set the requestId of thisCompletionPostResponseinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisCompletionPostResponseinstance.voidsetFinalResult(LLMModuleResult finalResult) Set the finalResult of thisCompletionPostResponseinstance.voidsetIntermediateFailures(List<Error> intermediateFailures) Set the intermediateFailures of thisCompletionPostResponseinstance.voidsetIntermediateResults(ModuleResults intermediateResults) Set the intermediateResults of thisCompletionPostResponseinstance.voidsetRequestId(String requestId) Set the requestId of thisCompletionPostResponseinstance.toMap()Get the value of all properties of thisCompletionPostResponseinstance including unrecognized properties.toString()
-
Constructor Details
-
CompletionPostResponse
protected CompletionPostResponse()Default constructor for CompletionPostResponse.
-
-
Method Details
-
requestId
Set the requestId of thisCompletionPostResponseinstance and return the same instance.- Parameters:
requestId- ID of the request- Returns:
- The same instance of this
CompletionPostResponseclass
-
getRequestId
ID of the request- Returns:
- requestId The requestId of this
CompletionPostResponseinstance.
-
setRequestId
Set the requestId of thisCompletionPostResponseinstance.- Parameters:
requestId- ID of the request
-
intermediateResults
@Nonnull public CompletionPostResponse intermediateResults(@Nonnull ModuleResults intermediateResults) Set the intermediateResults of thisCompletionPostResponseinstance and return the same instance.- Parameters:
intermediateResults- The intermediateResults of thisCompletionPostResponse- Returns:
- The same instance of this
CompletionPostResponseclass
-
getIntermediateResults
Get intermediateResults- Returns:
- intermediateResults The intermediateResults of this
CompletionPostResponseinstance.
-
setIntermediateResults
Set the intermediateResults of thisCompletionPostResponseinstance.- Parameters:
intermediateResults- The intermediateResults of thisCompletionPostResponse
-
finalResult
Set the finalResult of thisCompletionPostResponseinstance and return the same instance.- Parameters:
finalResult- The finalResult of thisCompletionPostResponse- Returns:
- The same instance of this
CompletionPostResponseclass
-
getFinalResult
Get finalResult- Returns:
- finalResult The finalResult of this
CompletionPostResponseinstance.
-
setFinalResult
Set the finalResult of thisCompletionPostResponseinstance.- Parameters:
finalResult- The finalResult of thisCompletionPostResponse
-
intermediateFailures
@Nonnull public CompletionPostResponse intermediateFailures(@Nullable List<Error> intermediateFailures) Set the intermediateFailures of thisCompletionPostResponseinstance and return the same instance.- Parameters:
intermediateFailures- List of errors encountered during processing for unsuccessful modules configurations- Returns:
- The same instance of this
CompletionPostResponseclass
-
addIntermediateFailuresItem
@Nonnull public CompletionPostResponse addIntermediateFailuresItem(@Nonnull Error intermediateFailuresItem) Add one intermediateFailures instance to thisCompletionPostResponse.- Parameters:
intermediateFailuresItem- The intermediateFailures that should be added- Returns:
- The same instance of type
CompletionPostResponse
-
getIntermediateFailures
List of errors encountered during processing for unsuccessful modules configurations- Returns:
- intermediateFailures The intermediateFailures of this
CompletionPostResponseinstance.
-
setIntermediateFailures
Set the intermediateFailures of thisCompletionPostResponseinstance.- Parameters:
intermediateFailures- List of errors encountered during processing for unsuccessful modules configurations
-
getCustomFieldNames
Get the names of the unrecognizable properties of theCompletionPostResponse.- 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 thisCompletionPostResponseinstance.- 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 thisCompletionPostResponseinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisCompletionPostResponseinstance. 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 newCompletionPostResponseinstance with all required arguments.
-
toMap()instead.