/* 
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */

package dev.plexapi.sdk.models.operations;

import dev.plexapi.sdk.utils.Utils;

public class GetTimelineRequestBuilder {

    private GetTimelineRequest request;
    private final SDKMethodInterfaces.MethodCallGetTimeline sdk;

    public GetTimelineRequestBuilder(SDKMethodInterfaces.MethodCallGetTimeline sdk) {
        this.sdk = sdk;
    }

    public GetTimelineRequestBuilder request(GetTimelineRequest request) {
        Utils.checkNotNull(request, "request");
        this.request = request;
        return this;
    }

    public GetTimelineResponse call() throws Exception {

        return sdk.getTimeline(
            request);
    }
}
