Class Dependency.Jsii$Proxy

  • All Implemented Interfaces:
    Dependency, DependencyCoordinates, software.amazon.jsii.JsiiSerializable
    Enclosing interface:
    Dependency

    @Stability(Experimental)
    @Internal
    public static final class Dependency.Jsii$Proxy
    extends software.amazon.jsii.JsiiObject
    implements Dependency
    An implementation for Dependency
    • Nested Class Summary

      • Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

        software.amazon.jsii.JsiiObject.InitializationMode
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Jsii$Proxy​(Dependency.Builder builder)
      Constructor that initializes the object based on literal property values passed by the Dependency.Builder.
      protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
    • Constructor Detail

      • Jsii$Proxy

        protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
        Constructor that initializes the object based on values retrieved from the JsiiObject.
        Parameters:
        objRef - Reference to the JSII managed object.
    • Method Detail

      • getType

        public final DependencyType getType()
        Description copied from interface: Dependency
        (experimental) Which type of dependency this is (runtime, build-time, etc).
        Specified by:
        getType in interface Dependency
      • getMetadata

        public final Map<String,​Object> getMetadata()
        Description copied from interface: Dependency
        (experimental) Additional JSON metadata associated with the dependency (package manager specific).

        Default: {}

        Specified by:
        getMetadata in interface Dependency
      • getName

        public final String getName()
        Description copied from interface: DependencyCoordinates
        (experimental) The package manager name of the dependency (e.g. leftpad for npm).

        NOTE: For package managers that use complex coordinates (like Maven), we will codify it into a string somehow.

        Specified by:
        getName in interface DependencyCoordinates
      • getVersion

        public final String getVersion()
        Description copied from interface: DependencyCoordinates
        (experimental) Semantic version version requirement.

        Default: - requirement is managed by the package manager (e.g. npm/yarn).

        Specified by:
        getVersion in interface DependencyCoordinates
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object