public class DrmSettingsInfo extends AbstractModel
| Constructor and Description |
|---|
DrmSettingsInfo() |
DrmSettingsInfo(DrmSettingsInfo source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContentId()
Get If `Scheme` is set to `CustomDRMKeys`, this parameter is required and should be specified by the user.
|
DrmKey[] |
getKeys()
Get The key customized by the content user, which is required when `Scheme` is set to CustomDRMKeys.
|
String |
getScheme()
Get This parameter can be set to `CustomDRMKeys` or left empty.
|
String |
getState()
Get Whether to enable DRM encryption.
|
void |
setContentId(String ContentId)
Set If `Scheme` is set to `CustomDRMKeys`, this parameter is required and should be specified by the user.
|
void |
setKeys(DrmKey[] Keys)
Set The key customized by the content user, which is required when `Scheme` is set to CustomDRMKeys.
|
void |
setScheme(String Scheme)
Set This parameter can be set to `CustomDRMKeys` or left empty.
|
void |
setState(String State)
Set Whether to enable DRM encryption.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonStringpublic DrmSettingsInfo()
public DrmSettingsInfo(DrmSettingsInfo source)
public String getState()
public void setState(String State)
State - Whether to enable DRM encryption. Valid values: `CLOSE` (disable), `OPEN` (enable). Default value: `CLOSE`
DRM encryption is supported only for HLS, DASH, HLS_ARCHIVE, DASH_ARCHIVE, HLS_MEDIAPACKAGE, and DASH_MEDIAPACKAGE outputs.public String getScheme()
public void setScheme(String Scheme)
Scheme - This parameter can be set to `CustomDRMKeys` or left empty.
CustomDRMKeys means encryption keys customized by users.public String getContentId()
public void setContentId(String ContentId)
ContentId - If `Scheme` is set to `CustomDRMKeys`, this parameter is required and should be specified by the user.public DrmKey[] getKeys()
public void setKeys(DrmKey[] Keys)
Keys - The key customized by the content user, which is required when `Scheme` is set to CustomDRMKeys.
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2021. All rights reserved.