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

package com.azure.resourcemanager.dataprotection.generated;

import com.azure.resourcemanager.dataprotection.models.SyncBackupInstanceRequest;
import com.azure.resourcemanager.dataprotection.models.SyncType;

/** Samples for BackupInstances SyncBackupInstance. */
public final class BackupInstancesSyncBackupInstanceSamples {
    /*
     * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/SyncBackupInstance.json
     */
    /**
     * Sample code: Sync BackupInstance.
     *
     * @param manager Entry point to DataProtectionManager.
     */
    public static void syncBackupInstance(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) {
        manager
            .backupInstances()
            .syncBackupInstance(
                "testrg",
                "testvault",
                "testbi",
                new SyncBackupInstanceRequest().withSyncType(SyncType.DEFAULT),
                com.azure.core.util.Context.NONE);
    }
}
