Class PredictResponseStatus
java.lang.Object
com.sap.ai.sdk.foundationmodels.rpt.generated.model.PredictResponseStatus
Output status for prediction requests.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for PredictResponseStatus. -
Method Summary
Modifier and TypeMethodDescriptionSet the code of thisPredictResponseStatusinstance and return the same instance.create()Create a type-safe, fluent-api builder object to construct a newPredictResponseStatusinstance with all required arguments.booleangetCode()Status code (zero means success, other status codes indicate warnings or errors)getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of thePredictResponseStatus.Status message, either \"ok\" or contains a warning / more information.inthashCode()Set the message of thisPredictResponseStatusinstance and return the same instance.voidSet the code of thisPredictResponseStatusinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisPredictResponseStatusinstance.voidsetMessage(String message) Set the message of thisPredictResponseStatusinstance.toMap()Get the value of all properties of thisPredictResponseStatusinstance including unrecognized properties.toString()
-
Constructor Details
-
PredictResponseStatus
protected PredictResponseStatus()Default constructor for PredictResponseStatus.
-
-
Method Details
-
code
Set the code of thisPredictResponseStatusinstance and return the same instance.- Parameters:
code- Status code (zero means success, other status codes indicate warnings or errors)- Returns:
- The same instance of this
PredictResponseStatusclass
-
getCode
Status code (zero means success, other status codes indicate warnings or errors)- Returns:
- code The code of this
PredictResponseStatusinstance.
-
setCode
Set the code of thisPredictResponseStatusinstance.- Parameters:
code- Status code (zero means success, other status codes indicate warnings or errors)
-
message
Set the message of thisPredictResponseStatusinstance and return the same instance.- Parameters:
message- Status message, either \"ok\" or contains a warning / more information.- Returns:
- The same instance of this
PredictResponseStatusclass
-
getMessage
Status message, either \"ok\" or contains a warning / more information.- Returns:
- message The message of this
PredictResponseStatusinstance.
-
setMessage
Set the message of thisPredictResponseStatusinstance.- Parameters:
message- Status message, either \"ok\" or contains a warning / more information.
-
getCustomFieldNames
Get the names of the unrecognizable properties of thePredictResponseStatus.- 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 thisPredictResponseStatusinstance.- 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 thisPredictResponseStatusinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisPredictResponseStatusinstance. 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 newPredictResponseStatusinstance with all required arguments.
-
toMap()instead.