Interface MediaSessionUpsertResponse

All Superinterfaces:
SuccessResponse

public interface MediaSessionUpsertResponse extends SuccessResponse
Represents a response to a media session upsert operation, extending the SuccessResponse interface.

Implementations of this interface provide access to the media session details and expiration time, in addition to the standard success response details.

Example usage:


 MediaSessionUpsertResponse response = new MediaSessionUpsertResponseImpl.Builder()
     .mediaSessionId(mediaSessionId)
     .sessionState(SessionState.CREATED)
     .mediaSessionDetails(mediaSessionDetails)
     .expiresIn(expiresIn)
     .build();
 

Notes:

  • The value for sessionState must be an instance of the SessionState enumeration.
  • Replace each variable with the appropriate value or object as required for your response.

Author:
Copyright (c) 2025 by Oracle, Inc. All Rights Reserved.
  • Method Details

    • getMediaSessionDetails

      MediaSessionDetails getMediaSessionDetails()
      Gets the media session details associated with the media session upsert response.
      Returns:
      the media session details.
    • setMediaSessionDetails

      void setMediaSessionDetails(MediaSessionDetails mediaSessionDetails)
      Sets the media session details associated with the media session upsert response.
      Parameters:
      mediaSessionDetails - the media session details to set.
    • getExpiresIn

      Integer getExpiresIn()
      Gets the expiration time in seconds associated with the media session upsert response.
      Returns:
      the expiration time in seconds.
    • setExpiresIn

      void setExpiresIn(Integer expiresIn)
      Sets the expiration time in seconds associated with the media session upsert response.
      Parameters:
      expiresIn - the expiration time in seconds to set.