* The automatically generated ID for a specific address. You'll use this ID when you create a job to specify which * address you want the Snow device for that job shipped to. *
*/ private String addressId; /** ** The automatically generated ID for a specific address. You'll use this ID when you create a job to specify which * address you want the Snow device for that job shipped to. *
* * @param addressId * The automatically generated ID for a specific address. You'll use this ID when you create a job to specify * which address you want the Snow device for that job shipped to. */ public void setAddressId(String addressId) { this.addressId = addressId; } /** ** The automatically generated ID for a specific address. You'll use this ID when you create a job to specify which * address you want the Snow device for that job shipped to. *
* * @return The automatically generated ID for a specific address. You'll use this ID when you create a job to * specify which address you want the Snow device for that job shipped to. */ public String getAddressId() { return this.addressId; } /** ** The automatically generated ID for a specific address. You'll use this ID when you create a job to specify which * address you want the Snow device for that job shipped to. *
* * @param addressId * The automatically generated ID for a specific address. You'll use this ID when you create a job to specify * which address you want the Snow device for that job shipped to. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAddressResult withAddressId(String addressId) { setAddressId(addressId); 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 (getAddressId() != null) sb.append("AddressId: ").append(getAddressId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateAddressResult == false) return false; CreateAddressResult other = (CreateAddressResult) obj; if (other.getAddressId() == null ^ this.getAddressId() == null) return false; if (other.getAddressId() != null && other.getAddressId().equals(this.getAddressId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAddressId() == null) ? 0 : getAddressId().hashCode()); return hashCode; } @Override public CreateAddressResult clone() { try { return (CreateAddressResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }