blob: a699137e5caa4d1b4a256fe25236a6127df50ae3 [file] [log] [blame]
/**
* 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;
import java.time.OffsetDateTime;
/**
* Algorithm
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Algorithm {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private Integer id;
public static final String SERIALIZED_NAME_CLASSIFIER = "classifier";
@SerializedName(SERIALIZED_NAME_CLASSIFIER)
private String classifier;
public static final String SERIALIZED_NAME_DESCRIPTION = "description";
@SerializedName(SERIALIZED_NAME_DESCRIPTION)
private String description;
public static final String SERIALIZED_NAME_VERSION = "version";
@SerializedName(SERIALIZED_NAME_VERSION)
private String version;
public static final String SERIALIZED_NAME_STATUS = "status";
@SerializedName(SERIALIZED_NAME_STATUS)
private String status;
public static final String SERIALIZED_NAME_CREATED_AT = "created_at";
@SerializedName(SERIALIZED_NAME_CREATED_AT)
private OffsetDateTime createdAt;
public static final String SERIALIZED_NAME_CREATED_BY = "created_by";
@SerializedName(SERIALIZED_NAME_CREATED_BY)
private String createdBy;
public static final String SERIALIZED_NAME_DATASET = "dataset";
@SerializedName(SERIALIZED_NAME_DATASET)
private String dataset;
/**
* Get id
* @return id
**/
@ApiModelProperty(required = true, value = "")
public Integer getId() {
return id;
}
public Algorithm classifier(String classifier) {
this.classifier = classifier;
return this;
}
/**
* Get classifier
* @return classifier
**/
@ApiModelProperty(required = true, value = "")
public String getClassifier() {
return classifier;
}
public void setClassifier(String classifier) {
this.classifier = classifier;
}
public Algorithm description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Algorithm version(String version) {
this.version = version;
return this;
}
/**
* Get version
* @return version
**/
@ApiModelProperty(required = true, value = "")
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public Algorithm status(String status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@ApiModelProperty(required = true, value = "")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
/**
* Get createdAt
* @return createdAt
**/
@ApiModelProperty(required = true, value = "")
public OffsetDateTime getCreatedAt() {
return createdAt;
}
public Algorithm createdBy(String createdBy) {
this.createdBy = createdBy;
return this;
}
/**
* Get createdBy
* @return createdBy
**/
@ApiModelProperty(required = true, value = "")
public String getCreatedBy() {
return createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
public Algorithm dataset(String dataset) {
this.dataset = dataset;
return this;
}
/**
* Get dataset
* @return dataset
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getDataset() {
return dataset;
}
public void setDataset(String dataset) {
this.dataset = dataset;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Algorithm algorithm = (Algorithm) o;
return Objects.equals(this.id, algorithm.id) &&
Objects.equals(this.classifier, algorithm.classifier) &&
Objects.equals(this.description, algorithm.description) &&
Objects.equals(this.version, algorithm.version) &&
Objects.equals(this.status, algorithm.status) &&
Objects.equals(this.createdAt, algorithm.createdAt) &&
Objects.equals(this.createdBy, algorithm.createdBy) &&
Objects.equals(this.dataset, algorithm.dataset);
}
@Override
public int hashCode() {
return Objects.hash(id, classifier, description, version, status, createdAt, createdBy, dataset);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Algorithm {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" classifier: ").append(toIndentedString(classifier)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n");
sb.append(" dataset: ").append(toIndentedString(dataset)).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 ");
}
}