com.factset.sdk.IRNConfiguration.models.SubjectSummaryDto 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 org.openapitools.jackson.nullable.JsonNullable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.openapitools.jackson.nullable.JsonNullable;
import java.util.NoSuchElementException;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.factset.sdk.IRNConfiguration.JSON;
/**
* SubjectSummaryDto
*/
@JsonPropertyOrder({
SubjectSummaryDto.JSON_PROPERTY_ID,
SubjectSummaryDto.JSON_PROPERTY_NAME,
SubjectSummaryDto.JSON_PROPERTY_CODE,
SubjectSummaryDto.JSON_PROPERTY_IDENTIFIER_TYPE,
SubjectSummaryDto.JSON_PROPERTY_IDENTIFIER_TYPES,
SubjectSummaryDto.JSON_PROPERTY_TYPE,
SubjectSummaryDto.JSON_PROPERTY_IS_HIDDEN,
SubjectSummaryDto.JSON_PROPERTY_CUSTOM_FIELD_IDS,
SubjectSummaryDto.JSON_PROPERTY_NOTE_LENGTH_LIMIT
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class SubjectSummaryDto implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_ID = "id";
private java.util.UUID id;
public static final String JSON_PROPERTY_NAME = "name";
private JsonNullable name = JsonNullable.undefined();
public static final String JSON_PROPERTY_CODE = "code";
private JsonNullable code = JsonNullable.undefined();
public static final String JSON_PROPERTY_IDENTIFIER_TYPE = "identifierType";
private JsonNullable identifierType = JsonNullable.undefined();
public static final String JSON_PROPERTY_IDENTIFIER_TYPES = "identifierTypes";
private JsonNullable> identifierTypes = JsonNullable.>undefined();
public static final String JSON_PROPERTY_TYPE = "type";
private JsonNullable type = JsonNullable.undefined();
public static final String JSON_PROPERTY_IS_HIDDEN = "isHidden";
private Boolean isHidden;
public static final String JSON_PROPERTY_CUSTOM_FIELD_IDS = "customFieldIds";
private JsonNullable> customFieldIds = JsonNullable.>undefined();
public static final String JSON_PROPERTY_NOTE_LENGTH_LIMIT = "noteLengthLimit";
private JsonNullable noteLengthLimit = JsonNullable.undefined();
public SubjectSummaryDto() {
}
public SubjectSummaryDto id(java.util.UUID id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public java.util.UUID getId() {
return id;
}
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(java.util.UUID id) {
this.id = id;
}
public SubjectSummaryDto name(String name) {
this.name = JsonNullable.of(name);
return this;
}
/**
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public String getName() {
return name.orElse(null);
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getName_JsonNullable() {
return name;
}
@JsonProperty(JSON_PROPERTY_NAME)
public void setName_JsonNullable(JsonNullable name) {
this.name = name;
}
public void setName(String name) {
this.name = JsonNullable.of(name);
}
public SubjectSummaryDto code(String code) {
this.code = JsonNullable.of(code);
return this;
}
/**
* Get code
* @return code
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public String getCode() {
return code.orElse(null);
}
@JsonProperty(JSON_PROPERTY_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getCode_JsonNullable() {
return code;
}
@JsonProperty(JSON_PROPERTY_CODE)
public void setCode_JsonNullable(JsonNullable code) {
this.code = code;
}
public void setCode(String code) {
this.code = JsonNullable.of(code);
}
public SubjectSummaryDto identifierType(String identifierType) {
this.identifierType = JsonNullable.of(identifierType);
return this;
}
/**
* Get identifierType
* @return identifierType
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public String getIdentifierType() {
return identifierType.orElse(null);
}
@JsonProperty(JSON_PROPERTY_IDENTIFIER_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getIdentifierType_JsonNullable() {
return identifierType;
}
@JsonProperty(JSON_PROPERTY_IDENTIFIER_TYPE)
public void setIdentifierType_JsonNullable(JsonNullable identifierType) {
this.identifierType = identifierType;
}
public void setIdentifierType(String identifierType) {
this.identifierType = JsonNullable.of(identifierType);
}
public SubjectSummaryDto identifierTypes(java.util.List identifierTypes) {
this.identifierTypes = JsonNullable.>of(identifierTypes);
return this;
}
public SubjectSummaryDto addIdentifierTypesItem(String identifierTypesItem) {
if (this.identifierTypes == null || !this.identifierTypes.isPresent()) {
this.identifierTypes = JsonNullable.>of(new java.util.ArrayList<>());
}
try {
this.identifierTypes.get().add(identifierTypesItem);
} catch (java.util.NoSuchElementException e) {
// this can never happen, as we make sure above that the value is present
}
return this;
}
/**
* Get identifierTypes
* @return identifierTypes
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public java.util.List getIdentifierTypes() {
return identifierTypes.orElse(null);
}
@JsonProperty(JSON_PROPERTY_IDENTIFIER_TYPES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable> getIdentifierTypes_JsonNullable() {
return identifierTypes;
}
@JsonProperty(JSON_PROPERTY_IDENTIFIER_TYPES)
public void setIdentifierTypes_JsonNullable(JsonNullable> identifierTypes) {
this.identifierTypes = identifierTypes;
}
public void setIdentifierTypes(java.util.List identifierTypes) {
this.identifierTypes = JsonNullable.>of(identifierTypes);
}
public SubjectSummaryDto type(String type) {
this.type = JsonNullable.of(type);
return this;
}
/**
* Get type
* @return type
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public String getType() {
return type.orElse(null);
}
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getType_JsonNullable() {
return type;
}
@JsonProperty(JSON_PROPERTY_TYPE)
public void setType_JsonNullable(JsonNullable type) {
this.type = type;
}
public void setType(String type) {
this.type = JsonNullable.of(type);
}
public SubjectSummaryDto isHidden(Boolean isHidden) {
this.isHidden = isHidden;
return this;
}
/**
* Get isHidden
* @return isHidden
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_IS_HIDDEN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getIsHidden() {
return isHidden;
}
@JsonProperty(JSON_PROPERTY_IS_HIDDEN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIsHidden(Boolean isHidden) {
this.isHidden = isHidden;
}
public SubjectSummaryDto customFieldIds(java.util.List customFieldIds) {
this.customFieldIds = JsonNullable.>of(customFieldIds);
return this;
}
public SubjectSummaryDto addCustomFieldIdsItem(java.util.UUID customFieldIdsItem) {
if (this.customFieldIds == null || !this.customFieldIds.isPresent()) {
this.customFieldIds = JsonNullable.>of(new java.util.ArrayList<>());
}
try {
this.customFieldIds.get().add(customFieldIdsItem);
} catch (java.util.NoSuchElementException e) {
// this can never happen, as we make sure above that the value is present
}
return this;
}
/**
* Get customFieldIds
* @return customFieldIds
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public java.util.List getCustomFieldIds() {
return customFieldIds.orElse(null);
}
@JsonProperty(JSON_PROPERTY_CUSTOM_FIELD_IDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable> getCustomFieldIds_JsonNullable() {
return customFieldIds;
}
@JsonProperty(JSON_PROPERTY_CUSTOM_FIELD_IDS)
public void setCustomFieldIds_JsonNullable(JsonNullable> customFieldIds) {
this.customFieldIds = customFieldIds;
}
public void setCustomFieldIds(java.util.List customFieldIds) {
this.customFieldIds = JsonNullable.>of(customFieldIds);
}
public SubjectSummaryDto noteLengthLimit(Integer noteLengthLimit) {
this.noteLengthLimit = JsonNullable.of(noteLengthLimit);
return this;
}
/**
* Get noteLengthLimit
* @return noteLengthLimit
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public Integer getNoteLengthLimit() {
return noteLengthLimit.orElse(null);
}
@JsonProperty(JSON_PROPERTY_NOTE_LENGTH_LIMIT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getNoteLengthLimit_JsonNullable() {
return noteLengthLimit;
}
@JsonProperty(JSON_PROPERTY_NOTE_LENGTH_LIMIT)
public void setNoteLengthLimit_JsonNullable(JsonNullable noteLengthLimit) {
this.noteLengthLimit = noteLengthLimit;
}
public void setNoteLengthLimit(Integer noteLengthLimit) {
this.noteLengthLimit = JsonNullable.of(noteLengthLimit);
}
/**
* Return true if this SubjectSummaryDto object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SubjectSummaryDto subjectSummaryDto = (SubjectSummaryDto) o;
return Objects.equals(this.id, subjectSummaryDto.id) &&
equalsNullable(this.name, subjectSummaryDto.name) &&
equalsNullable(this.code, subjectSummaryDto.code) &&
equalsNullable(this.identifierType, subjectSummaryDto.identifierType) &&
equalsNullable(this.identifierTypes, subjectSummaryDto.identifierTypes) &&
equalsNullable(this.type, subjectSummaryDto.type) &&
Objects.equals(this.isHidden, subjectSummaryDto.isHidden) &&
equalsNullable(this.customFieldIds, subjectSummaryDto.customFieldIds) &&
equalsNullable(this.noteLengthLimit, subjectSummaryDto.noteLengthLimit);
}
private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
}
@Override
public int hashCode() {
return Objects.hash(id, hashCodeNullable(name), hashCodeNullable(code), hashCodeNullable(identifierType), hashCodeNullable(identifierTypes), hashCodeNullable(type), isHidden, hashCodeNullable(customFieldIds), hashCodeNullable(noteLengthLimit));
}
private static int hashCodeNullable(JsonNullable a) {
if (a == null) {
return 1;
}
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SubjectSummaryDto {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" identifierType: ").append(toIndentedString(identifierType)).append("\n");
sb.append(" identifierTypes: ").append(toIndentedString(identifierTypes)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" isHidden: ").append(toIndentedString(isHidden)).append("\n");
sb.append(" customFieldIds: ").append(toIndentedString(customFieldIds)).append("\n");
sb.append(" noteLengthLimit: ").append(toIndentedString(noteLengthLimit)).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 ");
}
}