factset.analyticsapi.engines.models.VaultDateParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of engines-sdk Show documentation
Show all versions of engines-sdk Show documentation
SDK for FactSet Analytics Engines API
/*
* Engines API
* Allow clients to fetch Analytics through APIs.
*
* The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab]
* 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 factset.analyticsapi.engines.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 factset.analyticsapi.engines.JSON;
/**
* The date parameters for Vault calculation
*/
@ApiModel(description = "The date parameters for Vault calculation")
@JsonPropertyOrder({
VaultDateParameters.JSON_PROPERTY_STARTDATE,
VaultDateParameters.JSON_PROPERTY_ENDDATE,
VaultDateParameters.JSON_PROPERTY_FREQUENCY
})
@javax.annotation.Generated(value = "CustomJavaClientCodegen")
public class VaultDateParameters implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_STARTDATE = "startdate";
private String startdate;
public static final String JSON_PROPERTY_ENDDATE = "enddate";
private String enddate;
public static final String JSON_PROPERTY_FREQUENCY = "frequency";
private String frequency;
public VaultDateParameters startdate(String startdate) {
this.startdate = startdate;
return this;
}
/**
* Calculation's start date.
* @return startdate
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Calculation's start date.")
@JsonProperty(JSON_PROPERTY_STARTDATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getStartdate() {
return startdate;
}
public void setStartdate(String startdate) {
this.startdate = startdate;
}
public VaultDateParameters enddate(String enddate) {
this.enddate = enddate;
return this;
}
/**
* Calculation's end date.
* @return enddate
**/
@ApiModelProperty(required = true, value = "Calculation's end date.")
@JsonProperty(JSON_PROPERTY_ENDDATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getEnddate() {
return enddate;
}
public void setEnddate(String enddate) {
this.enddate = enddate;
}
public VaultDateParameters frequency(String frequency) {
this.frequency = frequency;
return this;
}
/**
* Calculation's frequency.
* @return frequency
**/
@ApiModelProperty(required = true, value = "Calculation's frequency.")
@JsonProperty(JSON_PROPERTY_FREQUENCY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getFrequency() {
return frequency;
}
public void setFrequency(String frequency) {
this.frequency = frequency;
}
/**
* Return true if this VaultDateParameters object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
VaultDateParameters vaultDateParameters = (VaultDateParameters) o;
return Objects.equals(this.startdate, vaultDateParameters.startdate) &&
Objects.equals(this.enddate, vaultDateParameters.enddate) &&
Objects.equals(this.frequency, vaultDateParameters.frequency);
}
@Override
public int hashCode() {
return Objects.hash(startdate, enddate, frequency);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class VaultDateParameters {\n");
sb.append(" startdate: ").append(toIndentedString(startdate)).append("\n");
sb.append(" enddate: ").append(toIndentedString(enddate)).append("\n");
sb.append(" frequency: ").append(toIndentedString(frequency)).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 ");
}
}