* The unique identifier for the network. *
*/ private String networkId; /** ** The unique identifier for the first member within the network. *
*/ private String memberId; /** ** The unique identifier for the network. *
* * @param networkId * The unique identifier for the network. */ public void setNetworkId(String networkId) { this.networkId = networkId; } /** ** The unique identifier for the network. *
* * @return The unique identifier for the network. */ public String getNetworkId() { return this.networkId; } /** ** The unique identifier for the network. *
* * @param networkId * The unique identifier for the network. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNetworkResult withNetworkId(String networkId) { setNetworkId(networkId); return this; } /** ** The unique identifier for the first member within the network. *
* * @param memberId * The unique identifier for the first member within the network. */ public void setMemberId(String memberId) { this.memberId = memberId; } /** ** The unique identifier for the first member within the network. *
* * @return The unique identifier for the first member within the network. */ public String getMemberId() { return this.memberId; } /** ** The unique identifier for the first member within the network. *
* * @param memberId * The unique identifier for the first member within the network. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNetworkResult withMemberId(String memberId) { setMemberId(memberId); 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 (getNetworkId() != null) sb.append("NetworkId: ").append(getNetworkId()).append(","); if (getMemberId() != null) sb.append("MemberId: ").append(getMemberId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateNetworkResult == false) return false; CreateNetworkResult other = (CreateNetworkResult) obj; if (other.getNetworkId() == null ^ this.getNetworkId() == null) return false; if (other.getNetworkId() != null && other.getNetworkId().equals(this.getNetworkId()) == false) return false; if (other.getMemberId() == null ^ this.getMemberId() == null) return false; if (other.getMemberId() != null && other.getMemberId().equals(this.getMemberId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNetworkId() == null) ? 0 : getNetworkId().hashCode()); hashCode = prime * hashCode + ((getMemberId() == null) ? 0 : getMemberId().hashCode()); return hashCode; } @Override public CreateNetworkResult clone() { try { return (CreateNetworkResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }