Package com.sap.ai.sdk.grounding.model
Class DocumentMetadataUpdateError
java.lang.Object
com.sap.ai.sdk.grounding.model.DocumentMetadataUpdateError
- All Implemented Interfaces:
BatchUpdateDocumentsResponseInner
public class DocumentMetadataUpdateError
extends Object
implements BatchUpdateDocumentsResponseInner
DocumentMetadataUpdateError
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for DocumentMetadataUpdateError. -
Method Summary
Modifier and TypeMethodDescriptionSet the code of thisDocumentMetadataUpdateErrorinstance and return the same instance.create()Create a type-safe, fluent-api builder object to construct a newDocumentMetadataUpdateErrorinstance with all required arguments.booleangetCode()HTTP error status code.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theDocumentMetadataUpdateError.Error message.Document ID that caused the error.inthashCode()Set the message of thisDocumentMetadataUpdateErrorinstance and return the same instance.voidSet the code of thisDocumentMetadataUpdateErrorinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisDocumentMetadataUpdateErrorinstance.voidsetMessage(String message) Set the message of thisDocumentMetadataUpdateErrorinstance.voidSet the target of thisDocumentMetadataUpdateErrorinstance.Set the target of thisDocumentMetadataUpdateErrorinstance and return the same instance.toMap()Get the value of all properties of thisDocumentMetadataUpdateErrorinstance including unrecognized properties.toString()
-
Constructor Details
-
DocumentMetadataUpdateError
protected DocumentMetadataUpdateError()Default constructor for DocumentMetadataUpdateError.
-
-
Method Details
-
target
Set the target of thisDocumentMetadataUpdateErrorinstance and return the same instance.- Parameters:
target- Document ID that caused the error.- Returns:
- The same instance of this
DocumentMetadataUpdateErrorclass
-
getTarget
Document ID that caused the error.- Returns:
- target The target of this
DocumentMetadataUpdateErrorinstance.
-
setTarget
Set the target of thisDocumentMetadataUpdateErrorinstance.- Parameters:
target- Document ID that caused the error.
-
code
Set the code of thisDocumentMetadataUpdateErrorinstance and return the same instance.- Parameters:
code- HTTP error status code.- Returns:
- The same instance of this
DocumentMetadataUpdateErrorclass
-
getCode
HTTP error status code.- Returns:
- code The code of this
DocumentMetadataUpdateErrorinstance.
-
setCode
Set the code of thisDocumentMetadataUpdateErrorinstance.- Parameters:
code- HTTP error status code.
-
message
Set the message of thisDocumentMetadataUpdateErrorinstance and return the same instance.- Parameters:
message- Error message.- Returns:
- The same instance of this
DocumentMetadataUpdateErrorclass
-
getMessage
Error message.- Returns:
- message The message of this
DocumentMetadataUpdateErrorinstance.
-
setMessage
Set the message of thisDocumentMetadataUpdateErrorinstance.- Parameters:
message- Error message.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theDocumentMetadataUpdateError.- 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 thisDocumentMetadataUpdateErrorinstance.- 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 thisDocumentMetadataUpdateErrorinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisDocumentMetadataUpdateErrorinstance. 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 newDocumentMetadataUpdateErrorinstance with all required arguments.
-
toMap()instead.