Class CubePatch.Builder

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

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

    • name

      public CubePatch.Builder name(@Nullable String name)
      Sets Name: Name of the cube as it is registered on the server.
      Parameters:
      name - the value; null sends an explicit null
      Returns:
      this builder
    • rules

      public CubePatch.Builder rules(@Nullable String rules)
      Sets Rules: Cube rules expand the standard hierarchical consolidation operations that you may define within a dimension.
      Parameters:
      rules - the value; null sends an explicit null
      Returns:
      this builder
    • drillthroughRules

      @Since("10.2.2.6") public CubePatch.Builder drillthroughRules(@Nullable String drillthroughRules)
      Sets DrillthroughRules: Rules associating drill-through scripts with regions of cells in the cube.
      Parameters:
      drillthroughRules - the value; null sends an explicit null
      Returns:
      this builder
    • lastSchemaUpdate

      public CubePatch.Builder lastSchemaUpdate(@Nullable OffsetDateTime lastSchemaUpdate)
      Sets LastSchemaUpdate: Last schema update date of the cube.
      Parameters:
      lastSchemaUpdate - the value; null sends an explicit null
      Returns:
      this builder
    • lastDataUpdate

      public CubePatch.Builder lastDataUpdate(@Nullable OffsetDateTime lastDataUpdate)
      Sets LastDataUpdate: Last data update date of the cube.
      Parameters:
      lastDataUpdate - the value; null sends an explicit null
      Returns:
      this builder
    • attributes

      public CubePatch.Builder attributes(@Nullable AttributesPatch attributes)
      Sets Attributes: Captions and resource attributes of the cube.
      Parameters:
      attributes - the value; null sends an explicit null
      Returns:
      this builder
    • dimensions

      public CubePatch.Builder dimensions(@Nullable List<DimensionPatch> dimensions)
      Sets Dimensions: Represents dimensions that perform calculations, control labels, and format data entry. (nested, for a deep insert)
      Parameters:
      dimensions - the value; null sends an explicit null
      Returns:
      this builder
    • bindDimensions

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

      public CubePatch.Builder views(@Nullable List<? extends ViewPatch> views)
      Sets Views: Represents a View object on the TM1 Server. (nested, for a deep insert)
      Parameters:
      views - the value; null sends an explicit null
      Returns:
      this builder
    • bindViews

      public CubePatch.Builder bindViews(ODataPath... targets)
      Binds Views to existing entities (Views@odata.bind).
      Parameters:
      targets - the entities' paths, such as Dimensions('Region')
      Returns:
      this builder
    • viewAttributes

      public CubePatch.Builder viewAttributes(@Nullable List<AttributeDefinitionPatch> viewAttributes)
      Sets ViewAttributes: Specific attributes for each View object of the cube. (nested, for a deep insert)
      Parameters:
      viewAttributes - the value; null sends an explicit null
      Returns:
      this builder
    • bindViewAttributes

      public CubePatch.Builder bindViewAttributes(ODataPath... targets)
      Binds ViewAttributes to existing entities (ViewAttributes@odata.bind).
      Parameters:
      targets - the entities' paths, such as Dimensions('Region')
      Returns:
      this builder
    • privateViews

      public CubePatch.Builder privateViews(@Nullable List<? extends ViewPatch> privateViews)
      Sets PrivateViews: Private views are accessible only by the user who registered them. (nested, for a deep insert)
      Parameters:
      privateViews - the value; null sends an explicit null
      Returns:
      this builder
    • bindPrivateViews

      public CubePatch.Builder bindPrivateViews(ODataPath... targets)
      Binds PrivateViews to existing entities (PrivateViews@odata.bind).
      Parameters:
      targets - the entities' paths, such as Dimensions('Region')
      Returns:
      this builder
    • annotations

      public CubePatch.Builder annotations(@Nullable List<AnnotationPatch> annotations)
      Sets Annotations: Comments that provide additional information about the cube. (nested, for a deep insert)
      Parameters:
      annotations - the value; null sends an explicit null
      Returns:
      this builder
    • bindAnnotations

      public CubePatch.Builder bindAnnotations(ODataPath... targets)
      Binds Annotations to existing entities (Annotations@odata.bind).
      Parameters:
      targets - the entities' paths, such as Dimensions('Region')
      Returns:
      this builder
    • localizedAttributes

      public CubePatch.Builder localizedAttributes(@Nullable List<LocalizedAttributesPatch> localizedAttributes)
      Sets LocalizedAttributes: Translated string values for properties of the cube. (nested, for a deep insert)
      Parameters:
      localizedAttributes - the value; null sends an explicit null
      Returns:
      this builder
    • bindLocalizedAttributes

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

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