Class NativeViewPatch.Builder
java.lang.Object
io.skipcheck.tm1.client.model.ViewPatch.Builder
io.skipcheck.tm1.client.model.NativeViewPatch.Builder
- Enclosing class:
NativeViewPatch
Builds a
NativeViewPatch; each setter replaces what an earlier call set.-
Method Summary
Modifier and TypeMethodDescriptionattributes(@Nullable AttributesPatch attributes) SetsAttributes: The attributes of the view.BindsCubeto an existing entity (Cube@odata.bind).bindLocalizedAttributes(ODataPath... targets) BindsLocalizedAttributesto existing entities (LocalizedAttributes@odata.bind).build()The patch, with what's been set so far.columns(@Nullable List<ViewAxisSelectionPatch> columns) SetsColumns: The dimension elements that exist on the column axis of a view.SetsCube: The parent cube of the view.formatString(@Nullable String formatString) SetsFormatString: The format of the elements in the view.localizedAttributes(@Nullable List<LocalizedAttributesPatch> localizedAttributes) SetsLocalizedAttributes: Translated string values for properties of the view.SetsName: The name of the view.Sets a property$metadatadoesn't declare, which this open type can have, such as an attribute's value.rows(@Nullable List<ViewAxisSelectionPatch> rows) SetsRows: The dimension elements that exist on the row axis of a view.suppressEmptyColumns(@Nullable Boolean suppressEmptyColumns) SetsSuppressEmptyColumns: A Boolean that suppresses any columns that contain only zero values.suppressEmptyRows(@Nullable Boolean suppressEmptyRows) SetsSuppressEmptyRows: A Boolean that suppresses any rows that contain only zero values.titles(@Nullable List<ViewTitlePatch> titles) SetsTitles: The dimension elements that exist as title (context) elements of a view.
-
Method Details
-
name
SetsName: The name of the view.- Overrides:
namein classViewPatch.Builder- Parameters:
name- the value;nullsends an explicitnull- Returns:
- this builder
-
attributes
SetsAttributes: The attributes of the view.- Overrides:
attributesin classViewPatch.Builder- Parameters:
attributes- the value;nullsends an explicitnull- Returns:
- this builder
-
cube
SetsCube: The parent cube of the view. (nested, for a deep insert)- Overrides:
cubein classViewPatch.Builder- Parameters:
cube- the value;nullsends an explicitnull- Returns:
- this builder
-
bindCube
BindsCubeto an existing entity (Cube@odata.bind).- Overrides:
bindCubein classViewPatch.Builder- Parameters:
target- the entity's path- Returns:
- this builder
-
localizedAttributes
public NativeViewPatch.Builder localizedAttributes(@Nullable List<LocalizedAttributesPatch> localizedAttributes) SetsLocalizedAttributes: Translated string values for properties of the view. (nested, for a deep insert)- Overrides:
localizedAttributesin classViewPatch.Builder- Parameters:
localizedAttributes- the value;nullsends an explicitnull- Returns:
- this builder
-
bindLocalizedAttributes
BindsLocalizedAttributesto existing entities (LocalizedAttributes@odata.bind).- Overrides:
bindLocalizedAttributesin classViewPatch.Builder- Parameters:
targets- the entities' paths, such asDimensions('Region')- Returns:
- this builder
-
columns
SetsColumns: The dimension elements that exist on the column axis of a view.- Parameters:
columns- the value;nullsends an explicitnull- Returns:
- this builder
-
rows
SetsRows: The dimension elements that exist on the row axis of a view.- Parameters:
rows- the value;nullsends an explicitnull- Returns:
- this builder
-
titles
SetsTitles: The dimension elements that exist as title (context) elements of a view.- Parameters:
titles- the value;nullsends an explicitnull- Returns:
- this builder
-
suppressEmptyColumns
SetsSuppressEmptyColumns: A Boolean that suppresses any columns that contain only zero values.- Parameters:
suppressEmptyColumns- the value;nullsends an explicitnull- Returns:
- this builder
-
suppressEmptyRows
SetsSuppressEmptyRows: A Boolean that suppresses any rows that contain only zero values.- Parameters:
suppressEmptyRows- the value;nullsends an explicitnull- Returns:
- this builder
-
formatString
SetsFormatString: The format of the elements in the view.- Parameters:
formatString- the value;nullsends an explicitnull- Returns:
- this builder
-
property
Sets a property$metadatadoesn't declare, which this open type can have, such as an attribute's value.- Overrides:
propertyin classViewPatch.Builder- Parameters:
name- the property's name, as TM1 writes itvalue- the value;nullsends an explicitnull- Returns:
- this builder
-
build
The patch, with what's been set so far.- Overrides:
buildin classViewPatch.Builder- Returns:
- the patch
-