Package com.sap.ai.sdk.core.model
Class TrckDetailsErrorResponse
java.lang.Object
com.sap.ai.sdk.core.model.TrckDetailsErrorResponse
TrckDetailsErrorResponse
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for TrckDetailsErrorResponse. -
Method Summary
Modifier and TypeMethodDescriptionSet the code of thisTrckDetailsErrorResponseinstance and return the same instance.static TrckDetailsErrorResponsecreate()Create a newTrckDetailsErrorResponseinstance.booleangetCode()Descriptive error code (not http status code)getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theTrckDetailsErrorResponse.Plaintext error descriptioninthashCode()Set the message of thisTrckDetailsErrorResponseinstance and return the same instance.voidSet the code of thisTrckDetailsErrorResponseinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisTrckDetailsErrorResponseinstance.voidsetMessage(String message) Set the message of thisTrckDetailsErrorResponseinstance.toMap()Get the value of all properties of thisTrckDetailsErrorResponseinstance including unrecognized properties.toString()
-
Constructor Details
-
TrckDetailsErrorResponse
protected TrckDetailsErrorResponse()Default constructor for TrckDetailsErrorResponse.
-
-
Method Details
-
code
Set the code of thisTrckDetailsErrorResponseinstance and return the same instance.- Parameters:
code- Descriptive error code (not http status code)- Returns:
- The same instance of this
TrckDetailsErrorResponseclass
-
getCode
Descriptive error code (not http status code)- Returns:
- code The code of this
TrckDetailsErrorResponseinstance.
-
setCode
Set the code of thisTrckDetailsErrorResponseinstance.- Parameters:
code- Descriptive error code (not http status code)
-
message
Set the message of thisTrckDetailsErrorResponseinstance and return the same instance.- Parameters:
message- Plaintext error description- Returns:
- The same instance of this
TrckDetailsErrorResponseclass
-
getMessage
Plaintext error description- Returns:
- message The message of this
TrckDetailsErrorResponseinstance.
-
setMessage
Set the message of thisTrckDetailsErrorResponseinstance.- Parameters:
message- Plaintext error description
-
getCustomFieldNames
Get the names of the unrecognizable properties of theTrckDetailsErrorResponse.- 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 thisTrckDetailsErrorResponseinstance.- 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 thisTrckDetailsErrorResponseinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisTrckDetailsErrorResponseinstance. 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 newTrckDetailsErrorResponseinstance. No arguments are required.
-
toMap()instead.