Class MDXViewPatch.Builder

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

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

    • name

      public MDXViewPatch.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 MDXViewPatch.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 MDXViewPatch.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 MDXViewPatch.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 MDXViewPatch.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 MDXViewPatch.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
    • mdx

      public MDXViewPatch.Builder mdx(@Nullable String mdx)
      Sets MDX: An MDX expression that defines a cube view.
      Parameters:
      mdx - the value; null sends an explicit null
      Returns:
      this builder
    • property

      public MDXViewPatch.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 MDXViewPatch build()
      The patch, with what's been set so far.
      Overrides:
      build in class ViewPatch.Builder
      Returns:
      the patch