
com.infobip.model.CallsWebRtcEndpoint Maven / Gradle / Ivy
/*
* This class is auto generated from the Infobip OpenAPI specification
* through the OpenAPI Specification Client API libraries (Re)Generator (OSCAR),
* powered by the OpenAPI Generator (https://openapi-generator.tech).
*
* Do not edit manually. To learn how to raise an issue, see the CONTRIBUTING guide
* or contact us @ [email protected].
*/
package com.infobip.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* Represents CallsWebRtcEndpoint model.
*/
public class CallsWebRtcEndpoint extends CallEndpoint {
private String identity;
private String displayName;
/**
* Constructs a new {@link CallsWebRtcEndpoint} instance.
*/
public CallsWebRtcEndpoint() {
super("WEBRTC");
}
/**
* Sets identity.
*
* Field description:
* The identity used to present a user on the Infobip WebRTC platform. Must be unique.
*
* The field is required.
*
* @param identity
* @return This {@link CallsWebRtcEndpoint instance}.
*/
public CallsWebRtcEndpoint identity(String identity) {
this.identity = identity;
return this;
}
/**
* Returns identity.
*
* Field description:
* The identity used to present a user on the Infobip WebRTC platform. Must be unique.
*
* The field is required.
*
* @return identity
*/
@JsonProperty("identity")
public String getIdentity() {
return identity;
}
/**
* Sets identity.
*
* Field description:
* The identity used to present a user on the Infobip WebRTC platform. Must be unique.
*
* The field is required.
*
* @param identity
*/
@JsonProperty("identity")
public void setIdentity(String identity) {
this.identity = identity;
}
/**
* Sets displayName.
*
* Field description:
* A human-readable name for a given identity.
*
* @param displayName
* @return This {@link CallsWebRtcEndpoint instance}.
*/
public CallsWebRtcEndpoint displayName(String displayName) {
this.displayName = displayName;
return this;
}
/**
* Returns displayName.
*
* Field description:
* A human-readable name for a given identity.
*
* @return displayName
*/
@JsonProperty("displayName")
public String getDisplayName() {
return displayName;
}
/**
* Sets displayName.
*
* Field description:
* A human-readable name for a given identity.
*
* @param displayName
*/
@JsonProperty("displayName")
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CallsWebRtcEndpoint callsWebRtcEndpoint = (CallsWebRtcEndpoint) o;
return Objects.equals(this.identity, callsWebRtcEndpoint.identity)
&& Objects.equals(this.displayName, callsWebRtcEndpoint.displayName)
&& super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(identity, displayName, super.hashCode());
}
@Override
public String toString() {
String newLine = System.lineSeparator();
return new StringBuilder()
.append("class CallsWebRtcEndpoint {")
.append(newLine)
.append(" ")
.append(toIndentedString(super.toString()))
.append(newLine)
.append(" identity: ")
.append(toIndentedString(identity))
.append(newLine)
.append(" displayName: ")
.append(toIndentedString(displayName))
.append(newLine)
.append("}")
.toString();
}
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
String lineSeparator = System.lineSeparator();
String lineSeparatorFollowedByIndentation = lineSeparator + " ";
return o.toString().replace(lineSeparator, lineSeparatorFollowedByIndentation);
}
}