Class MemberPatch.Builder

java.lang.Object
io.skipcheck.tm1.client.model.MemberPatch.Builder
Direct Known Subclasses:
TupleMemberPatch.Builder
Enclosing class:
MemberPatch

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

    • name

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

      public MemberPatch.Builder uniqueName(@Nullable String uniqueName)
      Sets UniqueName: The name of the member, preceded by the name of the parent, for example, [dimension_name]:[member_name].
      Parameters:
      uniqueName - the value; null sends an explicit null
      Returns:
      this builder
    • type

      public MemberPatch.Builder type(@Nullable MemberType type)
      Sets Type: The type of the member.
      Parameters:
      type - the value; null sends an explicit null
      Returns:
      this builder
    • ordinal

      public MemberPatch.Builder ordinal(@Nullable Integer ordinal)
      Sets Ordinal: A number that identifies an entity's position in a series.
      Parameters:
      ordinal - the value; null sends an explicit null
      Returns:
      this builder
    • isPlaceholder

      public MemberPatch.Builder isPlaceholder(@Nullable Boolean isPlaceholder)
      Sets IsPlaceholder: A Boolean that indicates whether this member is a placeholder.
      Parameters:
      isPlaceholder - the value; null sends an explicit null
      Returns:
      this builder
    • weight

      public MemberPatch.Builder weight(@Nullable Double weight)
      Sets Weight: The weight of the member within a consolidation.
      Parameters:
      weight - the value; null sends an explicit null
      Returns:
      this builder
    • attributes

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

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

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

      @Since("10.2.2.5") public MemberPatch.Builder level(@Nullable LevelPatch level)
      Sets Level: The level within the hierarchy on which this member resides. (nested, for a deep insert)
      Parameters:
      level - the value; null sends an explicit null
      Returns:
      this builder
    • bindLevel

      @Since("10.2.2.5") public MemberPatch.Builder bindLevel(ODataPath target)
      Binds Level to an existing entity (Level@odata.bind).
      Parameters:
      target - the entity's path
      Returns:
      this builder
    • element

      public MemberPatch.Builder element(@Nullable ElementPatch element)
      Sets Element: The member element. (nested, for a deep insert)
      Parameters:
      element - the value; null sends an explicit null
      Returns:
      this builder
    • bindElement

      public MemberPatch.Builder bindElement(ODataPath target)
      Binds Element to an existing entity (Element@odata.bind).
      Parameters:
      target - the entity's path
      Returns:
      this builder
    • parent

      public MemberPatch.Builder parent(@Nullable MemberPatch parent)
      Sets Parent: The parent of the member in the consolidation. (nested, for a deep insert)
      Parameters:
      parent - the value; null sends an explicit null
      Returns:
      this builder
    • bindParent

      public MemberPatch.Builder bindParent(ODataPath target)
      Binds Parent to an existing entity (Parent@odata.bind).
      Parameters:
      target - the entity's path
      Returns:
      this builder
    • children

      public MemberPatch.Builder children(@Nullable List<? extends MemberPatch> children)
      Sets Children: The children of the member in the consolidation. (nested, for a deep insert)
      Parameters:
      children - the value; null sends an explicit null
      Returns:
      this builder
    • bindChildren

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

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

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