Package com.smartsheet.api.models
Class Result<T>
- java.lang.Object
-
- com.smartsheet.api.models.Result<T>
-
- Type Parameters:
T
- the generic type
- Direct Known Subclasses:
BulkItemResult
,PartialRowUpdateResult
public class Result<T> extends java.lang.Object
Result object to contain information about a PUT or POST request.
-
-
Constructor Summary
Constructors Constructor Description Result()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage()
Gets the message from the request.T
getResult()
Gets the result from the request.java.lang.Integer
getResultCode()
Gets the result code from the request.java.lang.Integer
getVersion()
Gets the new version of the sheet.void
setMessage(java.lang.String message)
Sets the message.void
setResult(T result)
Sets the result.void
setResultCode(java.lang.Integer resultCode)
Sets the result code.void
setVersion(java.lang.Integer version)
Sets the version.
-
-
-
Method Detail
-
getResultCode
public java.lang.Integer getResultCode()
Gets the result code from the request.- Returns:
- the result code
-
setResultCode
public void setResultCode(java.lang.Integer resultCode)
Sets the result code.- Parameters:
resultCode
- the new result code
-
getMessage
public java.lang.String getMessage()
Gets the message from the request.- Returns:
- the message
-
setMessage
public void setMessage(java.lang.String message)
Sets the message.- Parameters:
message
- the new message
-
getResult
public T getResult()
Gets the result from the request.- Returns:
- the result
-
setResult
public void setResult(T result)
Sets the result.- Parameters:
result
- the new result
-
getVersion
public java.lang.Integer getVersion()
Gets the new version of the sheet. It is only available on some operations..- Returns:
- the version
-
setVersion
public void setVersion(java.lang.Integer version)
Sets the version.- Parameters:
version
- the new version
-
-