* The container for the token balance. *
*/ private String balance; private BlockchainInstant atBlockchainInstant; private BlockchainInstant lastUpdatedTime; /** * @param ownerIdentifier */ public void setOwnerIdentifier(OwnerIdentifier ownerIdentifier) { this.ownerIdentifier = ownerIdentifier; } /** * @return */ public OwnerIdentifier getOwnerIdentifier() { return this.ownerIdentifier; } /** * @param ownerIdentifier * @return Returns a reference to this object so that method calls can be chained together. */ public GetTokenBalanceResult withOwnerIdentifier(OwnerIdentifier ownerIdentifier) { setOwnerIdentifier(ownerIdentifier); return this; } /** * @param tokenIdentifier */ public void setTokenIdentifier(TokenIdentifier tokenIdentifier) { this.tokenIdentifier = tokenIdentifier; } /** * @return */ public TokenIdentifier getTokenIdentifier() { return this.tokenIdentifier; } /** * @param tokenIdentifier * @return Returns a reference to this object so that method calls can be chained together. */ public GetTokenBalanceResult withTokenIdentifier(TokenIdentifier tokenIdentifier) { setTokenIdentifier(tokenIdentifier); return this; } /** ** The container for the token balance. *
* * @param balance * The container for the token balance. */ public void setBalance(String balance) { this.balance = balance; } /** ** The container for the token balance. *
* * @return The container for the token balance. */ public String getBalance() { return this.balance; } /** ** The container for the token balance. *
* * @param balance * The container for the token balance. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTokenBalanceResult withBalance(String balance) { setBalance(balance); return this; } /** * @param atBlockchainInstant */ public void setAtBlockchainInstant(BlockchainInstant atBlockchainInstant) { this.atBlockchainInstant = atBlockchainInstant; } /** * @return */ public BlockchainInstant getAtBlockchainInstant() { return this.atBlockchainInstant; } /** * @param atBlockchainInstant * @return Returns a reference to this object so that method calls can be chained together. */ public GetTokenBalanceResult withAtBlockchainInstant(BlockchainInstant atBlockchainInstant) { setAtBlockchainInstant(atBlockchainInstant); return this; } /** * @param lastUpdatedTime */ public void setLastUpdatedTime(BlockchainInstant lastUpdatedTime) { this.lastUpdatedTime = lastUpdatedTime; } /** * @return */ public BlockchainInstant getLastUpdatedTime() { return this.lastUpdatedTime; } /** * @param lastUpdatedTime * @return Returns a reference to this object so that method calls can be chained together. */ public GetTokenBalanceResult withLastUpdatedTime(BlockchainInstant lastUpdatedTime) { setLastUpdatedTime(lastUpdatedTime); return this; } /** * 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 (getOwnerIdentifier() != null) sb.append("OwnerIdentifier: ").append(getOwnerIdentifier()).append(","); if (getTokenIdentifier() != null) sb.append("TokenIdentifier: ").append(getTokenIdentifier()).append(","); if (getBalance() != null) sb.append("Balance: ").append(getBalance()).append(","); if (getAtBlockchainInstant() != null) sb.append("AtBlockchainInstant: ").append(getAtBlockchainInstant()).append(","); if (getLastUpdatedTime() != null) sb.append("LastUpdatedTime: ").append(getLastUpdatedTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetTokenBalanceResult == false) return false; GetTokenBalanceResult other = (GetTokenBalanceResult) obj; if (other.getOwnerIdentifier() == null ^ this.getOwnerIdentifier() == null) return false; if (other.getOwnerIdentifier() != null && other.getOwnerIdentifier().equals(this.getOwnerIdentifier()) == false) return false; if (other.getTokenIdentifier() == null ^ this.getTokenIdentifier() == null) return false; if (other.getTokenIdentifier() != null && other.getTokenIdentifier().equals(this.getTokenIdentifier()) == false) return false; if (other.getBalance() == null ^ this.getBalance() == null) return false; if (other.getBalance() != null && other.getBalance().equals(this.getBalance()) == false) return false; if (other.getAtBlockchainInstant() == null ^ this.getAtBlockchainInstant() == null) return false; if (other.getAtBlockchainInstant() != null && other.getAtBlockchainInstant().equals(this.getAtBlockchainInstant()) == false) return false; if (other.getLastUpdatedTime() == null ^ this.getLastUpdatedTime() == null) return false; if (other.getLastUpdatedTime() != null && other.getLastUpdatedTime().equals(this.getLastUpdatedTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOwnerIdentifier() == null) ? 0 : getOwnerIdentifier().hashCode()); hashCode = prime * hashCode + ((getTokenIdentifier() == null) ? 0 : getTokenIdentifier().hashCode()); hashCode = prime * hashCode + ((getBalance() == null) ? 0 : getBalance().hashCode()); hashCode = prime * hashCode + ((getAtBlockchainInstant() == null) ? 0 : getAtBlockchainInstant().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTime() == null) ? 0 : getLastUpdatedTime().hashCode()); return hashCode; } @Override public GetTokenBalanceResult clone() { try { return (GetTokenBalanceResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }