* The token used by the chat participant to call CreateParticipantConnection
. The participant token is
* valid for the lifetime of a chat participant.
*
* The identifier for a chat participant. The participantId for a chat participant is the same throughout the chat * lifecycle. *
*/ private String participantId; /** *
* The token used by the chat participant to call CreateParticipantConnection
. The participant token is
* valid for the lifetime of a chat participant.
*
CreateParticipantConnection
. The participant
* token is valid for the lifetime of a chat participant.
*/
public void setParticipantCredentials(ParticipantTokenCredentials participantCredentials) {
this.participantCredentials = participantCredentials;
}
/**
*
* The token used by the chat participant to call CreateParticipantConnection
. The participant token is
* valid for the lifetime of a chat participant.
*
CreateParticipantConnection
. The participant
* token is valid for the lifetime of a chat participant.
*/
public ParticipantTokenCredentials getParticipantCredentials() {
return this.participantCredentials;
}
/**
*
* The token used by the chat participant to call CreateParticipantConnection
. The participant token is
* valid for the lifetime of a chat participant.
*
CreateParticipantConnection
. The participant
* token is valid for the lifetime of a chat participant.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateParticipantResult withParticipantCredentials(ParticipantTokenCredentials participantCredentials) {
setParticipantCredentials(participantCredentials);
return this;
}
/**
* * The identifier for a chat participant. The participantId for a chat participant is the same throughout the chat * lifecycle. *
* * @param participantId * The identifier for a chat participant. The participantId for a chat participant is the same throughout the * chat lifecycle. */ public void setParticipantId(String participantId) { this.participantId = participantId; } /** ** The identifier for a chat participant. The participantId for a chat participant is the same throughout the chat * lifecycle. *
* * @return The identifier for a chat participant. The participantId for a chat participant is the same throughout * the chat lifecycle. */ public String getParticipantId() { return this.participantId; } /** ** The identifier for a chat participant. The participantId for a chat participant is the same throughout the chat * lifecycle. *
* * @param participantId * The identifier for a chat participant. The participantId for a chat participant is the same throughout the * chat lifecycle. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateParticipantResult withParticipantId(String participantId) { setParticipantId(participantId); 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 (getParticipantCredentials() != null) sb.append("ParticipantCredentials: ").append(getParticipantCredentials()).append(","); if (getParticipantId() != null) sb.append("ParticipantId: ").append(getParticipantId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateParticipantResult == false) return false; CreateParticipantResult other = (CreateParticipantResult) obj; if (other.getParticipantCredentials() == null ^ this.getParticipantCredentials() == null) return false; if (other.getParticipantCredentials() != null && other.getParticipantCredentials().equals(this.getParticipantCredentials()) == false) return false; if (other.getParticipantId() == null ^ this.getParticipantId() == null) return false; if (other.getParticipantId() != null && other.getParticipantId().equals(this.getParticipantId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getParticipantCredentials() == null) ? 0 : getParticipantCredentials().hashCode()); hashCode = prime * hashCode + ((getParticipantId() == null) ? 0 : getParticipantId().hashCode()); return hashCode; } @Override public CreateParticipantResult clone() { try { return (CreateParticipantResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }