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

com.hubspot.chrome.devtools.client.core.runtime.InternalPropertyDescriptor 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;

/**
 * Object internal property descriptor. This property isn't normally visible in JavaScript code.
 */
public final class InternalPropertyDescriptor {
  private String name;

  private RemoteObject value;

  @JsonCreator
  public InternalPropertyDescriptor(@JsonProperty("name") String name,
      @JsonProperty("value") RemoteObject value) {
    this.name = name;
    this.value = value;
  }

  public String getName() {
    return name;
  }

  public RemoteObject getValue() {
    return value;
  }

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

  public static final class Builder {
    private String name;

    private RemoteObject value;

    private Builder() {
    }

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

    public InternalPropertyDescriptor.Builder setValue(RemoteObject value) {
      this.value = value;
      return this;
    }

    public InternalPropertyDescriptor build() {
      return new InternalPropertyDescriptor(name, value);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy