public class ErrorInformation extends Object implements Serializable, Cloneable
Information about a deployment error.
Constructor and Description |
---|
ErrorInformation() |
Modifier and Type | Method and Description |
---|---|
ErrorInformation |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The error code: APPLICATION_MISSING: The application was
missing.
|
String |
getMessage()
An accompanying error message.
|
int |
hashCode() |
void |
setCode(ErrorCode code)
The error code: APPLICATION_MISSING: The application was
missing.
|
void |
setCode(String code)
The error code: APPLICATION_MISSING: The application was
missing.
|
void |
setMessage(String message)
An accompanying error message.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ErrorInformation |
withCode(ErrorCode code)
The error code: APPLICATION_MISSING: The application was
missing.
|
ErrorInformation |
withCode(String code)
The error code: APPLICATION_MISSING: The application was
missing.
|
ErrorInformation |
withMessage(String message)
An accompanying error message.
|
public String getCode()
Constraints:
Allowed Values: DEPLOYMENT_GROUP_MISSING, APPLICATION_MISSING, REVISION_MISSING, IAM_ROLE_MISSING, IAM_ROLE_PERMISSIONS, OVER_MAX_INSTANCES, NO_INSTANCES, TIMEOUT, HEALTH_CONSTRAINTS_INVALID, HEALTH_CONSTRAINTS, INTERNAL_ERROR
ErrorCode
public void setCode(String code)
Constraints:
Allowed Values: DEPLOYMENT_GROUP_MISSING, APPLICATION_MISSING, REVISION_MISSING, IAM_ROLE_MISSING, IAM_ROLE_PERMISSIONS, OVER_MAX_INSTANCES, NO_INSTANCES, TIMEOUT, HEALTH_CONSTRAINTS_INVALID, HEALTH_CONSTRAINTS, INTERNAL_ERROR
code
- The error code: ErrorCode
public ErrorInformation withCode(String code)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: DEPLOYMENT_GROUP_MISSING, APPLICATION_MISSING, REVISION_MISSING, IAM_ROLE_MISSING, IAM_ROLE_PERMISSIONS, OVER_MAX_INSTANCES, NO_INSTANCES, TIMEOUT, HEALTH_CONSTRAINTS_INVALID, HEALTH_CONSTRAINTS, INTERNAL_ERROR
code
- The error code: ErrorCode
public void setCode(ErrorCode code)
Constraints:
Allowed Values: DEPLOYMENT_GROUP_MISSING, APPLICATION_MISSING, REVISION_MISSING, IAM_ROLE_MISSING, IAM_ROLE_PERMISSIONS, OVER_MAX_INSTANCES, NO_INSTANCES, TIMEOUT, HEALTH_CONSTRAINTS_INVALID, HEALTH_CONSTRAINTS, INTERNAL_ERROR
code
- The error code: ErrorCode
public ErrorInformation withCode(ErrorCode code)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: DEPLOYMENT_GROUP_MISSING, APPLICATION_MISSING, REVISION_MISSING, IAM_ROLE_MISSING, IAM_ROLE_PERMISSIONS, OVER_MAX_INSTANCES, NO_INSTANCES, TIMEOUT, HEALTH_CONSTRAINTS_INVALID, HEALTH_CONSTRAINTS, INTERNAL_ERROR
code
- The error code: ErrorCode
public String getMessage()
public void setMessage(String message)
message
- An accompanying error message.public ErrorInformation withMessage(String message)
Returns a reference to this object so that method calls can be chained together.
message
- An accompanying error message.public String toString()
toString
in class Object
Object.toString()
public ErrorInformation clone()
Copyright © 2015. All rights reserved.