Class MediaAsset.Builder
- java.lang.Object
-
- com.oracle.bmc.mediaservices.model.MediaAsset.Builder
-
- Enclosing class:
- MediaAsset
public static class MediaAsset.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaAsset.Builder
bucketName(String bucketName)
The name of the object storage bucket where this represented asset is located.MediaAsset
build()
MediaAsset.Builder
compartmentId(String compartmentId)
The ID of the compartment containing the MediaAsset.MediaAsset.Builder
copy(MediaAsset model)
MediaAsset.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.MediaAsset.Builder
displayName(String displayName)
A user-friendly name.MediaAsset.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.MediaAsset.Builder
id(String id)
Unique identifier that is immutable on creation.MediaAsset.Builder
lifecycleState(LifecycleState lifecycleState)
The current state of the MediaAsset.MediaAsset.Builder
locks(List<ResourceLock> locks)
Locks associated with this resource.MediaAsset.Builder
masterMediaAssetId(String masterMediaAssetId)
The ID of the senior most asset from which this asset is derived.MediaAsset.Builder
mediaAssetTags(List<MediaAssetTag> mediaAssetTags)
List of tags for the MediaAsset.MediaAsset.Builder
mediaWorkflowJobId(String mediaWorkflowJobId)
The ID of the MediaWorkflowJob used to produce this asset.MediaAsset.Builder
metadata(List<Metadata> metadata)
List of Metadata.MediaAsset.Builder
namespaceName(String namespaceName)
The object storage namespace where this asset is located.MediaAsset.Builder
objectEtag(String objectEtag)
eTag of the underlying object storage object.MediaAsset.Builder
objectName(String objectName)
The object storage object name that identifies this asset.MediaAsset.Builder
parentMediaAssetId(String parentMediaAssetId)
The ID of the parent asset from which this asset is derived.MediaAsset.Builder
segmentRangeEndIndex(Long segmentRangeEndIndex)
The end index of video segment files.MediaAsset.Builder
segmentRangeStartIndex(Long segmentRangeStartIndex)
The start index for video segment files.MediaAsset.Builder
sourceMediaWorkflowId(String sourceMediaWorkflowId)
The ID of the MediaWorkflow used to produce this asset.MediaAsset.Builder
sourceMediaWorkflowVersion(Long sourceMediaWorkflowVersion)
The version of the MediaWorkflow used to produce this asset.MediaAsset.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.MediaAsset.Builder
timeCreated(Date timeCreated)
The time when the MediaAsset was created.MediaAsset.Builder
timeUpdated(Date timeUpdated)
The time when the MediaAsset was updated.MediaAsset.Builder
type(AssetType type)
The type of the media asset.
-
-
-
Method Detail
-
id
public MediaAsset.Builder id(String id)
Unique identifier that is immutable on creation.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public MediaAsset.Builder compartmentId(String compartmentId)
The ID of the compartment containing the MediaAsset.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
sourceMediaWorkflowId
public MediaAsset.Builder sourceMediaWorkflowId(String sourceMediaWorkflowId)
The ID of the MediaWorkflow used to produce this asset.- Parameters:
sourceMediaWorkflowId
- the value to set- Returns:
- this builder
-
mediaWorkflowJobId
public MediaAsset.Builder mediaWorkflowJobId(String mediaWorkflowJobId)
The ID of the MediaWorkflowJob used to produce this asset.- Parameters:
mediaWorkflowJobId
- the value to set- Returns:
- this builder
-
sourceMediaWorkflowVersion
public MediaAsset.Builder sourceMediaWorkflowVersion(Long sourceMediaWorkflowVersion)
The version of the MediaWorkflow used to produce this asset.- Parameters:
sourceMediaWorkflowVersion
- the value to set- Returns:
- this builder
-
displayName
public MediaAsset.Builder displayName(String displayName)
A user-friendly name.Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
timeCreated
public MediaAsset.Builder timeCreated(Date timeCreated)
The time when the MediaAsset was created.An RFC3339 formatted datetime string.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
lifecycleState
public MediaAsset.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the MediaAsset.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
type
public MediaAsset.Builder type(AssetType type)
The type of the media asset.- Parameters:
type
- the value to set- Returns:
- this builder
-
parentMediaAssetId
public MediaAsset.Builder parentMediaAssetId(String parentMediaAssetId)
The ID of the parent asset from which this asset is derived.- Parameters:
parentMediaAssetId
- the value to set- Returns:
- this builder
-
masterMediaAssetId
public MediaAsset.Builder masterMediaAssetId(String masterMediaAssetId)
The ID of the senior most asset from which this asset is derived.- Parameters:
masterMediaAssetId
- the value to set- Returns:
- this builder
-
bucketName
public MediaAsset.Builder bucketName(String bucketName)
The name of the object storage bucket where this represented asset is located.- Parameters:
bucketName
- the value to set- Returns:
- this builder
-
namespaceName
public MediaAsset.Builder namespaceName(String namespaceName)
The object storage namespace where this asset is located.- Parameters:
namespaceName
- the value to set- Returns:
- this builder
-
objectName
public MediaAsset.Builder objectName(String objectName)
The object storage object name that identifies this asset.- Parameters:
objectName
- the value to set- Returns:
- this builder
-
objectEtag
public MediaAsset.Builder objectEtag(String objectEtag)
eTag of the underlying object storage object.- Parameters:
objectEtag
- the value to set- Returns:
- this builder
-
timeUpdated
public MediaAsset.Builder timeUpdated(Date timeUpdated)
The time when the MediaAsset was updated.An RFC3339 formatted datetime string.
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
segmentRangeStartIndex
public MediaAsset.Builder segmentRangeStartIndex(Long segmentRangeStartIndex)
The start index for video segment files.- Parameters:
segmentRangeStartIndex
- the value to set- Returns:
- this builder
-
segmentRangeEndIndex
public MediaAsset.Builder segmentRangeEndIndex(Long segmentRangeEndIndex)
The end index of video segment files.- Parameters:
segmentRangeEndIndex
- the value to set- Returns:
- this builder
-
metadata
public MediaAsset.Builder metadata(List<Metadata> metadata)
List of Metadata.- Parameters:
metadata
- the value to set- Returns:
- this builder
-
mediaAssetTags
public MediaAsset.Builder mediaAssetTags(List<MediaAssetTag> mediaAssetTags)
List of tags for the MediaAsset.- Parameters:
mediaAssetTags
- the value to set- Returns:
- this builder
-
freeformTags
public MediaAsset.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public MediaAsset.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public MediaAsset.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
locks
public MediaAsset.Builder locks(List<ResourceLock> locks)
Locks associated with this resource.- Parameters:
locks
- the value to set- Returns:
- this builder
-
build
public MediaAsset build()
-
copy
public MediaAsset.Builder copy(MediaAsset model)
-
-