public final OperationFuture<Instance, OperationMetadata> rescheduleMaintenanceAsync(
      InstanceName name,
      RescheduleMaintenanceRequest.RescheduleType rescheduleType,
      Timestamp scheduleTime) {
    RescheduleMaintenanceRequest request =
        RescheduleMaintenanceRequest.newBuilder()
            .setName(name == null ? null : name.toString())
            .setRescheduleType(rescheduleType)
            .setScheduleTime(scheduleTime)
            .build();
    return rescheduleMaintenanceAsync(request);
  }
Reschedules upcoming maintenance event.

<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()) {
  InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
  RescheduleMaintenanceRequest.RescheduleType rescheduleType =
      RescheduleMaintenanceRequest.RescheduleType.forNumber(0);
  Timestamp scheduleTime = Timestamp.newBuilder().build();
  Instance response =
      memorystoreClient.rescheduleMaintenanceAsync(name, rescheduleType, scheduleTime).get();
}
}</pre>

@param name Required. Name of the instance to reschedule maintenance for:
    `projects/{project}/locations/{location_id}/instances/{instance}`
@param rescheduleType Required. If reschedule type is SPECIFIC_TIME, schedule_time must be set.
@param scheduleTime Optional. Timestamp when the maintenance shall be rescheduled to if
    reschedule_type=SPECIFIC_TIME, in RFC 3339 format. Example: `2012-11-15T16:19:00.094Z`.
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreClient.java