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 ServiceErrorclone()booleanequals(Object obj)StringgetCreatedAt()When the error occurred.StringgetInstanceId()The instance ID.StringgetMessage()A message that describes the error.StringgetServiceErrorId()The error ID.StringgetStackId()The stack ID.StringgetType()The error type.inthashCode()voidsetCreatedAt(String createdAt)When the error occurred.voidsetInstanceId(String instanceId)The instance ID.voidsetMessage(String message)A message that describes the error.voidsetServiceErrorId(String serviceErrorId)The error ID.voidsetStackId(String stackId)The stack ID.voidsetType(String type)The error type.StringtoString()Returns a string representation of this object; useful for testing and debugging.ServiceErrorwithCreatedAt(String createdAt)When the error occurred.ServiceErrorwithInstanceId(String instanceId)The instance ID.ServiceErrorwithMessage(String message)A message that describes the error.ServiceErrorwithServiceErrorId(String serviceErrorId)The error ID.ServiceErrorwithStackId(String stackId)The stack ID.ServiceErrorwithType(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ServiceError clone()
-
-