fi.metatavu.restfulptv.server.rest.model.Support Maven / Gradle / Ivy
package fi.metatavu.restfulptv.server.rest.model;
import java.util.ArrayList;
import java.util.List;
import io.swagger.annotations.*;
import java.util.Objects;
public class Support {
private String email = null;
private String phone = null;
private String phoneChargeDescription = null;
private String language = null;
private List serviceChargeTypes = new ArrayList();
/**
**/
public Support email(String email) {
this.email = email;
return this;
}
@ApiModelProperty(example = "null", value = "")
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
/**
**/
public Support phone(String phone) {
this.phone = phone;
return this;
}
@ApiModelProperty(example = "null", value = "")
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
/**
**/
public Support phoneChargeDescription(String phoneChargeDescription) {
this.phoneChargeDescription = phoneChargeDescription;
return this;
}
@ApiModelProperty(example = "null", value = "")
public String getPhoneChargeDescription() {
return phoneChargeDescription;
}
public void setPhoneChargeDescription(String phoneChargeDescription) {
this.phoneChargeDescription = phoneChargeDescription;
}
/**
**/
public Support language(String language) {
this.language = language;
return this;
}
@ApiModelProperty(example = "null", value = "")
public String getLanguage() {
return language;
}
public void setLanguage(String language) {
this.language = language;
}
/**
**/
public Support serviceChargeTypes(List serviceChargeTypes) {
this.serviceChargeTypes = serviceChargeTypes;
return this;
}
@ApiModelProperty(example = "null", value = "")
public List getServiceChargeTypes() {
return serviceChargeTypes;
}
public void setServiceChargeTypes(List serviceChargeTypes) {
this.serviceChargeTypes = serviceChargeTypes;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Support support = (Support) o;
return Objects.equals(email, support.email) &&
Objects.equals(phone, support.phone) &&
Objects.equals(phoneChargeDescription, support.phoneChargeDescription) &&
Objects.equals(language, support.language) &&
Objects.equals(serviceChargeTypes, support.serviceChargeTypes);
}
@Override
public int hashCode() {
return Objects.hash(email, phone, phoneChargeDescription, language, serviceChargeTypes);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Support {\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" phoneChargeDescription: ").append(toIndentedString(phoneChargeDescription)).append("\n");
sb.append(" language: ").append(toIndentedString(language)).append("\n");
sb.append(" serviceChargeTypes: ").append(toIndentedString(serviceChargeTypes)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}