Package org.ivoa.dm.executionbroker
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for SimpleStorageSize, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SimpleStorageSizeSimpleStorageSize(Integer min, Integer max) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleStorageSizecreate a SimpleStorageSize in functional builder style.voidgetMax()Returns max Attribute.getMin()Returns min Attribute.voidSet max Attribute.voidSet min Attribute.voidupdateUsing(SimpleStorageSize other) Update this object with the content of the given object.fluent setter for max Attribute.fluent setter for min Attribute.
-
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
full parameter constructor.- Parameters:
min- .max- .
-
SimpleStorageSize
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
updateUsing
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
Returns min Attribute.- Returns:
- min Attribute
-
setMin
Set min Attribute.- Parameters:
pMin- value to set
-
withMin
fluent setter for min Attribute.- Parameters:
pMin- value to set- Returns:
- SimpleStorageSize
-
getMax
Returns max Attribute.- Returns:
- max Attribute
-
setMax
Set max Attribute.- Parameters:
pMax- value to set
-
withMax
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:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-