code: public ApiSuccessResponse readyForMedia(String mediatype, ReadyForMediaData readyForMediaData) throws ApiException {
          ApiResponse<ApiSuccessResponse> resp = readyForMediaWithHttpInfo(mediatype, readyForMediaData);
          return resp.getData();
      }
docs: Set the agent state to Ready
  Set the current agent&#39;s state to Ready on the specified media channel.
  @param mediatype The media channel. (required)
  @param readyForMediaData  (optional)
  @return ApiSuccessResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body