Class ChorePatch.Builder

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

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

    • name

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

      public ChorePatch.Builder startTime(@Nullable OffsetDateTime startTime)
      Sets StartTime: The UTC date-time defining the start time of the chore, independent of daylight saving time.
      Parameters:
      startTime - the value; null sends an explicit null
      Returns:
      this builder
    • dstSensitive

      public ChorePatch.Builder dstSensitive(@Nullable Boolean dstSensitive)
      Sets DSTSensitive: A Boolean that indicates whether the chore start time is sensitive to daylight saving time.
      Parameters:
      dstSensitive - the value; null sends an explicit null
      Returns:
      this builder
    • active

      public ChorePatch.Builder active(@Nullable Boolean active)
      Sets Active: A Boolean that indicates whether the chore is active.
      Parameters:
      active - the value; null sends an explicit null
      Returns:
      this builder
    • executionMode

      public ChorePatch.Builder executionMode(@Nullable ChoreExecutionMode executionMode)
      Sets ExecutionMode: The execution mode of the chore, that is, single or multiple commit.
      Parameters:
      executionMode - the value; null sends an explicit null
      Returns:
      this builder
    • frequency

      public ChorePatch.Builder frequency(@Nullable Duration frequency)
      Sets Frequency: The frequency of the chore.
      Parameters:
      frequency - the value; null sends an explicit null
      Returns:
      this builder
    • attributes

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

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

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

      public ChorePatch.Builder tasks(@Nullable List<ChoreTaskPatch> tasks)
      Sets Tasks: A collection of tasks that make up the chore. (nested, for a deep insert)
      Parameters:
      tasks - the value; null sends an explicit null
      Returns:
      this builder
    • bindTasks

      public ChorePatch.Builder bindTasks(ODataPath... targets)
      Binds Tasks to existing entities (Tasks@odata.bind).
      Parameters:
      targets - the entities' paths, such as Dimensions('Region')
      Returns:
      this builder
    • build

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