/* 
 * 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.Long;

public class GetMetaDataByRatingKeyRequestBuilder {

    private Long ratingKey;
    private final SDKMethodInterfaces.MethodCallGetMetaDataByRatingKey sdk;

    public GetMetaDataByRatingKeyRequestBuilder(SDKMethodInterfaces.MethodCallGetMetaDataByRatingKey sdk) {
        this.sdk = sdk;
    }

    public GetMetaDataByRatingKeyRequestBuilder ratingKey(long ratingKey) {
        Utils.checkNotNull(ratingKey, "ratingKey");
        this.ratingKey = ratingKey;
        return this;
    }

    public GetMetaDataByRatingKeyResponse call() throws Exception {

        return sdk.getMetaDataByRatingKey(
            ratingKey);
    }
}
