Skip to content

UploadMediaProps

Properties for defining a UploadMedia.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ice-uploadmedia

Initializer

import com.aliyun.ros.cdk.ice.UploadMediaProps;
UploadMediaProps.builder()
//  .appId(java.lang.String)
//  .appId(IResolvable)
//  .entityId(java.lang.String)
//  .entityId(IResolvable)
//  .fileInfo(IResolvable)
//  .fileInfo(java.util.Map<java.lang.String, java.lang.Object>)
//  .mediaMetaData(IResolvable)
//  .mediaMetaData(java.util.Map<java.lang.String, java.lang.Object>)
//  .postProcessConfig(IResolvable)
//  .postProcessConfig(java.util.Map<java.lang.String, java.lang.Object>)
//  .uploadTargetConfig(IResolvable)
//  .uploadTargetConfig(java.util.Map<java.lang.String, java.lang.Object>)
//  .userData(IResolvable)
//  .userData(java.util.Map<java.lang.String, java.lang.Object>)
    .build();

Properties

Name Type Description
appId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property appId: The application ID.
entityId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property entityId: The entity ID.
fileInfo com.aliyun.ros.cdk.core.IResolvable OR java.util.Map Property fileInfo: The file information, which is in the JSON format and contains the following fields: Type: required.
mediaMetaData com.aliyun.ros.cdk.core.IResolvable OR java.util.Map Property mediaMetaData: The metadata of the media asset, which is a JSON string that contains the following fields: Title: required.
postProcessConfig com.aliyun.ros.cdk.core.IResolvable OR java.util.Map Property postProcessConfig: Type = video || audio There is a post-upload processing action.
uploadTargetConfig com.aliyun.ros.cdk.core.IResolvable OR java.util.Map Property uploadTargetConfig: The destination storage address.
userData com.aliyun.ros.cdk.core.IResolvable OR java.util.Map Property userData: The user data.

appIdOptional

public java.lang.Object getAppId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property appId: The application ID.

Default value: app-1000000.


entityIdOptional

public java.lang.Object getEntityId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property entityId: The entity ID.

You can call the CreateEntity operation to create an entity and specify a dynamic metadata structure.


fileInfoOptional

public java.lang.Object getFileInfo();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map

Property fileInfo: The file information, which is in the JSON format and contains the following fields: Type: required.

The file type. Valid values: video, image, audio, text, and other. Name: required. The file name without the extension. Size: optional. The file size. Ext: required. The file name extension.


mediaMetaDataOptional

public java.lang.Object getMediaMetaData();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map

Property mediaMetaData: The metadata of the media asset, which is a JSON string that contains the following fields: Title: required.

The value can be up to 128 characters in length. The value must be encoded in UTF-8. Description: optional. The value can be up to 1,024 characters in length. The value must be encoded in UTF-8. CateId: optional. Tags: optional. BusinessType: required. Valid values: opening or ending if Type is set to video default or cover if Type is set to image subtitles or font if Type is set to text watermark if Type is set to material general CoverURL: optional. DynamicMetaData: The value is a string.


postProcessConfigOptional

public java.lang.Object getPostProcessConfig();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map

Property postProcessConfig: Type = video || audio There is a post-upload processing action.

ProcessType Value: Workflow.


uploadTargetConfigOptional

public java.lang.Object getUploadTargetConfig();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map

Property uploadTargetConfig: The destination storage address.

Set StorageType to oss. Set StorageLocation to an address in ApsaraVideo VOD. You cannot set this field to an OSS URL.


userDataOptional

public java.lang.Object getUserData();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map

Property userData: The user data.

The value must be a JSON string. You can configure settings such as message callbacks.