Class Manifest.Builder

java.lang.Object
io.bdeploy.bhive.model.Manifest.Builder
Enclosing class:
Manifest

public static final class Manifest.Builder extends Object
Builder to create a Manifest.
  • Constructor Details

    • Builder

      public Builder(Manifest.Key key)
      Parameters:
      key - the immutable key of the manifest to use.
  • Method Details

    • setRoot

      public Manifest.Builder setRoot(ObjectId root)
      Parameters:
      root - the root Tree reference. The ObjectId MUST reference a Tree.
      Returns:
      this for chaining
    • addLabel

      public Manifest.Builder addLabel(String key, String value)
      Add a label to the manifest. A label can be any domain/user specific key/value pair.
      Parameters:
      key - the label key
      value - the label value
      Returns:
      this for chaining
    • build

      public Manifest build(BHiveExecution hive)
      Returns:
      create the immutable manifest.
    • getKey

      public Manifest.Key getKey()