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

com.hubspot.chrome.devtools.client.core.target.TargetInfo Maven / Gradle / Ivy

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

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

public final class TargetInfo {
  private TargetID targetId;

  private String type;

  private String title;

  private String url;

  private Boolean attached;

  private TargetID openerId;

  @JsonCreator
  public TargetInfo(@JsonProperty("targetId") TargetID targetId, @JsonProperty("type") String type,
      @JsonProperty("title") String title, @JsonProperty("url") String url,
      @JsonProperty("attached") Boolean attached, @JsonProperty("openerId") TargetID openerId) {
    this.targetId = targetId;
    this.type = type;
    this.title = title;
    this.url = url;
    this.attached = attached;
    this.openerId = openerId;
  }

  public TargetID getTargetId() {
    return targetId;
  }

  public String getType() {
    return type;
  }

  public String getTitle() {
    return title;
  }

  public String getUrl() {
    return url;
  }

  public Boolean getAttached() {
    return attached;
  }

  public TargetID getOpenerId() {
    return openerId;
  }

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

  public static final class Builder {
    private TargetID targetId;

    private String type;

    private String title;

    private String url;

    private Boolean attached;

    private TargetID openerId;

    private Builder() {
    }

    public TargetInfo.Builder setTargetId(TargetID targetId) {
      this.targetId = targetId;
      return this;
    }

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

    public TargetInfo.Builder setTitle(String title) {
      this.title = title;
      return this;
    }

    public TargetInfo.Builder setUrl(String url) {
      this.url = url;
      return this;
    }

    public TargetInfo.Builder setAttached(Boolean attached) {
      this.attached = attached;
      return this;
    }

    public TargetInfo.Builder setOpenerId(TargetID openerId) {
      this.openerId = openerId;
      return this;
    }

    public TargetInfo build() {
      return new TargetInfo(targetId, type, title, url, attached, openerId);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy