public MotionGraphicsActivateScheduleActionSettings withDuration(Long duration) {
        setDuration(duration);
        return this;
    }
Duration (in milliseconds) that motion graphics should render on to the video stream. Leaving out this property
or setting to 0 will result in rendering continuing until a deactivate action is processed.

@param duration
       Duration (in milliseconds) that motion graphics should render on to the video stream. Leaving out this
       property or setting to 0 will result in rendering continuing until a deactivate action is processed.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/MotionGraphicsActivateScheduleActionSettings.java