@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getQualificationTypeId() == null) ? 0 : getQualificationTypeId().hashCode()); hashCode = prime * hashCode + ((getWorkerId() == null) ? 0 : getWorkerId().hashCode()); hashCode = prime * hashCode + ((getGrantTime() == null) ? 0 : getGrantTime().hashCode()); hashCode = prime * hashCode + ((getIntegerValue() == null) ? 0 : getIntegerValue().hashCode()); hashCode = prime * hashCode + ((getLocaleValue() == null) ? 0 : getLocaleValue().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; }
/** * <p> * The date and time the Qualification was granted to the Worker. If the Worker's Qualification was revoked, and * then re-granted based on a new Qualification request, GrantTime is the date and time of the last call to the * AcceptQualificationRequest operation. * </p> * * @param grantTime * The date and time the Qualification was granted to the Worker. If the Worker's Qualification was revoked, * and then re-granted based on a new Qualification request, GrantTime is the date and time of the last call * to the AcceptQualificationRequest operation. * @return Returns a reference to this object so that method calls can be chained together. */ public Qualification withGrantTime(java.util.Date grantTime) { setGrantTime(grantTime); return this; }
public Qualification unmarshall(JsonUnmarshallerContext context) throws Exception { Qualification qualification = new Qualification(); if (context.testExpression("QualificationTypeId", targetDepth)) { context.nextToken(); qualification.setQualificationTypeId(context.getUnmarshaller(String.class).unmarshall(context)); qualification.setWorkerId(context.getUnmarshaller(String.class).unmarshall(context)); qualification.setGrantTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); qualification.setIntegerValue(context.getUnmarshaller(Integer.class).unmarshall(context)); qualification.setLocaleValue(LocaleJsonUnmarshaller.getInstance().unmarshall(context)); qualification.setStatus(context.getUnmarshaller(String.class).unmarshall(context));
function ViewModel() { var self = this; self.leadqualificlist = ko.observableArray([new Qualification(0, 5), new Qualification(1, 2), new Qualification(2, 1)]); self.selectedScoreCheck = ko.observable("2"); // Note here must be string! }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getQualification() == null) ? 0 : getQualification().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetQualificationScoreResult == false) return false; GetQualificationScoreResult other = (GetQualificationScoreResult) obj; if (other.getQualification() == null ^ this.getQualification() == null) return false; if (other.getQualification() != null && other.getQualification().equals(this.getQualification()) == false) return false; return true; }
return false; Qualification other = (Qualification) obj; if (other.getQualificationTypeId() == null ^ this.getQualificationTypeId() == null) return false; if (other.getQualificationTypeId() != null && other.getQualificationTypeId().equals(this.getQualificationTypeId()) == false) return false; if (other.getWorkerId() == null ^ this.getWorkerId() == null) return false; if (other.getWorkerId() != null && other.getWorkerId().equals(this.getWorkerId()) == false) return false; if (other.getGrantTime() == null ^ this.getGrantTime() == null) return false; if (other.getGrantTime() != null && other.getGrantTime().equals(this.getGrantTime()) == false) return false; if (other.getIntegerValue() == null ^ this.getIntegerValue() == null) return false; if (other.getIntegerValue() != null && other.getIntegerValue().equals(this.getIntegerValue()) == false) return false; if (other.getLocaleValue() == null ^ this.getLocaleValue() == null) return false; if (other.getLocaleValue() != null && other.getLocaleValue().equals(this.getLocaleValue()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; return true;
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getQualificationTypeId() != null) sb.append("QualificationTypeId: ").append(getQualificationTypeId()).append(","); if (getWorkerId() != null) sb.append("WorkerId: ").append(getWorkerId()).append(","); if (getGrantTime() != null) sb.append("GrantTime: ").append(getGrantTime()).append(","); if (getIntegerValue() != null) sb.append("IntegerValue: ").append(getIntegerValue()).append(","); if (getLocaleValue() != null) sb.append("LocaleValue: ").append(getLocaleValue()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(Qualification qualification, ProtocolMarshaller protocolMarshaller) { if (qualification == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(qualification.getQualificationTypeId(), QUALIFICATIONTYPEID_BINDING); protocolMarshaller.marshall(qualification.getWorkerId(), WORKERID_BINDING); protocolMarshaller.marshall(qualification.getGrantTime(), GRANTTIME_BINDING); protocolMarshaller.marshall(qualification.getIntegerValue(), INTEGERVALUE_BINDING); protocolMarshaller.marshall(qualification.getLocaleValue(), LOCALEVALUE_BINDING); protocolMarshaller.marshall(qualification.getStatus(), STATUS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }