java.lang.Object
org.springframework.boot.buildpack.platform.docker.type.Binding

public final class Binding extends Object
Volume bindings to apply when creating a container.
Since:
2.5.0
Author:
Scott Frederick
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • of

      public static Binding of(String value)
      Create a Binding with the specified value containing a host source, container destination, and options.
      Parameters:
      value - the volume binding value
      Returns:
      a new Binding instance
    • from

      public static Binding from(VolumeName sourceVolume, String destination)
      Create a Binding from the specified source and destination.
      Parameters:
      sourceVolume - the volume binding host source
      destination - the volume binding container destination
      Returns:
      a new Binding instance
    • from

      public static Binding from(String source, String destination)
      Create a Binding from the specified source and destination.
      Parameters:
      source - the volume binding host source
      destination - the volume binding container destination
      Returns:
      a new Binding instance