@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; }
/** * <p> * The date that the operation was billed, in Unix format. * </p> * * @param billDate * The date that the operation was billed, in Unix format. * @return Returns a reference to this object so that method calls can be chained together. */ public BillingRecord withBillDate(java.util.Date billDate) { setBillDate(billDate); return this; }
/** * <p> * The name of the domain that the billing record applies to. If the domain name contains characters other than a-z, * 0-9, and - (hyphen), such as an internationalized domain name, then this value is in Punycode. For more * information, see <a href="http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html">DNS * Domain Name Format</a> in the <i>Amazon Route 53 Developer Guidezzz</i>. * </p> * * @param domainName * The name of the domain that the billing record applies to. If the domain name contains characters other * than a-z, 0-9, and - (hyphen), such as an internationalized domain name, then this value is in Punycode. * For more information, see <a * href="http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html">DNS Domain Name * Format</a> in the <i>Amazon Route 53 Developer Guidezzz</i>. * @return Returns a reference to this object so that method calls can be chained together. */ public BillingRecord withDomainName(String domainName) { setDomainName(domainName); return this; }
public BillingRecord unmarshall(JsonUnmarshallerContext context) throws Exception { BillingRecord billingRecord = new BillingRecord(); if (context.testExpression("DomainName", targetDepth)) { context.nextToken(); billingRecord.setDomainName(context.getUnmarshaller(String.class).unmarshall(context)); billingRecord.setOperation(context.getUnmarshaller(String.class).unmarshall(context)); billingRecord.setInvoiceId(context.getUnmarshaller(String.class).unmarshall(context)); billingRecord.setBillDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); billingRecord.setPrice(context.getUnmarshaller(Double.class).unmarshall(context));
/** * <p> * The ID of the invoice that is associated with the billing record. * </p> * * @param invoiceId * The ID of the invoice that is associated with the billing record. * @return Returns a reference to this object so that method calls can be chained together. */ public BillingRecord withInvoiceId(String invoiceId) { setInvoiceId(invoiceId); return this; }
/** * <p> * The operation that you were charged for. * </p> * * @param operation * The operation that you were charged for. * @return Returns a reference to this object so that method calls can be chained together. * @see OperationType */ public BillingRecord withOperation(String operation) { setOperation(operation); return this; }
return false; BillingRecord other = (BillingRecord) obj; if (other.getDomainName() == null ^ this.getDomainName() == null) return false; if (other.getDomainName() != null && other.getDomainName().equals(this.getDomainName()) == false) return false; if (other.getOperation() == null ^ this.getOperation() == null) return false; if (other.getOperation() != null && other.getOperation().equals(this.getOperation()) == false) return false; if (other.getInvoiceId() == null ^ this.getInvoiceId() == null) return false; 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) return false; if (other.getPrice() != null && other.getPrice().equals(this.getPrice()) == 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 (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(); }
/** * 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); } }