public final OperationFuture<Instance, OperationMetadata> updateInstanceAsync(
      Instance instance, FieldMask updateMask) {
    UpdateInstanceRequest request =
        UpdateInstanceRequest.newBuilder().setInstance(instance).setUpdateMask(updateMask).build();
    return updateInstanceAsync(request);
  }
Updates the parameters of a single Instance.

<p>Sample code:

<pre>{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
  Instance instance = Instance.newBuilder().build();
  FieldMask updateMask = FieldMask.newBuilder().build();
  Instance response = memorystoreClient.updateInstanceAsync(instance, updateMask).get();
}
}</pre>

@param instance Required. The instance to update.
@param updateMask Optional. The list of fields to be updated on the instance. At least one
    field must be specified.
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreClient.java