Class Timing_RepeatBuilder.Impl

    • Constructor Detail

      • Impl

        public Impl()
        Required fields for Timing.Repeat
    • Method Detail

      • withId

        public Timing_RepeatBuilder.Impl withId​(@NonNull
                                                @NonNull java.lang.String id)
        Parameters:
        id - - Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
      • withWhen

        public Timing_RepeatBuilder.Impl withWhen​(@NonNull
                                                  @NonNull com.babylonhealth.lit.core.EVENT_TIMING... when)
        Parameters:
        when -
      • withWhen

        public Timing_RepeatBuilder.Impl withWhen​(@NonNull
                                                  @NonNull java.util.Collection<com.babylonhealth.lit.core.EVENT_TIMING> when)
        Parameters:
        when -
      • withPeriod

        public Timing_RepeatBuilder.Impl withPeriod​(@NonNull
                                                    @NonNull scala.math.BigDecimal period)
        Parameters:
        period -
      • withOffset

        public Timing_RepeatBuilder.Impl withOffset​(@NonNull
                                                    @NonNull java.lang.Integer offset)
        Parameters:
        offset -
      • withCountMax

        public Timing_RepeatBuilder.Impl withCountMax​(@NonNull
                                                      @NonNull java.lang.Integer countMax)
        Parameters:
        countMax -
      • withDuration

        public Timing_RepeatBuilder.Impl withDuration​(@NonNull
                                                      @NonNull scala.math.BigDecimal duration)
        Parameters:
        duration -
      • withExtension

        public Timing_RepeatBuilder.Impl withExtension​(@NonNull
                                                       @NonNull com.babylonhealth.lit.core.model.Extension... extension)
        Parameters:
        extension - - May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
      • withExtension

        public Timing_RepeatBuilder.Impl withExtension​(@NonNull
                                                       @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)
        Parameters:
        extension - - May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
      • withBounds

        public Timing_RepeatBuilder.Impl withBounds​(@NonNull
                                                    @NonNull Unions.ChoiceDurationOrPeriodOrRange bounds)
        Parameters:
        bounds - Field is a 'choice' field. Type should be one of Duration, Period, Range. To pass the value in, wrap with one of the Timing_RepeatBuilder.bounds static methods
      • withFrequency

        public Timing_RepeatBuilder.Impl withFrequency​(@NonNull
                                                       @NonNull java.lang.Integer frequency)
        Parameters:
        frequency -
      • withPeriodMax

        public Timing_RepeatBuilder.Impl withPeriodMax​(@NonNull
                                                       @NonNull scala.math.BigDecimal periodMax)
        Parameters:
        periodMax -
      • withDayOfWeek

        public Timing_RepeatBuilder.Impl withDayOfWeek​(@NonNull
                                                       @NonNull com.babylonhealth.lit.core.DAYS_OF_WEEK... dayOfWeek)
        Parameters:
        dayOfWeek -
      • withDayOfWeek

        public Timing_RepeatBuilder.Impl withDayOfWeek​(@NonNull
                                                       @NonNull java.util.Collection<com.babylonhealth.lit.core.DAYS_OF_WEEK> dayOfWeek)
        Parameters:
        dayOfWeek -
      • withTimeOfDay

        public Timing_RepeatBuilder.Impl withTimeOfDay​(@NonNull
                                                       @NonNull java.time.LocalTime... timeOfDay)
        Parameters:
        timeOfDay -
      • withTimeOfDay

        public Timing_RepeatBuilder.Impl withTimeOfDay​(@NonNull
                                                       @NonNull java.util.Collection<java.time.LocalTime> timeOfDay)
        Parameters:
        timeOfDay -
      • withPeriodUnit

        public Timing_RepeatBuilder.Impl withPeriodUnit​(@NonNull
                                                        @NonNull com.babylonhealth.lit.core.UNITS_OF_TIME periodUnit)
        Parameters:
        periodUnit -
      • withDurationMax

        public Timing_RepeatBuilder.Impl withDurationMax​(@NonNull
                                                         @NonNull scala.math.BigDecimal durationMax)
        Parameters:
        durationMax -
      • withDurationUnit

        public Timing_RepeatBuilder.Impl withDurationUnit​(@NonNull
                                                          @NonNull com.babylonhealth.lit.core.UNITS_OF_TIME durationUnit)
        Parameters:
        durationUnit -
      • withFrequencyMax

        public Timing_RepeatBuilder.Impl withFrequencyMax​(@NonNull
                                                          @NonNull java.lang.Integer frequencyMax)
        Parameters:
        frequencyMax -
      • build

        public com.babylonhealth.lit.core.model.Timing.Repeat build()
        Specified by:
        build in interface Timing_RepeatBuilder