-
- All Implemented Interfaces:
public class AgamaSourceConfiguration.Builder
The builder for the Agama source configuration.
-
-
Constructor Summary
Constructors Constructor Description AgamaSourceConfiguration.Builder(String asset, StreamType streamType)
Creates a builder for the Agama source configuration.
-
Method Summary
Modifier and Type Method Description AgamaSourceConfiguration.Builder
cdn(@NonNull() String cdn)
Sets the CDN from which the content is served. AgamaSourceConfiguration.Builder
contentTitle(@NonNull() String contentTitle)
Sets the title of the content. AgamaSourceConfiguration.Builder
contentType(@NonNull() String contentType)
Sets the type of the content. AgamaSourceConfiguration.Builder
contentDescription(@NonNull() String contentDescription)
Sets the description of the content. AgamaSourceConfiguration.Builder
serviceName(@NonNull() AgamaServiceName serviceName)
Sets the AgamaServiceName. AgamaSourceConfiguration
build()
Builds the Agama source configuration. -
-
Constructor Detail
-
AgamaSourceConfiguration.Builder
AgamaSourceConfiguration.Builder(String asset, StreamType streamType)
Creates a builder for the Agama source configuration.- Parameters:
asset
- The identifier of the asset.streamType
- The StreamType of the session.
-
-
Method Detail
-
cdn
@NonNull() AgamaSourceConfiguration.Builder cdn(@NonNull() String cdn)
Sets the CDN from which the content is served.
Example:
- "cloudflare"
- Parameters:
cdn
- The CDN.
-
contentTitle
@NonNull() AgamaSourceConfiguration.Builder contentTitle(@NonNull() String contentTitle)
Sets the title of the content.
- The format is 'title' or 'title/season' or 'title/season/episode'.
Example:
- "Game of Thrones/Season 4/Episode 7"
- Parameters:
contentTitle
- The content title.
-
contentType
@NonNull() AgamaSourceConfiguration.Builder contentType(@NonNull() String contentType)
Sets the type of the content.
- Suggested values are 'trailer', 'movie', 'news', 'documentary', ...
- Parameters:
contentType
- The content type.
-
contentDescription
@NonNull() AgamaSourceConfiguration.Builder contentDescription(@NonNull() String contentDescription)
Sets the description of the content.
- Parameters:
contentDescription
- The content description.
-
serviceName
@NonNull() AgamaSourceConfiguration.Builder serviceName(@NonNull() AgamaServiceName serviceName)
Sets the AgamaServiceName.
- Parameters:
serviceName
- The Agama service name.
-
build
@NonNull() AgamaSourceConfiguration build()
Builds the Agama source configuration.
-
-
-
-