
com.infobip.model.CallsPlayRequest 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 CallsPlayRequest model.
*/
public class CallsPlayRequest {
private Integer loopCount;
private CallsPlayContent content;
/**
* Sets loopCount.
*
* Field description:
* Number of times the file will be played.
*
* @param loopCount
* @return This {@link CallsPlayRequest instance}.
*/
public CallsPlayRequest loopCount(Integer loopCount) {
this.loopCount = loopCount;
return this;
}
/**
* Returns loopCount.
*
* Field description:
* Number of times the file will be played.
*
* @return loopCount
*/
@JsonProperty("loopCount")
public Integer getLoopCount() {
return loopCount;
}
/**
* Sets loopCount.
*
* Field description:
* Number of times the file will be played.
*
* @param loopCount
*/
@JsonProperty("loopCount")
public void setLoopCount(Integer loopCount) {
this.loopCount = loopCount;
}
/**
* Sets content.
*
* The field is required.
*
* @param content
* @return This {@link CallsPlayRequest instance}.
*/
public CallsPlayRequest content(CallsPlayContent content) {
this.content = content;
return this;
}
/**
* Returns content.
*
* The field is required.
*
* @return content
*/
@JsonProperty("content")
public CallsPlayContent getContent() {
return content;
}
/**
* Sets content.
*
* The field is required.
*
* @param content
*/
@JsonProperty("content")
public void setContent(CallsPlayContent content) {
this.content = content;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CallsPlayRequest callsPlayRequest = (CallsPlayRequest) o;
return Objects.equals(this.loopCount, callsPlayRequest.loopCount)
&& Objects.equals(this.content, callsPlayRequest.content);
}
@Override
public int hashCode() {
return Objects.hash(loopCount, content);
}
@Override
public String toString() {
String newLine = System.lineSeparator();
return new StringBuilder()
.append("class CallsPlayRequest {")
.append(newLine)
.append(" loopCount: ")
.append(toIndentedString(loopCount))
.append(newLine)
.append(" content: ")
.append(toIndentedString(content))
.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);
}
}