Class Dependency

java.lang.Object
com.auth0.json.mgmt.actions.Dependency

public class Dependency extends Object
Represents an Action's dependencies.
See Also:
  • Constructor Details

    • Dependency

      public Dependency(String name, String version)
      Creates a new instance.
      Parameters:
      name - the name of this dependency, e.g., "lodash"
      version - the version of this dependency, e.g., 4.17.1
    • Dependency

      public Dependency()
      Creates a new dependency
  • Method Details

    • getName

      public String getName()
      Returns:
      the name of this dependency.
    • setName

      public void setName(String name)
      Sets the name of this dependency.
      Parameters:
      name - the name of this dependency, e.g., "lodash"
    • getVersion

      public String getVersion()
      Returns:
      the version of this dependency.
    • setVersion

      public void setVersion(String version)
      Sets the version of this dependency.
      Parameters:
      version - the version of this dependency, e.g., 4.17.1
    • getRegistryUrl

      public String getRegistryUrl()
      Returns:
      the registry URL of this dependency.
    • setRegistryUrl

      public void setRegistryUrl(String registryUrl)
      Sets the registry URL of this dependency. This is optional, and primarily used for private npm modules.
      Parameters:
      registryUrl - the registry URL of this dependency.