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

package com.azure.resourcemanager.redis.generated;

import com.azure.resourcemanager.redis.models.ImportRdbParameters;
import java.util.Arrays;

/** Samples for Redis ImportData. */
public final class RedisImportDataSamples {
    /*
     * x-ms-original-file: specification/redis/resource-manager/Microsoft.Cache/stable/2023-04-01/examples/RedisCacheImport.json
     */
    /**
     * Sample code: RedisCacheImport.
     *
     * @param azure The entry point for accessing resource management APIs in Azure.
     */
    public static void redisCacheImport(com.azure.resourcemanager.AzureResourceManager azure) {
        azure
            .redisCaches()
            .manager()
            .serviceClient()
            .getRedis()
            .importData(
                "rg1",
                "cache1",
                new ImportRdbParameters()
                    .withFormat("RDB")
                    .withFiles(Arrays.asList("http://fileuris.contoso.com/pathtofile1"))
                    .withStorageSubscriptionId("storageSubId"),
                com.azure.core.util.Context.NONE);
    }
}
