Class AnnotationPatch.Builder

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

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

    • id

      public AnnotationPatch.Builder id(@Nullable String id)
      Sets ID: The ID of the annotation.
      Parameters:
      id - the value; null sends an explicit null
      Returns:
      this builder
    • text

      public AnnotationPatch.Builder text(@Nullable String text)
      Sets Text: The text of the annotation.
      Parameters:
      text - the value; null sends an explicit null
      Returns:
      this builder
    • creator

      public AnnotationPatch.Builder creator(@Nullable String creator)
      Sets Creator: The creator of the annotation.
      Parameters:
      creator - the value; null sends an explicit null
      Returns:
      this builder
    • created

      public AnnotationPatch.Builder created(@Nullable OffsetDateTime created)
      Sets Created: The date that the annotation was created.
      Parameters:
      created - the value; null sends an explicit null
      Returns:
      this builder
    • lastUpdatedBy

      public AnnotationPatch.Builder lastUpdatedBy(@Nullable String lastUpdatedBy)
      Sets LastUpdatedBy: The ID of the element that updated the annotation.
      Parameters:
      lastUpdatedBy - the value; null sends an explicit null
      Returns:
      this builder
    • lastUpdated

      public AnnotationPatch.Builder lastUpdated(@Nullable OffsetDateTime lastUpdated)
      Sets LastUpdated: The date and time value of the last update of this annotation, with a time zone offset.
      Parameters:
      lastUpdated - the value; null sends an explicit null
      Returns:
      this builder
    • applicationContext

      public AnnotationPatch.Builder applicationContext(@Nullable List<ApplicationContextFacetValuePatch> applicationContext)
      Sets ApplicationContext: An interface to the collection of configuration information for the annotation. (nested, for a deep insert)
      Parameters:
      applicationContext - the value; null sends an explicit null
      Returns:
      this builder
    • bindApplicationContext

      public AnnotationPatch.Builder bindApplicationContext(ODataPath... targets)
      Binds ApplicationContext to existing entities (ApplicationContext@odata.bind).
      Parameters:
      targets - the entities' paths, such as Dimensions('Region')
      Returns:
      this builder
    • dimensionalContext

      public AnnotationPatch.Builder dimensionalContext(@Nullable List<? extends MemberPatch> dimensionalContext)
      Sets DimensionalContext: An interface to the collection of dimensions for the annotation. (nested, for a deep insert)
      Parameters:
      dimensionalContext - the value; null sends an explicit null
      Returns:
      this builder
    • bindDimensionalContext

      public AnnotationPatch.Builder bindDimensionalContext(ODataPath... targets)
      Binds DimensionalContext to existing entities (DimensionalContext@odata.bind).
      Parameters:
      targets - the entities' paths, such as Dimensions('Region')
      Returns:
      this builder
    • attachments

      public AnnotationPatch.Builder attachments(@Nullable List<AttachmentPatch> attachments)
      Sets Attachments: Attached documents that provide details and background. (nested, for a deep insert)
      Parameters:
      attachments - the value; null sends an explicit null
      Returns:
      this builder
    • bindAttachments

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

      public AnnotationPatch.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 AnnotationPatch build()
      The patch, with what's been set so far.
      Returns:
      the patch