Class DimensionPatch.Builder

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

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

    • name

      public DimensionPatch.Builder name(@Nullable String name)
      Sets Name: The name of the dimension.
      Parameters:
      name - the value; null sends an explicit null
      Returns:
      this builder
    • uniqueName

      public DimensionPatch.Builder uniqueName(@Nullable String uniqueName)
      Sets UniqueName: The caption for the dimension.
      Parameters:
      uniqueName - the value; null sends an explicit null
      Returns:
      this builder
    • allLeavesHierarchyName

      @Since("11.0.0") public DimensionPatch.Builder allLeavesHierarchyName(@Nullable String allLeavesHierarchyName)
      Sets AllLeavesHierarchyName: The name of the all leaves hierarchy in a dimension with alternate hierarchies.
      Parameters:
      allLeavesHierarchyName - the value; null sends an explicit null
      Returns:
      this builder
    • attributes

      public DimensionPatch.Builder attributes(@Nullable AttributesPatch attributes)
      Sets Attributes: A property of the dimension.
      Parameters:
      attributes - the value; null sends an explicit null
      Returns:
      this builder
    • hierarchies

      public DimensionPatch.Builder hierarchies(@Nullable List<HierarchyPatch> hierarchies)
      Sets Hierarchies: More specific groupings within a dimension. (nested, for a deep insert)
      Parameters:
      hierarchies - the value; null sends an explicit null
      Returns:
      this builder
    • bindHierarchies

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

      @Since("10.2.2.5") public DimensionPatch.Builder defaultHierarchy(@Nullable HierarchyPatch defaultHierarchy)
      Sets DefaultHierarchy: The default hierarchy of the dimension. (nested, for a deep insert)
      Parameters:
      defaultHierarchy - the value; null sends an explicit null
      Returns:
      this builder
    • bindDefaultHierarchy

      @Since("10.2.2.5") public DimensionPatch.Builder bindDefaultHierarchy(ODataPath target)
      Binds DefaultHierarchy to an existing entity (DefaultHierarchy@odata.bind).
      Parameters:
      target - the entity's path
      Returns:
      this builder
    • hierarchyAttributes

      public DimensionPatch.Builder hierarchyAttributes(@Nullable List<AttributeDefinitionPatch> hierarchyAttributes)
      Sets HierarchyAttributes: Attributes of a hierarchy. (nested, for a deep insert)
      Parameters:
      hierarchyAttributes - the value; null sends an explicit null
      Returns:
      this builder
    • bindHierarchyAttributes

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

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

      public DimensionPatch.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 DimensionPatch build()
      The patch, with what's been set so far.
      Returns:
      the patch