code: public RedisPatchScheduleInner createOrUpdate(String resourceGroupName, String name, List<ScheduleEntry> scheduleEntries) {
          return createOrUpdateWithServiceResponseAsync(resourceGroupName, name, scheduleEntries).toBlocking().single().body();
      }
docs: Create or replace the patching schedule for Redis cache (requires Premium SKU).
  
  @param resourceGroupName The name of the resource group.
  @param name The name of the Redis cache.
  @param scheduleEntries List of patch schedules for a Redis cache.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the RedisPatchScheduleInner object if successful.