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

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

There is a newer version: 94.0.4606.61
Show newest version
package com.hubspot.chrome.devtools.client.core.runtime;

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

public final class CustomPreview {
  private String header;

  private Boolean hasBody;

  private RemoteObjectId formatterObjectId;

  private RemoteObjectId bindRemoteObjectFunctionId;

  private RemoteObjectId configObjectId;

  @JsonCreator
  public CustomPreview(@JsonProperty("header") String header,
      @JsonProperty("hasBody") Boolean hasBody,
      @JsonProperty("formatterObjectId") RemoteObjectId formatterObjectId,
      @JsonProperty("bindRemoteObjectFunctionId") RemoteObjectId bindRemoteObjectFunctionId,
      @JsonProperty("configObjectId") RemoteObjectId configObjectId) {
    this.header = header;
    this.hasBody = hasBody;
    this.formatterObjectId = formatterObjectId;
    this.bindRemoteObjectFunctionId = bindRemoteObjectFunctionId;
    this.configObjectId = configObjectId;
  }

  public String getHeader() {
    return header;
  }

  public Boolean getHasBody() {
    return hasBody;
  }

  public RemoteObjectId getFormatterObjectId() {
    return formatterObjectId;
  }

  public RemoteObjectId getBindRemoteObjectFunctionId() {
    return bindRemoteObjectFunctionId;
  }

  public RemoteObjectId getConfigObjectId() {
    return configObjectId;
  }

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

  public static final class Builder {
    private String header;

    private Boolean hasBody;

    private RemoteObjectId formatterObjectId;

    private RemoteObjectId bindRemoteObjectFunctionId;

    private RemoteObjectId configObjectId;

    private Builder() {
    }

    public CustomPreview.Builder setHeader(String header) {
      this.header = header;
      return this;
    }

    public CustomPreview.Builder setHasBody(Boolean hasBody) {
      this.hasBody = hasBody;
      return this;
    }

    public CustomPreview.Builder setFormatterObjectId(RemoteObjectId formatterObjectId) {
      this.formatterObjectId = formatterObjectId;
      return this;
    }

    public CustomPreview.Builder setBindRemoteObjectFunctionId(
        RemoteObjectId bindRemoteObjectFunctionId) {
      this.bindRemoteObjectFunctionId = bindRemoteObjectFunctionId;
      return this;
    }

    public CustomPreview.Builder setConfigObjectId(RemoteObjectId configObjectId) {
      this.configObjectId = configObjectId;
      return this;
    }

    public CustomPreview build() {
      return new CustomPreview(header, hasBody, formatterObjectId, bindRemoteObjectFunctionId, configObjectId);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy