All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.factset.sdk.IRNConfiguration.models.SymbolsRelationshipDto Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
/*
 * 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;


/**
 * SymbolsRelationshipDto
 */
@JsonPropertyOrder({
  SymbolsRelationshipDto.JSON_PROPERTY_ID,
  SymbolsRelationshipDto.JSON_PROPERTY_RELATIONSHIP_CODE,
  SymbolsRelationshipDto.JSON_PROPERTY_PARENT_TO_CHILD_NAME,
  SymbolsRelationshipDto.JSON_PROPERTY_CHILD_TO_PARENT_NAME,
  SymbolsRelationshipDto.JSON_PROPERTY_PEER_NAME,
  SymbolsRelationshipDto.JSON_PROPERTY_HIDE_DATES,
  SymbolsRelationshipDto.JSON_PROPERTY_HIDE_COMMENT
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class SymbolsRelationshipDto 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_RELATIONSHIP_CODE = "relationshipCode";
  private JsonNullable relationshipCode = JsonNullable.undefined();

  public static final String JSON_PROPERTY_PARENT_TO_CHILD_NAME = "parentToChildName";
  private JsonNullable parentToChildName = JsonNullable.undefined();

  public static final String JSON_PROPERTY_CHILD_TO_PARENT_NAME = "childToParentName";
  private JsonNullable childToParentName = JsonNullable.undefined();

  public static final String JSON_PROPERTY_PEER_NAME = "peerName";
  private JsonNullable peerName = JsonNullable.undefined();

  public static final String JSON_PROPERTY_HIDE_DATES = "hideDates";
  private Boolean hideDates;

  public static final String JSON_PROPERTY_HIDE_COMMENT = "hideComment";
  private Boolean hideComment;

  public SymbolsRelationshipDto() { 
  }

  public SymbolsRelationshipDto 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 SymbolsRelationshipDto relationshipCode(String relationshipCode) {
    this.relationshipCode = JsonNullable.of(relationshipCode);
    return this;
  }

   /**
   * Get relationshipCode
   * @return relationshipCode
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonIgnore

  public String getRelationshipCode() {
        return relationshipCode.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_RELATIONSHIP_CODE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable getRelationshipCode_JsonNullable() {
    return relationshipCode;
  }
  
  @JsonProperty(JSON_PROPERTY_RELATIONSHIP_CODE)
  public void setRelationshipCode_JsonNullable(JsonNullable relationshipCode) {
    this.relationshipCode = relationshipCode;
  }

  public void setRelationshipCode(String relationshipCode) {
    this.relationshipCode = JsonNullable.of(relationshipCode);
  }


  public SymbolsRelationshipDto parentToChildName(String parentToChildName) {
    this.parentToChildName = JsonNullable.of(parentToChildName);
    return this;
  }

   /**
   * Get parentToChildName
   * @return parentToChildName
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonIgnore

  public String getParentToChildName() {
        return parentToChildName.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_PARENT_TO_CHILD_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable getParentToChildName_JsonNullable() {
    return parentToChildName;
  }
  
  @JsonProperty(JSON_PROPERTY_PARENT_TO_CHILD_NAME)
  public void setParentToChildName_JsonNullable(JsonNullable parentToChildName) {
    this.parentToChildName = parentToChildName;
  }

  public void setParentToChildName(String parentToChildName) {
    this.parentToChildName = JsonNullable.of(parentToChildName);
  }


  public SymbolsRelationshipDto childToParentName(String childToParentName) {
    this.childToParentName = JsonNullable.of(childToParentName);
    return this;
  }

   /**
   * Get childToParentName
   * @return childToParentName
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonIgnore

  public String getChildToParentName() {
        return childToParentName.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_CHILD_TO_PARENT_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable getChildToParentName_JsonNullable() {
    return childToParentName;
  }
  
  @JsonProperty(JSON_PROPERTY_CHILD_TO_PARENT_NAME)
  public void setChildToParentName_JsonNullable(JsonNullable childToParentName) {
    this.childToParentName = childToParentName;
  }

  public void setChildToParentName(String childToParentName) {
    this.childToParentName = JsonNullable.of(childToParentName);
  }


  public SymbolsRelationshipDto peerName(String peerName) {
    this.peerName = JsonNullable.of(peerName);
    return this;
  }

   /**
   * Get peerName
   * @return peerName
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonIgnore

  public String getPeerName() {
        return peerName.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_PEER_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable getPeerName_JsonNullable() {
    return peerName;
  }
  
  @JsonProperty(JSON_PROPERTY_PEER_NAME)
  public void setPeerName_JsonNullable(JsonNullable peerName) {
    this.peerName = peerName;
  }

  public void setPeerName(String peerName) {
    this.peerName = JsonNullable.of(peerName);
  }


  public SymbolsRelationshipDto hideDates(Boolean hideDates) {
    this.hideDates = hideDates;
    return this;
  }

   /**
   * Get hideDates
   * @return hideDates
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_HIDE_DATES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean getHideDates() {
    return hideDates;
  }


  @JsonProperty(JSON_PROPERTY_HIDE_DATES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setHideDates(Boolean hideDates) {
    this.hideDates = hideDates;
  }


  public SymbolsRelationshipDto hideComment(Boolean hideComment) {
    this.hideComment = hideComment;
    return this;
  }

   /**
   * Get hideComment
   * @return hideComment
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_HIDE_COMMENT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean getHideComment() {
    return hideComment;
  }


  @JsonProperty(JSON_PROPERTY_HIDE_COMMENT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setHideComment(Boolean hideComment) {
    this.hideComment = hideComment;
  }


  /**
   * Return true if this SymbolsRelationshipDto object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SymbolsRelationshipDto symbolsRelationshipDto = (SymbolsRelationshipDto) o;
    return Objects.equals(this.id, symbolsRelationshipDto.id) &&
        equalsNullable(this.relationshipCode, symbolsRelationshipDto.relationshipCode) &&
        equalsNullable(this.parentToChildName, symbolsRelationshipDto.parentToChildName) &&
        equalsNullable(this.childToParentName, symbolsRelationshipDto.childToParentName) &&
        equalsNullable(this.peerName, symbolsRelationshipDto.peerName) &&
        Objects.equals(this.hideDates, symbolsRelationshipDto.hideDates) &&
        Objects.equals(this.hideComment, symbolsRelationshipDto.hideComment);
  }

  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(relationshipCode), hashCodeNullable(parentToChildName), hashCodeNullable(childToParentName), hashCodeNullable(peerName), hideDates, hideComment);
  }

  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 SymbolsRelationshipDto {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    relationshipCode: ").append(toIndentedString(relationshipCode)).append("\n");
    sb.append("    parentToChildName: ").append(toIndentedString(parentToChildName)).append("\n");
    sb.append("    childToParentName: ").append(toIndentedString(childToParentName)).append("\n");
    sb.append("    peerName: ").append(toIndentedString(peerName)).append("\n");
    sb.append("    hideDates: ").append(toIndentedString(hideDates)).append("\n");
    sb.append("    hideComment: ").append(toIndentedString(hideComment)).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 - 2024 Weber Informatics LLC | Privacy Policy