Class ErrorResponse
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.ErrorResponse
ErrorResponse
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorResponse.Buildercreate()Create a type-safe, fluent-api builder object to construct a newErrorResponseinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theErrorResponse.Get messageGet requestIdinthashCode()Set the message of thisErrorResponseinstance and return the same instance.Set the requestId of thisErrorResponseinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisErrorResponseinstance.voidsetMessage(String message) Set the message of thisErrorResponseinstance.voidsetRequestId(String requestId) Set the requestId of thisErrorResponseinstance.toMap()Get the value of all properties of thisErrorResponseinstance including unrecognized properties.toString()
-
Constructor Details
-
ErrorResponse
protected ErrorResponse()Default constructor for ErrorResponse.
-
-
Method Details
-
requestId
Set the requestId of thisErrorResponseinstance and return the same instance.- Parameters:
requestId- The requestId of thisErrorResponse- Returns:
- The same instance of this
ErrorResponseclass
-
getRequestId
Get requestId- Returns:
- requestId The requestId of this
ErrorResponseinstance.
-
setRequestId
Set the requestId of thisErrorResponseinstance.- Parameters:
requestId- The requestId of thisErrorResponse
-
message
Set the message of thisErrorResponseinstance and return the same instance.- Parameters:
message- The message of thisErrorResponse- Returns:
- The same instance of this
ErrorResponseclass
-
getMessage
Get message- Returns:
- message The message of this
ErrorResponseinstance.
-
setMessage
Set the message of thisErrorResponseinstance.- Parameters:
message- The message of thisErrorResponse
-
getCustomFieldNames
Get the names of the unrecognizable properties of theErrorResponse.- 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 thisErrorResponseinstance.- 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 thisErrorResponseinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisErrorResponseinstance. 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 newErrorResponseinstance with all required arguments.
-
toMap()instead.