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

package com.azure.resourcemanager.devtestlabs.generated;

import com.azure.resourcemanager.devtestlabs.models.ExportResourceUsageParameters;
import java.time.OffsetDateTime;

/** Samples for Labs ExportResourceUsage. */
public final class LabsExportResourceUsageSamples {
    /*
     * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ExportResourceUsage.json
     */
    /**
     * Sample code: Labs_ExportResourceUsage.
     *
     * @param manager Entry point to DevTestLabsManager.
     */
    public static void labsExportResourceUsage(com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager) {
        manager
            .labs()
            .exportResourceUsage(
                "resourceGroupName",
                "{labName}",
                new ExportResourceUsageParameters()
                    .withBlobStorageAbsoluteSasUri(
                        "https://invalid.blob.core.windows.net/export.blob?sv=2015-07-08&sig={sas}&sp=rcw")
                    .withUsageStartDate(OffsetDateTime.parse("2020-12-01T00:00:00Z")),
                com.azure.core.util.Context.NONE);
    }
}
