@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDomainName() == null) ? 0 : getDomainName().hashCode()); hashCode = prime * hashCode + ((getOperation() == null) ? 0 : getOperation().hashCode()); hashCode = prime * hashCode + ((getInvoiceId() == null) ? 0 : getInvoiceId().hashCode()); hashCode = prime * hashCode + ((getBillDate() == null) ? 0 : getBillDate().hashCode()); hashCode = prime * hashCode + ((getPrice() == null) ? 0 : getPrice().hashCode()); return hashCode; }
/** * 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 (getDomainName() != null) sb.append("DomainName: ").append(getDomainName()).append(","); if (getOperation() != null) sb.append("Operation: ").append(getOperation()).append(","); if (getInvoiceId() != null) sb.append("InvoiceId: ").append(getInvoiceId()).append(","); if (getBillDate() != null) sb.append("BillDate: ").append(getBillDate()).append(","); if (getPrice() != null) sb.append("Price: ").append(getPrice()); sb.append("}"); return sb.toString(); }
if (other.getInvoiceId() != null && other.getInvoiceId().equals(this.getInvoiceId()) == false) return false; if (other.getBillDate() == null ^ this.getBillDate() == null) return false; if (other.getBillDate() != null && other.getBillDate().equals(this.getBillDate()) == false) return false; if (other.getPrice() == null ^ this.getPrice() == null)
/** * Marshall the given parameter object. */ public void marshall(BillingRecord billingRecord, ProtocolMarshaller protocolMarshaller) { if (billingRecord == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(billingRecord.getDomainName(), DOMAINNAME_BINDING); protocolMarshaller.marshall(billingRecord.getOperation(), OPERATION_BINDING); protocolMarshaller.marshall(billingRecord.getInvoiceId(), INVOICEID_BINDING); protocolMarshaller.marshall(billingRecord.getBillDate(), BILLDATE_BINDING); protocolMarshaller.marshall(billingRecord.getPrice(), PRICE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }