Package com.sap.ai.sdk.core.model
Class TrckApiError
java.lang.Object
com.sap.ai.sdk.core.model.TrckApiError
TrckApiError
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDetailsItem(TrckDetailsErrorResponse detailsItem) Add one details instance to thisTrckApiError.Set the code of thisTrckApiErrorinstance and return the same instance.static TrckApiError.Buildercreate()Create a type-safe, fluent-api builder object to construct a newTrckApiErrorinstance with all required arguments.details(List<TrckDetailsErrorResponse> details) Set the details of thisTrckApiErrorinstance and return the same instance.booleangetCode()Descriptive error code (not http status code).getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theTrckApiError.Get detailsplaintext error descriptionid of individual requesturl that has been calledinthashCode()Set the message of thisTrckApiErrorinstance and return the same instance.Set the requestId of thisTrckApiErrorinstance and return the same instance.voidSet the code of thisTrckApiErrorinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisTrckApiErrorinstance.voidsetDetails(List<TrckDetailsErrorResponse> details) Set the details of thisTrckApiErrorinstance.voidsetMessage(String message) Set the message of thisTrckApiErrorinstance.voidsetRequestId(String requestId) Set the requestId of thisTrckApiErrorinstance.voidSet the target of thisTrckApiErrorinstance.Set the target of thisTrckApiErrorinstance and return the same instance.toMap()Get the value of all properties of thisTrckApiErrorinstance including unrecognized properties.toString()
-
Constructor Details
-
TrckApiError
protected TrckApiError()Default constructor for TrckApiError.
-
-
Method Details
-
code
Set the code of thisTrckApiErrorinstance and return the same instance.- Parameters:
code- Descriptive error code (not http status code).- Returns:
- The same instance of this
TrckApiErrorclass
-
getCode
Descriptive error code (not http status code).- Returns:
- code The code of this
TrckApiErrorinstance.
-
setCode
Set the code of thisTrckApiErrorinstance.- Parameters:
code- Descriptive error code (not http status code).
-
message
Set the message of thisTrckApiErrorinstance and return the same instance.- Parameters:
message- plaintext error description- Returns:
- The same instance of this
TrckApiErrorclass
-
getMessage
plaintext error description- Returns:
- message The message of this
TrckApiErrorinstance.
-
setMessage
Set the message of thisTrckApiErrorinstance.- Parameters:
message- plaintext error description
-
requestId
Set the requestId of thisTrckApiErrorinstance and return the same instance.- Parameters:
requestId- id of individual request- Returns:
- The same instance of this
TrckApiErrorclass
-
getRequestId
id of individual request- Returns:
- requestId The requestId of this
TrckApiErrorinstance.
-
setRequestId
Set the requestId of thisTrckApiErrorinstance.- Parameters:
requestId- id of individual request
-
target
Set the target of thisTrckApiErrorinstance and return the same instance.- Parameters:
target- url that has been called- Returns:
- The same instance of this
TrckApiErrorclass
-
getTarget
url that has been called- Returns:
- target The target of this
TrckApiErrorinstance.
-
setTarget
Set the target of thisTrckApiErrorinstance.- Parameters:
target- url that has been called
-
details
Set the details of thisTrckApiErrorinstance and return the same instance.- Parameters:
details- The details of thisTrckApiError- Returns:
- The same instance of this
TrckApiErrorclass
-
addDetailsItem
Add one details instance to thisTrckApiError.- Parameters:
detailsItem- The details that should be added- Returns:
- The same instance of type
TrckApiError
-
getDetails
Get details- Returns:
- details The details of this
TrckApiErrorinstance.
-
setDetails
Set the details of thisTrckApiErrorinstance.- Parameters:
details- The details of thisTrckApiError
-
getCustomFieldNames
Get the names of the unrecognizable properties of theTrckApiError.- 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 thisTrckApiErrorinstance.- 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 thisTrckApiErrorinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisTrckApiErrorinstance. 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 newTrckApiErrorinstance with all required arguments.
-
toMap()instead.