
com.infobip.model.CallsDialogBroadcastWebrtcTextRequest 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 CallsDialogBroadcastWebrtcTextRequest model.
*/
public class CallsDialogBroadcastWebrtcTextRequest {
private String text;
/**
* Sets text.
*
* Field description:
* Text to broadcast.
*
* @param text
* @return This {@link CallsDialogBroadcastWebrtcTextRequest instance}.
*/
public CallsDialogBroadcastWebrtcTextRequest text(String text) {
this.text = text;
return this;
}
/**
* Returns text.
*
* Field description:
* Text to broadcast.
*
* @return text
*/
@JsonProperty("text")
public String getText() {
return text;
}
/**
* Sets text.
*
* Field description:
* Text to broadcast.
*
* @param text
*/
@JsonProperty("text")
public void setText(String text) {
this.text = text;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CallsDialogBroadcastWebrtcTextRequest callsDialogBroadcastWebrtcTextRequest =
(CallsDialogBroadcastWebrtcTextRequest) o;
return Objects.equals(this.text, callsDialogBroadcastWebrtcTextRequest.text);
}
@Override
public int hashCode() {
return Objects.hash(text);
}
@Override
public String toString() {
String newLine = System.lineSeparator();
return new StringBuilder()
.append("class CallsDialogBroadcastWebrtcTextRequest {")
.append(newLine)
.append(" text: ")
.append(toIndentedString(text))
.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);
}
}