Package com.sap.ai.sdk.core.model
Class DSetError
java.lang.Object
com.sap.ai.sdk.core.model.DSetError
Error Response
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDetailsItem(DSetErrorDetailsInner detailsItem) Add one details instance to thisDSetError.Set the code of thisDSetErrorinstance and return the same instance.static DSetError.Buildercreate()Create a type-safe, fluent-api builder object to construct a newDSetErrorinstance with all required arguments.details(Set<DSetErrorDetailsInner> details) Set the details of thisDSetErrorinstance and return the same instance.booleangetCode()Get codegetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theDSetError.Get detailsGet messageGet requestIdGet targetinthashCode()Set the message of thisDSetErrorinstance and return the same instance.Set the requestId of thisDSetErrorinstance and return the same instance.voidSet the code of thisDSetErrorinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisDSetErrorinstance.voidsetDetails(Set<DSetErrorDetailsInner> details) Set the details of thisDSetErrorinstance.voidsetMessage(String message) Set the message of thisDSetErrorinstance.voidsetRequestId(String requestId) Set the requestId of thisDSetErrorinstance.voidSet the target of thisDSetErrorinstance.Set the target of thisDSetErrorinstance and return the same instance.toMap()Get the value of all properties of thisDSetErrorinstance including unrecognized properties.toString()
-
Constructor Details
-
DSetError
protected DSetError()Default constructor for DSetError.
-
-
Method Details
-
code
Set the code of thisDSetErrorinstance and return the same instance. -
getCode
Get code- Returns:
- code The code of this
DSetErrorinstance.
-
setCode
Set the code of thisDSetErrorinstance.- Parameters:
code- The code of thisDSetError
-
message
Set the message of thisDSetErrorinstance and return the same instance. -
getMessage
Get message- Returns:
- message The message of this
DSetErrorinstance.
-
setMessage
Set the message of thisDSetErrorinstance.- Parameters:
message- The message of thisDSetError
-
target
Set the target of thisDSetErrorinstance and return the same instance. -
getTarget
Get target- Returns:
- target The target of this
DSetErrorinstance.
-
setTarget
Set the target of thisDSetErrorinstance.- Parameters:
target- The target of thisDSetError
-
requestId
Set the requestId of thisDSetErrorinstance and return the same instance. -
getRequestId
Get requestId- Returns:
- requestId The requestId of this
DSetErrorinstance.
-
setRequestId
Set the requestId of thisDSetErrorinstance.- Parameters:
requestId- The requestId of thisDSetError
-
details
Set the details of thisDSetErrorinstance and return the same instance. -
addDetailsItem
Add one details instance to thisDSetError.- Parameters:
detailsItem- The details that should be added- Returns:
- The same instance of type
DSetError
-
getDetails
Get details- Returns:
- details The details of this
DSetErrorinstance.
-
setDetails
Set the details of thisDSetErrorinstance.- Parameters:
details- The details of thisDSetError
-
getCustomFieldNames
Get the names of the unrecognizable properties of theDSetError.- 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 thisDSetErrorinstance.- 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 thisDSetErrorinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisDSetErrorinstance. 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 newDSetErrorinstance with all required arguments.
-
toMap()instead.