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

package tsptest.specialheaders.generated;

import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Configuration;
import tsptest.specialheaders.EtagHeadersClient;
import tsptest.specialheaders.SpecialHeadersClientBuilder;
import tsptest.specialheaders.models.Resource;

public class EtagHeadersListWithEtag {
    public static void main(String[] args) {
        EtagHeadersClient etagHeadersClient
            = new SpecialHeadersClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT"))
                .buildEtagHeadersClient();
        // BEGIN:tsptest.specialheaders.generated.etagheaderslistwithetag.etagheaderslistwithetag
        PagedIterable<Resource> response = etagHeadersClient.listWithEtag();
        // END:tsptest.specialheaders.generated.etagheaderslistwithetag.etagheaderslistwithetag
    }
}
