com.factset.sdk.OpenRisk.models.InlineResponse200Info Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openrisk Show documentation
Show all versions of openrisk Show documentation
FactSet SDK for Java - openrisk
/*
* Open:Risk API
* Service to calculate parametric linear risk statistics and generate risk model asset identifier mappings.
*
* The version of the OpenAPI document: 1.24.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.factset.sdk.OpenRisk.models;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.factset.sdk.OpenRisk.JSON;
/**
* InlineResponse200Info
*/
@JsonPropertyOrder({
InlineResponse200Info.JSON_PROPERTY_TITLE,
InlineResponse200Info.JSON_PROPERTY_DESCRIPTION,
InlineResponse200Info.JSON_PROPERTY_VERSION,
InlineResponse200Info.JSON_PROPERTY_CONTACT
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class InlineResponse200Info implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_TITLE = "title";
private String title;
public static final String JSON_PROPERTY_DESCRIPTION = "description";
private String description;
public static final String JSON_PROPERTY_VERSION = "version";
private String version;
public static final String JSON_PROPERTY_CONTACT = "contact";
private Object contact;
public InlineResponse200Info() {
}
@JsonCreator
public InlineResponse200Info(
@JsonProperty(value=JSON_PROPERTY_TITLE, required=true) String title,
@JsonProperty(value=JSON_PROPERTY_DESCRIPTION, required=true) String description,
@JsonProperty(value=JSON_PROPERTY_VERSION, required=true) String version,
@JsonProperty(value=JSON_PROPERTY_CONTACT, required=true) Object contact
) {
this();
this.title = title;
this.description = description;
this.version = version;
this.contact = contact;
}
public InlineResponse200Info title(String title) {
this.title = title;
return this;
}
/**
* Get title
* @return title
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_TITLE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getTitle() {
return title;
}
@JsonProperty(JSON_PROPERTY_TITLE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTitle(String title) {
this.title = title;
}
public InlineResponse200Info description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getDescription() {
return description;
}
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDescription(String description) {
this.description = description;
}
public InlineResponse200Info version(String version) {
this.version = version;
return this;
}
/**
* Get version
* @return version
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_VERSION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getVersion() {
return version;
}
@JsonProperty(JSON_PROPERTY_VERSION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setVersion(String version) {
this.version = version;
}
public InlineResponse200Info contact(Object contact) {
this.contact = contact;
return this;
}
/**
* Get contact
* @return contact
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_CONTACT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Object getContact() {
return contact;
}
@JsonProperty(JSON_PROPERTY_CONTACT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setContact(Object contact) {
this.contact = contact;
}
/**
* Return true if this inline_response_200_info object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
InlineResponse200Info inlineResponse200Info = (InlineResponse200Info) o;
return Objects.equals(this.title, inlineResponse200Info.title) &&
Objects.equals(this.description, inlineResponse200Info.description) &&
Objects.equals(this.version, inlineResponse200Info.version) &&
Objects.equals(this.contact, inlineResponse200Info.contact);
}
@Override
public int hashCode() {
return Objects.hash(title, description, version, contact);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InlineResponse200Info {\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" contact: ").append(toIndentedString(contact)).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 ");
}
}