@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TemplateError extends Object implements Serializable, Cloneable, StructuredPojo
List of errors that occurred when the template version creation failed.
Constructor and Description |
---|
TemplateError() |
Modifier and Type | Method and Description |
---|---|
TemplateError |
clone() |
boolean |
equals(Object obj) |
String |
getMessage()
Description of the error type.
|
String |
getType()
Type of error.
|
List<Entity> |
getViolatedEntities()
An error path that shows which entities caused the template error.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setMessage(String message)
Description of the error type.
|
void |
setType(String type)
Type of error.
|
void |
setViolatedEntities(Collection<Entity> violatedEntities)
An error path that shows which entities caused the template error.
|
String |
toString()
Returns a string representation of this object.
|
TemplateError |
withMessage(String message)
Description of the error type.
|
TemplateError |
withType(String type)
Type of error.
|
TemplateError |
withType(TemplateErrorType type)
Type of error.
|
TemplateError |
withViolatedEntities(Collection<Entity> violatedEntities)
An error path that shows which entities caused the template error.
|
TemplateError |
withViolatedEntities(Entity... violatedEntities)
An error path that shows which entities caused the template error.
|
public void setType(String type)
Type of error.
type
- Type of error.TemplateErrorType
public String getType()
Type of error.
TemplateErrorType
public TemplateError withType(String type)
Type of error.
type
- Type of error.TemplateErrorType
public TemplateError withType(TemplateErrorType type)
Type of error.
type
- Type of error.TemplateErrorType
public void setMessage(String message)
Description of the error type.
message
- Description of the error type.public String getMessage()
Description of the error type.
public TemplateError withMessage(String message)
Description of the error type.
message
- Description of the error type.public List<Entity> getViolatedEntities()
An error path that shows which entities caused the template error.
public void setViolatedEntities(Collection<Entity> violatedEntities)
An error path that shows which entities caused the template error.
violatedEntities
- An error path that shows which entities caused the template error.public TemplateError withViolatedEntities(Entity... violatedEntities)
An error path that shows which entities caused the template error.
NOTE: This method appends the values to the existing list (if any). Use
setViolatedEntities(java.util.Collection)
or withViolatedEntities(java.util.Collection)
if you
want to override the existing values.
violatedEntities
- An error path that shows which entities caused the template error.public TemplateError withViolatedEntities(Collection<Entity> violatedEntities)
An error path that shows which entities caused the template error.
violatedEntities
- An error path that shows which entities caused the template error.public String toString()
toString
in class Object
Object.toString()
public TemplateError clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2023. All rights reserved.