Class SimpleStorageSize

java.lang.Object
org.ivoa.dm.executionbroker.SimpleStorageSize
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations

@Embeddable @VoDml(id="execbroker:SimpleStorageSize", role=dataType) public class SimpleStorageSize extends Object implements org.ivoa.vodml.jpa.JPAManipulations
The size of storage requested. The minimum represents the minimum size the excution requires. The maximum represents the maximum size that the excution can use. All values are given in multiples of 'GiB'. dataType: SimpleStorageSize
  • Field Details

    • min

      @VoDml(id="execbroker:SimpleStorageSize.min", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer min
      . : Attribute min : multiplicity 1
    • max

      @VoDml(id="execbroker:SimpleStorageSize.max", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer max
      . : Attribute max : multiplicity 1
  • Constructor Details

    • SimpleStorageSize

      public SimpleStorageSize()
      Creates a new SimpleStorageSize
    • SimpleStorageSize

      public SimpleStorageSize(Integer min, Integer max)
      full parameter constructor.
      Parameters:
      min - .
      max - .
    • SimpleStorageSize

      public SimpleStorageSize(SimpleStorageSize other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
  • Method Details

    • updateUsing

      public void updateUsing(SimpleStorageSize other)
      Update this object with the content of the given object. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • getMin

      public Integer getMin()
      Returns min Attribute.
      Returns:
      min Attribute
    • setMin

      public void setMin(Integer pMin)
      Set min Attribute.
      Parameters:
      pMin - value to set
    • withMin

      public SimpleStorageSize withMin(Integer pMin)
      fluent setter for min Attribute.
      Parameters:
      pMin - value to set
      Returns:
      SimpleStorageSize
    • getMax

      public Integer getMax()
      Returns max Attribute.
      Returns:
      max Attribute
    • setMax

      public void setMax(Integer pMax)
      Set max Attribute.
      Parameters:
      pMax - value to set
    • withMax

      public SimpleStorageSize withMax(Integer pMax)
      fluent setter for max Attribute.
      Parameters:
      pMax - value to set
      Returns:
      SimpleStorageSize
    • createSimpleStorageSize

      public static SimpleStorageSize createSimpleStorageSize(Consumer<SimpleStorageSize.SimpleStorageSizeBuilder> f)
      create a SimpleStorageSize in functional builder style.
      Parameters:
      f - the functional builder.
      Returns:
      an object initialized from the builder.
    • forceLoad

      public void forceLoad()
      Specified by:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations