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

fi.metatavu.restfulptv.client.model.Organization Maven / Gradle / Ivy

There is a newer version: 1.4.9
Show newest version
/**
 * 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.metatavu.restfulptv.client.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import fi.metatavu.restfulptv.client.model.Address;
import fi.metatavu.restfulptv.client.model.Email;
import fi.metatavu.restfulptv.client.model.LocalizedListItem;
import fi.metatavu.restfulptv.client.model.Municipality;
import fi.metatavu.restfulptv.client.model.Phone;
import fi.metatavu.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)
/**
 * Organization
 */
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-04-11T07:17:18.637+03:00")
public class Organization   {
  @JsonProperty("id")
  private String id = null;

  @JsonProperty("descriptions")
  private List descriptions = new ArrayList();

  @JsonProperty("parentOrganization")
  private String parentOrganization = null;

  @JsonProperty("emailAddresses")
  private List emailAddresses = new ArrayList();

  @JsonProperty("phoneNumbers")
  private List phoneNumbers = new ArrayList();

  @JsonProperty("webPages")
  private List webPages = new ArrayList();

  @JsonProperty("addresses")
  private List
addresses = new ArrayList
(); @JsonProperty("municipality") private Municipality municipality = null; @JsonProperty("type") private String type = null; @JsonProperty("businessCode") private String businessCode = null; @JsonProperty("businessName") private String businessName = null; @JsonProperty("names") private List names = new ArrayList(); @JsonProperty("publishingStatus") private String publishingStatus = null; @JsonProperty("displayNameType") private String displayNameType = null; @JsonProperty("oid") private String oid = null; @JsonProperty("streetAddressAsPostalAddress") private Boolean streetAddressAsPostalAddress = null; public Organization 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 Organization descriptions(List descriptions) { this.descriptions = descriptions; return this; } public Organization 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 Organization parentOrganization(String parentOrganization) { this.parentOrganization = parentOrganization; return this; } /** * Get parentOrganization * @return parentOrganization **/ @ApiModelProperty(example = "null", value = "") public String getParentOrganization() { return parentOrganization; } public void setParentOrganization(String parentOrganization) { this.parentOrganization = parentOrganization; } public Organization emailAddresses(List emailAddresses) { this.emailAddresses = emailAddresses; return this; } public Organization addEmailAddressesItem(Email emailAddressesItem) { this.emailAddresses.add(emailAddressesItem); return this; } /** * Get emailAddresses * @return emailAddresses **/ @ApiModelProperty(example = "null", value = "") public List getEmailAddresses() { return emailAddresses; } public void setEmailAddresses(List emailAddresses) { this.emailAddresses = emailAddresses; } public Organization phoneNumbers(List phoneNumbers) { this.phoneNumbers = phoneNumbers; return this; } public Organization addPhoneNumbersItem(Phone phoneNumbersItem) { this.phoneNumbers.add(phoneNumbersItem); return this; } /** * Get phoneNumbers * @return phoneNumbers **/ @ApiModelProperty(example = "null", value = "") public List getPhoneNumbers() { return phoneNumbers; } public void setPhoneNumbers(List phoneNumbers) { this.phoneNumbers = phoneNumbers; } public Organization webPages(List webPages) { this.webPages = webPages; return this; } public Organization 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 Organization addresses(List
addresses) { this.addresses = addresses; return this; } public Organization addAddressesItem(Address addressesItem) { this.addresses.add(addressesItem); return this; } /** * Get addresses * @return addresses **/ @ApiModelProperty(example = "null", value = "") public List
getAddresses() { return addresses; } public void setAddresses(List
addresses) { this.addresses = addresses; } public Organization municipality(Municipality municipality) { this.municipality = municipality; return this; } /** * Get municipality * @return municipality **/ @ApiModelProperty(example = "null", value = "") public Municipality getMunicipality() { return municipality; } public void setMunicipality(Municipality municipality) { this.municipality = municipality; } public Organization 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 Organization businessCode(String businessCode) { this.businessCode = businessCode; return this; } /** * Get businessCode * @return businessCode **/ @ApiModelProperty(example = "null", value = "") public String getBusinessCode() { return businessCode; } public void setBusinessCode(String businessCode) { this.businessCode = businessCode; } public Organization businessName(String businessName) { this.businessName = businessName; return this; } /** * Get businessName * @return businessName **/ @ApiModelProperty(example = "null", value = "") public String getBusinessName() { return businessName; } public void setBusinessName(String businessName) { this.businessName = businessName; } public Organization names(List names) { this.names = names; return this; } public Organization 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 Organization 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; } public Organization displayNameType(String displayNameType) { this.displayNameType = displayNameType; return this; } /** * Get displayNameType * @return displayNameType **/ @ApiModelProperty(example = "null", value = "") public String getDisplayNameType() { return displayNameType; } public void setDisplayNameType(String displayNameType) { this.displayNameType = displayNameType; } public Organization oid(String oid) { this.oid = oid; return this; } /** * Get oid * @return oid **/ @ApiModelProperty(example = "null", value = "") public String getOid() { return oid; } public void setOid(String oid) { this.oid = oid; } public Organization streetAddressAsPostalAddress(Boolean streetAddressAsPostalAddress) { this.streetAddressAsPostalAddress = streetAddressAsPostalAddress; return this; } /** * Get streetAddressAsPostalAddress * @return streetAddressAsPostalAddress **/ @ApiModelProperty(example = "null", value = "") public Boolean getStreetAddressAsPostalAddress() { return streetAddressAsPostalAddress; } public void setStreetAddressAsPostalAddress(Boolean streetAddressAsPostalAddress) { this.streetAddressAsPostalAddress = streetAddressAsPostalAddress; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Organization organization = (Organization) o; return Objects.equals(this.id, organization.id) && Objects.equals(this.descriptions, organization.descriptions) && Objects.equals(this.parentOrganization, organization.parentOrganization) && Objects.equals(this.emailAddresses, organization.emailAddresses) && Objects.equals(this.phoneNumbers, organization.phoneNumbers) && Objects.equals(this.webPages, organization.webPages) && Objects.equals(this.addresses, organization.addresses) && Objects.equals(this.municipality, organization.municipality) && Objects.equals(this.type, organization.type) && Objects.equals(this.businessCode, organization.businessCode) && Objects.equals(this.businessName, organization.businessName) && Objects.equals(this.names, organization.names) && Objects.equals(this.publishingStatus, organization.publishingStatus) && Objects.equals(this.displayNameType, organization.displayNameType) && Objects.equals(this.oid, organization.oid) && Objects.equals(this.streetAddressAsPostalAddress, organization.streetAddressAsPostalAddress); } @Override public int hashCode() { return Objects.hash(id, descriptions, parentOrganization, emailAddresses, phoneNumbers, webPages, addresses, municipality, type, businessCode, businessName, names, publishingStatus, displayNameType, oid, streetAddressAsPostalAddress); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Organization {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" descriptions: ").append(toIndentedString(descriptions)).append("\n"); sb.append(" parentOrganization: ").append(toIndentedString(parentOrganization)).append("\n"); sb.append(" emailAddresses: ").append(toIndentedString(emailAddresses)).append("\n"); sb.append(" phoneNumbers: ").append(toIndentedString(phoneNumbers)).append("\n"); sb.append(" webPages: ").append(toIndentedString(webPages)).append("\n"); sb.append(" addresses: ").append(toIndentedString(addresses)).append("\n"); sb.append(" municipality: ").append(toIndentedString(municipality)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" businessCode: ").append(toIndentedString(businessCode)).append("\n"); sb.append(" businessName: ").append(toIndentedString(businessName)).append("\n"); sb.append(" names: ").append(toIndentedString(names)).append("\n"); sb.append(" publishingStatus: ").append(toIndentedString(publishingStatus)).append("\n"); sb.append(" displayNameType: ").append(toIndentedString(displayNameType)).append("\n"); sb.append(" oid: ").append(toIndentedString(oid)).append("\n"); sb.append(" streetAddressAsPostalAddress: ").append(toIndentedString(streetAddressAsPostalAddress)).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 "); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy