com.factset.sdk.IRNNotes.models.NoteSummaryDto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of irnnotes Show documentation
Show all versions of irnnotes Show documentation
FactSet SDK for Java - irnnotes
/*
* IRN API v1
* Allows users to extract, create, update and configure IRN data.
*
* The version of the OpenAPI document: 1
* 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.IRNNotes.models;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.factset.sdk.IRNNotes.models.CustomFieldValueDto;
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.IRNNotes.JSON;
/**
* NoteSummaryDto
*/
@JsonPropertyOrder({
NoteSummaryDto.JSON_PROPERTY_ID,
NoteSummaryDto.JSON_PROPERTY_DATE,
NoteSummaryDto.JSON_PROPERTY_CREATED_AT,
NoteSummaryDto.JSON_PROPERTY_AUTHOR_ID,
NoteSummaryDto.JSON_PROPERTY_CONTRIBUTOR_ID,
NoteSummaryDto.JSON_PROPERTY_TITLE,
NoteSummaryDto.JSON_PROPERTY_IDENTIFIER,
NoteSummaryDto.JSON_PROPERTY_SUBJECT_ID,
NoteSummaryDto.JSON_PROPERTY_IS_PERSONAL,
NoteSummaryDto.JSON_PROPERTY_STATE,
NoteSummaryDto.JSON_PROPERTY_APPROVAL_STATUS,
NoteSummaryDto.JSON_PROPERTY_ATTACHMENT_IDS,
NoteSummaryDto.JSON_PROPERTY_RELATED_SYMBOLS,
NoteSummaryDto.JSON_PROPERTY_RECOMMENDATION_ID,
NoteSummaryDto.JSON_PROPERTY_SENTIMENT_ID,
NoteSummaryDto.JSON_PROPERTY_CUSTOM_FIELDS
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class NoteSummaryDto 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_DATE = "date";
private JsonNullable date = JsonNullable.undefined();
public static final String JSON_PROPERTY_CREATED_AT = "createdAt";
private JsonNullable createdAt = JsonNullable.undefined();
public static final String JSON_PROPERTY_AUTHOR_ID = "authorId";
private java.util.UUID authorId;
public static final String JSON_PROPERTY_CONTRIBUTOR_ID = "contributorId";
private java.util.UUID contributorId;
public static final String JSON_PROPERTY_TITLE = "title";
private JsonNullable title = JsonNullable.undefined();
public static final String JSON_PROPERTY_IDENTIFIER = "identifier";
private JsonNullable identifier = JsonNullable.undefined();
public static final String JSON_PROPERTY_SUBJECT_ID = "subjectId";
private java.util.UUID subjectId;
public static final String JSON_PROPERTY_IS_PERSONAL = "isPersonal";
private Boolean isPersonal;
public static final String JSON_PROPERTY_STATE = "state";
private JsonNullable state = JsonNullable.undefined();
public static final String JSON_PROPERTY_APPROVAL_STATUS = "approvalStatus";
private JsonNullable approvalStatus = JsonNullable.undefined();
public static final String JSON_PROPERTY_ATTACHMENT_IDS = "attachmentIds";
private JsonNullable> attachmentIds = JsonNullable.>undefined();
public static final String JSON_PROPERTY_RELATED_SYMBOLS = "relatedSymbols";
private JsonNullable> relatedSymbols = JsonNullable.>undefined();
public static final String JSON_PROPERTY_RECOMMENDATION_ID = "recommendationId";
private java.util.UUID recommendationId;
public static final String JSON_PROPERTY_SENTIMENT_ID = "sentimentId";
private java.util.UUID sentimentId;
public static final String JSON_PROPERTY_CUSTOM_FIELDS = "customFields";
private JsonNullable> customFields = JsonNullable.>undefined();
public NoteSummaryDto() {
}
public NoteSummaryDto id(java.util.UUID id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@jakarta.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 NoteSummaryDto date(String date) {
this.date = JsonNullable.of(date);
return this;
}
/**
* Get date
* @return date
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public String getDate() {
return date.orElse(null);
}
@JsonProperty(JSON_PROPERTY_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getDate_JsonNullable() {
return date;
}
@JsonProperty(JSON_PROPERTY_DATE)
public void setDate_JsonNullable(JsonNullable date) {
this.date = date;
}
public void setDate(String date) {
this.date = JsonNullable.of(date);
}
public NoteSummaryDto createdAt(String createdAt) {
this.createdAt = JsonNullable.of(createdAt);
return this;
}
/**
* Get createdAt
* @return createdAt
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public String getCreatedAt() {
return createdAt.orElse(null);
}
@JsonProperty(JSON_PROPERTY_CREATED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getCreatedAt_JsonNullable() {
return createdAt;
}
@JsonProperty(JSON_PROPERTY_CREATED_AT)
public void setCreatedAt_JsonNullable(JsonNullable createdAt) {
this.createdAt = createdAt;
}
public void setCreatedAt(String createdAt) {
this.createdAt = JsonNullable.of(createdAt);
}
public NoteSummaryDto authorId(java.util.UUID authorId) {
this.authorId = authorId;
return this;
}
/**
* Get authorId
* @return authorId
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_AUTHOR_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public java.util.UUID getAuthorId() {
return authorId;
}
@JsonProperty(JSON_PROPERTY_AUTHOR_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAuthorId(java.util.UUID authorId) {
this.authorId = authorId;
}
public NoteSummaryDto contributorId(java.util.UUID contributorId) {
this.contributorId = contributorId;
return this;
}
/**
* Get contributorId
* @return contributorId
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CONTRIBUTOR_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public java.util.UUID getContributorId() {
return contributorId;
}
@JsonProperty(JSON_PROPERTY_CONTRIBUTOR_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setContributorId(java.util.UUID contributorId) {
this.contributorId = contributorId;
}
public NoteSummaryDto title(String title) {
this.title = JsonNullable.of(title);
return this;
}
/**
* Get title
* @return title
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public String getTitle() {
return title.orElse(null);
}
@JsonProperty(JSON_PROPERTY_TITLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getTitle_JsonNullable() {
return title;
}
@JsonProperty(JSON_PROPERTY_TITLE)
public void setTitle_JsonNullable(JsonNullable title) {
this.title = title;
}
public void setTitle(String title) {
this.title = JsonNullable.of(title);
}
public NoteSummaryDto identifier(String identifier) {
this.identifier = JsonNullable.of(identifier);
return this;
}
/**
* Get identifier
* @return identifier
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public String getIdentifier() {
return identifier.orElse(null);
}
@JsonProperty(JSON_PROPERTY_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getIdentifier_JsonNullable() {
return identifier;
}
@JsonProperty(JSON_PROPERTY_IDENTIFIER)
public void setIdentifier_JsonNullable(JsonNullable identifier) {
this.identifier = identifier;
}
public void setIdentifier(String identifier) {
this.identifier = JsonNullable.of(identifier);
}
public NoteSummaryDto subjectId(java.util.UUID subjectId) {
this.subjectId = subjectId;
return this;
}
/**
* Get subjectId
* @return subjectId
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SUBJECT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public java.util.UUID getSubjectId() {
return subjectId;
}
@JsonProperty(JSON_PROPERTY_SUBJECT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSubjectId(java.util.UUID subjectId) {
this.subjectId = subjectId;
}
public NoteSummaryDto isPersonal(Boolean isPersonal) {
this.isPersonal = isPersonal;
return this;
}
/**
* Get isPersonal
* @return isPersonal
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_IS_PERSONAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getIsPersonal() {
return isPersonal;
}
@JsonProperty(JSON_PROPERTY_IS_PERSONAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIsPersonal(Boolean isPersonal) {
this.isPersonal = isPersonal;
}
public NoteSummaryDto state(String state) {
this.state = JsonNullable.of(state);
return this;
}
/**
* Get state
* @return state
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public String getState() {
return state.orElse(null);
}
@JsonProperty(JSON_PROPERTY_STATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getState_JsonNullable() {
return state;
}
@JsonProperty(JSON_PROPERTY_STATE)
public void setState_JsonNullable(JsonNullable state) {
this.state = state;
}
public void setState(String state) {
this.state = JsonNullable.of(state);
}
public NoteSummaryDto approvalStatus(String approvalStatus) {
this.approvalStatus = JsonNullable.of(approvalStatus);
return this;
}
/**
* Get approvalStatus
* @return approvalStatus
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public String getApprovalStatus() {
return approvalStatus.orElse(null);
}
@JsonProperty(JSON_PROPERTY_APPROVAL_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getApprovalStatus_JsonNullable() {
return approvalStatus;
}
@JsonProperty(JSON_PROPERTY_APPROVAL_STATUS)
public void setApprovalStatus_JsonNullable(JsonNullable approvalStatus) {
this.approvalStatus = approvalStatus;
}
public void setApprovalStatus(String approvalStatus) {
this.approvalStatus = JsonNullable.of(approvalStatus);
}
public NoteSummaryDto attachmentIds(java.util.List attachmentIds) {
this.attachmentIds = JsonNullable.>of(attachmentIds);
return this;
}
public NoteSummaryDto addAttachmentIdsItem(java.util.UUID attachmentIdsItem) {
if (this.attachmentIds == null || !this.attachmentIds.isPresent()) {
this.attachmentIds = JsonNullable.>of(new java.util.ArrayList<>());
}
try {
this.attachmentIds.get().add(attachmentIdsItem);
} catch (java.util.NoSuchElementException e) {
// this can never happen, as we make sure above that the value is present
}
return this;
}
/**
* Get attachmentIds
* @return attachmentIds
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public java.util.List getAttachmentIds() {
return attachmentIds.orElse(null);
}
@JsonProperty(JSON_PROPERTY_ATTACHMENT_IDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable> getAttachmentIds_JsonNullable() {
return attachmentIds;
}
@JsonProperty(JSON_PROPERTY_ATTACHMENT_IDS)
public void setAttachmentIds_JsonNullable(JsonNullable> attachmentIds) {
this.attachmentIds = attachmentIds;
}
public void setAttachmentIds(java.util.List attachmentIds) {
this.attachmentIds = JsonNullable.>of(attachmentIds);
}
public NoteSummaryDto relatedSymbols(java.util.List relatedSymbols) {
this.relatedSymbols = JsonNullable.>of(relatedSymbols);
return this;
}
public NoteSummaryDto addRelatedSymbolsItem(String relatedSymbolsItem) {
if (this.relatedSymbols == null || !this.relatedSymbols.isPresent()) {
this.relatedSymbols = JsonNullable.>of(new java.util.ArrayList<>());
}
try {
this.relatedSymbols.get().add(relatedSymbolsItem);
} catch (java.util.NoSuchElementException e) {
// this can never happen, as we make sure above that the value is present
}
return this;
}
/**
* Get relatedSymbols
* @return relatedSymbols
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public java.util.List getRelatedSymbols() {
return relatedSymbols.orElse(null);
}
@JsonProperty(JSON_PROPERTY_RELATED_SYMBOLS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable> getRelatedSymbols_JsonNullable() {
return relatedSymbols;
}
@JsonProperty(JSON_PROPERTY_RELATED_SYMBOLS)
public void setRelatedSymbols_JsonNullable(JsonNullable> relatedSymbols) {
this.relatedSymbols = relatedSymbols;
}
public void setRelatedSymbols(java.util.List relatedSymbols) {
this.relatedSymbols = JsonNullable.>of(relatedSymbols);
}
public NoteSummaryDto recommendationId(java.util.UUID recommendationId) {
this.recommendationId = recommendationId;
return this;
}
/**
* Get recommendationId
* @return recommendationId
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_RECOMMENDATION_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public java.util.UUID getRecommendationId() {
return recommendationId;
}
@JsonProperty(JSON_PROPERTY_RECOMMENDATION_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRecommendationId(java.util.UUID recommendationId) {
this.recommendationId = recommendationId;
}
public NoteSummaryDto sentimentId(java.util.UUID sentimentId) {
this.sentimentId = sentimentId;
return this;
}
/**
* Get sentimentId
* @return sentimentId
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SENTIMENT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public java.util.UUID getSentimentId() {
return sentimentId;
}
@JsonProperty(JSON_PROPERTY_SENTIMENT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSentimentId(java.util.UUID sentimentId) {
this.sentimentId = sentimentId;
}
public NoteSummaryDto customFields(java.util.List customFields) {
this.customFields = JsonNullable.>of(customFields);
return this;
}
public NoteSummaryDto addCustomFieldsItem(CustomFieldValueDto customFieldsItem) {
if (this.customFields == null || !this.customFields.isPresent()) {
this.customFields = JsonNullable.>of(new java.util.ArrayList<>());
}
try {
this.customFields.get().add(customFieldsItem);
} catch (java.util.NoSuchElementException e) {
// this can never happen, as we make sure above that the value is present
}
return this;
}
/**
* Get customFields
* @return customFields
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public java.util.List getCustomFields() {
return customFields.orElse(null);
}
@JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable> getCustomFields_JsonNullable() {
return customFields;
}
@JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS)
public void setCustomFields_JsonNullable(JsonNullable> customFields) {
this.customFields = customFields;
}
public void setCustomFields(java.util.List customFields) {
this.customFields = JsonNullable.>of(customFields);
}
/**
* Return true if this NoteSummaryDto object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
NoteSummaryDto noteSummaryDto = (NoteSummaryDto) o;
return Objects.equals(this.id, noteSummaryDto.id) &&
equalsNullable(this.date, noteSummaryDto.date) &&
equalsNullable(this.createdAt, noteSummaryDto.createdAt) &&
Objects.equals(this.authorId, noteSummaryDto.authorId) &&
Objects.equals(this.contributorId, noteSummaryDto.contributorId) &&
equalsNullable(this.title, noteSummaryDto.title) &&
equalsNullable(this.identifier, noteSummaryDto.identifier) &&
Objects.equals(this.subjectId, noteSummaryDto.subjectId) &&
Objects.equals(this.isPersonal, noteSummaryDto.isPersonal) &&
equalsNullable(this.state, noteSummaryDto.state) &&
equalsNullable(this.approvalStatus, noteSummaryDto.approvalStatus) &&
equalsNullable(this.attachmentIds, noteSummaryDto.attachmentIds) &&
equalsNullable(this.relatedSymbols, noteSummaryDto.relatedSymbols) &&
Objects.equals(this.recommendationId, noteSummaryDto.recommendationId) &&
Objects.equals(this.sentimentId, noteSummaryDto.sentimentId) &&
equalsNullable(this.customFields, noteSummaryDto.customFields);
}
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(date), hashCodeNullable(createdAt), authorId, contributorId, hashCodeNullable(title), hashCodeNullable(identifier), subjectId, isPersonal, hashCodeNullable(state), hashCodeNullable(approvalStatus), hashCodeNullable(attachmentIds), hashCodeNullable(relatedSymbols), recommendationId, sentimentId, hashCodeNullable(customFields));
}
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 NoteSummaryDto {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" date: ").append(toIndentedString(date)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" authorId: ").append(toIndentedString(authorId)).append("\n");
sb.append(" contributorId: ").append(toIndentedString(contributorId)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" identifier: ").append(toIndentedString(identifier)).append("\n");
sb.append(" subjectId: ").append(toIndentedString(subjectId)).append("\n");
sb.append(" isPersonal: ").append(toIndentedString(isPersonal)).append("\n");
sb.append(" state: ").append(toIndentedString(state)).append("\n");
sb.append(" approvalStatus: ").append(toIndentedString(approvalStatus)).append("\n");
sb.append(" attachmentIds: ").append(toIndentedString(attachmentIds)).append("\n");
sb.append(" relatedSymbols: ").append(toIndentedString(relatedSymbols)).append("\n");
sb.append(" recommendationId: ").append(toIndentedString(recommendationId)).append("\n");
sb.append(" sentimentId: ").append(toIndentedString(sentimentId)).append("\n");
sb.append(" customFields: ").append(toIndentedString(customFields)).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 ");
}
}