Class EventSeries.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<EventSeries>
    Enclosing interface:
    EventSeries

    @Stability(Stable)
    public static final class EventSeries.Builder
    extends Object
    implements software.amazon.jsii.Builder<EventSeries>
    A builder for EventSeries
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • count

        @Stability(Stable)
        public EventSeries.Builder count​(Number count)
        Sets the value of EventSeries.getCount()
        Parameters:
        count - count is the number of occurrences in this series up to the last heartbeat time. This parameter is required.
        Returns:
        this
      • lastObservedTime

        @Stability(Stable)
        public EventSeries.Builder lastObservedTime​(Instant lastObservedTime)
        Parameters:
        lastObservedTime - lastObservedTime is the time when last Event from the series was seen before last heartbeat. This parameter is required.
        Returns:
        this
      • build

        @Stability(Stable)
        public EventSeries build()
        Builds the configured instance.
        Specified by:
        build in interface software.amazon.jsii.Builder<EventSeries>
        Returns:
        a new instance of EventSeries
        Throws:
        NullPointerException - if any required attribute was not provided