* The unique identifier of the proposal. *
*/ private String proposalId; /** ** The unique identifier of the proposal. *
* * @param proposalId * The unique identifier of the proposal. */ public void setProposalId(String proposalId) { this.proposalId = proposalId; } /** ** The unique identifier of the proposal. *
* * @return The unique identifier of the proposal. */ public String getProposalId() { return this.proposalId; } /** ** The unique identifier of the proposal. *
* * @param proposalId * The unique identifier of the proposal. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateProposalResult withProposalId(String proposalId) { setProposalId(proposalId); 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 (getProposalId() != null) sb.append("ProposalId: ").append(getProposalId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateProposalResult == false) return false; CreateProposalResult other = (CreateProposalResult) obj; if (other.getProposalId() == null ^ this.getProposalId() == null) return false; if (other.getProposalId() != null && other.getProposalId().equals(this.getProposalId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getProposalId() == null) ? 0 : getProposalId().hashCode()); return hashCode; } @Override public CreateProposalResult clone() { try { return (CreateProposalResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }