Class CallRecordsRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.communications.callrecords.CallRecordsRequestBuilder

@Generated("com.microsoft.kiota") public class CallRecordsRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the callRecords property of the microsoft.graph.cloudCommunications entity.
  • Constructor Details

    • CallRecordsRequestBuilder

      public CallRecordsRequestBuilder(@Nonnull HashMap<String,Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new CallRecordsRequestBuilder and sets the default values.
      Parameters:
      pathParameters - Path parameters for the request
      requestAdapter - The request adapter to use to execute the requests.
    • CallRecordsRequestBuilder

      public CallRecordsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new CallRecordsRequestBuilder and sets the default values.
      Parameters:
      rawUrl - The raw URL to use for the request builder.
      requestAdapter - The request adapter to use to execute the requests.
  • Method Details

    • count

      @Nonnull public CountRequestBuilder count()
      Provides operations to count the resources in the collection.
      Returns:
      a CountRequestBuilder
    • byCallRecordId

      @Nonnull public CallRecordItemRequestBuilder byCallRecordId(@Nonnull String callRecordId)
      Provides operations to manage the callRecords property of the microsoft.graph.cloudCommunications entity.
      Parameters:
      callRecordId - The unique identifier of callRecord
      Returns:
      a CallRecordItemRequestBuilder
    • get

      @Nullable public CallRecordCollectionResponse get()
      Get the list of callRecord objects and their properties. The results can be optionally filtered using the $filter query parameter on the startDateTime and participant id properties. Note that the listed call records don't include expandable relationships such as sessions and participants_v2. You can expand these relationships using Get callRecord for a specific record.
      Returns:
      a CallRecordCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      @Nullable public CallRecordCollectionResponse get(@Nullable Consumer<CallRecordsRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get the list of callRecord objects and their properties. The results can be optionally filtered using the $filter query parameter on the startDateTime and participant id properties. Note that the listed call records don't include expandable relationships such as sessions and participants_v2. You can expand these relationships using Get callRecord for a specific record.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a CallRecordCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • microsoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime

      @Nonnull public MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder microsoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime(@Nonnull OffsetDateTime fromDateTime, @Nonnull OffsetDateTime toDateTime)
      Provides operations to call the getDirectRoutingCalls method.
      Parameters:
      fromDateTime - Usage: fromDateTime={fromDateTime}
      toDateTime - Usage: toDateTime={toDateTime}
      Returns:
      a MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder
    • microsoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime

      @Nonnull public MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder microsoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime(@Nonnull OffsetDateTime fromDateTime, @Nonnull OffsetDateTime toDateTime)
      Provides operations to call the getPstnCalls method.
      Parameters:
      fromDateTime - Usage: fromDateTime={fromDateTime}
      toDateTime - Usage: toDateTime={toDateTime}
      Returns:
      a MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder
    • post

      @Nullable public CallRecord post(@Nonnull CallRecord body)
      Create new navigation property to callRecords for communications
      Parameters:
      body - The request body
      Returns:
      a CallRecord
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • post

      @Nullable public CallRecord post(@Nonnull CallRecord body, @Nullable Consumer<CallRecordsRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Create new navigation property to callRecords for communications
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a CallRecord
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      Get the list of callRecord objects and their properties. The results can be optionally filtered using the $filter query parameter on the startDateTime and participant id properties. Note that the listed call records don't include expandable relationships such as sessions and participants_v2. You can expand these relationships using Get callRecord for a specific record.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<CallRecordsRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get the list of callRecord objects and their properties. The results can be optionally filtered using the $filter query parameter on the startDateTime and participant id properties. Note that the listed call records don't include expandable relationships such as sessions and participants_v2. You can expand these relationships using Get callRecord for a specific record.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toPostRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull CallRecord body)
      Create new navigation property to callRecords for communications
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPostRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull CallRecord body, @Nullable Consumer<CallRecordsRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Create new navigation property to callRecords for communications
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

      @Nonnull public CallRecordsRequestBuilder withUrl(@Nonnull String rawUrl)
      Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
      Parameters:
      rawUrl - The raw URL to use for the request builder.
      Returns:
      a CallRecordsRequestBuilder