fi.metatavu.restfulptv.client.model.OrganizationService 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.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.LanguageItem;
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)
/**
* OrganizationService
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-04-11T07:17:18.637+03:00")
public class OrganizationService {
@JsonProperty("additionalInformation")
private List additionalInformation = new ArrayList();
@JsonProperty("serviceId")
private String serviceId = null;
@JsonProperty("organizationId")
private String organizationId = null;
@JsonProperty("roleType")
private String roleType = null;
@JsonProperty("provisionType")
private String provisionType = null;
@JsonProperty("webPages")
private List webPages = new ArrayList();
public OrganizationService additionalInformation(List additionalInformation) {
this.additionalInformation = additionalInformation;
return this;
}
public OrganizationService addAdditionalInformationItem(LanguageItem additionalInformationItem) {
this.additionalInformation.add(additionalInformationItem);
return this;
}
/**
* Localized list of additional information.
* @return additionalInformation
**/
@ApiModelProperty(example = "null", value = "Localized list of additional information.")
public List getAdditionalInformation() {
return additionalInformation;
}
public void setAdditionalInformation(List additionalInformation) {
this.additionalInformation = additionalInformation;
}
public OrganizationService serviceId(String serviceId) {
this.serviceId = serviceId;
return this;
}
/**
* PTV service identifier.
* @return serviceId
**/
@ApiModelProperty(example = "null", value = "PTV service identifier.")
public String getServiceId() {
return serviceId;
}
public void setServiceId(String serviceId) {
this.serviceId = serviceId;
}
public OrganizationService organizationId(String organizationId) {
this.organizationId = organizationId;
return this;
}
/**
* PTV organization identifier (organization related to the service). Required if role type is Responsible or if ProvisionType is SelfProduced.
* @return organizationId
**/
@ApiModelProperty(example = "null", value = "PTV organization identifier (organization related to the service). Required if role type is Responsible or if ProvisionType is SelfProduced.")
public String getOrganizationId() {
return organizationId;
}
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId;
}
public OrganizationService roleType(String roleType) {
this.roleType = roleType;
return this;
}
/**
* Role type, valid values Responsible or Producer.
* @return roleType
**/
@ApiModelProperty(example = "null", value = "Role type, valid values Responsible or Producer.")
public String getRoleType() {
return roleType;
}
public void setRoleType(String roleType) {
this.roleType = roleType;
}
public OrganizationService provisionType(String provisionType) {
this.provisionType = provisionType;
return this;
}
/**
* Provision type, valid values SelfProduced, VoucherServices, PurchaseServices or Other. Required if RoleType value is Producer.
* @return provisionType
**/
@ApiModelProperty(example = "null", value = "Provision type, valid values SelfProduced, VoucherServices, PurchaseServices or Other. Required if RoleType value is Producer.")
public String getProvisionType() {
return provisionType;
}
public void setProvisionType(String provisionType) {
this.provisionType = provisionType;
}
public OrganizationService webPages(List webPages) {
this.webPages = webPages;
return this;
}
public OrganizationService addWebPagesItem(WebPage webPagesItem) {
this.webPages.add(webPagesItem);
return this;
}
/**
* List of web pages.
* @return webPages
**/
@ApiModelProperty(example = "null", value = "List of web pages.")
public List getWebPages() {
return webPages;
}
public void setWebPages(List webPages) {
this.webPages = webPages;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OrganizationService organizationService = (OrganizationService) o;
return Objects.equals(this.additionalInformation, organizationService.additionalInformation) &&
Objects.equals(this.serviceId, organizationService.serviceId) &&
Objects.equals(this.organizationId, organizationService.organizationId) &&
Objects.equals(this.roleType, organizationService.roleType) &&
Objects.equals(this.provisionType, organizationService.provisionType) &&
Objects.equals(this.webPages, organizationService.webPages);
}
@Override
public int hashCode() {
return Objects.hash(additionalInformation, serviceId, organizationId, roleType, provisionType, webPages);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OrganizationService {\n");
sb.append(" additionalInformation: ").append(toIndentedString(additionalInformation)).append("\n");
sb.append(" serviceId: ").append(toIndentedString(serviceId)).append("\n");
sb.append(" organizationId: ").append(toIndentedString(organizationId)).append("\n");
sb.append(" roleType: ").append(toIndentedString(roleType)).append("\n");
sb.append(" provisionType: ").append(toIndentedString(provisionType)).append("\n");
sb.append(" webPages: ").append(toIndentedString(webPages)).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 ");
}
}