@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAvailableBalance() == null) ? 0 : getAvailableBalance().hashCode()); hashCode = prime * hashCode + ((getOnHoldBalance() == null) ? 0 : getOnHoldBalance().hashCode()); return hashCode; }
/** * @param availableBalance * @return Returns a reference to this object so that method calls can be chained together. */ public GetAccountBalanceResult withAvailableBalance(String availableBalance) { setAvailableBalance(availableBalance); return this; }
/** * @param onHoldBalance * @return Returns a reference to this object so that method calls can be chained together. */ public GetAccountBalanceResult withOnHoldBalance(String onHoldBalance) { setOnHoldBalance(onHoldBalance); return this; }
public GetAccountBalanceResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetAccountBalanceResult getAccountBalanceResult = new GetAccountBalanceResult(); if (context.testExpression("AvailableBalance", targetDepth)) { context.nextToken(); getAccountBalanceResult.setAvailableBalance(context.getUnmarshaller(String.class).unmarshall(context)); getAccountBalanceResult.setOnHoldBalance(context.getUnmarshaller(String.class).unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetAccountBalanceResult == false) return false; GetAccountBalanceResult other = (GetAccountBalanceResult) obj; if (other.getAvailableBalance() == null ^ this.getAvailableBalance() == null) return false; if (other.getAvailableBalance() != null && other.getAvailableBalance().equals(this.getAvailableBalance()) == false) return false; if (other.getOnHoldBalance() == null ^ this.getOnHoldBalance() == null) return false; if (other.getOnHoldBalance() != null && other.getOnHoldBalance().equals(this.getOnHoldBalance()) == 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 (getAvailableBalance() != null) sb.append("AvailableBalance: ").append(getAvailableBalance()).append(","); if (getOnHoldBalance() != null) sb.append("OnHoldBalance: ").append(getOnHoldBalance()); sb.append("}"); return sb.toString(); }