Class ServiceError
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.ServiceError
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ServiceError extends Object implements Serializable, Cloneable
Describes an AWS OpsWorks service error.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceError()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceError
clone()
boolean
equals(Object obj)
String
getCreatedAt()
When the error occurred.String
getInstanceId()
The instance ID.String
getMessage()
A message that describes the error.String
getServiceErrorId()
The error ID.String
getStackId()
The stack ID.String
getType()
The error type.int
hashCode()
void
setCreatedAt(String createdAt)
When the error occurred.void
setInstanceId(String instanceId)
The instance ID.void
setMessage(String message)
A message that describes the error.void
setServiceErrorId(String serviceErrorId)
The error ID.void
setStackId(String stackId)
The stack ID.void
setType(String type)
The error type.String
toString()
Returns a string representation of this object; useful for testing and debugging.ServiceError
withCreatedAt(String createdAt)
When the error occurred.ServiceError
withInstanceId(String instanceId)
The instance ID.ServiceError
withMessage(String message)
A message that describes the error.ServiceError
withServiceErrorId(String serviceErrorId)
The error ID.ServiceError
withStackId(String stackId)
The stack ID.ServiceError
withType(String type)
The error type.
-
-
-
Method Detail
-
setServiceErrorId
public void setServiceErrorId(String serviceErrorId)
The error ID.
- Parameters:
serviceErrorId
- The error ID.
-
getServiceErrorId
public String getServiceErrorId()
The error ID.
- Returns:
- The error ID.
-
withServiceErrorId
public ServiceError withServiceErrorId(String serviceErrorId)
The error ID.
- Parameters:
serviceErrorId
- The error ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStackId
public void setStackId(String stackId)
The stack ID.
- Parameters:
stackId
- The stack ID.
-
getStackId
public String getStackId()
The stack ID.
- Returns:
- The stack ID.
-
withStackId
public ServiceError withStackId(String stackId)
The stack ID.
- Parameters:
stackId
- The stack ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceId
public void setInstanceId(String instanceId)
The instance ID.
- Parameters:
instanceId
- The instance ID.
-
getInstanceId
public String getInstanceId()
The instance ID.
- Returns:
- The instance ID.
-
withInstanceId
public ServiceError withInstanceId(String instanceId)
The instance ID.
- Parameters:
instanceId
- The instance ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setType
public void setType(String type)
The error type.
- Parameters:
type
- The error type.
-
getType
public String getType()
The error type.
- Returns:
- The error type.
-
withType
public ServiceError withType(String type)
The error type.
- Parameters:
type
- The error type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMessage
public void setMessage(String message)
A message that describes the error.
- Parameters:
message
- A message that describes the error.
-
getMessage
public String getMessage()
A message that describes the error.
- Returns:
- A message that describes the error.
-
withMessage
public ServiceError withMessage(String message)
A message that describes the error.
- Parameters:
message
- A message that describes the error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreatedAt
public void setCreatedAt(String createdAt)
When the error occurred.
- Parameters:
createdAt
- When the error occurred.
-
getCreatedAt
public String getCreatedAt()
When the error occurred.
- Returns:
- When the error occurred.
-
withCreatedAt
public ServiceError withCreatedAt(String createdAt)
When the error occurred.
- Parameters:
createdAt
- When the error occurred.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ServiceError clone()
-
-