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

package com.azure.resourcemanager.recoveryservicessiterecovery.generated;

import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateVCenterRequestProperties;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.VCenter;

/** Samples for ReplicationvCenters Update. */
public final class ReplicationvCentersUpdateSamples {
    /*
     * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationvCenters_Update.json
     */
    /**
     * Sample code: Update vCenter operation.
     *
     * @param manager Entry point to SiteRecoveryManager.
     */
    public static void updateVCenterOperation(
        com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) {
        VCenter resource =
            manager
                .replicationvCenters()
                .getWithResponse(
                    "MadhaviVault", "MadhaviVRG", "MadhaviFabric", "esx-78", com.azure.core.util.Context.NONE)
                .getValue();
        resource.update().withProperties(new UpdateVCenterRequestProperties().withIpAddress("10.150.109.25")).apply();
    }
}
