@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getActionId() == null) ? 0 : getActionId().hashCode()); hashCode = prime * hashCode + ((getActionName() == null) ? 0 : getActionName().hashCode()); hashCode = prime * hashCode + ((getTargetId() == null) ? 0 : getTargetId().hashCode()); hashCode = prime * hashCode + ((getTargetType() == null) ? 0 : getTargetType().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCompleteTime() == null) ? 0 : getCompleteTime().hashCode()); hashCode = prime * hashCode + ((getResult() == null) ? 0 : getResult().hashCode()); hashCode = prime * hashCode + ((getErrorCode() == null) ? 0 : getErrorCode().hashCode()); return hashCode; }
/** * <p> * The unique identifier for the action. * </p> * * @param actionId * The unique identifier for the action. * @return Returns a reference to this object so that method calls can be chained together. */ public ReviewActionDetail withActionId(String actionId) { setActionId(actionId); return this; }
public ReviewActionDetail unmarshall(JsonUnmarshallerContext context) throws Exception { ReviewActionDetail reviewActionDetail = new ReviewActionDetail(); if (context.testExpression("ActionId", targetDepth)) { context.nextToken(); reviewActionDetail.setActionId(context.getUnmarshaller(String.class).unmarshall(context)); reviewActionDetail.setActionName(context.getUnmarshaller(String.class).unmarshall(context)); reviewActionDetail.setTargetId(context.getUnmarshaller(String.class).unmarshall(context)); reviewActionDetail.setTargetType(context.getUnmarshaller(String.class).unmarshall(context)); reviewActionDetail.setStatus(context.getUnmarshaller(String.class).unmarshall(context)); reviewActionDetail.setCompleteTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); reviewActionDetail.setResult(context.getUnmarshaller(String.class).unmarshall(context)); reviewActionDetail.setErrorCode(context.getUnmarshaller(String.class).unmarshall(context));
return false; ReviewActionDetail other = (ReviewActionDetail) obj; if (other.getActionId() == null ^ this.getActionId() == null) return false; if (other.getActionId() != null && other.getActionId().equals(this.getActionId()) == false) return false; if (other.getActionName() == null ^ this.getActionName() == null) return false; if (other.getActionName() != null && other.getActionName().equals(this.getActionName()) == false) return false; if (other.getTargetId() == null ^ this.getTargetId() == null) return false; if (other.getTargetId() != null && other.getTargetId().equals(this.getTargetId()) == false) return false; if (other.getTargetType() == null ^ this.getTargetType() == null) return false; if (other.getTargetType() != null && other.getTargetType().equals(this.getTargetType()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getCompleteTime() == null ^ this.getCompleteTime() == null) return false; if (other.getCompleteTime() != null && other.getCompleteTime().equals(this.getCompleteTime()) == false) return false; if (other.getResult() == null ^ this.getResult() == null) return false; if (other.getResult() != null && other.getResult().equals(this.getResult()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getActionId() != null) sb.append("ActionId: ").append(getActionId()).append(","); if (getActionName() != null) sb.append("ActionName: ").append(getActionName()).append(","); if (getTargetId() != null) sb.append("TargetId: ").append(getTargetId()).append(","); if (getTargetType() != null) sb.append("TargetType: ").append(getTargetType()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getCompleteTime() != null) sb.append("CompleteTime: ").append(getCompleteTime()).append(","); if (getResult() != null) sb.append("Result: ").append(getResult()).append(","); if (getErrorCode() != null) sb.append("ErrorCode: ").append(getErrorCode()); sb.append("}"); return sb.toString();
/** * Marshall the given parameter object. */ public void marshall(ReviewActionDetail reviewActionDetail, ProtocolMarshaller protocolMarshaller) { if (reviewActionDetail == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(reviewActionDetail.getActionId(), ACTIONID_BINDING); protocolMarshaller.marshall(reviewActionDetail.getActionName(), ACTIONNAME_BINDING); protocolMarshaller.marshall(reviewActionDetail.getTargetId(), TARGETID_BINDING); protocolMarshaller.marshall(reviewActionDetail.getTargetType(), TARGETTYPE_BINDING); protocolMarshaller.marshall(reviewActionDetail.getStatus(), STATUS_BINDING); protocolMarshaller.marshall(reviewActionDetail.getCompleteTime(), COMPLETETIME_BINDING); protocolMarshaller.marshall(reviewActionDetail.getResult(), RESULT_BINDING); protocolMarshaller.marshall(reviewActionDetail.getErrorCode(), ERRORCODE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }