Class ViewPatch.Builder

java.lang.Object
io.skipcheck.tm1.client.model.ViewPatch.Builder
Direct Known Subclasses:
MDXViewPatch.Builder, NativeViewPatch.Builder
Enclosing class:
ViewPatch

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

    • name

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

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

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

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

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

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

      public ViewPatch.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.
      Parameters:
      name - the property's name, as TM1 writes it
      value - the value; null sends an explicit null
      Returns:
      this builder
    • build

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