All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fi.metatavu.restfulptv.server.rest.model.PhoneChannel Maven / Gradle / Ivy

There is a newer version: 1.4.9
Show newest version
package fi.metatavu.restfulptv.server.rest.model;

import fi.metatavu.restfulptv.server.rest.model.LanguageItem;
import fi.metatavu.restfulptv.server.rest.model.LocalizedListItem;
import fi.metatavu.restfulptv.server.rest.model.ServiceHour;
import fi.metatavu.restfulptv.server.rest.model.Support;
import fi.metatavu.restfulptv.server.rest.model.WebPage;
import java.util.ArrayList;
import java.util.List;



import io.swagger.annotations.*;
import java.util.Objects;


public class PhoneChannel   {
  
  private String id = null;
  private String type = null;
  private String organizationId = null;
  private List names = new ArrayList();
  private List descriptions = new ArrayList();
  private String phoneType = null;
  private List chargeTypes = new ArrayList();
  private List supportContacts = new ArrayList();
  private List phoneNumbers = new ArrayList();
  private List languages = new ArrayList();
  private List phoneChargeDescriptions = new ArrayList();
  private List webPages = new ArrayList();
  private List serviceHours = new ArrayList();
  private String publishingStatus = null;

  /**
   **/
  public PhoneChannel id(String id) {
    this.id = id;
    return this;
  }

  
  @ApiModelProperty(example = "null", value = "")
  public String getId() {
    return id;
  }
  public void setId(String id) {
    this.id = id;
  }

  /**
   **/
  public PhoneChannel type(String type) {
    this.type = type;
    return this;
  }

  
  @ApiModelProperty(example = "null", value = "")
  public String getType() {
    return type;
  }
  public void setType(String type) {
    this.type = type;
  }

  /**
   **/
  public PhoneChannel organizationId(String organizationId) {
    this.organizationId = organizationId;
    return this;
  }

  
  @ApiModelProperty(example = "null", value = "")
  public String getOrganizationId() {
    return organizationId;
  }
  public void setOrganizationId(String organizationId) {
    this.organizationId = organizationId;
  }

  /**
   **/
  public PhoneChannel names(List names) {
    this.names = names;
    return this;
  }

  
  @ApiModelProperty(example = "null", value = "")
  public List getNames() {
    return names;
  }
  public void setNames(List names) {
    this.names = names;
  }

  /**
   **/
  public PhoneChannel descriptions(List descriptions) {
    this.descriptions = descriptions;
    return this;
  }

  
  @ApiModelProperty(example = "null", value = "")
  public List getDescriptions() {
    return descriptions;
  }
  public void setDescriptions(List descriptions) {
    this.descriptions = descriptions;
  }

  /**
   **/
  public PhoneChannel phoneType(String phoneType) {
    this.phoneType = phoneType;
    return this;
  }

  
  @ApiModelProperty(example = "null", value = "")
  public String getPhoneType() {
    return phoneType;
  }
  public void setPhoneType(String phoneType) {
    this.phoneType = phoneType;
  }

  /**
   **/
  public PhoneChannel chargeTypes(List chargeTypes) {
    this.chargeTypes = chargeTypes;
    return this;
  }

  
  @ApiModelProperty(example = "null", value = "")
  public List getChargeTypes() {
    return chargeTypes;
  }
  public void setChargeTypes(List chargeTypes) {
    this.chargeTypes = chargeTypes;
  }

  /**
   **/
  public PhoneChannel supportContacts(List supportContacts) {
    this.supportContacts = supportContacts;
    return this;
  }

  
  @ApiModelProperty(example = "null", value = "")
  public List getSupportContacts() {
    return supportContacts;
  }
  public void setSupportContacts(List supportContacts) {
    this.supportContacts = supportContacts;
  }

  /**
   **/
  public PhoneChannel phoneNumbers(List phoneNumbers) {
    this.phoneNumbers = phoneNumbers;
    return this;
  }

  
  @ApiModelProperty(example = "null", value = "")
  public List getPhoneNumbers() {
    return phoneNumbers;
  }
  public void setPhoneNumbers(List phoneNumbers) {
    this.phoneNumbers = phoneNumbers;
  }

  /**
   **/
  public PhoneChannel languages(List languages) {
    this.languages = languages;
    return this;
  }

  
  @ApiModelProperty(example = "null", value = "")
  public List getLanguages() {
    return languages;
  }
  public void setLanguages(List languages) {
    this.languages = languages;
  }

  /**
   **/
  public PhoneChannel phoneChargeDescriptions(List phoneChargeDescriptions) {
    this.phoneChargeDescriptions = phoneChargeDescriptions;
    return this;
  }

  
  @ApiModelProperty(example = "null", value = "")
  public List getPhoneChargeDescriptions() {
    return phoneChargeDescriptions;
  }
  public void setPhoneChargeDescriptions(List phoneChargeDescriptions) {
    this.phoneChargeDescriptions = phoneChargeDescriptions;
  }

  /**
   **/
  public PhoneChannel webPages(List webPages) {
    this.webPages = webPages;
    return this;
  }

  
  @ApiModelProperty(example = "null", value = "")
  public List getWebPages() {
    return webPages;
  }
  public void setWebPages(List webPages) {
    this.webPages = webPages;
  }

  /**
   **/
  public PhoneChannel serviceHours(List serviceHours) {
    this.serviceHours = serviceHours;
    return this;
  }

  
  @ApiModelProperty(example = "null", value = "")
  public List getServiceHours() {
    return serviceHours;
  }
  public void setServiceHours(List serviceHours) {
    this.serviceHours = serviceHours;
  }

  /**
   **/
  public PhoneChannel publishingStatus(String publishingStatus) {
    this.publishingStatus = publishingStatus;
    return this;
  }

  
  @ApiModelProperty(example = "null", value = "")
  public String getPublishingStatus() {
    return publishingStatus;
  }
  public void setPublishingStatus(String publishingStatus) {
    this.publishingStatus = publishingStatus;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PhoneChannel phoneChannel = (PhoneChannel) o;
    return Objects.equals(id, phoneChannel.id) &&
        Objects.equals(type, phoneChannel.type) &&
        Objects.equals(organizationId, phoneChannel.organizationId) &&
        Objects.equals(names, phoneChannel.names) &&
        Objects.equals(descriptions, phoneChannel.descriptions) &&
        Objects.equals(phoneType, phoneChannel.phoneType) &&
        Objects.equals(chargeTypes, phoneChannel.chargeTypes) &&
        Objects.equals(supportContacts, phoneChannel.supportContacts) &&
        Objects.equals(phoneNumbers, phoneChannel.phoneNumbers) &&
        Objects.equals(languages, phoneChannel.languages) &&
        Objects.equals(phoneChargeDescriptions, phoneChannel.phoneChargeDescriptions) &&
        Objects.equals(webPages, phoneChannel.webPages) &&
        Objects.equals(serviceHours, phoneChannel.serviceHours) &&
        Objects.equals(publishingStatus, phoneChannel.publishingStatus);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, type, organizationId, names, descriptions, phoneType, chargeTypes, supportContacts, phoneNumbers, languages, phoneChargeDescriptions, webPages, serviceHours, publishingStatus);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PhoneChannel {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("    organizationId: ").append(toIndentedString(organizationId)).append("\n");
    sb.append("    names: ").append(toIndentedString(names)).append("\n");
    sb.append("    descriptions: ").append(toIndentedString(descriptions)).append("\n");
    sb.append("    phoneType: ").append(toIndentedString(phoneType)).append("\n");
    sb.append("    chargeTypes: ").append(toIndentedString(chargeTypes)).append("\n");
    sb.append("    supportContacts: ").append(toIndentedString(supportContacts)).append("\n");
    sb.append("    phoneNumbers: ").append(toIndentedString(phoneNumbers)).append("\n");
    sb.append("    languages: ").append(toIndentedString(languages)).append("\n");
    sb.append("    phoneChargeDescriptions: ").append(toIndentedString(phoneChargeDescriptions)).append("\n");
    sb.append("    webPages: ").append(toIndentedString(webPages)).append("\n");
    sb.append("    serviceHours: ").append(toIndentedString(serviceHours)).append("\n");
    sb.append("    publishingStatus: ").append(toIndentedString(publishingStatus)).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