// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.analytics.purview.catalog.generated;

import com.azure.analytics.purview.catalog.LineageClient;
import com.azure.analytics.purview.catalog.LineageClientBuilder;
import com.azure.core.http.rest.RequestOptions;
import com.azure.core.http.rest.Response;
import com.azure.core.util.BinaryData;
import com.azure.identity.DefaultAzureCredentialBuilder;

public class NextPageLineage {
    public static void main(String[] args) {
        LineageClient lineageClient =
                new LineageClientBuilder()
                        .credential(new DefaultAzureCredentialBuilder().build())
                        .endpoint("{Endpoint}")
                        .buildClient();
        // BEGIN:com.azure.analytics.purview.catalog.generated.lineagenextpagelineage.nextpagelineage
        RequestOptions requestOptions =
                new RequestOptions()
                        .addQueryParam("getDerivedLineage", "true")
                        .addQueryParam("limit", "5")
                        .addQueryParam("offset", "0");
        Response<BinaryData> response =
                lineageClient.nextPageLineageWithResponse(
                        "a6894eb3-81f3-829b-2adc-52f3e603411a", "INPUT", requestOptions);
        // END:com.azure.analytics.purview.catalog.generated.lineagenextpagelineage.nextpagelineage
    }
}
