def get_objects_by_object_ids_as_lazy(parameters, custom_headers:nil)
      response = get_objects_by_object_ids_async(parameters, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_link|
          get_objects_by_object_ids_next_async(next_link, custom_headers:custom_headers)
        end
        page
      end
    end
def get_objects_by_object_ids_as_lazy(parameters, custom_headers:nil)
      response = get_objects_by_object_ids_async(parameters, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_link|
          get_objects_by_object_ids_next_async(next_link, custom_headers:custom_headers)
        end
        page
      end
    end
Gets AD group membership for the specified AD object IDs.

 @param parameters [GetObjectsParameters] Objects filtering parameters.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [GetObjectsResult] which provide lazy access to pages of the
 response.