
com.infobip.model.CallsVoice 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;
/**
* Array of voices belonging to the specified language.
*/
public class CallsVoice {
private String name;
private String gender;
/**
* Sets name.
*
* Field description:
* Name of the voice. Example: `Joanna`
*
* @param name
* @return This {@link CallsVoice instance}.
*/
public CallsVoice name(String name) {
this.name = name;
return this;
}
/**
* Returns name.
*
* Field description:
* Name of the voice. Example: `Joanna`
*
* @return name
*/
@JsonProperty("name")
public String getName() {
return name;
}
/**
* Sets name.
*
* Field description:
* Name of the voice. Example: `Joanna`
*
* @param name
*/
@JsonProperty("name")
public void setName(String name) {
this.name = name;
}
/**
* Sets gender.
*
* Field description:
* Gender of the voice. Can be `male` or `female`.
*
* @param gender
* @return This {@link CallsVoice instance}.
*/
public CallsVoice gender(String gender) {
this.gender = gender;
return this;
}
/**
* Returns gender.
*
* Field description:
* Gender of the voice. Can be `male` or `female`.
*
* @return gender
*/
@JsonProperty("gender")
public String getGender() {
return gender;
}
/**
* Sets gender.
*
* Field description:
* Gender of the voice. Can be `male` or `female`.
*
* @param gender
*/
@JsonProperty("gender")
public void setGender(String gender) {
this.gender = gender;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CallsVoice callsVoice = (CallsVoice) o;
return Objects.equals(this.name, callsVoice.name) && Objects.equals(this.gender, callsVoice.gender);
}
@Override
public int hashCode() {
return Objects.hash(name, gender);
}
@Override
public String toString() {
String newLine = System.lineSeparator();
return new StringBuilder()
.append("class CallsVoice {")
.append(newLine)
.append(" name: ")
.append(toIndentedString(name))
.append(newLine)
.append(" gender: ")
.append(toIndentedString(gender))
.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);
}
}