Class TsSpekeEncryptionProps.Builder
java.lang.Object
software.amazon.awscdk.services.mediapackagev2.alpha.TsSpekeEncryptionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TsSpekeEncryptionProps>
- Enclosing interface:
TsSpekeEncryptionProps
@Stability(Experimental)
public static final class TsSpekeEncryptionProps.Builder
extends Object
implements software.amazon.jsii.Builder<TsSpekeEncryptionProps>
A builder for
TsSpekeEncryptionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaudioPreset(PresetSpeke20Audio audioPreset) Sets the value ofTsSpekeEncryptionProps.getAudioPreset()build()Builds the configured instance.certificate(ICertificate certificate) Sets the value ofTsSpekeEncryptionProps.getCertificate()constantInitializationVector(String constantInitializationVector) Sets the value ofTsSpekeEncryptionProps.getConstantInitializationVector()drmSystems(List<? extends TsDrmSystem> drmSystems) Sets the value ofTsSpekeEncryptionProps.getDrmSystems()keyRotationInterval(Duration keyRotationInterval) Sets the value ofTsSpekeEncryptionProps.getKeyRotationInterval()method(TsEncryptionMethod method) Sets the value ofTsSpekeEncryptionProps.getMethod()resourceId(String resourceId) Sets the value ofTsSpekeEncryptionProps.getResourceId()Sets the value ofTsSpekeEncryptionProps.getRole()Sets the value ofTsSpekeEncryptionProps.getUrl()videoPreset(PresetSpeke20Video videoPreset) Sets the value ofTsSpekeEncryptionProps.getVideoPreset()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
method
Sets the value ofTsSpekeEncryptionProps.getMethod()- Parameters:
method- The encryption method to use. This parameter is required.- Returns:
this
-
resourceId
Sets the value ofTsSpekeEncryptionProps.getResourceId()- Parameters:
resourceId- The unique identifier for the content. This parameter is required. The service sends this identifier to the key server to identify the current endpoint. How unique you make this identifier depends on how fine-grained you want access controls to be. The service does not permit you to use the same ID for two simultaneous encryption processes.- Returns:
this
-
role
Sets the value ofTsSpekeEncryptionProps.getRole()- Parameters:
role- IAM role for accessing the key provider API. This parameter is required. This role must have a trust policy that allows MediaPackage to assume the role, and it must have sufficient permissions to access the key retrieval URL.- Returns:
this
-
url
Sets the value ofTsSpekeEncryptionProps.getUrl()- Parameters:
url- URL of the SPEKE key provider. This parameter is required.- Returns:
this
-
audioPreset
@Stability(Experimental) public TsSpekeEncryptionProps.Builder audioPreset(PresetSpeke20Audio audioPreset) Sets the value ofTsSpekeEncryptionProps.getAudioPreset()- Parameters:
audioPreset- Audio encryption preset.- Returns:
this
-
certificate
@Stability(Experimental) public TsSpekeEncryptionProps.Builder certificate(ICertificate certificate) Sets the value ofTsSpekeEncryptionProps.getCertificate()- Parameters:
certificate- The ARN of the certificate that you imported to AWS Certificate Manager to add content key encryption to this endpoint. For this feature to work, your DRM key provider must support content key encryption.- Returns:
this
-
constantInitializationVector
@Stability(Experimental) public TsSpekeEncryptionProps.Builder constantInitializationVector(String constantInitializationVector) Sets the value ofTsSpekeEncryptionProps.getConstantInitializationVector()- Parameters:
constantInitializationVector- Constant initialization vector (32-character hex string). A 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting content.- Returns:
this
-
drmSystems
@Stability(Experimental) public TsSpekeEncryptionProps.Builder drmSystems(List<? extends TsDrmSystem> drmSystems) Sets the value ofTsSpekeEncryptionProps.getDrmSystems()- Parameters:
drmSystems- The DRM systems to use for content protection.- Returns:
this
-
keyRotationInterval
@Stability(Experimental) public TsSpekeEncryptionProps.Builder keyRotationInterval(Duration keyRotationInterval) Sets the value ofTsSpekeEncryptionProps.getKeyRotationInterval()- Parameters:
keyRotationInterval- Key rotation interval.- Returns:
this
-
videoPreset
@Stability(Experimental) public TsSpekeEncryptionProps.Builder videoPreset(PresetSpeke20Video videoPreset) Sets the value ofTsSpekeEncryptionProps.getVideoPreset()- Parameters:
videoPreset- Video encryption preset.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TsSpekeEncryptionProps>- Returns:
- a new instance of
TsSpekeEncryptionProps - Throws:
NullPointerException- if any required attribute was not provided
-