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 Summary
Modifier and TypeMethodDescriptiondefault AddMediaStreamRequest.Builder
attributes
(Consumer<MediaStreamAttributesRequest.Builder> attributes) The attributes that you want to assign to the new media stream.attributes
(MediaStreamAttributesRequest attributes) The attributes that you want to assign to the new media stream.The sample rate (in Hz) for the stream.description
(String description) A description that can help you quickly identify what your media stream is used for.mediaStreamId
(Integer mediaStreamId) A unique identifier for the media stream.mediaStreamName
(String mediaStreamName) A name that helps you distinguish one media stream from another.mediaStreamType
(String mediaStreamType) The type of media stream.mediaStreamType
(MediaStreamType mediaStreamType) The type of media stream.videoFormat
(String videoFormat) The resolution of the video.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
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
default AddMediaStreamRequest.Builder attributes(Consumer<MediaStreamAttributesRequest.Builder> attributes) The attributes that you want to assign to the new media stream. This is a convenience method that creates an instance of theMediaStreamAttributesRequest.Builder
avoiding the need to create one manually viaMediaStreamAttributesRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattributes(MediaStreamAttributesRequest)
.- Parameters:
attributes
- a consumer that will call methods onMediaStreamAttributesRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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
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
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
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
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.
-