Class ErrorStreaming
java.lang.Object
com.sap.ai.sdk.orchestration.model.ErrorStreaming
ErrorStreaming
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the code of thisErrorStreaminginstance and return the same instance.static ErrorStreaming.Buildercreate()Create a type-safe, fluent-api builder object to construct a newErrorStreaminginstance with all required arguments.booleangetCode()Get codegetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theErrorStreaming.HTTP headers returned from the failed request attemptGet intermediateResultsWhere the error occurredGet messageGet requestIdinthashCode()Set the headers of thisErrorStreaminginstance and return the same instance.intermediateResults(ModuleResultsStreaming intermediateResults) Set the intermediateResults of thisErrorStreaminginstance and return the same instance.Set the location of thisErrorStreaminginstance and return the same instance.Set the message of thisErrorStreaminginstance and return the same instance.putheadersItem(String key, String headersItem) Put one headers instance to thisErrorStreaminginstance.Set the requestId of thisErrorStreaminginstance and return the same instance.voidSet the code of thisErrorStreaminginstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisErrorStreaminginstance.voidsetHeaders(Map<String, String> headers) Set the headers of thisErrorStreaminginstance.voidsetIntermediateResults(ModuleResultsStreaming intermediateResults) Set the intermediateResults of thisErrorStreaminginstance.voidsetLocation(String location) Set the location of thisErrorStreaminginstance.voidsetMessage(String message) Set the message of thisErrorStreaminginstance.voidsetRequestId(String requestId) Set the requestId of thisErrorStreaminginstance.toMap()Get the value of all properties of thisErrorStreaminginstance including unrecognized properties.toString()
-
Constructor Details
-
ErrorStreaming
protected ErrorStreaming()Default constructor for ErrorStreaming.
-
-
Method Details
-
requestId
Set the requestId of thisErrorStreaminginstance and return the same instance.- Parameters:
requestId- The requestId of thisErrorStreaming- Returns:
- The same instance of this
ErrorStreamingclass
-
getRequestId
Get requestId- Returns:
- requestId The requestId of this
ErrorStreaminginstance.
-
setRequestId
Set the requestId of thisErrorStreaminginstance.- Parameters:
requestId- The requestId of thisErrorStreaming
-
code
Set the code of thisErrorStreaminginstance and return the same instance.- Parameters:
code- The code of thisErrorStreaming- Returns:
- The same instance of this
ErrorStreamingclass
-
getCode
Get code- Returns:
- code The code of this
ErrorStreaminginstance.
-
setCode
Set the code of thisErrorStreaminginstance.- Parameters:
code- The code of thisErrorStreaming
-
message
Set the message of thisErrorStreaminginstance and return the same instance.- Parameters:
message- The message of thisErrorStreaming- Returns:
- The same instance of this
ErrorStreamingclass
-
getMessage
Get message- Returns:
- message The message of this
ErrorStreaminginstance.
-
setMessage
Set the message of thisErrorStreaminginstance.- Parameters:
message- The message of thisErrorStreaming
-
location
Set the location of thisErrorStreaminginstance and return the same instance.- Parameters:
location- Where the error occurred- Returns:
- The same instance of this
ErrorStreamingclass
-
getLocation
Where the error occurred- Returns:
- location The location of this
ErrorStreaminginstance.
-
setLocation
Set the location of thisErrorStreaminginstance.- Parameters:
location- Where the error occurred
-
intermediateResults
@Nonnull public ErrorStreaming intermediateResults(@Nullable ModuleResultsStreaming intermediateResults) Set the intermediateResults of thisErrorStreaminginstance and return the same instance.- Parameters:
intermediateResults- The intermediateResults of thisErrorStreaming- Returns:
- The same instance of this
ErrorStreamingclass
-
getIntermediateResults
Get intermediateResults- Returns:
- intermediateResults The intermediateResults of this
ErrorStreaminginstance.
-
setIntermediateResults
Set the intermediateResults of thisErrorStreaminginstance.- Parameters:
intermediateResults- The intermediateResults of thisErrorStreaming
-
headers
Set the headers of thisErrorStreaminginstance and return the same instance.- Parameters:
headers- HTTP headers returned from the failed request attempt- Returns:
- The same instance of this
ErrorStreamingclass
-
putheadersItem
Put one headers instance to thisErrorStreaminginstance.- Parameters:
key- The String key of this headers instanceheadersItem- The headers that should be added under the given key- Returns:
- The same instance of type
ErrorStreaming
-
getHeaders
HTTP headers returned from the failed request attempt- Returns:
- headers The headers of this
ErrorStreaminginstance.
-
setHeaders
Set the headers of thisErrorStreaminginstance.- Parameters:
headers- HTTP headers returned from the failed request attempt
-
getCustomFieldNames
Get the names of the unrecognizable properties of theErrorStreaming.- 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 thisErrorStreaminginstance.- 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 thisErrorStreaminginstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisErrorStreaminginstance. 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 newErrorStreaminginstance with all required arguments.
-
toMap()instead.