/** * <p> * Indicates that a resource could not be created because the resource name already exists. * </p> * * @param name * Indicates that a resource could not be created because the resource name already exists. * @return Returns a reference to this object so that method calls can be chained together. */ public AlreadyExistsException withName(String name) { setName(name); return this; }
@Override public AmazonServiceException unmarshall(Node node) throws Exception { // Bail out if this isn't the right error code that this // marshaller understands String errorCode = parseErrorCode(node); if (errorCode == null || !errorCode.equals("AlreadyExists")) return null; AlreadyExistsException e = (AlreadyExistsException) super.unmarshall(node); e.setName(XpathUtils.asString(getErrorPropertyPath("Name"), node)); return e; } }
public AmazonServiceException unmarshall(Node node) throws Exception { // Bail out if this isn't the right error code that this // marshaller understands. String errorCode = parseErrorCode(node); if (errorCode == null || !errorCode.equals("AlreadyExists")) return null; AlreadyExistsException e = (AlreadyExistsException) super.unmarshall(node); e.setName(XpathUtils.asString(getErrorPropertyPath("Name"), node)); return e; } }
/** * <p> * Indicates that a resource could not be created because the resource name already exists. * </p> * * @param name * Indicates that a resource could not be created because the resource name already exists. * @return Returns a reference to this object so that method calls can be chained together. */ public AlreadyExistsException withName(String name) { setName(name); return this; }
@Override public AmazonServiceException unmarshall(Node node) throws Exception { // Bail out if this isn't the right error code that this // marshaller understands String errorCode = parseErrorCode(node); if (errorCode == null || !errorCode.equals("AlreadyExists")) return null; AlreadyExistsException e = (AlreadyExistsException) super.unmarshall(node); e.setName(XpathUtils.asString(getErrorPropertyPath("Name"), node)); return e; } }