@Experimental public class ClusterManagementResult extends Object
ClusterManagementService
methods| Modifier and Type | Class and Description |
|---|---|
static class |
ClusterManagementResult.StatusCode
these status codes generally have a one-to-one mapping to the http status code returned by the
REST controller
|
| Constructor and Description |
|---|
ClusterManagementResult()
for internal use only
|
ClusterManagementResult(ClusterManagementResult.StatusCode statusCode,
String message)
for internal use only
|
ClusterManagementResult(ClusterManagementResult copyFrom)
for internal use only
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
ClusterManagementResult.StatusCode |
getStatusCode()
Returns the
ClusterManagementResult.StatusCode for this request, such as ERROR or OK. |
String |
getStatusMessage()
Returns an optional message to accompany
getStatusCode() |
int |
hashCode() |
boolean |
isSuccessful()
Returns true if
getStatusCode() has a non-error value |
void |
setLinks(Links links)
for internal use only
|
void |
setStatus(ClusterManagementResult.StatusCode statusCode,
String message)
for internal use only
|
String |
toString()
Returns the status code and message
|
public ClusterManagementResult()
public ClusterManagementResult(ClusterManagementResult.StatusCode statusCode, String message)
statusCode - the ClusterManagementResult.StatusCode to setmessage - the status message to setpublic ClusterManagementResult(ClusterManagementResult copyFrom)
copyFrom - the ClusterManagementResult to copy frompublic void setStatus(ClusterManagementResult.StatusCode statusCode, String message)
statusCode - the ClusterManagementResult.StatusCode to setmessage - the status message to setpublic String getStatusMessage()
getStatusCode()getStatusCode()public void setLinks(Links links)
links - the Links to setpublic boolean isSuccessful()
getStatusCode() has a non-error valuegetStatusCode() has a non-error valuepublic ClusterManagementResult.StatusCode getStatusCode()
ClusterManagementResult.StatusCode for this request, such as ERROR or OK.ClusterManagementResult.StatusCode for this requestpublic String toString()