Class ScheduleEntry

    • Method Detail

      • approximateDurationSeconds

        public final Long approximateDurationSeconds()

        The approximate duration of this program, in seconds.

        Returns:
        The approximate duration of this program, in seconds.
      • approximateStartTime

        public final Instant approximateStartTime()

        The approximate time that the program will start playing.

        Returns:
        The approximate time that the program will start playing.
      • arn

        public final String arn()

        The ARN of the program.

        Returns:
        The ARN of the program.
      • hasAudiences

        public final boolean hasAudiences()
        For responses, this returns true if the service returned a value for the Audiences property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • audiences

        public final List<String> audiences()

        The list of audiences defined in ScheduleEntry.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasAudiences() method.

        Returns:
        The list of audiences defined in ScheduleEntry.
      • channelName

        public final String channelName()

        The name of the channel that uses this schedule.

        Returns:
        The name of the channel that uses this schedule.
      • liveSourceName

        public final String liveSourceName()

        The name of the live source used for the program.

        Returns:
        The name of the live source used for the program.
      • programName

        public final String programName()

        The name of the program.

        Returns:
        The name of the program.
      • hasScheduleAdBreaks

        public final boolean hasScheduleAdBreaks()
        For responses, this returns true if the service returned a value for the ScheduleAdBreaks property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • scheduleAdBreaks

        public final List<ScheduleAdBreak> scheduleAdBreaks()

        The schedule's ad break properties.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasScheduleAdBreaks() method.

        Returns:
        The schedule's ad break properties.
      • sourceLocationName

        public final String sourceLocationName()

        The name of the source location.

        Returns:
        The name of the source location.
      • vodSourceName

        public final String vodSourceName()

        The name of the VOD source.

        Returns:
        The name of the VOD source.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)