Interface AddMediaStreamRequest.Builder

All Superinterfaces:
Buildable, CopyableBuilder<AddMediaStreamRequest.Builder,AddMediaStreamRequest>, SdkBuilder<AddMediaStreamRequest.Builder,AddMediaStreamRequest>, SdkPojo
Enclosing class:
AddMediaStreamRequest

public static interface AddMediaStreamRequest.Builder extends SdkPojo, CopyableBuilder<AddMediaStreamRequest.Builder,AddMediaStreamRequest>
  • Method Details

    • attributes

      The attributes that you want to assign to the new media stream.
      Parameters:
      attributes - The attributes that you want to assign to the new media stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributes

      The attributes that you want to assign to the new media stream. This is a convenience method that creates an instance of the MediaStreamAttributesRequest.Builder avoiding the need to create one manually via MediaStreamAttributesRequest.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to attributes(MediaStreamAttributesRequest).

      Parameters:
      attributes - a consumer that will call methods on MediaStreamAttributesRequest.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • clockRate

      AddMediaStreamRequest.Builder clockRate(Integer clockRate)
      The sample rate (in Hz) for the stream. If the media stream type is video or ancillary data, set this value to 90000. If the media stream type is audio, set this value to either 48000 or 96000.
      Parameters:
      clockRate - The sample rate (in Hz) for the stream. If the media stream type is video or ancillary data, set this value to 90000. If the media stream type is audio, set this value to either 48000 or 96000.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      AddMediaStreamRequest.Builder description(String description)
      A description that can help you quickly identify what your media stream is used for.
      Parameters:
      description - A description that can help you quickly identify what your media stream is used for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • mediaStreamId

      AddMediaStreamRequest.Builder mediaStreamId(Integer mediaStreamId)
      A unique identifier for the media stream.
      Parameters:
      mediaStreamId - A unique identifier for the media stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • mediaStreamName

      AddMediaStreamRequest.Builder mediaStreamName(String mediaStreamName)
      A name that helps you distinguish one media stream from another.
      Parameters:
      mediaStreamName - A name that helps you distinguish one media stream from another.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • mediaStreamType

      AddMediaStreamRequest.Builder mediaStreamType(String mediaStreamType)
      The type of media stream.
      Parameters:
      mediaStreamType - The type of media stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • mediaStreamType

      AddMediaStreamRequest.Builder mediaStreamType(MediaStreamType mediaStreamType)
      The type of media stream.
      Parameters:
      mediaStreamType - The type of media stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • videoFormat

      AddMediaStreamRequest.Builder videoFormat(String videoFormat)
      The resolution of the video.
      Parameters:
      videoFormat - The resolution of the video.
      Returns:
      Returns a reference to this object so that method calls can be chained together.