com.factset.sdk.IRNConfiguration.models.RelationshipSaveDto 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;
/**
* RelationshipSaveDto
*/
@JsonPropertyOrder({
RelationshipSaveDto.JSON_PROPERTY_RELATIONSHIP_CATEGORY_ID,
RelationshipSaveDto.JSON_PROPERTY_RELATIONSHIP_CODE,
RelationshipSaveDto.JSON_PROPERTY_BIDIRECTIONAL_NAME,
RelationshipSaveDto.JSON_PROPERTY_LEFT_TO_RIGHT_NAME,
RelationshipSaveDto.JSON_PROPERTY_RIGHT_TO_LEFT_NAME,
RelationshipSaveDto.JSON_PROPERTY_HIDE_DATES,
RelationshipSaveDto.JSON_PROPERTY_HIDE_COMMENT,
RelationshipSaveDto.JSON_PROPERTY_HIDE_COMPANY
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class RelationshipSaveDto implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_RELATIONSHIP_CATEGORY_ID = "relationshipCategoryId";
private java.util.UUID relationshipCategoryId;
public static final String JSON_PROPERTY_RELATIONSHIP_CODE = "relationshipCode";
private JsonNullable relationshipCode = JsonNullable.undefined();
public static final String JSON_PROPERTY_BIDIRECTIONAL_NAME = "bidirectionalName";
private JsonNullable bidirectionalName = JsonNullable.undefined();
public static final String JSON_PROPERTY_LEFT_TO_RIGHT_NAME = "leftToRightName";
private JsonNullable leftToRightName = JsonNullable.undefined();
public static final String JSON_PROPERTY_RIGHT_TO_LEFT_NAME = "rightToLeftName";
private JsonNullable rightToLeftName = JsonNullable.undefined();
public static final String JSON_PROPERTY_HIDE_DATES = "hideDates";
private Boolean hideDates = false;
public static final String JSON_PROPERTY_HIDE_COMMENT = "hideComment";
private Boolean hideComment = false;
public static final String JSON_PROPERTY_HIDE_COMPANY = "hideCompany";
private Boolean hideCompany = false;
public RelationshipSaveDto() {
}
@JsonCreator
public RelationshipSaveDto(
@JsonProperty(value=JSON_PROPERTY_RELATIONSHIP_CATEGORY_ID, required=true) java.util.UUID relationshipCategoryId,
@JsonProperty(value=JSON_PROPERTY_HIDE_DATES, required=true) Boolean hideDates,
@JsonProperty(value=JSON_PROPERTY_HIDE_COMMENT, required=true) Boolean hideComment,
@JsonProperty(value=JSON_PROPERTY_HIDE_COMPANY, required=true) Boolean hideCompany
) {
this();
this.relationshipCategoryId = relationshipCategoryId;
this.hideDates = hideDates;
this.hideComment = hideComment;
this.hideCompany = hideCompany;
}
public RelationshipSaveDto relationshipCategoryId(java.util.UUID relationshipCategoryId) {
this.relationshipCategoryId = relationshipCategoryId;
return this;
}
/**
* Get relationshipCategoryId
* @return relationshipCategoryId
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_RELATIONSHIP_CATEGORY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public java.util.UUID getRelationshipCategoryId() {
return relationshipCategoryId;
}
@JsonProperty(JSON_PROPERTY_RELATIONSHIP_CATEGORY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setRelationshipCategoryId(java.util.UUID relationshipCategoryId) {
this.relationshipCategoryId = relationshipCategoryId;
}
public RelationshipSaveDto 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 RelationshipSaveDto bidirectionalName(String bidirectionalName) {
this.bidirectionalName = JsonNullable.of(bidirectionalName);
return this;
}
/**
* Get bidirectionalName
* @return bidirectionalName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public String getBidirectionalName() {
return bidirectionalName.orElse(null);
}
@JsonProperty(JSON_PROPERTY_BIDIRECTIONAL_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getBidirectionalName_JsonNullable() {
return bidirectionalName;
}
@JsonProperty(JSON_PROPERTY_BIDIRECTIONAL_NAME)
public void setBidirectionalName_JsonNullable(JsonNullable bidirectionalName) {
this.bidirectionalName = bidirectionalName;
}
public void setBidirectionalName(String bidirectionalName) {
this.bidirectionalName = JsonNullable.of(bidirectionalName);
}
public RelationshipSaveDto leftToRightName(String leftToRightName) {
this.leftToRightName = JsonNullable.of(leftToRightName);
return this;
}
/**
* Get leftToRightName
* @return leftToRightName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public String getLeftToRightName() {
return leftToRightName.orElse(null);
}
@JsonProperty(JSON_PROPERTY_LEFT_TO_RIGHT_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getLeftToRightName_JsonNullable() {
return leftToRightName;
}
@JsonProperty(JSON_PROPERTY_LEFT_TO_RIGHT_NAME)
public void setLeftToRightName_JsonNullable(JsonNullable leftToRightName) {
this.leftToRightName = leftToRightName;
}
public void setLeftToRightName(String leftToRightName) {
this.leftToRightName = JsonNullable.of(leftToRightName);
}
public RelationshipSaveDto rightToLeftName(String rightToLeftName) {
this.rightToLeftName = JsonNullable.of(rightToLeftName);
return this;
}
/**
* Get rightToLeftName
* @return rightToLeftName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public String getRightToLeftName() {
return rightToLeftName.orElse(null);
}
@JsonProperty(JSON_PROPERTY_RIGHT_TO_LEFT_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getRightToLeftName_JsonNullable() {
return rightToLeftName;
}
@JsonProperty(JSON_PROPERTY_RIGHT_TO_LEFT_NAME)
public void setRightToLeftName_JsonNullable(JsonNullable rightToLeftName) {
this.rightToLeftName = rightToLeftName;
}
public void setRightToLeftName(String rightToLeftName) {
this.rightToLeftName = JsonNullable.of(rightToLeftName);
}
public RelationshipSaveDto hideDates(Boolean hideDates) {
this.hideDates = hideDates;
return this;
}
/**
* Get hideDates
* @return hideDates
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_HIDE_DATES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getHideDates() {
return hideDates;
}
@JsonProperty(JSON_PROPERTY_HIDE_DATES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setHideDates(Boolean hideDates) {
this.hideDates = hideDates;
}
public RelationshipSaveDto hideComment(Boolean hideComment) {
this.hideComment = hideComment;
return this;
}
/**
* Get hideComment
* @return hideComment
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_HIDE_COMMENT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getHideComment() {
return hideComment;
}
@JsonProperty(JSON_PROPERTY_HIDE_COMMENT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setHideComment(Boolean hideComment) {
this.hideComment = hideComment;
}
public RelationshipSaveDto hideCompany(Boolean hideCompany) {
this.hideCompany = hideCompany;
return this;
}
/**
* Get hideCompany
* @return hideCompany
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_HIDE_COMPANY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getHideCompany() {
return hideCompany;
}
@JsonProperty(JSON_PROPERTY_HIDE_COMPANY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setHideCompany(Boolean hideCompany) {
this.hideCompany = hideCompany;
}
/**
* Return true if this RelationshipSaveDto object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RelationshipSaveDto relationshipSaveDto = (RelationshipSaveDto) o;
return Objects.equals(this.relationshipCategoryId, relationshipSaveDto.relationshipCategoryId) &&
equalsNullable(this.relationshipCode, relationshipSaveDto.relationshipCode) &&
equalsNullable(this.bidirectionalName, relationshipSaveDto.bidirectionalName) &&
equalsNullable(this.leftToRightName, relationshipSaveDto.leftToRightName) &&
equalsNullable(this.rightToLeftName, relationshipSaveDto.rightToLeftName) &&
Objects.equals(this.hideDates, relationshipSaveDto.hideDates) &&
Objects.equals(this.hideComment, relationshipSaveDto.hideComment) &&
Objects.equals(this.hideCompany, relationshipSaveDto.hideCompany);
}
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(relationshipCategoryId, hashCodeNullable(relationshipCode), hashCodeNullable(bidirectionalName), hashCodeNullable(leftToRightName), hashCodeNullable(rightToLeftName), hideDates, hideComment, hideCompany);
}
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 RelationshipSaveDto {\n");
sb.append(" relationshipCategoryId: ").append(toIndentedString(relationshipCategoryId)).append("\n");
sb.append(" relationshipCode: ").append(toIndentedString(relationshipCode)).append("\n");
sb.append(" bidirectionalName: ").append(toIndentedString(bidirectionalName)).append("\n");
sb.append(" leftToRightName: ").append(toIndentedString(leftToRightName)).append("\n");
sb.append(" rightToLeftName: ").append(toIndentedString(rightToLeftName)).append("\n");
sb.append(" hideDates: ").append(toIndentedString(hideDates)).append("\n");
sb.append(" hideComment: ").append(toIndentedString(hideComment)).append("\n");
sb.append(" hideCompany: ").append(toIndentedString(hideCompany)).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 ");
}
}