| /** |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you 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. |
| */ |
| /* |
| * Fineract Credit Scorecard |
| * An API module for credit risk assessment |
| * |
| * The version of the OpenAPI document: 1.0.0 |
| * |
| * |
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
| * https://openapi-generator.tech |
| * Do not edit the class manually. |
| */ |
| |
| |
| package org.apache.fineract.credit.scorecard.models; |
| |
| import java.util.Objects; |
| import java.util.Arrays; |
| import com.google.gson.TypeAdapter; |
| import com.google.gson.annotations.JsonAdapter; |
| import com.google.gson.annotations.SerializedName; |
| import com.google.gson.stream.JsonReader; |
| import com.google.gson.stream.JsonWriter; |
| import io.swagger.annotations.ApiModel; |
| import io.swagger.annotations.ApiModelProperty; |
| import java.io.IOException; |
| |
| /** |
| * Dataset |
| */ |
| @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") |
| public class Dataset { |
| public static final String SERIALIZED_NAME_ID = "id"; |
| @SerializedName(SERIALIZED_NAME_ID) |
| private Integer id; |
| |
| public static final String SERIALIZED_NAME_NAME = "name"; |
| @SerializedName(SERIALIZED_NAME_NAME) |
| private String name; |
| |
| public static final String SERIALIZED_NAME_REGION = "region"; |
| @SerializedName(SERIALIZED_NAME_REGION) |
| private String region; |
| |
| |
| /** |
| * Get id |
| * @return id |
| **/ |
| @ApiModelProperty(required = true, value = "") |
| |
| public Integer getId() { |
| return id; |
| } |
| |
| |
| |
| |
| public Dataset name(String name) { |
| |
| this.name = name; |
| return this; |
| } |
| |
| /** |
| * Get name |
| * @return name |
| **/ |
| @ApiModelProperty(required = true, value = "") |
| |
| public String getName() { |
| return name; |
| } |
| |
| |
| public void setName(String name) { |
| this.name = name; |
| } |
| |
| |
| public Dataset region(String region) { |
| |
| this.region = region; |
| return this; |
| } |
| |
| /** |
| * Get region |
| * @return region |
| **/ |
| @ApiModelProperty(required = true, value = "") |
| |
| public String getRegion() { |
| return region; |
| } |
| |
| |
| public void setRegion(String region) { |
| this.region = region; |
| } |
| |
| |
| @Override |
| public boolean equals(Object o) { |
| if (this == o) { |
| return true; |
| } |
| if (o == null || getClass() != o.getClass()) { |
| return false; |
| } |
| Dataset dataset = (Dataset) o; |
| return Objects.equals(this.id, dataset.id) && |
| Objects.equals(this.name, dataset.name) && |
| Objects.equals(this.region, dataset.region); |
| } |
| |
| @Override |
| public int hashCode() { |
| return Objects.hash(id, name, region); |
| } |
| |
| @Override |
| public String toString() { |
| StringBuilder sb = new StringBuilder(); |
| sb.append("class Dataset {\n"); |
| sb.append(" id: ").append(toIndentedString(id)).append("\n"); |
| sb.append(" name: ").append(toIndentedString(name)).append("\n"); |
| sb.append(" region: ").append(toIndentedString(region)).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 "); |
| } |
| |
| } |
| |