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

package dev.plexapi.sdk.models.operations;

import dev.plexapi.sdk.utils.Utils;
import java.lang.String;

public class GetSearchResultsRequestBuilder {

    private String query;
    private final SDKMethodInterfaces.MethodCallGetSearchResults sdk;

    public GetSearchResultsRequestBuilder(SDKMethodInterfaces.MethodCallGetSearchResults sdk) {
        this.sdk = sdk;
    }

    public GetSearchResultsRequestBuilder query(String query) {
        Utils.checkNotNull(query, "query");
        this.query = query;
        return this;
    }

    public GetSearchResultsResponse call() throws Exception {

        return sdk.getSearchResults(
            query);
    }
}
