public class ServiceError
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an AWS OpsWorks service error.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
createdAt
When the error occurred.
|
private java.lang.String |
instanceId
The instance ID.
|
private java.lang.String |
message
A message that describes the error.
|
private java.lang.String |
serviceErrorId
The error ID.
|
private java.lang.String |
stackId
The stack ID.
|
private java.lang.String |
type
The error type.
|
Constructor and Description |
---|
ServiceError() |
Modifier and Type | Method and Description |
---|---|
ServiceError |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCreatedAt()
When the error occurred.
|
java.lang.String |
getInstanceId()
The instance ID.
|
java.lang.String |
getMessage()
A message that describes the error.
|
java.lang.String |
getServiceErrorId()
The error ID.
|
java.lang.String |
getStackId()
The stack ID.
|
java.lang.String |
getType()
The error type.
|
int |
hashCode() |
void |
setCreatedAt(java.lang.String createdAt)
When the error occurred.
|
void |
setInstanceId(java.lang.String instanceId)
The instance ID.
|
void |
setMessage(java.lang.String message)
A message that describes the error.
|
void |
setServiceErrorId(java.lang.String serviceErrorId)
The error ID.
|
void |
setStackId(java.lang.String stackId)
The stack ID.
|
void |
setType(java.lang.String type)
The error type.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ServiceError |
withCreatedAt(java.lang.String createdAt)
When the error occurred.
|
ServiceError |
withInstanceId(java.lang.String instanceId)
The instance ID.
|
ServiceError |
withMessage(java.lang.String message)
A message that describes the error.
|
ServiceError |
withServiceErrorId(java.lang.String serviceErrorId)
The error ID.
|
ServiceError |
withStackId(java.lang.String stackId)
The stack ID.
|
ServiceError |
withType(java.lang.String type)
The error type.
|
private java.lang.String serviceErrorId
The error ID.
private java.lang.String stackId
The stack ID.
private java.lang.String instanceId
The instance ID.
private java.lang.String type
The error type.
private java.lang.String message
A message that describes the error.
private java.lang.String createdAt
When the error occurred.
public void setServiceErrorId(java.lang.String serviceErrorId)
The error ID.
serviceErrorId
- The error ID.public java.lang.String getServiceErrorId()
The error ID.
public ServiceError withServiceErrorId(java.lang.String serviceErrorId)
The error ID.
serviceErrorId
- The error ID.public void setStackId(java.lang.String stackId)
The stack ID.
stackId
- The stack ID.public java.lang.String getStackId()
The stack ID.
public ServiceError withStackId(java.lang.String stackId)
The stack ID.
stackId
- The stack ID.public void setInstanceId(java.lang.String instanceId)
The instance ID.
instanceId
- The instance ID.public java.lang.String getInstanceId()
The instance ID.
public ServiceError withInstanceId(java.lang.String instanceId)
The instance ID.
instanceId
- The instance ID.public void setType(java.lang.String type)
The error type.
type
- The error type.public java.lang.String getType()
The error type.
public ServiceError withType(java.lang.String type)
The error type.
type
- The error type.public void setMessage(java.lang.String message)
A message that describes the error.
message
- A message that describes the error.public java.lang.String getMessage()
A message that describes the error.
public ServiceError withMessage(java.lang.String message)
A message that describes the error.
message
- A message that describes the error.public void setCreatedAt(java.lang.String createdAt)
When the error occurred.
createdAt
- When the error occurred.public java.lang.String getCreatedAt()
When the error occurred.
public ServiceError withCreatedAt(java.lang.String createdAt)
When the error occurred.
createdAt
- When the error occurred.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ServiceError clone()
clone
in class java.lang.Object