Class SubsetPatch.Builder

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

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

    • name

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

      public SubsetPatch.Builder uniqueName(@Nullable String uniqueName)
      Sets UniqueName: The name of the subset, preceded by the parent dimension and separated by a colon, for example, [dimension_name]:[subset_name].
      Parameters:
      uniqueName - the value; null sends an explicit null
      Returns:
      this builder
    • expression

      public SubsetPatch.Builder expression(@Nullable String expression)
      Sets Expression: An MDX expression that defines the subset.
      Parameters:
      expression - the value; null sends an explicit null
      Returns:
      this builder
    • attributes

      public SubsetPatch.Builder attributes(@Nullable AttributesPatch attributes)
      Sets Attributes: The attributes of the subset.
      Parameters:
      attributes - the value; null sends an explicit null
      Returns:
      this builder
    • hierarchy

      public SubsetPatch.Builder hierarchy(@Nullable HierarchyPatch hierarchy)
      Sets Hierarchy: The hierarchies that are included in the subset. (nested, for a deep insert)
      Parameters:
      hierarchy - the value; null sends an explicit null
      Returns:
      this builder
    • bindHierarchy

      public SubsetPatch.Builder bindHierarchy(ODataPath target)
      Binds Hierarchy to an existing entity (Hierarchy@odata.bind).
      Parameters:
      target - the entity's path
      Returns:
      this builder
    • elements

      public SubsetPatch.Builder elements(@Nullable List<ElementPatch> elements)
      Sets Elements: The elements that are included in the subset. (nested, for a deep insert)
      Parameters:
      elements - the value; null sends an explicit null
      Returns:
      this builder
    • bindElements

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

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

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