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

com.hubspot.chrome.devtools.client.core.runtime.ObjectPreview Maven / Gradle / Ivy

package com.hubspot.chrome.devtools.client.core.runtime;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/**
 * Object containing abbreviated remote object value.
 */
public final class ObjectPreview {
  private String type;

  private String subtype;

  private String description;

  private Boolean overflow;

  private List properties;

  private List entries;

  @JsonCreator
  public ObjectPreview(@JsonProperty("type") String type, @JsonProperty("subtype") String subtype,
      @JsonProperty("description") String description, @JsonProperty("overflow") Boolean overflow,
      @JsonProperty("properties") List properties,
      @JsonProperty("entries") List entries) {
    this.type = type;
    this.subtype = subtype;
    this.description = description;
    this.overflow = overflow;
    this.properties = properties;
    this.entries = entries;
  }

  public String getType() {
    return type;
  }

  public String getSubtype() {
    return subtype;
  }

  public String getDescription() {
    return description;
  }

  public Boolean getOverflow() {
    return overflow;
  }

  public List getProperties() {
    return properties;
  }

  public List getEntries() {
    return entries;
  }

  public static ObjectPreview.Builder builder() {
    return new ObjectPreview.Builder();
  }

  public static final class Builder {
    private String type;

    private String subtype;

    private String description;

    private Boolean overflow;

    private List properties;

    private List entries;

    private Builder() {
    }

    public ObjectPreview.Builder setType(String type) {
      this.type = type;
      return this;
    }

    public ObjectPreview.Builder setSubtype(String subtype) {
      this.subtype = subtype;
      return this;
    }

    public ObjectPreview.Builder setDescription(String description) {
      this.description = description;
      return this;
    }

    public ObjectPreview.Builder setOverflow(Boolean overflow) {
      this.overflow = overflow;
      return this;
    }

    public ObjectPreview.Builder setProperties(List properties) {
      this.properties = properties;
      return this;
    }

    public ObjectPreview.Builder setEntries(List entries) {
      this.entries = entries;
      return this;
    }

    public ObjectPreview build() {
      return new ObjectPreview(type, subtype, description, overflow, properties, entries);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy