Class ElementPatch.Builder
java.lang.Object
io.skipcheck.tm1.client.model.ElementPatch.Builder
- Enclosing class:
ElementPatch
Builds a
ElementPatch; each setter replaces what an earlier call set.-
Method Summary
Modifier and TypeMethodDescriptionattributes(@Nullable AttributesPatch attributes) SetsAttributes: The attributes of the element.bindComponents(ODataPath... targets) BindsComponentsto existing entities (Components@odata.bind).BindsEdgesto existing entities (Edges@odata.bind).bindHierarchy(ODataPath target) BindsHierarchyto an existing entity (Hierarchy@odata.bind).bindLocalizedAttributes(ODataPath... targets) BindsLocalizedAttributesto existing entities (LocalizedAttributes@odata.bind).bindParents(ODataPath... targets) BindsParentsto existing entities (Parents@odata.bind).build()The patch, with what's been set so far.components(@Nullable List<ElementPatch> components) SetsComponents: The collection of elements in the dimension.SetsEdges: The collection of edges in the dimension.hierarchy(@Nullable HierarchyPatch hierarchy) SetsHierarchy: The hierarchy of the element in the dimension.SetsIndex: A value that corresponds to the position of the element within a dimension.SetsLevel: The level to which the element belongs within the dimension hierarchy.localizedAttributes(@Nullable List<LocalizedAttributesPatch> localizedAttributes) SetsLocalizedAttributes: Translated string values for properties of the element.SetsName: The name of the element.parents(@Nullable List<ElementPatch> parents) SetsParents: The parent element of the element in the hierarchy.type(@Nullable ElementType type) SetsType: The type of the element, one of Numeric, String, or Consolidated.uniqueName(@Nullable String uniqueName) SetsUniqueName: The element's invariant name.
-
Method Details
-
name
SetsName: The name of the element.- Parameters:
name- the value;nullsends an explicitnull- Returns:
- this builder
-
uniqueName
SetsUniqueName: The element's invariant name.- Parameters:
uniqueName- the value;nullsends an explicitnull- Returns:
- this builder
-
type
SetsType: The type of the element, one of Numeric, String, or Consolidated.- Parameters:
type- the value;nullsends an explicitnull- Returns:
- this builder
-
level
SetsLevel: The level to which the element belongs within the dimension hierarchy.- Parameters:
level- the value;nullsends an explicitnull- Returns:
- this builder
-
index
SetsIndex: A value that corresponds to the position of the element within a dimension.- Parameters:
index- the value;nullsends an explicitnull- Returns:
- this builder
-
attributes
SetsAttributes: The attributes of the element.- Parameters:
attributes- the value;nullsends an explicitnull- Returns:
- this builder
-
hierarchy
SetsHierarchy: The hierarchy of the element in the dimension. (nested, for a deep insert)- Parameters:
hierarchy- the value;nullsends an explicitnull- Returns:
- this builder
-
bindHierarchy
BindsHierarchyto an existing entity (Hierarchy@odata.bind).- Parameters:
target- the entity's path- Returns:
- this builder
-
parents
SetsParents: The parent element of the element in the hierarchy. (nested, for a deep insert)- Parameters:
parents- the value;nullsends an explicitnull- Returns:
- this builder
-
bindParents
BindsParentsto existing entities (Parents@odata.bind).- Parameters:
targets- the entities' paths, such asDimensions('Region')- Returns:
- this builder
-
components
SetsComponents: The collection of elements in the dimension. (nested, for a deep insert)- Parameters:
components- the value;nullsends an explicitnull- Returns:
- this builder
-
bindComponents
BindsComponentsto existing entities (Components@odata.bind).- Parameters:
targets- the entities' paths, such asDimensions('Region')- Returns:
- this builder
-
edges
SetsEdges: The collection of edges in the dimension. (nested, for a deep insert)- Parameters:
edges- the value;nullsends an explicitnull- Returns:
- this builder
-
bindEdges
BindsEdgesto existing entities (Edges@odata.bind).- Parameters:
targets- the entities' paths, such asDimensions('Region')- Returns:
- this builder
-
localizedAttributes
public ElementPatch.Builder localizedAttributes(@Nullable List<LocalizedAttributesPatch> localizedAttributes) SetsLocalizedAttributes: Translated string values for properties of the element. (nested, for a deep insert)- Parameters:
localizedAttributes- the value;nullsends an explicitnull- Returns:
- this builder
-
bindLocalizedAttributes
BindsLocalizedAttributesto existing entities (LocalizedAttributes@odata.bind).- Parameters:
targets- the entities' paths, such asDimensions('Region')- Returns:
- this builder
-
build
-