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(",");
@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.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)
/** * 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); } }