Skip to content

Commit

Permalink
SubmitSnapshotJob add parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Dec 15, 2023
1 parent 926051f commit a0fd603
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-vod/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-12-15 Version: 2.16.21
- SubmitSnapshotJob add parameter

2023-12-13 Version: 2.16.20
- Support Media StorageClass.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-vod/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-vod</artifactId>
<packaging>jar</packaging>
<version>2.16.20</version>
<version>2.16.21</version>
<name>aliyun-java-sdk-vod</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
package com.aliyuncs.vod.model.v20170321;

import com.aliyuncs.RpcAcsRequest;
import java.util.List;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.vod.Endpoint;

Expand All @@ -31,6 +34,9 @@ public class SubmitSnapshotJobRequest extends RpcAcsRequest<SubmitSnapshotJobRes

private String spriteSnapshotConfig;

@SerializedName("specifiedOffsetTimes")
private List<Long> specifiedOffsetTimes;

private String snapshotTemplateId;

private String height;
Expand Down Expand Up @@ -84,6 +90,17 @@ public void setSpriteSnapshotConfig(String spriteSnapshotConfig) {
}
}

public List<Long> getSpecifiedOffsetTimes() {
return this.specifiedOffsetTimes;
}

public void setSpecifiedOffsetTimes(List<Long> specifiedOffsetTimes) {
this.specifiedOffsetTimes = specifiedOffsetTimes;
if (specifiedOffsetTimes != null) {
putQueryParameter("SpecifiedOffsetTimes" , new Gson().toJson(specifiedOffsetTimes));
}
}

public String getSnapshotTemplateId() {
return this.snapshotTemplateId;
}
Expand Down

0 comments on commit a0fd603

Please sign in to comment.