com.factset.sdk.Signals.models.EventDetailDataItemAllOf Maven / Gradle / Ivy
/*
* Signals API
* Collection of endpoints for providing Signal Events, Definitions and Metadata
*
* The version of the OpenAPI document: 2.6.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.Signals.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.time.OffsetDateTime;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.factset.sdk.Signals.JSON;
/**
* EventDetailDataItemAllOf
*/
@JsonPropertyOrder({
EventDetailDataItemAllOf.JSON_PROPERTY_CREATED,
EventDetailDataItemAllOf.JSON_PROPERTY_UPDATED,
EventDetailDataItemAllOf.JSON_PROPERTY_DETAILS
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class EventDetailDataItemAllOf implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_CREATED = "created";
private OffsetDateTime created;
public static final String JSON_PROPERTY_UPDATED = "updated";
private OffsetDateTime updated;
public static final String JSON_PROPERTY_DETAILS = "details";
private java.util.Map details = new java.util.HashMap<>();
public EventDetailDataItemAllOf() {
}
@JsonCreator
public EventDetailDataItemAllOf(
@JsonProperty(value=JSON_PROPERTY_CREATED, required=true) OffsetDateTime created,
@JsonProperty(value=JSON_PROPERTY_UPDATED, required=true) OffsetDateTime updated,
@JsonProperty(value=JSON_PROPERTY_DETAILS, required=true) java.util.Map details
) {
this();
this.created = created;
this.updated = updated;
this.details = details;
}
public EventDetailDataItemAllOf created(OffsetDateTime created) {
this.created = created;
return this;
}
/**
* Date/Time in UTC the event was first recorded in our data store.
* @return created
**/
@jakarta.annotation.Nonnull
@ApiModelProperty(example = "2021-04-26T06:39:40.094Z", required = true, value = "Date/Time in UTC the event was first recorded in our data store.")
@JsonProperty(JSON_PROPERTY_CREATED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public OffsetDateTime getCreated() {
return created;
}
@JsonProperty(JSON_PROPERTY_CREATED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCreated(OffsetDateTime created) {
this.created = created;
}
public EventDetailDataItemAllOf updated(OffsetDateTime updated) {
this.updated = updated;
return this;
}
/**
* Date/Time in UTC the event was last updated.
* @return updated
**/
@jakarta.annotation.Nonnull
@ApiModelProperty(example = "2021-04-26T06:39:40.094Z", required = true, value = "Date/Time in UTC the event was last updated.")
@JsonProperty(JSON_PROPERTY_UPDATED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public OffsetDateTime getUpdated() {
return updated;
}
@JsonProperty(JSON_PROPERTY_UPDATED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setUpdated(OffsetDateTime updated) {
this.updated = updated;
}
public EventDetailDataItemAllOf details(java.util.Map details) {
this.details = details;
return this;
}
public EventDetailDataItemAllOf putDetailsItem(String key, Object detailsItem) {
this.details.put(key, detailsItem);
return this;
}
/**
* Signal specific event properties.
* @return details
**/
@jakarta.annotation.Nonnull
@ApiModelProperty(required = true, value = "Signal specific event properties.")
@JsonProperty(JSON_PROPERTY_DETAILS)
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS)
public java.util.Map getDetails() {
return details;
}
@JsonProperty(JSON_PROPERTY_DETAILS)
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS)
public void setDetails(java.util.Map details) {
this.details = details;
}
/**
* Return true if this eventDetailDataItem_allOf object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EventDetailDataItemAllOf eventDetailDataItemAllOf = (EventDetailDataItemAllOf) o;
return Objects.equals(this.created, eventDetailDataItemAllOf.created) &&
Objects.equals(this.updated, eventDetailDataItemAllOf.updated) &&
Objects.equals(this.details, eventDetailDataItemAllOf.details);
}
@Override
public int hashCode() {
return Objects.hash(created, updated, details);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EventDetailDataItemAllOf {\n");
sb.append(" created: ").append(toIndentedString(created)).append("\n");
sb.append(" updated: ").append(toIndentedString(updated)).append("\n");
sb.append(" details: ").append(toIndentedString(details)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy