@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; }
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) return false; if (other.getErrorCode() == null ^ this.getErrorCode() == null)
/** * 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); } }