fi.otavanopisto.restfulptv.client.model.PrintableFormChannel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of restful-ptv-rest-client Show documentation
Show all versions of restful-ptv-rest-client Show documentation
Restful way to use Palvelutietovaranto.
/**
* RESTful PTV
* Restful way to use Palvelutietovaranto.
*
* OpenAPI spec version: v1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package fi.otavanopisto.restfulptv.client.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import fi.otavanopisto.restfulptv.client.model.Address;
import fi.otavanopisto.restfulptv.client.model.Attachment;
import fi.otavanopisto.restfulptv.client.model.LanguageItem;
import fi.otavanopisto.restfulptv.client.model.LocalizedListItem;
import fi.otavanopisto.restfulptv.client.model.ServiceHour;
import fi.otavanopisto.restfulptv.client.model.Support;
import fi.otavanopisto.restfulptv.client.model.WebPage;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
/**
* PrintableFormChannel
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-10-05T10:47:52.746+03:00")
public class PrintableFormChannel {
@JsonProperty("id")
private String id = null;
@JsonProperty("type")
private String type = null;
@JsonProperty("organizationId")
private String organizationId = null;
@JsonProperty("names")
private List names = new ArrayList();
@JsonProperty("descriptions")
private List descriptions = new ArrayList();
@JsonProperty("formIdentifier")
private String formIdentifier = null;
@JsonProperty("formReceiver")
private String formReceiver = null;
@JsonProperty("supportContacts")
private List supportContacts = new ArrayList();
@JsonProperty("deliveryAddress")
private Address deliveryAddress = null;
@JsonProperty("channelUrls")
private List channelUrls = new ArrayList();
@JsonProperty("languages")
private List languages = new ArrayList();
@JsonProperty("deliveryAddressDescriptions")
private List deliveryAddressDescriptions = new ArrayList();
@JsonProperty("attachments")
private List attachments = new ArrayList();
@JsonProperty("webPages")
private List webPages = new ArrayList();
@JsonProperty("serviceHours")
private List serviceHours = new ArrayList();
@JsonProperty("publishingStatus")
private String publishingStatus = null;
public PrintableFormChannel id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@ApiModelProperty(example = "null", value = "")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public PrintableFormChannel type(String type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@ApiModelProperty(example = "null", value = "")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public PrintableFormChannel organizationId(String organizationId) {
this.organizationId = organizationId;
return this;
}
/**
* Get organizationId
* @return organizationId
**/
@ApiModelProperty(example = "null", value = "")
public String getOrganizationId() {
return organizationId;
}
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId;
}
public PrintableFormChannel names(List names) {
this.names = names;
return this;
}
public PrintableFormChannel addNamesItem(LocalizedListItem namesItem) {
this.names.add(namesItem);
return this;
}
/**
* Get names
* @return names
**/
@ApiModelProperty(example = "null", value = "")
public List getNames() {
return names;
}
public void setNames(List names) {
this.names = names;
}
public PrintableFormChannel descriptions(List descriptions) {
this.descriptions = descriptions;
return this;
}
public PrintableFormChannel addDescriptionsItem(LocalizedListItem descriptionsItem) {
this.descriptions.add(descriptionsItem);
return this;
}
/**
* Get descriptions
* @return descriptions
**/
@ApiModelProperty(example = "null", value = "")
public List getDescriptions() {
return descriptions;
}
public void setDescriptions(List descriptions) {
this.descriptions = descriptions;
}
public PrintableFormChannel formIdentifier(String formIdentifier) {
this.formIdentifier = formIdentifier;
return this;
}
/**
* Get formIdentifier
* @return formIdentifier
**/
@ApiModelProperty(example = "null", value = "")
public String getFormIdentifier() {
return formIdentifier;
}
public void setFormIdentifier(String formIdentifier) {
this.formIdentifier = formIdentifier;
}
public PrintableFormChannel formReceiver(String formReceiver) {
this.formReceiver = formReceiver;
return this;
}
/**
* Get formReceiver
* @return formReceiver
**/
@ApiModelProperty(example = "null", value = "")
public String getFormReceiver() {
return formReceiver;
}
public void setFormReceiver(String formReceiver) {
this.formReceiver = formReceiver;
}
public PrintableFormChannel supportContacts(List supportContacts) {
this.supportContacts = supportContacts;
return this;
}
public PrintableFormChannel addSupportContactsItem(Support supportContactsItem) {
this.supportContacts.add(supportContactsItem);
return this;
}
/**
* Get supportContacts
* @return supportContacts
**/
@ApiModelProperty(example = "null", value = "")
public List getSupportContacts() {
return supportContacts;
}
public void setSupportContacts(List supportContacts) {
this.supportContacts = supportContacts;
}
public PrintableFormChannel deliveryAddress(Address deliveryAddress) {
this.deliveryAddress = deliveryAddress;
return this;
}
/**
* Get deliveryAddress
* @return deliveryAddress
**/
@ApiModelProperty(example = "null", value = "")
public Address getDeliveryAddress() {
return deliveryAddress;
}
public void setDeliveryAddress(Address deliveryAddress) {
this.deliveryAddress = deliveryAddress;
}
public PrintableFormChannel channelUrls(List channelUrls) {
this.channelUrls = channelUrls;
return this;
}
public PrintableFormChannel addChannelUrlsItem(LocalizedListItem channelUrlsItem) {
this.channelUrls.add(channelUrlsItem);
return this;
}
/**
* Get channelUrls
* @return channelUrls
**/
@ApiModelProperty(example = "null", value = "")
public List getChannelUrls() {
return channelUrls;
}
public void setChannelUrls(List channelUrls) {
this.channelUrls = channelUrls;
}
public PrintableFormChannel languages(List languages) {
this.languages = languages;
return this;
}
public PrintableFormChannel addLanguagesItem(String languagesItem) {
this.languages.add(languagesItem);
return this;
}
/**
* Get languages
* @return languages
**/
@ApiModelProperty(example = "null", value = "")
public List getLanguages() {
return languages;
}
public void setLanguages(List languages) {
this.languages = languages;
}
public PrintableFormChannel deliveryAddressDescriptions(List deliveryAddressDescriptions) {
this.deliveryAddressDescriptions = deliveryAddressDescriptions;
return this;
}
public PrintableFormChannel addDeliveryAddressDescriptionsItem(LanguageItem deliveryAddressDescriptionsItem) {
this.deliveryAddressDescriptions.add(deliveryAddressDescriptionsItem);
return this;
}
/**
* Get deliveryAddressDescriptions
* @return deliveryAddressDescriptions
**/
@ApiModelProperty(example = "null", value = "")
public List getDeliveryAddressDescriptions() {
return deliveryAddressDescriptions;
}
public void setDeliveryAddressDescriptions(List deliveryAddressDescriptions) {
this.deliveryAddressDescriptions = deliveryAddressDescriptions;
}
public PrintableFormChannel attachments(List attachments) {
this.attachments = attachments;
return this;
}
public PrintableFormChannel addAttachmentsItem(Attachment attachmentsItem) {
this.attachments.add(attachmentsItem);
return this;
}
/**
* Get attachments
* @return attachments
**/
@ApiModelProperty(example = "null", value = "")
public List getAttachments() {
return attachments;
}
public void setAttachments(List attachments) {
this.attachments = attachments;
}
public PrintableFormChannel webPages(List webPages) {
this.webPages = webPages;
return this;
}
public PrintableFormChannel addWebPagesItem(WebPage webPagesItem) {
this.webPages.add(webPagesItem);
return this;
}
/**
* Get webPages
* @return webPages
**/
@ApiModelProperty(example = "null", value = "")
public List getWebPages() {
return webPages;
}
public void setWebPages(List webPages) {
this.webPages = webPages;
}
public PrintableFormChannel serviceHours(List serviceHours) {
this.serviceHours = serviceHours;
return this;
}
public PrintableFormChannel addServiceHoursItem(ServiceHour serviceHoursItem) {
this.serviceHours.add(serviceHoursItem);
return this;
}
/**
* Get serviceHours
* @return serviceHours
**/
@ApiModelProperty(example = "null", value = "")
public List getServiceHours() {
return serviceHours;
}
public void setServiceHours(List serviceHours) {
this.serviceHours = serviceHours;
}
public PrintableFormChannel publishingStatus(String publishingStatus) {
this.publishingStatus = publishingStatus;
return this;
}
/**
* Get publishingStatus
* @return publishingStatus
**/
@ApiModelProperty(example = "null", value = "")
public String getPublishingStatus() {
return publishingStatus;
}
public void setPublishingStatus(String publishingStatus) {
this.publishingStatus = publishingStatus;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PrintableFormChannel printableFormChannel = (PrintableFormChannel) o;
return Objects.equals(this.id, printableFormChannel.id) &&
Objects.equals(this.type, printableFormChannel.type) &&
Objects.equals(this.organizationId, printableFormChannel.organizationId) &&
Objects.equals(this.names, printableFormChannel.names) &&
Objects.equals(this.descriptions, printableFormChannel.descriptions) &&
Objects.equals(this.formIdentifier, printableFormChannel.formIdentifier) &&
Objects.equals(this.formReceiver, printableFormChannel.formReceiver) &&
Objects.equals(this.supportContacts, printableFormChannel.supportContacts) &&
Objects.equals(this.deliveryAddress, printableFormChannel.deliveryAddress) &&
Objects.equals(this.channelUrls, printableFormChannel.channelUrls) &&
Objects.equals(this.languages, printableFormChannel.languages) &&
Objects.equals(this.deliveryAddressDescriptions, printableFormChannel.deliveryAddressDescriptions) &&
Objects.equals(this.attachments, printableFormChannel.attachments) &&
Objects.equals(this.webPages, printableFormChannel.webPages) &&
Objects.equals(this.serviceHours, printableFormChannel.serviceHours) &&
Objects.equals(this.publishingStatus, printableFormChannel.publishingStatus);
}
@Override
public int hashCode() {
return Objects.hash(id, type, organizationId, names, descriptions, formIdentifier, formReceiver, supportContacts, deliveryAddress, channelUrls, languages, deliveryAddressDescriptions, attachments, webPages, serviceHours, publishingStatus);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PrintableFormChannel {\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(" formIdentifier: ").append(toIndentedString(formIdentifier)).append("\n");
sb.append(" formReceiver: ").append(toIndentedString(formReceiver)).append("\n");
sb.append(" supportContacts: ").append(toIndentedString(supportContacts)).append("\n");
sb.append(" deliveryAddress: ").append(toIndentedString(deliveryAddress)).append("\n");
sb.append(" channelUrls: ").append(toIndentedString(channelUrls)).append("\n");
sb.append(" languages: ").append(toIndentedString(languages)).append("\n");
sb.append(" deliveryAddressDescriptions: ").append(toIndentedString(deliveryAddressDescriptions)).append("\n");
sb.append(" attachments: ").append(toIndentedString(attachments)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}