fi.otavanopisto.restfulptv.client.model.Organization 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.LocalizedListItem;
import fi.otavanopisto.restfulptv.client.model.OrganizationEmail;
import fi.otavanopisto.restfulptv.client.model.OrganizationPhone;
import fi.otavanopisto.restfulptv.client.model.OrganizationService;
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)
/**
* Organization
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-10-03T15:33:19.141+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("services")
private List services = new ArrayList();
@JsonProperty("municipality")
private String municipality = null;
@JsonProperty("organizationType")
private String organizationType = null;
@JsonProperty("businessCode")
private String businessCode = null;
@JsonProperty("businessName")
private String businessName = null;
@JsonProperty("organizationNames")
private List organizationNames = new ArrayList();
@JsonProperty("publishingStatus")
private String publishingStatus = null;
@JsonProperty("businessId")
private String businessId = null;
@JsonProperty("displayNameType")
private String displayNameType = null;
@JsonProperty("oid")
private String oid = null;
@JsonProperty("streetAddressAsPostalAddress")
private Boolean streetAddressAsPostalAddress = null;
@JsonProperty("entityId")
private String entityId = 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(OrganizationEmail 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(OrganizationPhone 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 services(List services) {
this.services = services;
return this;
}
public Organization addServicesItem(OrganizationService servicesItem) {
this.services.add(servicesItem);
return this;
}
/**
* Get services
* @return services
**/
@ApiModelProperty(example = "null", value = "")
public List getServices() {
return services;
}
public void setServices(List services) {
this.services = services;
}
public Organization municipality(String municipality) {
this.municipality = municipality;
return this;
}
/**
* Get municipality
* @return municipality
**/
@ApiModelProperty(example = "null", value = "")
public String getMunicipality() {
return municipality;
}
public void setMunicipality(String municipality) {
this.municipality = municipality;
}
public Organization organizationType(String organizationType) {
this.organizationType = organizationType;
return this;
}
/**
* Get organizationType
* @return organizationType
**/
@ApiModelProperty(example = "null", value = "")
public String getOrganizationType() {
return organizationType;
}
public void setOrganizationType(String organizationType) {
this.organizationType = organizationType;
}
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 organizationNames(List organizationNames) {
this.organizationNames = organizationNames;
return this;
}
public Organization addOrganizationNamesItem(LocalizedListItem organizationNamesItem) {
this.organizationNames.add(organizationNamesItem);
return this;
}
/**
* Get organizationNames
* @return organizationNames
**/
@ApiModelProperty(example = "null", value = "")
public List getOrganizationNames() {
return organizationNames;
}
public void setOrganizationNames(List organizationNames) {
this.organizationNames = organizationNames;
}
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 businessId(String businessId) {
this.businessId = businessId;
return this;
}
/**
* Get businessId
* @return businessId
**/
@ApiModelProperty(example = "null", value = "")
public String getBusinessId() {
return businessId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
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;
}
public Organization entityId(String entityId) {
this.entityId = entityId;
return this;
}
/**
* Get entityId
* @return entityId
**/
@ApiModelProperty(example = "null", value = "")
public String getEntityId() {
return entityId;
}
public void setEntityId(String entityId) {
this.entityId = entityId;
}
@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.services, organization.services) &&
Objects.equals(this.municipality, organization.municipality) &&
Objects.equals(this.organizationType, organization.organizationType) &&
Objects.equals(this.businessCode, organization.businessCode) &&
Objects.equals(this.businessName, organization.businessName) &&
Objects.equals(this.organizationNames, organization.organizationNames) &&
Objects.equals(this.publishingStatus, organization.publishingStatus) &&
Objects.equals(this.businessId, organization.businessId) &&
Objects.equals(this.displayNameType, organization.displayNameType) &&
Objects.equals(this.oid, organization.oid) &&
Objects.equals(this.streetAddressAsPostalAddress, organization.streetAddressAsPostalAddress) &&
Objects.equals(this.entityId, organization.entityId);
}
@Override
public int hashCode() {
return Objects.hash(id, descriptions, parentOrganization, emailAddresses, phoneNumbers, webPages, addresses, services, municipality, organizationType, businessCode, businessName, organizationNames, publishingStatus, businessId, displayNameType, oid, streetAddressAsPostalAddress, entityId);
}
@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(" services: ").append(toIndentedString(services)).append("\n");
sb.append(" municipality: ").append(toIndentedString(municipality)).append("\n");
sb.append(" organizationType: ").append(toIndentedString(organizationType)).append("\n");
sb.append(" businessCode: ").append(toIndentedString(businessCode)).append("\n");
sb.append(" businessName: ").append(toIndentedString(businessName)).append("\n");
sb.append(" organizationNames: ").append(toIndentedString(organizationNames)).append("\n");
sb.append(" publishingStatus: ").append(toIndentedString(publishingStatus)).append("\n");
sb.append(" businessId: ").append(toIndentedString(businessId)).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(" entityId: ").append(toIndentedString(entityId)).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 ");
}
}