Class CalculationComponentPatch.Builder

java.lang.Object
io.skipcheck.tm1.client.model.CalculationComponentPatch.Builder
Enclosing class:
CalculationComponentPatch

public static final class CalculationComponentPatch.Builder extends Object
Builds a CalculationComponentPatch; each setter replaces what an earlier call set.
  • Method Details

    • type

      public CalculationComponentPatch.Builder type(@Nullable CalculationType type)
      Sets Type: The type of calculation (consolidation or rule-driven) that populates this cell.
      Parameters:
      type - the value; null sends an explicit null
      Returns:
      this builder
    • status

      @Since("11.8.6") public CalculationComponentPatch.Builder status(@Nullable CellStatus status)
      Sets Status: The status of the cell, that is, NULL, DATA, or ERROR.
      Parameters:
      status - the value; null sends an explicit null
      Returns:
      this builder
    • value

      public CalculationComponentPatch.Builder value(@Nullable Object value)
      Sets Value: The value of this cell.
      Parameters:
      value - the value; null sends an explicit null
      Returns:
      this builder
    • statements

      public CalculationComponentPatch.Builder statements(@Nullable List<String> statements)
      Sets Statements: The rule statement that populates this cell.
      Parameters:
      statements - the value; null sends an explicit null
      Returns:
      this builder
    • components

      public CalculationComponentPatch.Builder components(@Nullable List<CalculationComponentPatch> components)
      Sets Components: The set of components that determine the value of this cell.
      Parameters:
      components - the value; null sends an explicit null
      Returns:
      this builder
    • cube

      public CalculationComponentPatch.Builder cube(@Nullable CubePatch cube)
      Sets Cube: Cube containing the cell that is a component of the calculation. (nested, for a deep insert)
      Parameters:
      cube - the value; null sends an explicit null
      Returns:
      this builder
    • bindCube

      public CalculationComponentPatch.Builder bindCube(ODataPath target)
      Binds Cube to an existing entity (Cube@odata.bind).
      Parameters:
      target - the entity's path
      Returns:
      this builder
    • tuple

      public CalculationComponentPatch.Builder tuple(@Nullable List<ElementPatch> tuple)
      Sets Tuple: Coordinates of the cell that is a component of the calculation. (nested, for a deep insert)
      Parameters:
      tuple - the value; null sends an explicit null
      Returns:
      this builder
    • bindTuple

      public CalculationComponentPatch.Builder bindTuple(ODataPath... targets)
      Binds Tuple to existing entities (Tuple@odata.bind).
      Parameters:
      targets - the entities' paths, such as Dimensions('Region')
      Returns:
      this builder
    • build

      public CalculationComponentPatch build()
      The patch, with what's been set so far.
      Returns:
      the patch