Class NativeViewPatch.Builder

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

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

    • name

      public NativeViewPatch.Builder name(@Nullable String name)
      Sets Name: The name of the view.
      Overrides:
      name in class ViewPatch.Builder
      Parameters:
      name - the value; null sends an explicit null
      Returns:
      this builder
    • attributes

      public NativeViewPatch.Builder attributes(@Nullable AttributesPatch attributes)
      Sets Attributes: The attributes of the view.
      Overrides:
      attributes in class ViewPatch.Builder
      Parameters:
      attributes - the value; null sends an explicit null
      Returns:
      this builder
    • cube

      public NativeViewPatch.Builder cube(@Nullable CubePatch cube)
      Sets Cube: The parent cube of the view. (nested, for a deep insert)
      Overrides:
      cube in class ViewPatch.Builder
      Parameters:
      cube - the value; null sends an explicit null
      Returns:
      this builder
    • bindCube

      public NativeViewPatch.Builder bindCube(ODataPath target)
      Binds Cube to an existing entity (Cube@odata.bind).
      Overrides:
      bindCube in class ViewPatch.Builder
      Parameters:
      target - the entity's path
      Returns:
      this builder
    • localizedAttributes

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

      public NativeViewPatch.Builder bindLocalizedAttributes(ODataPath... targets)
      Binds LocalizedAttributes to existing entities (LocalizedAttributes@odata.bind).
      Overrides:
      bindLocalizedAttributes in class ViewPatch.Builder
      Parameters:
      targets - the entities' paths, such as Dimensions('Region')
      Returns:
      this builder
    • columns

      public NativeViewPatch.Builder columns(@Nullable List<ViewAxisSelectionPatch> columns)
      Sets Columns: The dimension elements that exist on the column axis of a view.
      Parameters:
      columns - the value; null sends an explicit null
      Returns:
      this builder
    • rows

      public NativeViewPatch.Builder rows(@Nullable List<ViewAxisSelectionPatch> rows)
      Sets Rows: The dimension elements that exist on the row axis of a view.
      Parameters:
      rows - the value; null sends an explicit null
      Returns:
      this builder
    • titles

      public NativeViewPatch.Builder titles(@Nullable List<ViewTitlePatch> titles)
      Sets Titles: The dimension elements that exist as title (context) elements of a view.
      Parameters:
      titles - the value; null sends an explicit null
      Returns:
      this builder
    • suppressEmptyColumns

      public NativeViewPatch.Builder suppressEmptyColumns(@Nullable Boolean suppressEmptyColumns)
      Sets SuppressEmptyColumns: A Boolean that suppresses any columns that contain only zero values.
      Parameters:
      suppressEmptyColumns - the value; null sends an explicit null
      Returns:
      this builder
    • suppressEmptyRows

      public NativeViewPatch.Builder suppressEmptyRows(@Nullable Boolean suppressEmptyRows)
      Sets SuppressEmptyRows: A Boolean that suppresses any rows that contain only zero values.
      Parameters:
      suppressEmptyRows - the value; null sends an explicit null
      Returns:
      this builder
    • formatString

      public NativeViewPatch.Builder formatString(@Nullable String formatString)
      Sets FormatString: The format of the elements in the view.
      Parameters:
      formatString - the value; null sends an explicit null
      Returns:
      this builder
    • property

      public NativeViewPatch.Builder property(String name, @Nullable Object value)
      Sets a property $metadata doesn't declare, which this open type can have, such as an attribute's value.
      Overrides:
      property in class ViewPatch.Builder
      Parameters:
      name - the property's name, as TM1 writes it
      value - the value; null sends an explicit null
      Returns:
      this builder
    • build

      public NativeViewPatch build()
      The patch, with what's been set so far.
      Overrides:
      build in class ViewPatch.Builder
      Returns:
      the patch