Interface MediaSessionUpsertResponse
- All Superinterfaces:
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
sessionStatemust be an instance of theSessionStateenumeration. - Replace each variable with the appropriate value or object as required for your response.
- Author:
- Copyright (c) 2025 by Oracle, Inc. All Rights Reserved.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder interface for creating immutableMediaSessionUpsertResponseinstances, extending the SuccessResponse.Builder interface. -
Method Summary
Modifier and TypeMethodDescriptionGets the expiration time in seconds associated with the media session upsert response.Gets the media session details associated with the media session upsert response.voidsetExpiresIn(Integer expiresIn) Sets the expiration time in seconds associated with the media session upsert response.voidsetMediaSessionDetails(MediaSessionDetails mediaSessionDetails) Sets the media session details associated with the media session upsert response.Methods inherited from interface com.oracle.media.model.api.response.SuccessResponse
getMediaSessionId, getSessionState, setMediaSessionId, setSessionState
-
Method Details
-
getMediaSessionDetails
MediaSessionDetails getMediaSessionDetails()Gets the media session details associated with the media session upsert response.- Returns:
- the media session details.
-
setMediaSessionDetails
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
Sets the expiration time in seconds associated with the media session upsert response.- Parameters:
expiresIn- the expiration time in seconds to set.
-