com.factset.sdk.IRNConfiguration.models.CustomSymbolCustomFieldFormulaConfigDto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of irnconfiguration Show documentation
Show all versions of irnconfiguration Show documentation
FactSet SDK for Java - irnconfiguration
/*
* IRN API v1
* Allows users to extract, create, update and configure IRN data.
*
* The version of the OpenAPI document: 1
*
*
* 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.IRNConfiguration.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.IRNConfiguration.JSON;
/**
* CustomSymbolCustomFieldFormulaConfigDto
*/
@JsonPropertyOrder({
CustomSymbolCustomFieldFormulaConfigDto.JSON_PROPERTY_FORMULA,
CustomSymbolCustomFieldFormulaConfigDto.JSON_PROPERTY_FORMULA_TYPE
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CustomSymbolCustomFieldFormulaConfigDto implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_FORMULA = "formula";
private String formula;
public static final String JSON_PROPERTY_FORMULA_TYPE = "formulaType";
private String formulaType;
public CustomSymbolCustomFieldFormulaConfigDto() {
}
@JsonCreator
public CustomSymbolCustomFieldFormulaConfigDto(
@JsonProperty(value=JSON_PROPERTY_FORMULA, required=true) String formula,
@JsonProperty(value=JSON_PROPERTY_FORMULA_TYPE, required=true) String formulaType
) {
this();
this.formula = formula;
this.formulaType = formulaType;
}
public CustomSymbolCustomFieldFormulaConfigDto formula(String formula) {
this.formula = formula;
return this;
}
/**
* Get formula
* @return formula
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_FORMULA)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getFormula() {
return formula;
}
@JsonProperty(JSON_PROPERTY_FORMULA)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setFormula(String formula) {
this.formula = formula;
}
public CustomSymbolCustomFieldFormulaConfigDto formulaType(String formulaType) {
this.formulaType = formulaType;
return this;
}
/**
* Get formulaType
* @return formulaType
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_FORMULA_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getFormulaType() {
return formulaType;
}
@JsonProperty(JSON_PROPERTY_FORMULA_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setFormulaType(String formulaType) {
this.formulaType = formulaType;
}
/**
* Return true if this CustomSymbolCustomFieldFormulaConfigDto object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CustomSymbolCustomFieldFormulaConfigDto customSymbolCustomFieldFormulaConfigDto = (CustomSymbolCustomFieldFormulaConfigDto) o;
return Objects.equals(this.formula, customSymbolCustomFieldFormulaConfigDto.formula) &&
Objects.equals(this.formulaType, customSymbolCustomFieldFormulaConfigDto.formulaType);
}
@Override
public int hashCode() {
return Objects.hash(formula, formulaType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CustomSymbolCustomFieldFormulaConfigDto {\n");
sb.append(" formula: ").append(toIndentedString(formula)).append("\n");
sb.append(" formulaType: ").append(toIndentedString(formulaType)).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 ");
}
}