* Update the current pricing plan. *
*/ private PricingPlan currentPricingPlan; /** ** Update the pending pricing plan. *
*/ private PricingPlan pendingPricingPlan; /** ** Update the current pricing plan. *
* * @param currentPricingPlan * Update the current pricing plan. */ public void setCurrentPricingPlan(PricingPlan currentPricingPlan) { this.currentPricingPlan = currentPricingPlan; } /** ** Update the current pricing plan. *
* * @return Update the current pricing plan. */ public PricingPlan getCurrentPricingPlan() { return this.currentPricingPlan; } /** ** Update the current pricing plan. *
* * @param currentPricingPlan * Update the current pricing plan. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePricingPlanResult withCurrentPricingPlan(PricingPlan currentPricingPlan) { setCurrentPricingPlan(currentPricingPlan); return this; } /** ** Update the pending pricing plan. *
* * @param pendingPricingPlan * Update the pending pricing plan. */ public void setPendingPricingPlan(PricingPlan pendingPricingPlan) { this.pendingPricingPlan = pendingPricingPlan; } /** ** Update the pending pricing plan. *
* * @return Update the pending pricing plan. */ public PricingPlan getPendingPricingPlan() { return this.pendingPricingPlan; } /** ** Update the pending pricing plan. *
* * @param pendingPricingPlan * Update the pending pricing plan. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePricingPlanResult withPendingPricingPlan(PricingPlan pendingPricingPlan) { setPendingPricingPlan(pendingPricingPlan); 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 (getCurrentPricingPlan() != null) sb.append("CurrentPricingPlan: ").append(getCurrentPricingPlan()).append(","); if (getPendingPricingPlan() != null) sb.append("PendingPricingPlan: ").append(getPendingPricingPlan()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdatePricingPlanResult == false) return false; UpdatePricingPlanResult other = (UpdatePricingPlanResult) obj; if (other.getCurrentPricingPlan() == null ^ this.getCurrentPricingPlan() == null) return false; if (other.getCurrentPricingPlan() != null && other.getCurrentPricingPlan().equals(this.getCurrentPricingPlan()) == false) return false; if (other.getPendingPricingPlan() == null ^ this.getPendingPricingPlan() == null) return false; if (other.getPendingPricingPlan() != null && other.getPendingPricingPlan().equals(this.getPendingPricingPlan()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCurrentPricingPlan() == null) ? 0 : getCurrentPricingPlan().hashCode()); hashCode = prime * hashCode + ((getPendingPricingPlan() == null) ? 0 : getPendingPricingPlan().hashCode()); return hashCode; } @Override public UpdatePricingPlanResult clone() { try { return (UpdatePricingPlanResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }