Class ElementPatch.Builder

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

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

    • name

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

      public ElementPatch.Builder uniqueName(@Nullable String uniqueName)
      Sets UniqueName: The element's invariant name.
      Parameters:
      uniqueName - the value; null sends an explicit null
      Returns:
      this builder
    • type

      public ElementPatch.Builder type(@Nullable ElementType type)
      Sets Type: The type of the element, one of Numeric, String, or Consolidated.
      Parameters:
      type - the value; null sends an explicit null
      Returns:
      this builder
    • level

      public ElementPatch.Builder level(@Nullable Integer level)
      Sets Level: The level to which the element belongs within the dimension hierarchy.
      Parameters:
      level - the value; null sends an explicit null
      Returns:
      this builder
    • index

      public ElementPatch.Builder index(@Nullable Integer index)
      Sets Index: A value that corresponds to the position of the element within a dimension.
      Parameters:
      index - the value; null sends an explicit null
      Returns:
      this builder
    • attributes

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

      public ElementPatch.Builder hierarchy(@Nullable HierarchyPatch hierarchy)
      Sets Hierarchy: The hierarchy of the element in the dimension. (nested, for a deep insert)
      Parameters:
      hierarchy - the value; null sends an explicit null
      Returns:
      this builder
    • bindHierarchy

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

      public ElementPatch.Builder parents(@Nullable List<ElementPatch> parents)
      Sets Parents: The parent element of the element in the hierarchy. (nested, for a deep insert)
      Parameters:
      parents - the value; null sends an explicit null
      Returns:
      this builder
    • bindParents

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

      public ElementPatch.Builder components(@Nullable List<ElementPatch> components)
      Sets Components: The collection of elements in the dimension. (nested, for a deep insert)
      Parameters:
      components - the value; null sends an explicit null
      Returns:
      this builder
    • bindComponents

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

      public ElementPatch.Builder edges(@Nullable List<EdgePatch> edges)
      Sets Edges: The collection of edges in the dimension. (nested, for a deep insert)
      Parameters:
      edges - the value; null sends an explicit null
      Returns:
      this builder
    • bindEdges

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

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

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