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

package com.azure.resourcemanager.cosmos.generated;

import com.azure.resourcemanager.cosmos.models.ContinuousBackupRestoreLocation;

/** Samples for MongoDBResources RetrieveContinuousBackupInformation. */
public final class MongoDBResourcesRetrieveContinuousBackupInformationSamples {
    /*
     * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-04-15/examples/CosmosDBMongoDBCollectionBackupInformation.json
     */
    /**
     * Sample code: CosmosDBMongoDBCollectionBackupInformation.
     *
     * @param azure The entry point for accessing resource management APIs in Azure.
     */
    public static void cosmosDBMongoDBCollectionBackupInformation(
        com.azure.resourcemanager.AzureResourceManager azure) {
        azure
            .cosmosDBAccounts()
            .manager()
            .serviceClient()
            .getMongoDBResources()
            .retrieveContinuousBackupInformation(
                "rgName",
                "ddb1",
                "databaseName",
                "collectionName",
                new ContinuousBackupRestoreLocation().withLocation("North Europe"),
                com.azure.core.util.Context.NONE);
    }
}
