* Creates the participant's websocket connection. *
*/ private Websocket websocket; /** ** Creates the participant's connection credentials. The authentication token associated with the participant's * connection. *
*/ private ConnectionCredentials connectionCredentials; /** ** Creates the participant's websocket connection. *
* * @param websocket * Creates the participant's websocket connection. */ public void setWebsocket(Websocket websocket) { this.websocket = websocket; } /** ** Creates the participant's websocket connection. *
* * @return Creates the participant's websocket connection. */ public Websocket getWebsocket() { return this.websocket; } /** ** Creates the participant's websocket connection. *
* * @param websocket * Creates the participant's websocket connection. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateParticipantConnectionResult withWebsocket(Websocket websocket) { setWebsocket(websocket); return this; } /** ** Creates the participant's connection credentials. The authentication token associated with the participant's * connection. *
* * @param connectionCredentials * Creates the participant's connection credentials. The authentication token associated with the * participant's connection. */ public void setConnectionCredentials(ConnectionCredentials connectionCredentials) { this.connectionCredentials = connectionCredentials; } /** ** Creates the participant's connection credentials. The authentication token associated with the participant's * connection. *
* * @return Creates the participant's connection credentials. The authentication token associated with the * participant's connection. */ public ConnectionCredentials getConnectionCredentials() { return this.connectionCredentials; } /** ** Creates the participant's connection credentials. The authentication token associated with the participant's * connection. *
* * @param connectionCredentials * Creates the participant's connection credentials. The authentication token associated with the * participant's connection. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateParticipantConnectionResult withConnectionCredentials(ConnectionCredentials connectionCredentials) { setConnectionCredentials(connectionCredentials); 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 (getWebsocket() != null) sb.append("Websocket: ").append(getWebsocket()).append(","); if (getConnectionCredentials() != null) sb.append("ConnectionCredentials: ").append(getConnectionCredentials()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateParticipantConnectionResult == false) return false; CreateParticipantConnectionResult other = (CreateParticipantConnectionResult) obj; if (other.getWebsocket() == null ^ this.getWebsocket() == null) return false; if (other.getWebsocket() != null && other.getWebsocket().equals(this.getWebsocket()) == false) return false; if (other.getConnectionCredentials() == null ^ this.getConnectionCredentials() == null) return false; if (other.getConnectionCredentials() != null && other.getConnectionCredentials().equals(this.getConnectionCredentials()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getWebsocket() == null) ? 0 : getWebsocket().hashCode()); hashCode = prime * hashCode + ((getConnectionCredentials() == null) ? 0 : getConnectionCredentials().hashCode()); return hashCode; } @Override public CreateParticipantConnectionResult clone() { try { return (CreateParticipantConnectionResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }