com.factset.sdk.FactSetPrivateMarkets.models.EntityMatchRequestInput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of factsetprivatemarkets Show documentation
Show all versions of factsetprivatemarkets Show documentation
FactSet SDK for Java - factsetprivatemarkets
The newest version!
/*
* FactSet Private Markets API
* FactSet Private Markets API encompasses Private Company Financials data to start. Private Company firmographics can be found in the FactSet Entity API. The future plans of this service will include additional Private Markets data, such as Private Equity/Venture Capital.Rate limit is set to 10 requests per second.
*
* The version of the OpenAPI document: 1.2.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.FactSetPrivateMarkets.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.FactSetPrivateMarkets.JSON;
/**
* EntityMatchRequestInput
*/
@JsonPropertyOrder({
EntityMatchRequestInput.JSON_PROPERTY_NAME,
EntityMatchRequestInput.JSON_PROPERTY_COUNTRY
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class EntityMatchRequestInput implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_COUNTRY = "country";
private String country;
public EntityMatchRequestInput() {
}
@JsonCreator
public EntityMatchRequestInput(
@JsonProperty(value=JSON_PROPERTY_NAME, required=true) String name
) {
this();
this.name = name;
}
public EntityMatchRequestInput name(String name) {
this.name = name;
return this;
}
/**
* The Name of the entity to match.
* @return name
**/
@jakarta.annotation.Nonnull
@ApiModelProperty(example = "Amazon", required = true, value = "The Name of the entity to match.")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getName() {
return name;
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(String name) {
this.name = name;
}
public EntityMatchRequestInput country(String country) {
this.country = country;
return this;
}
/**
* ISO2 country code corresponding to the entity name that is used when evaluating candidates for a match. For a list of ISO Country codes, visit [OA 8754](https://my.apps.factset.com/oa/pages/8754).
* @return country
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "US", value = "ISO2 country code corresponding to the entity name that is used when evaluating candidates for a match. For a list of ISO Country codes, visit [OA 8754](https://my.apps.factset.com/oa/pages/8754). ")
@JsonProperty(JSON_PROPERTY_COUNTRY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCountry() {
return country;
}
@JsonProperty(JSON_PROPERTY_COUNTRY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCountry(String country) {
this.country = country;
}
/**
* Return true if this EntityMatchRequest_input object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EntityMatchRequestInput entityMatchRequestInput = (EntityMatchRequestInput) o;
return Objects.equals(this.name, entityMatchRequestInput.name) &&
Objects.equals(this.country, entityMatchRequestInput.country);
}
@Override
public int hashCode() {
return Objects.hash(name, country);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EntityMatchRequestInput {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" country: ").append(toIndentedString(country)).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 ");
}
}