FileAssetLocation
The location of the published file asset.
This is where the asset can be consumed at runtime.
Initializer
import com.aliyun.ros.cdk.core.FileAssetLocation;
FileAssetLocation.builder()
.bucketName(java.lang.String)
.httpUrl(java.lang.String)
.objectKey(java.lang.String)
// .region(java.lang.String)
.build();
Properties
Name | Type | Description |
---|---|---|
bucketName |
java.lang.String |
The name of the OSS bucket. |
httpUrl |
java.lang.String |
The HTTP URL of this asset on OSS. |
objectKey |
java.lang.String |
The path of OSS object. |
region |
java.lang.String |
The region of the OSS bucket. |
bucketName
Required
public java.lang.String getBucketName();
- Type: java.lang.String
The name of the OSS bucket.
httpUrl
Required
public java.lang.String getHttpUrl();
- Type: java.lang.String
The HTTP URL of this asset on OSS.
This value suitable for inclusion in a ROS template, and may be an encoded token.
Example value: https://${bucketName}.oss-${region}.aliyuncs.com/${objectKey}
objectKey
Required
public java.lang.String getObjectKey();
- Type: java.lang.String
The path of OSS object.
region
Optional
public java.lang.String getRegion();
- Type: java.lang.String
The region of the OSS bucket.