|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.linkedin.data.template.RecordTemplate
com.linkedin.restli.common.CreateStatus
public class CreateStatus
A Create response status. May optionally contain error details. The errors field is primarily for batch requests. For error responses to individual create requests, the response will only contains an error response and will not contain create status.
| Constructor Summary | |
|---|---|
CreateStatus()
Initialize an empty CreateStatus. |
|
CreateStatus(com.linkedin.data.DataMap data)
Initialize a CreateStatus off of a given DataMap. |
|
| Method Summary | |
|---|---|
ErrorResponse |
getError()
Gets the error for for the create status, if any. |
java.lang.String |
getId()
|
java.lang.Integer |
getStatus()
|
boolean |
hasError()
Checks if the create status contains a error. |
void |
setError(ErrorResponse error)
Sets the error response of the created item. |
void |
setId(java.lang.String id)
Set the Id of the created item. |
void |
setStatus(java.lang.Integer status)
Set the http status of the CreateStatus. |
| Methods inherited from class com.linkedin.data.template.RecordTemplate |
|---|
clone, contains, copy, data, equals, hashCode, obtainDirect, obtainWrapped, putDirect, putDirect, putDirect, putWrapped, putWrapped, remove, schema, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CreateStatus()
public CreateStatus(com.linkedin.data.DataMap data)
data - a DataMap| Method Detail |
|---|
public java.lang.Integer getStatus()
public void setStatus(java.lang.Integer status)
status - the http statuspublic java.lang.String getId()
public void setId(java.lang.String id)
id - the Idpublic boolean hasError()
public ErrorResponse getError()
public void setError(ErrorResponse error)
error - the error.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||