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

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

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

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

public final class PropertyPreview {
  private String name;

  private String type;

  private String value;

  private ObjectPreview valuePreview;

  private String subtype;

  @JsonCreator
  public PropertyPreview(@JsonProperty("name") String name, @JsonProperty("type") String type,
      @JsonProperty("value") String value, @JsonProperty("valuePreview") ObjectPreview valuePreview,
      @JsonProperty("subtype") String subtype) {
    this.name = name;
    this.type = type;
    this.value = value;
    this.valuePreview = valuePreview;
    this.subtype = subtype;
  }

  public String getName() {
    return name;
  }

  public String getType() {
    return type;
  }

  public String getValue() {
    return value;
  }

  public ObjectPreview getValuePreview() {
    return valuePreview;
  }

  public String getSubtype() {
    return subtype;
  }

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

  public static final class Builder {
    private String name;

    private String type;

    private String value;

    private ObjectPreview valuePreview;

    private String subtype;

    private Builder() {
    }

    public PropertyPreview.Builder setName(String name) {
      this.name = name;
      return this;
    }

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

    public PropertyPreview.Builder setValue(String value) {
      this.value = value;
      return this;
    }

    public PropertyPreview.Builder setValuePreview(ObjectPreview valuePreview) {
      this.valuePreview = valuePreview;
      return this;
    }

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

    public PropertyPreview build() {
      return new PropertyPreview(name, type, value, valuePreview, subtype);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy