Class OriginEndpointProps.Builder
java.lang.Object
software.amazon.awscdk.services.mediapackagev2.alpha.OriginEndpointProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<OriginEndpointProps>
- Enclosing interface:
OriginEndpointProps
@Stability(Experimental)
public static final class OriginEndpointProps.Builder
extends Object
implements software.amazon.jsii.Builder<OriginEndpointProps>
A builder for
OriginEndpointProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cdnAuth(CdnAuthConfiguration cdnAuth) Sets the value ofOriginEndpointOptions.getCdnAuth()Sets the value ofOriginEndpointProps.getChannel()description(String description) Sets the value ofOriginEndpointOptions.getDescription()forceEndpointConfigurationConditions(List<? extends EndpointErrorConfiguration> forceEndpointConfigurationConditions) Sets the value ofOriginEndpointOptions.getForceEndpointConfigurationConditions()Sets the value ofOriginEndpointOptions.getManifests()originEndpointName(String originEndpointName) Sets the value ofOriginEndpointOptions.getOriginEndpointName()removalPolicy(RemovalPolicy removalPolicy) Sets the value ofOriginEndpointOptions.getRemovalPolicy()segment(SegmentConfiguration segment) Sets the value ofOriginEndpointOptions.getSegment()startoverWindow(Duration startoverWindow) Sets the value ofOriginEndpointOptions.getStartoverWindow()Sets the value ofOriginEndpointOptions.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
channel
Sets the value ofOriginEndpointProps.getChannel()- Parameters:
channel- The channel associated with the origin endpoint. This parameter is required.- Returns:
this
-
manifests
@Stability(Experimental) public OriginEndpointProps.Builder manifests(List<? extends Manifest> manifests) Sets the value ofOriginEndpointOptions.getManifests()- Parameters:
manifests- Manifests configuration for HLS, Low Latency HLS and DASH. This parameter is required.- Returns:
this
-
segment
Sets the value ofOriginEndpointOptions.getSegment()- Parameters:
segment- The segment associated with the origin endpoint. This parameter is required. Inside the segment configuration you can define options such as encryption, SPEKE parameters and other general segment configurations.Use Segment.ts() or Segment.cmaf() to create the configuration.
- Returns:
this
-
cdnAuth
Sets the value ofOriginEndpointOptions.getCdnAuth()- Parameters:
cdnAuth- Provide access to MediaPackage V2 Origin Endpoint via secret header.- Returns:
this
-
description
Sets the value ofOriginEndpointOptions.getDescription()- Parameters:
description- The description associated with the origin endpoint.- Returns:
this
-
forceEndpointConfigurationConditions
@Stability(Experimental) public OriginEndpointProps.Builder forceEndpointConfigurationConditions(List<? extends EndpointErrorConfiguration> forceEndpointConfigurationConditions) Sets the value ofOriginEndpointOptions.getForceEndpointConfigurationConditions()- Parameters:
forceEndpointConfigurationConditions- The failover settings for the endpoint.- Returns:
this
-
originEndpointName
@Stability(Experimental) public OriginEndpointProps.Builder originEndpointName(String originEndpointName) Sets the value ofOriginEndpointOptions.getOriginEndpointName()- Parameters:
originEndpointName- The name of the origin endpoint associated with the origin endpoint configuration.- Returns:
this
-
removalPolicy
@Stability(Experimental) public OriginEndpointProps.Builder removalPolicy(RemovalPolicy removalPolicy) Sets the value ofOriginEndpointOptions.getRemovalPolicy()- Parameters:
removalPolicy- Policy to apply when the origin endpoint is removed from the stack. Even though MediaPackage ChannelGroups, Channels and OriginEndpoints are technically stateful, their contents are transient and it is common to add and remove these while rearchitecting your application. The default is thereforeDESTROY. Change it toRETAINif the content (in a lookback window) are so valuable that accidentally losing it would be unacceptable.- Returns:
this
-
startoverWindow
@Stability(Experimental) public OriginEndpointProps.Builder startoverWindow(Duration startoverWindow) Sets the value ofOriginEndpointOptions.getStartoverWindow()- Parameters:
startoverWindow- The size of the window to specify a window of the live stream that's available for on-demand viewing. Viewers can start-over or catch-up on content that falls within the window.- Returns:
this
-
tags
Sets the value ofOriginEndpointOptions.getTags()- Parameters:
tags- The tags associated with the origin endpoint.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OriginEndpointProps>- Returns:
- a new instance of
OriginEndpointProps - Throws:
NullPointerException- if any required attribute was not provided
-