
com.infobip.model.CallsRecordingPlayContent 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 CallsRecordingPlayContent model.
*/
public class CallsRecordingPlayContent extends CallsPlayContent {
private String fileId;
/**
* Constructs a new {@link CallsRecordingPlayContent} instance.
*/
public CallsRecordingPlayContent() {
super("RECORDING");
}
/**
* Sets fileId.
*
* The field is required.
*
* @param fileId
* @return This {@link CallsRecordingPlayContent instance}.
*/
public CallsRecordingPlayContent fileId(String fileId) {
this.fileId = fileId;
return this;
}
/**
* Returns fileId.
*
* The field is required.
*
* @return fileId
*/
@JsonProperty("fileId")
public String getFileId() {
return fileId;
}
/**
* Sets fileId.
*
* The field is required.
*
* @param fileId
*/
@JsonProperty("fileId")
public void setFileId(String fileId) {
this.fileId = fileId;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CallsRecordingPlayContent callsRecordingPlayContent = (CallsRecordingPlayContent) o;
return Objects.equals(this.fileId, callsRecordingPlayContent.fileId) && super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(fileId, super.hashCode());
}
@Override
public String toString() {
String newLine = System.lineSeparator();
return new StringBuilder()
.append("class CallsRecordingPlayContent {")
.append(newLine)
.append(" ")
.append(toIndentedString(super.toString()))
.append(newLine)
.append(" fileId: ")
.append(toIndentedString(fileId))
.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);
}
}