Class ChannelProps.Builder
java.lang.Object
software.amazon.awscdk.services.ivs.ChannelProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ChannelProps>
- Enclosing interface:
ChannelProps
@Stability(Experimental)
public static final class ChannelProps.Builder
extends Object
implements software.amazon.jsii.Builder<ChannelProps>
A builder for
ChannelProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthorized
(Boolean authorized) Sets the value ofChannelProps.getAuthorized()
build()
Builds the configured instance.latencyMode
(LatencyMode latencyMode) Sets the value ofChannelProps.getLatencyMode()
Sets the value ofChannelProps.getName()
type
(ChannelType type) Sets the value ofChannelProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorized
Sets the value ofChannelProps.getAuthorized()
- Parameters:
authorized
- Whether the channel is authorized. If you wish to make an authorized channel, you will need to ensure that a PlaybackKeyPair has been uploaded to your account as this is used to validate the signed JWT that is required for authorization- Returns:
this
-
latencyMode
Sets the value ofChannelProps.getLatencyMode()
- Parameters:
latencyMode
- Channel latency mode.- Returns:
this
-
name
Sets the value ofChannelProps.getName()
- Parameters:
name
- Channel name.- Returns:
this
-
type
Sets the value ofChannelProps.getType()
- Parameters:
type
- The channel type, which determines the allowable resolution and bitrate. If you exceed the allowable resolution or bitrate, the stream will disconnect immediately- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ChannelProps>
- Returns:
- a new instance of
ChannelProps
- Throws:
NullPointerException
- if any required attribute was not provided
-