fi.otavanopisto.kuntaapi.server.rest.model.ServiceChannelSupport Maven / Gradle / Ivy
package fi.otavanopisto.kuntaapi.server.rest.model;
import java.util.ArrayList;
import java.util.List;
import io.swagger.annotations.*;
import java.util.Objects;
public class ServiceChannelSupport {
private String email = null;
private String phone = null;
private String phoneChargeDescription = null;
private String language = null;
private List serviceChargeTypes = new ArrayList();
/**
**/
public ServiceChannelSupport 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 ServiceChannelSupport 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 ServiceChannelSupport 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 ServiceChannelSupport 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 ServiceChannelSupport 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;
}
ServiceChannelSupport serviceChannelSupport = (ServiceChannelSupport) o;
return Objects.equals(email, serviceChannelSupport.email) &&
Objects.equals(phone, serviceChannelSupport.phone) &&
Objects.equals(phoneChargeDescription, serviceChannelSupport.phoneChargeDescription) &&
Objects.equals(language, serviceChannelSupport.language) &&
Objects.equals(serviceChargeTypes, serviceChannelSupport.serviceChargeTypes);
}
@Override
public int hashCode() {
return Objects.hash(email, phone, phoneChargeDescription, language, serviceChargeTypes);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ServiceChannelSupport {\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 ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy