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

org.finra.herd.sdk.model.Facet Maven / Gradle / Ivy

There is a newer version: 0.160.0
Show newest version
/*
 * herd-external
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * OpenAPI spec version: 0.125.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package org.finra.herd.sdk.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.finra.herd.sdk.model.Facet;

/**
 * Facet
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class Facet {
  @JsonProperty("facetDisplayName")
  private String facetDisplayName = null;

  @JsonProperty("facetCount")
  private Long facetCount = null;

  @JsonProperty("facetType")
  private String facetType = null;

  @JsonProperty("facetId")
  private String facetId = null;

  @JsonProperty("facets")
  private List facets = null;

  public Facet facetDisplayName(String facetDisplayName) {
    this.facetDisplayName = facetDisplayName;
    return this;
  }

   /**
   * Display name of the facet
   * @return facetDisplayName
  **/
  @ApiModelProperty(value = "Display name of the facet")
  public String getFacetDisplayName() {
    return facetDisplayName;
  }

  public void setFacetDisplayName(String facetDisplayName) {
    this.facetDisplayName = facetDisplayName;
  }

  public Facet facetCount(Long facetCount) {
    this.facetCount = facetCount;
    return this;
  }

   /**
   * count of the facet
   * @return facetCount
  **/
  @ApiModelProperty(value = "count of the facet")
  public Long getFacetCount() {
    return facetCount;
  }

  public void setFacetCount(Long facetCount) {
    this.facetCount = facetCount;
  }

  public Facet facetType(String facetType) {
    this.facetType = facetType;
    return this;
  }

   /**
   * Type of the facet
   * @return facetType
  **/
  @ApiModelProperty(value = "Type of the facet")
  public String getFacetType() {
    return facetType;
  }

  public void setFacetType(String facetType) {
    this.facetType = facetType;
  }

  public Facet facetId(String facetId) {
    this.facetId = facetId;
    return this;
  }

   /**
   * unique identifier of the facet
   * @return facetId
  **/
  @ApiModelProperty(value = "unique identifier of the facet")
  public String getFacetId() {
    return facetId;
  }

  public void setFacetId(String facetId) {
    this.facetId = facetId;
  }

  public Facet facets(List facets) {
    this.facets = facets;
    return this;
  }

  public Facet addFacetsItem(Facet facetsItem) {
    if (this.facets == null) {
      this.facets = new ArrayList();
    }
    this.facets.add(facetsItem);
    return this;
  }

   /**
   * list of facets
   * @return facets
  **/
  @ApiModelProperty(value = "list of facets")
  public List getFacets() {
    return facets;
  }

  public void setFacets(List facets) {
    this.facets = facets;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Facet facet = (Facet) o;
    return Objects.equals(this.facetDisplayName, facet.facetDisplayName) &&
        Objects.equals(this.facetCount, facet.facetCount) &&
        Objects.equals(this.facetType, facet.facetType) &&
        Objects.equals(this.facetId, facet.facetId) &&
        Objects.equals(this.facets, facet.facets);
  }

  @Override
  public int hashCode() {
    return Objects.hash(facetDisplayName, facetCount, facetType, facetId, facets);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Facet {\n");
    
    sb.append("    facetDisplayName: ").append(toIndentedString(facetDisplayName)).append("\n");
    sb.append("    facetCount: ").append(toIndentedString(facetCount)).append("\n");
    sb.append("    facetType: ").append(toIndentedString(facetType)).append("\n");
    sb.append("    facetId: ").append(toIndentedString(facetId)).append("\n");
    sb.append("    facets: ").append(toIndentedString(facets)).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(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy