index int64 | repo_id string | file_path string | content string |
|---|---|---|---|
0 | java-sources/com/aliyun/alibabacloud-viapi20210930/1.0.0/com/aliyun/sdk/service/viapi20210930 | java-sources/com/aliyun/alibabacloud-viapi20210930/1.0.0/com/aliyun/sdk/service/viapi20210930/models/QueryAiStoreApiTreeResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.viapi20210930.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link QueryAiStoreApiTreeResponseBody} extends {@link TeaModel}
*
* <p>QueryAiStoreApiTreeResponseBody</p>
*/
public class QueryAiStoreApiTreeResponseBody extends TeaModel {
@NameInMap("Data")
private java.util.List < AiStoreApiNode > data;
@NameInMap("RequestId")
private String requestId;
private QueryAiStoreApiTreeResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static QueryAiStoreApiTreeResponseBody create() {
return builder().build();
}
/**
* @return data
*/
public java.util.List < AiStoreApiNode > getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List < AiStoreApiNode > data;
private String requestId;
/**
* Data.
*/
public Builder data(java.util.List < AiStoreApiNode > data) {
this.data = data;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public QueryAiStoreApiTreeResponseBody build() {
return new QueryAiStoreApiTreeResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-viapi20210930/1.0.0/com/aliyun/sdk/service/viapi20210930 | java-sources/com/aliyun/alibabacloud-viapi20210930/1.0.0/com/aliyun/sdk/service/viapi20210930/models/QueryAiStoreRegionsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.viapi20210930.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link QueryAiStoreRegionsRequest} extends {@link RequestModel}
*
* <p>QueryAiStoreRegionsRequest</p>
*/
public class QueryAiStoreRegionsRequest extends Request {
private QueryAiStoreRegionsRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static QueryAiStoreRegionsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<QueryAiStoreRegionsRequest, Builder> {
private Builder() {
super();
}
private Builder(QueryAiStoreRegionsRequest request) {
super(request);
}
@Override
public QueryAiStoreRegionsRequest build() {
return new QueryAiStoreRegionsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-viapi20210930/1.0.0/com/aliyun/sdk/service/viapi20210930 | java-sources/com/aliyun/alibabacloud-viapi20210930/1.0.0/com/aliyun/sdk/service/viapi20210930/models/QueryAiStoreRegionsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.viapi20210930.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link QueryAiStoreRegionsResponse} extends {@link TeaModel}
*
* <p>QueryAiStoreRegionsResponse</p>
*/
public class QueryAiStoreRegionsResponse extends Response {
@NameInMap("headers")
private java.util.Map < String, String > headers;
@NameInMap("statusCode")
private Integer statusCode;
@NameInMap("body")
private QueryAiStoreRegionsResponseBody body;
private QueryAiStoreRegionsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static QueryAiStoreRegionsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map < String, String > getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public QueryAiStoreRegionsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<QueryAiStoreRegionsResponse, Builder> {
Builder headers(java.util.Map < String, String > headers);
Builder statusCode(Integer statusCode);
Builder body(QueryAiStoreRegionsResponseBody body);
@Override
QueryAiStoreRegionsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<QueryAiStoreRegionsResponse, Builder>
implements Builder {
private java.util.Map < String, String > headers;
private Integer statusCode;
private QueryAiStoreRegionsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(QueryAiStoreRegionsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map < String, String > headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(QueryAiStoreRegionsResponseBody body) {
this.body = body;
return this;
}
@Override
public QueryAiStoreRegionsResponse build() {
return new QueryAiStoreRegionsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-viapi20210930/1.0.0/com/aliyun/sdk/service/viapi20210930 | java-sources/com/aliyun/alibabacloud-viapi20210930/1.0.0/com/aliyun/sdk/service/viapi20210930/models/QueryAiStoreRegionsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.viapi20210930.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link QueryAiStoreRegionsResponseBody} extends {@link TeaModel}
*
* <p>QueryAiStoreRegionsResponseBody</p>
*/
public class QueryAiStoreRegionsResponseBody extends TeaModel {
@NameInMap("Data")
private java.util.List < AiStoreUserTask > data;
@NameInMap("RequestId")
private String requestId;
private QueryAiStoreRegionsResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static QueryAiStoreRegionsResponseBody create() {
return builder().build();
}
/**
* @return data
*/
public java.util.List < AiStoreUserTask > getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List < AiStoreUserTask > data;
private String requestId;
/**
* Data.
*/
public Builder data(java.util.List < AiStoreUserTask > data) {
this.data = data;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public QueryAiStoreRegionsResponseBody build() {
return new QueryAiStoreRegionsResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-viapi20210930/1.0.0/com/aliyun/sdk/service/viapi20210930 | java-sources/com/aliyun/alibabacloud-viapi20210930/1.0.0/com/aliyun/sdk/service/viapi20210930/models/QueryAiStoreUserTaskPageRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.viapi20210930.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link QueryAiStoreUserTaskPageRequest} extends {@link RequestModel}
*
* <p>QueryAiStoreUserTaskPageRequest</p>
*/
public class QueryAiStoreUserTaskPageRequest extends Request {
@Query
@NameInMap("ApiName")
private String apiName;
@Query
@NameInMap("BucketName")
private String bucketName;
@Query
@NameInMap("Name")
private String name;
@Query
@NameInMap("PageNo")
private Integer pageNo;
@Query
@NameInMap("PageSize")
private Integer pageSize;
@Query
@NameInMap("Product")
private String product;
@Query
@NameInMap("Status")
private String status;
private QueryAiStoreUserTaskPageRequest(Builder builder) {
super(builder);
this.apiName = builder.apiName;
this.bucketName = builder.bucketName;
this.name = builder.name;
this.pageNo = builder.pageNo;
this.pageSize = builder.pageSize;
this.product = builder.product;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static QueryAiStoreUserTaskPageRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return apiName
*/
public String getApiName() {
return this.apiName;
}
/**
* @return bucketName
*/
public String getBucketName() {
return this.bucketName;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return pageNo
*/
public Integer getPageNo() {
return this.pageNo;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return product
*/
public String getProduct() {
return this.product;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder extends Request.Builder<QueryAiStoreUserTaskPageRequest, Builder> {
private String apiName;
private String bucketName;
private String name;
private Integer pageNo;
private Integer pageSize;
private String product;
private String status;
private Builder() {
super();
}
private Builder(QueryAiStoreUserTaskPageRequest request) {
super(request);
this.apiName = request.apiName;
this.bucketName = request.bucketName;
this.name = request.name;
this.pageNo = request.pageNo;
this.pageSize = request.pageSize;
this.product = request.product;
this.status = request.status;
}
/**
* ApiName.
*/
public Builder apiName(String apiName) {
this.putQueryParameter("ApiName", apiName);
this.apiName = apiName;
return this;
}
/**
* BucketName.
*/
public Builder bucketName(String bucketName) {
this.putQueryParameter("BucketName", bucketName);
this.bucketName = bucketName;
return this;
}
/**
* Name.
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* PageNo.
*/
public Builder pageNo(Integer pageNo) {
this.putQueryParameter("PageNo", pageNo);
this.pageNo = pageNo;
return this;
}
/**
* PageSize.
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* Product.
*/
public Builder product(String product) {
this.putQueryParameter("Product", product);
this.product = product;
return this;
}
/**
* Status.
*/
public Builder status(String status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
@Override
public QueryAiStoreUserTaskPageRequest build() {
return new QueryAiStoreUserTaskPageRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-viapi20210930/1.0.0/com/aliyun/sdk/service/viapi20210930 | java-sources/com/aliyun/alibabacloud-viapi20210930/1.0.0/com/aliyun/sdk/service/viapi20210930/models/QueryAiStoreUserTaskPageResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.viapi20210930.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link QueryAiStoreUserTaskPageResponse} extends {@link TeaModel}
*
* <p>QueryAiStoreUserTaskPageResponse</p>
*/
public class QueryAiStoreUserTaskPageResponse extends Response {
@NameInMap("headers")
private java.util.Map < String, String > headers;
@NameInMap("statusCode")
private Integer statusCode;
@NameInMap("body")
private QueryAiStoreUserTaskPageResponseBody body;
private QueryAiStoreUserTaskPageResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static QueryAiStoreUserTaskPageResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map < String, String > getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public QueryAiStoreUserTaskPageResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<QueryAiStoreUserTaskPageResponse, Builder> {
Builder headers(java.util.Map < String, String > headers);
Builder statusCode(Integer statusCode);
Builder body(QueryAiStoreUserTaskPageResponseBody body);
@Override
QueryAiStoreUserTaskPageResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<QueryAiStoreUserTaskPageResponse, Builder>
implements Builder {
private java.util.Map < String, String > headers;
private Integer statusCode;
private QueryAiStoreUserTaskPageResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(QueryAiStoreUserTaskPageResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map < String, String > headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(QueryAiStoreUserTaskPageResponseBody body) {
this.body = body;
return this;
}
@Override
public QueryAiStoreUserTaskPageResponse build() {
return new QueryAiStoreUserTaskPageResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-viapi20210930/1.0.0/com/aliyun/sdk/service/viapi20210930 | java-sources/com/aliyun/alibabacloud-viapi20210930/1.0.0/com/aliyun/sdk/service/viapi20210930/models/QueryAiStoreUserTaskPageResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.viapi20210930.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link QueryAiStoreUserTaskPageResponseBody} extends {@link TeaModel}
*
* <p>QueryAiStoreUserTaskPageResponseBody</p>
*/
public class QueryAiStoreUserTaskPageResponseBody extends TeaModel {
@NameInMap("Data")
private Data data;
@NameInMap("RequestId")
private String requestId;
private QueryAiStoreUserTaskPageResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static QueryAiStoreUserTaskPageResponseBody create() {
return builder().build();
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
/**
* Data.
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public QueryAiStoreUserTaskPageResponseBody build() {
return new QueryAiStoreUserTaskPageResponseBody(this);
}
}
public static class Data extends TeaModel {
@NameInMap("TaskList")
private java.util.List < AiStoreUserTask > taskList;
@NameInMap("TotalCount")
private Integer totalCount;
private Data(Builder builder) {
this.taskList = builder.taskList;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return taskList
*/
public java.util.List < AiStoreUserTask > getTaskList() {
return this.taskList;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private java.util.List < AiStoreUserTask > taskList;
private Integer totalCount;
/**
* TaskList.
*/
public Builder taskList(java.util.List < AiStoreUserTask > taskList) {
this.taskList = taskList;
return this;
}
/**
* TotalCount.
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-viapi20210930/1.0.0/com/aliyun/sdk/service/viapi20210930 | java-sources/com/aliyun/alibabacloud-viapi20210930/1.0.0/com/aliyun/sdk/service/viapi20210930/models/UpdateAiStoreUserTaskRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.viapi20210930.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link UpdateAiStoreUserTaskRequest} extends {@link RequestModel}
*
* <p>UpdateAiStoreUserTaskRequest</p>
*/
public class UpdateAiStoreUserTaskRequest extends Request {
@Body
@NameInMap("ApiName")
private String apiName;
@Body
@NameInMap("BucketKeyPrefix")
private String bucketKeyPrefix;
@Body
@NameInMap("BucketName")
private String bucketName;
@Body
@NameInMap("Id")
private Long id;
@Body
@NameInMap("Name")
private String name;
@Body
@NameInMap("ParamInfo")
private String paramInfo;
@Body
@NameInMap("Product")
private String product;
@Body
@NameInMap("ReceiveConfig")
private String receiveConfig;
@Body
@NameInMap("Remark")
private String remark;
@Body
@NameInMap("Status")
private String status;
private UpdateAiStoreUserTaskRequest(Builder builder) {
super(builder);
this.apiName = builder.apiName;
this.bucketKeyPrefix = builder.bucketKeyPrefix;
this.bucketName = builder.bucketName;
this.id = builder.id;
this.name = builder.name;
this.paramInfo = builder.paramInfo;
this.product = builder.product;
this.receiveConfig = builder.receiveConfig;
this.remark = builder.remark;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static UpdateAiStoreUserTaskRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return apiName
*/
public String getApiName() {
return this.apiName;
}
/**
* @return bucketKeyPrefix
*/
public String getBucketKeyPrefix() {
return this.bucketKeyPrefix;
}
/**
* @return bucketName
*/
public String getBucketName() {
return this.bucketName;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return paramInfo
*/
public String getParamInfo() {
return this.paramInfo;
}
/**
* @return product
*/
public String getProduct() {
return this.product;
}
/**
* @return receiveConfig
*/
public String getReceiveConfig() {
return this.receiveConfig;
}
/**
* @return remark
*/
public String getRemark() {
return this.remark;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder extends Request.Builder<UpdateAiStoreUserTaskRequest, Builder> {
private String apiName;
private String bucketKeyPrefix;
private String bucketName;
private Long id;
private String name;
private String paramInfo;
private String product;
private String receiveConfig;
private String remark;
private String status;
private Builder() {
super();
}
private Builder(UpdateAiStoreUserTaskRequest request) {
super(request);
this.apiName = request.apiName;
this.bucketKeyPrefix = request.bucketKeyPrefix;
this.bucketName = request.bucketName;
this.id = request.id;
this.name = request.name;
this.paramInfo = request.paramInfo;
this.product = request.product;
this.receiveConfig = request.receiveConfig;
this.remark = request.remark;
this.status = request.status;
}
/**
* ApiName.
*/
public Builder apiName(String apiName) {
this.putBodyParameter("ApiName", apiName);
this.apiName = apiName;
return this;
}
/**
* BucketKeyPrefix.
*/
public Builder bucketKeyPrefix(String bucketKeyPrefix) {
this.putBodyParameter("BucketKeyPrefix", bucketKeyPrefix);
this.bucketKeyPrefix = bucketKeyPrefix;
return this;
}
/**
* BucketName.
*/
public Builder bucketName(String bucketName) {
this.putBodyParameter("BucketName", bucketName);
this.bucketName = bucketName;
return this;
}
/**
* Id.
*/
public Builder id(Long id) {
this.putBodyParameter("Id", id);
this.id = id;
return this;
}
/**
* Name.
*/
public Builder name(String name) {
this.putBodyParameter("Name", name);
this.name = name;
return this;
}
/**
* ParamInfo.
*/
public Builder paramInfo(String paramInfo) {
this.putBodyParameter("ParamInfo", paramInfo);
this.paramInfo = paramInfo;
return this;
}
/**
* Product.
*/
public Builder product(String product) {
this.putBodyParameter("Product", product);
this.product = product;
return this;
}
/**
* ReceiveConfig.
*/
public Builder receiveConfig(String receiveConfig) {
this.putBodyParameter("ReceiveConfig", receiveConfig);
this.receiveConfig = receiveConfig;
return this;
}
/**
* Remark.
*/
public Builder remark(String remark) {
this.putBodyParameter("Remark", remark);
this.remark = remark;
return this;
}
/**
* Status.
*/
public Builder status(String status) {
this.putBodyParameter("Status", status);
this.status = status;
return this;
}
@Override
public UpdateAiStoreUserTaskRequest build() {
return new UpdateAiStoreUserTaskRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-viapi20210930/1.0.0/com/aliyun/sdk/service/viapi20210930 | java-sources/com/aliyun/alibabacloud-viapi20210930/1.0.0/com/aliyun/sdk/service/viapi20210930/models/UpdateAiStoreUserTaskResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.viapi20210930.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link UpdateAiStoreUserTaskResponse} extends {@link TeaModel}
*
* <p>UpdateAiStoreUserTaskResponse</p>
*/
public class UpdateAiStoreUserTaskResponse extends Response {
@NameInMap("headers")
private java.util.Map < String, String > headers;
@NameInMap("statusCode")
private Integer statusCode;
@NameInMap("body")
private UpdateAiStoreUserTaskResponseBody body;
private UpdateAiStoreUserTaskResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static UpdateAiStoreUserTaskResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map < String, String > getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public UpdateAiStoreUserTaskResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<UpdateAiStoreUserTaskResponse, Builder> {
Builder headers(java.util.Map < String, String > headers);
Builder statusCode(Integer statusCode);
Builder body(UpdateAiStoreUserTaskResponseBody body);
@Override
UpdateAiStoreUserTaskResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<UpdateAiStoreUserTaskResponse, Builder>
implements Builder {
private java.util.Map < String, String > headers;
private Integer statusCode;
private UpdateAiStoreUserTaskResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(UpdateAiStoreUserTaskResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map < String, String > headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(UpdateAiStoreUserTaskResponseBody body) {
this.body = body;
return this;
}
@Override
public UpdateAiStoreUserTaskResponse build() {
return new UpdateAiStoreUserTaskResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-viapi20210930/1.0.0/com/aliyun/sdk/service/viapi20210930 | java-sources/com/aliyun/alibabacloud-viapi20210930/1.0.0/com/aliyun/sdk/service/viapi20210930/models/UpdateAiStoreUserTaskResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.viapi20210930.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link UpdateAiStoreUserTaskResponseBody} extends {@link TeaModel}
*
* <p>UpdateAiStoreUserTaskResponseBody</p>
*/
public class UpdateAiStoreUserTaskResponseBody extends TeaModel {
@NameInMap("Data")
private Boolean data;
@NameInMap("RequestId")
private String requestId;
private UpdateAiStoreUserTaskResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static UpdateAiStoreUserTaskResponseBody create() {
return builder().build();
}
/**
* @return data
*/
public Boolean getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Boolean data;
private String requestId;
/**
* Data.
*/
public Builder data(Boolean data) {
this.data = data;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public UpdateAiStoreUserTaskResponseBody build() {
return new UpdateAiStoreUserTaskResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service/videoenhan20200320/AsyncClient.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videoenhan20200320;
import com.aliyun.core.utils.SdkAutoCloseable;
import com.aliyun.sdk.service.videoenhan20200320.models.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import java.util.concurrent.CompletableFuture;
public interface AsyncClient extends SdkAutoCloseable {
static DefaultAsyncClientBuilder builder() {
return new DefaultAsyncClientBuilder();
}
static AsyncClient create() {
return builder().build();
}
/**
* @param request the request parameters of DeleteFaceVideoTemplate DeleteFaceVideoTemplateRequest
* @return DeleteFaceVideoTemplateResponse
*/
CompletableFuture<DeleteFaceVideoTemplateResponse> deleteFaceVideoTemplate(DeleteFaceVideoTemplateRequest request);
/**
* @param request the request parameters of GetAsyncJobResult GetAsyncJobResultRequest
* @return GetAsyncJobResultResponse
*/
CompletableFuture<GetAsyncJobResultResponse> getAsyncJobResult(GetAsyncJobResultRequest request);
/**
* @param request the request parameters of QueryFaceVideoTemplate QueryFaceVideoTemplateRequest
* @return QueryFaceVideoTemplateResponse
*/
CompletableFuture<QueryFaceVideoTemplateResponse> queryFaceVideoTemplate(QueryFaceVideoTemplateRequest request);
}
|
0 | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service/videoenhan20200320/DefaultAsyncClient.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videoenhan20200320;
import com.aliyun.core.http.*;
import com.aliyun.sdk.service.videoenhan20200320.models.*;
import darabonba.core.utils.*;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import java.util.concurrent.CompletableFuture;
/**
* <p>Main client.</p>
*/
public final class DefaultAsyncClient implements AsyncClient {
protected final String product;
protected final String version;
protected final String endpointRule;
protected final java.util.Map<String, String> endpointMap;
protected final TeaRequest REQUEST;
protected final TeaAsyncHandler handler;
protected DefaultAsyncClient(ClientConfiguration configuration) {
this.handler = new TeaAsyncHandler(configuration);
this.product = "videoenhan";
this.version = "2020-03-20";
this.endpointRule = "regional";
this.endpointMap = new java.util.HashMap<>();
this.REQUEST = TeaRequest.create().setProduct(product).setEndpointRule(endpointRule).setEndpointMap(endpointMap).setVersion(version);
}
@Override
public void close() {
this.handler.close();
}
/**
* @param request the request parameters of DeleteFaceVideoTemplate DeleteFaceVideoTemplateRequest
* @return DeleteFaceVideoTemplateResponse
*/
@Override
public CompletableFuture<DeleteFaceVideoTemplateResponse> deleteFaceVideoTemplate(DeleteFaceVideoTemplateRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteFaceVideoTemplate").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteFaceVideoTemplateResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteFaceVideoTemplateResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetAsyncJobResult GetAsyncJobResultRequest
* @return GetAsyncJobResultResponse
*/
@Override
public CompletableFuture<GetAsyncJobResultResponse> getAsyncJobResult(GetAsyncJobResultRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetAsyncJobResult").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetAsyncJobResultResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetAsyncJobResultResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of QueryFaceVideoTemplate QueryFaceVideoTemplateRequest
* @return QueryFaceVideoTemplateResponse
*/
@Override
public CompletableFuture<QueryFaceVideoTemplateResponse> queryFaceVideoTemplate(QueryFaceVideoTemplateRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("QueryFaceVideoTemplate").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(QueryFaceVideoTemplateResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<QueryFaceVideoTemplateResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service/videoenhan20200320/DefaultAsyncClientBuilder.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videoenhan20200320;
import com.aliyun.sdk.gateway.pop.BaseClientBuilder;
public final class DefaultAsyncClientBuilder extends BaseClientBuilder<DefaultAsyncClientBuilder, AsyncClient> {
@Override
protected String serviceName() {
return "videoenhan20200320";
}
@Override
protected final AsyncClient buildClient() {
return new DefaultAsyncClient(super.applyClientConfiguration());
}
}
|
0 | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service/videoenhan20200320 | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service/videoenhan20200320/models/DeleteFaceVideoTemplateRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videoenhan20200320.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteFaceVideoTemplateRequest} extends {@link RequestModel}
*
* <p>DeleteFaceVideoTemplateRequest</p>
*/
public class DeleteFaceVideoTemplateRequest extends Request {
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("TemplateId")
@com.aliyun.core.annotation.Validation(required = true)
private String templateId;
private DeleteFaceVideoTemplateRequest(Builder builder) {
super(builder);
this.templateId = builder.templateId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteFaceVideoTemplateRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return templateId
*/
public String getTemplateId() {
return this.templateId;
}
public static final class Builder extends Request.Builder<DeleteFaceVideoTemplateRequest, Builder> {
private String templateId;
private Builder() {
super();
}
private Builder(DeleteFaceVideoTemplateRequest request) {
super(request);
this.templateId = request.templateId;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>3bf2418c-7adf-4002-a9d6-2f7cf1889c0d</p>
*/
public Builder templateId(String templateId) {
this.putBodyParameter("TemplateId", templateId);
this.templateId = templateId;
return this;
}
@Override
public DeleteFaceVideoTemplateRequest build() {
return new DeleteFaceVideoTemplateRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service/videoenhan20200320 | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service/videoenhan20200320/models/DeleteFaceVideoTemplateResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videoenhan20200320.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteFaceVideoTemplateResponse} extends {@link TeaModel}
*
* <p>DeleteFaceVideoTemplateResponse</p>
*/
public class DeleteFaceVideoTemplateResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DeleteFaceVideoTemplateResponseBody body;
private DeleteFaceVideoTemplateResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteFaceVideoTemplateResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DeleteFaceVideoTemplateResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteFaceVideoTemplateResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteFaceVideoTemplateResponseBody body);
@Override
DeleteFaceVideoTemplateResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteFaceVideoTemplateResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteFaceVideoTemplateResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteFaceVideoTemplateResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DeleteFaceVideoTemplateResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteFaceVideoTemplateResponse build() {
return new DeleteFaceVideoTemplateResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service/videoenhan20200320 | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service/videoenhan20200320/models/DeleteFaceVideoTemplateResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videoenhan20200320.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteFaceVideoTemplateResponseBody} extends {@link TeaModel}
*
* <p>DeleteFaceVideoTemplateResponseBody</p>
*/
public class DeleteFaceVideoTemplateResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteFaceVideoTemplateResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteFaceVideoTemplateResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(DeleteFaceVideoTemplateResponseBody model) {
this.requestId = model.requestId;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DeleteFaceVideoTemplateResponseBody build() {
return new DeleteFaceVideoTemplateResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service/videoenhan20200320 | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service/videoenhan20200320/models/GetAsyncJobResultRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videoenhan20200320.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAsyncJobResultRequest} extends {@link RequestModel}
*
* <p>GetAsyncJobResultRequest</p>
*/
public class GetAsyncJobResultRequest extends Request {
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("JobId")
@com.aliyun.core.annotation.Validation(required = true)
private String jobId;
private GetAsyncJobResultRequest(Builder builder) {
super(builder);
this.jobId = builder.jobId;
}
public static Builder builder() {
return new Builder();
}
public static GetAsyncJobResultRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
public static final class Builder extends Request.Builder<GetAsyncJobResultRequest, Builder> {
private String jobId;
private Builder() {
super();
}
private Builder(GetAsyncJobResultRequest request) {
super(request);
this.jobId = request.jobId;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>E75FE679-0303-4DD1-8252-1143B4FA8A27</p>
*/
public Builder jobId(String jobId) {
this.putBodyParameter("JobId", jobId);
this.jobId = jobId;
return this;
}
@Override
public GetAsyncJobResultRequest build() {
return new GetAsyncJobResultRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service/videoenhan20200320 | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service/videoenhan20200320/models/GetAsyncJobResultResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videoenhan20200320.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAsyncJobResultResponse} extends {@link TeaModel}
*
* <p>GetAsyncJobResultResponse</p>
*/
public class GetAsyncJobResultResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetAsyncJobResultResponseBody body;
private GetAsyncJobResultResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAsyncJobResultResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetAsyncJobResultResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAsyncJobResultResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAsyncJobResultResponseBody body);
@Override
GetAsyncJobResultResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAsyncJobResultResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAsyncJobResultResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAsyncJobResultResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetAsyncJobResultResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAsyncJobResultResponse build() {
return new GetAsyncJobResultResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service/videoenhan20200320 | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service/videoenhan20200320/models/GetAsyncJobResultResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videoenhan20200320.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAsyncJobResultResponseBody} extends {@link TeaModel}
*
* <p>GetAsyncJobResultResponseBody</p>
*/
public class GetAsyncJobResultResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetAsyncJobResultResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetAsyncJobResultResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(GetAsyncJobResultResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* Data.
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetAsyncJobResultResponseBody build() {
return new GetAsyncJobResultResponseBody(this);
}
}
/**
*
* {@link GetAsyncJobResultResponseBody} extends {@link TeaModel}
*
* <p>GetAsyncJobResultResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("ErrorMessage")
private String errorMessage;
@com.aliyun.core.annotation.NameInMap("JobId")
private String jobId;
@com.aliyun.core.annotation.NameInMap("Result")
private String result;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private Data(Builder builder) {
this.errorCode = builder.errorCode;
this.errorMessage = builder.errorMessage;
this.jobId = builder.jobId;
this.result = builder.result;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return errorMessage
*/
public String getErrorMessage() {
return this.errorMessage;
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
/**
* @return result
*/
public String getResult() {
return this.result;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String errorCode;
private String errorMessage;
private String jobId;
private String result;
private String status;
private Builder() {
}
private Builder(Data model) {
this.errorCode = model.errorCode;
this.errorMessage = model.errorMessage;
this.jobId = model.jobId;
this.result = model.result;
this.status = model.status;
}
/**
* ErrorCode.
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* ErrorMessage.
*/
public Builder errorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
/**
* JobId.
*/
public Builder jobId(String jobId) {
this.jobId = jobId;
return this;
}
/**
* Result.
*/
public Builder result(String result) {
this.result = result;
return this;
}
/**
* Status.
*/
public Builder status(String status) {
this.status = status;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service/videoenhan20200320 | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service/videoenhan20200320/models/QueryFaceVideoTemplateRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videoenhan20200320.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link QueryFaceVideoTemplateRequest} extends {@link RequestModel}
*
* <p>QueryFaceVideoTemplateRequest</p>
*/
public class QueryFaceVideoTemplateRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNo")
@com.aliyun.core.annotation.Validation(maximum = 5000, minimum = 1)
private Long pageNo;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 500, minimum = 1)
private Long pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TemplateId")
private String templateId;
private QueryFaceVideoTemplateRequest(Builder builder) {
super(builder);
this.pageNo = builder.pageNo;
this.pageSize = builder.pageSize;
this.templateId = builder.templateId;
}
public static Builder builder() {
return new Builder();
}
public static QueryFaceVideoTemplateRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageNo
*/
public Long getPageNo() {
return this.pageNo;
}
/**
* @return pageSize
*/
public Long getPageSize() {
return this.pageSize;
}
/**
* @return templateId
*/
public String getTemplateId() {
return this.templateId;
}
public static final class Builder extends Request.Builder<QueryFaceVideoTemplateRequest, Builder> {
private Long pageNo;
private Long pageSize;
private String templateId;
private Builder() {
super();
}
private Builder(QueryFaceVideoTemplateRequest request) {
super(request);
this.pageNo = request.pageNo;
this.pageSize = request.pageSize;
this.templateId = request.templateId;
}
/**
* PageNo.
*/
public Builder pageNo(Long pageNo) {
this.putQueryParameter("PageNo", pageNo);
this.pageNo = pageNo;
return this;
}
/**
* PageSize.
*/
public Builder pageSize(Long pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* TemplateId.
*/
public Builder templateId(String templateId) {
this.putQueryParameter("TemplateId", templateId);
this.templateId = templateId;
return this;
}
@Override
public QueryFaceVideoTemplateRequest build() {
return new QueryFaceVideoTemplateRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service/videoenhan20200320 | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service/videoenhan20200320/models/QueryFaceVideoTemplateResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videoenhan20200320.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link QueryFaceVideoTemplateResponse} extends {@link TeaModel}
*
* <p>QueryFaceVideoTemplateResponse</p>
*/
public class QueryFaceVideoTemplateResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private QueryFaceVideoTemplateResponseBody body;
private QueryFaceVideoTemplateResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static QueryFaceVideoTemplateResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public QueryFaceVideoTemplateResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<QueryFaceVideoTemplateResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(QueryFaceVideoTemplateResponseBody body);
@Override
QueryFaceVideoTemplateResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<QueryFaceVideoTemplateResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private QueryFaceVideoTemplateResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(QueryFaceVideoTemplateResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(QueryFaceVideoTemplateResponseBody body) {
this.body = body;
return this;
}
@Override
public QueryFaceVideoTemplateResponse build() {
return new QueryFaceVideoTemplateResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service/videoenhan20200320 | java-sources/com/aliyun/alibabacloud-videoenhan20200320/1.0.2/com/aliyun/sdk/service/videoenhan20200320/models/QueryFaceVideoTemplateResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videoenhan20200320.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link QueryFaceVideoTemplateResponseBody} extends {@link TeaModel}
*
* <p>QueryFaceVideoTemplateResponseBody</p>
*/
public class QueryFaceVideoTemplateResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private QueryFaceVideoTemplateResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static QueryFaceVideoTemplateResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(QueryFaceVideoTemplateResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* Data.
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public QueryFaceVideoTemplateResponseBody build() {
return new QueryFaceVideoTemplateResponseBody(this);
}
}
/**
*
* {@link QueryFaceVideoTemplateResponseBody} extends {@link TeaModel}
*
* <p>QueryFaceVideoTemplateResponseBody</p>
*/
public static class FaceInfos extends TeaModel {
@com.aliyun.core.annotation.NameInMap("TemplateFaceID")
private String templateFaceID;
@com.aliyun.core.annotation.NameInMap("TemplateFaceURL")
private String templateFaceURL;
private FaceInfos(Builder builder) {
this.templateFaceID = builder.templateFaceID;
this.templateFaceURL = builder.templateFaceURL;
}
public static Builder builder() {
return new Builder();
}
public static FaceInfos create() {
return builder().build();
}
/**
* @return templateFaceID
*/
public String getTemplateFaceID() {
return this.templateFaceID;
}
/**
* @return templateFaceURL
*/
public String getTemplateFaceURL() {
return this.templateFaceURL;
}
public static final class Builder {
private String templateFaceID;
private String templateFaceURL;
private Builder() {
}
private Builder(FaceInfos model) {
this.templateFaceID = model.templateFaceID;
this.templateFaceURL = model.templateFaceURL;
}
/**
* TemplateFaceID.
*/
public Builder templateFaceID(String templateFaceID) {
this.templateFaceID = templateFaceID;
return this;
}
/**
* TemplateFaceURL.
*/
public Builder templateFaceURL(String templateFaceURL) {
this.templateFaceURL = templateFaceURL;
return this;
}
public FaceInfos build() {
return new FaceInfos(this);
}
}
}
/**
*
* {@link QueryFaceVideoTemplateResponseBody} extends {@link TeaModel}
*
* <p>QueryFaceVideoTemplateResponseBody</p>
*/
public static class Elements extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("FaceInfos")
private java.util.List<FaceInfos> faceInfos;
@com.aliyun.core.annotation.NameInMap("TemplateId")
private String templateId;
@com.aliyun.core.annotation.NameInMap("TemplateURL")
private String templateURL;
@com.aliyun.core.annotation.NameInMap("UpdateTime")
private String updateTime;
@com.aliyun.core.annotation.NameInMap("UserId")
private String userId;
private Elements(Builder builder) {
this.createTime = builder.createTime;
this.faceInfos = builder.faceInfos;
this.templateId = builder.templateId;
this.templateURL = builder.templateURL;
this.updateTime = builder.updateTime;
this.userId = builder.userId;
}
public static Builder builder() {
return new Builder();
}
public static Elements create() {
return builder().build();
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return faceInfos
*/
public java.util.List<FaceInfos> getFaceInfos() {
return this.faceInfos;
}
/**
* @return templateId
*/
public String getTemplateId() {
return this.templateId;
}
/**
* @return templateURL
*/
public String getTemplateURL() {
return this.templateURL;
}
/**
* @return updateTime
*/
public String getUpdateTime() {
return this.updateTime;
}
/**
* @return userId
*/
public String getUserId() {
return this.userId;
}
public static final class Builder {
private String createTime;
private java.util.List<FaceInfos> faceInfos;
private String templateId;
private String templateURL;
private String updateTime;
private String userId;
private Builder() {
}
private Builder(Elements model) {
this.createTime = model.createTime;
this.faceInfos = model.faceInfos;
this.templateId = model.templateId;
this.templateURL = model.templateURL;
this.updateTime = model.updateTime;
this.userId = model.userId;
}
/**
* CreateTime.
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* FaceInfos.
*/
public Builder faceInfos(java.util.List<FaceInfos> faceInfos) {
this.faceInfos = faceInfos;
return this;
}
/**
* TemplateId.
*/
public Builder templateId(String templateId) {
this.templateId = templateId;
return this;
}
/**
* TemplateURL.
*/
public Builder templateURL(String templateURL) {
this.templateURL = templateURL;
return this;
}
/**
* UpdateTime.
*/
public Builder updateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
/**
* UserId.
*/
public Builder userId(String userId) {
this.userId = userId;
return this;
}
public Elements build() {
return new Elements(this);
}
}
}
/**
*
* {@link QueryFaceVideoTemplateResponseBody} extends {@link TeaModel}
*
* <p>QueryFaceVideoTemplateResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Elements")
private java.util.List<Elements> elements;
@com.aliyun.core.annotation.NameInMap("Total")
private Long total;
private Data(Builder builder) {
this.elements = builder.elements;
this.total = builder.total;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return elements
*/
public java.util.List<Elements> getElements() {
return this.elements;
}
/**
* @return total
*/
public Long getTotal() {
return this.total;
}
public static final class Builder {
private java.util.List<Elements> elements;
private Long total;
private Builder() {
}
private Builder(Data model) {
this.elements = model.elements;
this.total = model.total;
}
/**
* Elements.
*/
public Builder elements(java.util.List<Elements> elements) {
this.elements = elements;
return this;
}
/**
* Total.
*/
public Builder total(Long total) {
this.total = total;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-videorecog20200320/1.0.2/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-videorecog20200320/1.0.2/com/aliyun/sdk/service/videorecog20200320/AsyncClient.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videorecog20200320;
import com.aliyun.core.utils.SdkAutoCloseable;
import com.aliyun.sdk.service.videorecog20200320.models.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import java.util.concurrent.CompletableFuture;
public interface AsyncClient extends SdkAutoCloseable {
static DefaultAsyncClientBuilder builder() {
return new DefaultAsyncClientBuilder();
}
static AsyncClient create() {
return builder().build();
}
/**
* @param request the request parameters of GetAsyncJobResult GetAsyncJobResultRequest
* @return GetAsyncJobResultResponse
*/
CompletableFuture<GetAsyncJobResultResponse> getAsyncJobResult(GetAsyncJobResultRequest request);
}
|
0 | java-sources/com/aliyun/alibabacloud-videorecog20200320/1.0.2/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-videorecog20200320/1.0.2/com/aliyun/sdk/service/videorecog20200320/DefaultAsyncClient.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videorecog20200320;
import com.aliyun.core.http.*;
import com.aliyun.sdk.service.videorecog20200320.models.*;
import darabonba.core.utils.*;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import java.util.concurrent.CompletableFuture;
/**
* <p>Main client.</p>
*/
public final class DefaultAsyncClient implements AsyncClient {
protected final String product;
protected final String version;
protected final String endpointRule;
protected final java.util.Map<String, String> endpointMap;
protected final TeaRequest REQUEST;
protected final TeaAsyncHandler handler;
protected DefaultAsyncClient(ClientConfiguration configuration) {
this.handler = new TeaAsyncHandler(configuration);
this.product = "videorecog";
this.version = "2020-03-20";
this.endpointRule = "regional";
this.endpointMap = new java.util.HashMap<>();
this.REQUEST = TeaRequest.create().setProduct(product).setEndpointRule(endpointRule).setEndpointMap(endpointMap).setVersion(version);
}
@Override
public void close() {
this.handler.close();
}
/**
* @param request the request parameters of GetAsyncJobResult GetAsyncJobResultRequest
* @return GetAsyncJobResultResponse
*/
@Override
public CompletableFuture<GetAsyncJobResultResponse> getAsyncJobResult(GetAsyncJobResultRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetAsyncJobResult").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetAsyncJobResultResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetAsyncJobResultResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-videorecog20200320/1.0.2/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-videorecog20200320/1.0.2/com/aliyun/sdk/service/videorecog20200320/DefaultAsyncClientBuilder.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videorecog20200320;
import com.aliyun.sdk.gateway.pop.BaseClientBuilder;
public final class DefaultAsyncClientBuilder extends BaseClientBuilder<DefaultAsyncClientBuilder, AsyncClient> {
@Override
protected String serviceName() {
return "videorecog20200320";
}
@Override
protected final AsyncClient buildClient() {
return new DefaultAsyncClient(super.applyClientConfiguration());
}
}
|
0 | java-sources/com/aliyun/alibabacloud-videorecog20200320/1.0.2/com/aliyun/sdk/service/videorecog20200320 | java-sources/com/aliyun/alibabacloud-videorecog20200320/1.0.2/com/aliyun/sdk/service/videorecog20200320/models/GetAsyncJobResultRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videorecog20200320.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAsyncJobResultRequest} extends {@link RequestModel}
*
* <p>GetAsyncJobResultRequest</p>
*/
public class GetAsyncJobResultRequest extends Request {
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("JobId")
@com.aliyun.core.annotation.Validation(required = true)
private String jobId;
private GetAsyncJobResultRequest(Builder builder) {
super(builder);
this.jobId = builder.jobId;
}
public static Builder builder() {
return new Builder();
}
public static GetAsyncJobResultRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
public static final class Builder extends Request.Builder<GetAsyncJobResultRequest, Builder> {
private String jobId;
private Builder() {
super();
}
private Builder(GetAsyncJobResultRequest request) {
super(request);
this.jobId = request.jobId;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>E75FE679-0303-4DD1-8252-1143B4FA8A27</p>
*/
public Builder jobId(String jobId) {
this.putBodyParameter("JobId", jobId);
this.jobId = jobId;
return this;
}
@Override
public GetAsyncJobResultRequest build() {
return new GetAsyncJobResultRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-videorecog20200320/1.0.2/com/aliyun/sdk/service/videorecog20200320 | java-sources/com/aliyun/alibabacloud-videorecog20200320/1.0.2/com/aliyun/sdk/service/videorecog20200320/models/GetAsyncJobResultResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videorecog20200320.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAsyncJobResultResponse} extends {@link TeaModel}
*
* <p>GetAsyncJobResultResponse</p>
*/
public class GetAsyncJobResultResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetAsyncJobResultResponseBody body;
private GetAsyncJobResultResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAsyncJobResultResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetAsyncJobResultResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAsyncJobResultResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAsyncJobResultResponseBody body);
@Override
GetAsyncJobResultResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAsyncJobResultResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAsyncJobResultResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAsyncJobResultResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetAsyncJobResultResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAsyncJobResultResponse build() {
return new GetAsyncJobResultResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-videorecog20200320/1.0.2/com/aliyun/sdk/service/videorecog20200320 | java-sources/com/aliyun/alibabacloud-videorecog20200320/1.0.2/com/aliyun/sdk/service/videorecog20200320/models/GetAsyncJobResultResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videorecog20200320.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAsyncJobResultResponseBody} extends {@link TeaModel}
*
* <p>GetAsyncJobResultResponseBody</p>
*/
public class GetAsyncJobResultResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetAsyncJobResultResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetAsyncJobResultResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(GetAsyncJobResultResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* Data.
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetAsyncJobResultResponseBody build() {
return new GetAsyncJobResultResponseBody(this);
}
}
/**
*
* {@link GetAsyncJobResultResponseBody} extends {@link TeaModel}
*
* <p>GetAsyncJobResultResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("ErrorMessage")
private String errorMessage;
@com.aliyun.core.annotation.NameInMap("JobId")
private String jobId;
@com.aliyun.core.annotation.NameInMap("Result")
private String result;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private Data(Builder builder) {
this.errorCode = builder.errorCode;
this.errorMessage = builder.errorMessage;
this.jobId = builder.jobId;
this.result = builder.result;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return errorMessage
*/
public String getErrorMessage() {
return this.errorMessage;
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
/**
* @return result
*/
public String getResult() {
return this.result;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String errorCode;
private String errorMessage;
private String jobId;
private String result;
private String status;
private Builder() {
}
private Builder(Data model) {
this.errorCode = model.errorCode;
this.errorMessage = model.errorMessage;
this.jobId = model.jobId;
this.result = model.result;
this.status = model.status;
}
/**
* ErrorCode.
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* ErrorMessage.
*/
public Builder errorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
/**
* JobId.
*/
public Builder jobId(String jobId) {
this.jobId = jobId;
return this;
}
/**
* Result.
*/
public Builder result(String result) {
this.result = result;
return this;
}
/**
* Status.
*/
public Builder status(String status) {
this.status = status;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-videoseg20200320/1.0.1/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-videoseg20200320/1.0.1/com/aliyun/sdk/service/videoseg20200320/AsyncClient.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videoseg20200320;
import com.aliyun.core.utils.SdkAutoCloseable;
import com.aliyun.sdk.service.videoseg20200320.models.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import java.util.concurrent.CompletableFuture;
public interface AsyncClient extends SdkAutoCloseable {
static DefaultAsyncClientBuilder builder() {
return new DefaultAsyncClientBuilder();
}
static AsyncClient create() {
return builder().build();
}
/**
* @param request the request parameters of GetAsyncJobResult GetAsyncJobResultRequest
* @return GetAsyncJobResultResponse
*/
CompletableFuture<GetAsyncJobResultResponse> getAsyncJobResult(GetAsyncJobResultRequest request);
}
|
0 | java-sources/com/aliyun/alibabacloud-videoseg20200320/1.0.1/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-videoseg20200320/1.0.1/com/aliyun/sdk/service/videoseg20200320/DefaultAsyncClient.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videoseg20200320;
import com.aliyun.core.http.*;
import com.aliyun.sdk.service.videoseg20200320.models.*;
import darabonba.core.utils.*;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import java.util.concurrent.CompletableFuture;
/**
* <p>Main client.</p>
*/
public final class DefaultAsyncClient implements AsyncClient {
protected final String product;
protected final String version;
protected final String endpointRule;
protected final java.util.Map<String, String> endpointMap;
protected final TeaRequest REQUEST;
protected final TeaAsyncHandler handler;
protected DefaultAsyncClient(ClientConfiguration configuration) {
this.handler = new TeaAsyncHandler(configuration);
this.product = "videoseg";
this.version = "2020-03-20";
this.endpointRule = "regional";
this.endpointMap = new java.util.HashMap<>();
this.REQUEST = TeaRequest.create().setProduct(product).setEndpointRule(endpointRule).setEndpointMap(endpointMap).setVersion(version);
}
@Override
public void close() {
this.handler.close();
}
/**
* @param request the request parameters of GetAsyncJobResult GetAsyncJobResultRequest
* @return GetAsyncJobResultResponse
*/
@Override
public CompletableFuture<GetAsyncJobResultResponse> getAsyncJobResult(GetAsyncJobResultRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetAsyncJobResult").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetAsyncJobResultResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetAsyncJobResultResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-videoseg20200320/1.0.1/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-videoseg20200320/1.0.1/com/aliyun/sdk/service/videoseg20200320/DefaultAsyncClientBuilder.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videoseg20200320;
import com.aliyun.sdk.gateway.pop.BaseClientBuilder;
public final class DefaultAsyncClientBuilder extends BaseClientBuilder<DefaultAsyncClientBuilder, AsyncClient> {
@Override
protected String serviceName() {
return "videoseg20200320";
}
@Override
protected final AsyncClient buildClient() {
return new DefaultAsyncClient(super.applyClientConfiguration());
}
}
|
0 | java-sources/com/aliyun/alibabacloud-videoseg20200320/1.0.1/com/aliyun/sdk/service/videoseg20200320 | java-sources/com/aliyun/alibabacloud-videoseg20200320/1.0.1/com/aliyun/sdk/service/videoseg20200320/models/GetAsyncJobResultRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videoseg20200320.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAsyncJobResultRequest} extends {@link RequestModel}
*
* <p>GetAsyncJobResultRequest</p>
*/
public class GetAsyncJobResultRequest extends Request {
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("JobId")
@com.aliyun.core.annotation.Validation(required = true)
private String jobId;
private GetAsyncJobResultRequest(Builder builder) {
super(builder);
this.jobId = builder.jobId;
}
public static Builder builder() {
return new Builder();
}
public static GetAsyncJobResultRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
public static final class Builder extends Request.Builder<GetAsyncJobResultRequest, Builder> {
private String jobId;
private Builder() {
super();
}
private Builder(GetAsyncJobResultRequest request) {
super(request);
this.jobId = request.jobId;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>E75FE679-0303-4DD1-8252-1143B4FA8A27</p>
*/
public Builder jobId(String jobId) {
this.putBodyParameter("JobId", jobId);
this.jobId = jobId;
return this;
}
@Override
public GetAsyncJobResultRequest build() {
return new GetAsyncJobResultRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-videoseg20200320/1.0.1/com/aliyun/sdk/service/videoseg20200320 | java-sources/com/aliyun/alibabacloud-videoseg20200320/1.0.1/com/aliyun/sdk/service/videoseg20200320/models/GetAsyncJobResultResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videoseg20200320.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAsyncJobResultResponse} extends {@link TeaModel}
*
* <p>GetAsyncJobResultResponse</p>
*/
public class GetAsyncJobResultResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private GetAsyncJobResultResponseBody body;
private GetAsyncJobResultResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAsyncJobResultResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public GetAsyncJobResultResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAsyncJobResultResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAsyncJobResultResponseBody body);
@Override
GetAsyncJobResultResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAsyncJobResultResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAsyncJobResultResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAsyncJobResultResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(GetAsyncJobResultResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAsyncJobResultResponse build() {
return new GetAsyncJobResultResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-videoseg20200320/1.0.1/com/aliyun/sdk/service/videoseg20200320 | java-sources/com/aliyun/alibabacloud-videoseg20200320/1.0.1/com/aliyun/sdk/service/videoseg20200320/models/GetAsyncJobResultResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.videoseg20200320.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetAsyncJobResultResponseBody} extends {@link TeaModel}
*
* <p>GetAsyncJobResultResponseBody</p>
*/
public class GetAsyncJobResultResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetAsyncJobResultResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetAsyncJobResultResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(GetAsyncJobResultResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* Data.
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetAsyncJobResultResponseBody build() {
return new GetAsyncJobResultResponseBody(this);
}
}
/**
*
* {@link GetAsyncJobResultResponseBody} extends {@link TeaModel}
*
* <p>GetAsyncJobResultResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("ErrorMessage")
private String errorMessage;
@com.aliyun.core.annotation.NameInMap("JobId")
private String jobId;
@com.aliyun.core.annotation.NameInMap("Result")
private String result;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private Data(Builder builder) {
this.errorCode = builder.errorCode;
this.errorMessage = builder.errorMessage;
this.jobId = builder.jobId;
this.result = builder.result;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return errorMessage
*/
public String getErrorMessage() {
return this.errorMessage;
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
/**
* @return result
*/
public String getResult() {
return this.result;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String errorCode;
private String errorMessage;
private String jobId;
private String result;
private String status;
private Builder() {
}
private Builder(Data model) {
this.errorCode = model.errorCode;
this.errorMessage = model.errorMessage;
this.jobId = model.jobId;
this.result = model.result;
this.status = model.status;
}
/**
* ErrorCode.
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* ErrorMessage.
*/
public Builder errorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
/**
* JobId.
*/
public Builder jobId(String jobId) {
this.jobId = jobId;
return this;
}
/**
* Result.
*/
public Builder result(String result) {
this.result = result;
return this;
}
/**
* Status.
*/
public Builder status(String status) {
this.status = status;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/AsyncClient.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321;
import com.aliyun.core.utils.SdkAutoCloseable;
import com.aliyun.sdk.service.vod20170321.models.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import java.util.concurrent.CompletableFuture;
public interface AsyncClient extends SdkAutoCloseable {
static DefaultAsyncClientBuilder builder() {
return new DefaultAsyncClientBuilder();
}
static AsyncClient create() {
return builder().build();
}
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong>, <strong>China (Shanghai)</strong>, and <strong>Singapore</strong>.</p>
* <ul>
* <li>Before you add an AI template for automated review and smart thumbnail tasks, make sure that <a href="https://ai.aliyun.com/vi/censor">automated review</a> and <a href="https://ai.aliyun.com/vi/cover">smart thumbnail</a> are enabled.</li>
* </ul>
*
* @param request the request parameters of AddAITemplate AddAITemplateRequest
* @return AddAITemplateResponse
*/
CompletableFuture<AddAITemplateResponse> addAITemplate(AddAITemplateRequest request);
/**
* <b>description</b> :
* <p> You can create a maximum of 3 levels of categories for audio, video, and image files and 2 levels of categories for short video materials. Each category level can contain a maximum of 100 subcategories. To create categories for audio and video files, set <code>Type</code> to <code>default</code>. To create categories for short video materials, set <code>Type</code> to <code>material</code>.</p>
* <ul>
* <li>After you create a category, you can categorize media resources during upload or categorize the uploaded media resources. For more information, see <a href="https://help.aliyun.com/document_detail/86070.html">Manage video categories</a>.</li>
* </ul>
*
* @param request the request parameters of AddCategory AddCategoryRequest
* @return AddCategoryResponse
*/
CompletableFuture<AddCategoryResponse> addCategory(AddCategoryRequest request);
/**
* <b>description</b> :
* <p> For more information about the online editing feature, see <a href="https://help.aliyun.com/document_detail/95482.html">Overview</a>.</p>
*
* @param request the request parameters of AddEditingProject AddEditingProjectRequest
* @return AddEditingProjectResponse
*/
CompletableFuture<AddEditingProjectResponse> addEditingProject(AddEditingProjectRequest request);
/**
* @param request the request parameters of AddEditingProjectMaterials AddEditingProjectMaterialsRequest
* @return AddEditingProjectMaterialsResponse
*/
CompletableFuture<AddEditingProjectMaterialsResponse> addEditingProjectMaterials(AddEditingProjectMaterialsRequest request);
/**
* <b>description</b> :
* <p> You cannot perform custom operations on transcoding template groups that are <strong>locked</strong> in the ApsaraVideo VOD console. You can call the <a href="~~GetTranscodeTemplateGroup~~">GetTranscodeTemplateGroup</a> operation to query the information about a transcoding template group and check whether the transcoding template group is locked based on the value of the Locked parameter. You can call the <a href="~~UpdateTranscodeTemplateGroup~~">UpdateTranscodeTemplateGroup</a> operation to unlock a transcoding template group if it is locked. Then, you can perform custom operations on the transcoding template group.</p>
* <ul>
* <li>An Object Storage Service (OSS) bucket is required to store files that are used for transcoding. You cannot create a transcoding template group if no bucket is available. To activate a bucket, perform the following operations: Log on to the ApsaraVideo VOD console. In the left-side navigation pane, choose <strong>Configuration Management > Media Management > Storage</strong>. On the <strong>Storage</strong> page, activate the bucket that is allocated by ApsaraVideo VOD.</li>
* <li>You cannot add transcoding templates to the <strong>No Transcoding</strong> template group.</li>
* <li>You can create a maximum of 20 transcoding template groups.</li>
* <li>You can add a maximum of 20 transcoding templates to a transcoding template group.</li>
* <li>If you want to generate a URL for adaptive bitrate streaming, you can add video packaging templates to a transcoding template group. You can add a maximum of 10 video packaging templates to a transcoding template group. If you add more than 10 video packaging templates, URLs of the video transcoded based on the video packaging templates are generated but the URL for adaptive bitrate streaming is not generated.</li>
* </ul>
* <h3>QPS limits</h3>
* <p>You can call this operation up to five times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/342790.html">QPS limits</a>.</p>
*
* @param request the request parameters of AddTranscodeTemplateGroup AddTranscodeTemplateGroupRequest
* @return AddTranscodeTemplateGroupResponse
*/
CompletableFuture<AddTranscodeTemplateGroupResponse> addTranscodeTemplateGroup(AddTranscodeTemplateGroupRequest request);
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>Before you add a domain name to accelerate, you must activate ApsaraVideo VOD and apply for an Internet content provider (ICP) filing for the domain name. For more information about how to activate ApsaraVideo VOD, see <a href="https://help.aliyun.com/document_detail/51512.html">Activate ApsaraVideo VOD</a>.</li>
* <li>If the content on the origin server is not stored on Alibaba Cloud, the content must be reviewed by Alibaba Cloud. The review will be complete by the end of the next business day after you submit an application.</li>
* <li>You can add only one domain name to accelerate in a request. You can add a maximum of 20 accelerated domain names within an Alibaba Cloud account.</li>
* </ul>
*
* @param request the request parameters of AddVodDomain AddVodDomainRequest
* @return AddVodDomainResponse
*/
CompletableFuture<AddVodDomainResponse> addVodDomain(AddVodDomainRequest request);
/**
* <b>description</b> :
* <p>You can call this operation to add a buckets to an ApsaraVideo VOD applications.</p>
* <blockquote>
* <p>You can add only one ApsaraVideo VOD bucket for each application. If you specify an AppId that does not exist or the ID of an application for which an VOD bucket is enabled, an error is returned.</p>
* </blockquote>
*
* @param request the request parameters of AddVodStorageForApp AddVodStorageForAppRequest
* @return AddVodStorageForAppResponse
*/
CompletableFuture<AddVodStorageForAppResponse> addVodStorageForApp(AddVodStorageForAppRequest request);
/**
* <b>description</b> :
* <p> After you add a snapshot template, you can call the <a href="https://help.aliyun.com/document_detail/72213.html">SubmitSnapshotJob</a> operation and specify the template ID to submit a snapshot job.</p>
* <ul>
* <li>You can use the HTTP (HTTPS compatible) callback or MNS callback method to receive the <a href="https://help.aliyun.com/document_detail/57337.html">SnapshotComplete</a> callback. For more information, see <a href="https://help.aliyun.com/document_detail/55627.html">Overview</a>.</li>
* </ul>
*
* @param request the request parameters of AddVodTemplate AddVodTemplateRequest
* @return AddVodTemplateResponse
*/
CompletableFuture<AddVodTemplateResponse> addVodTemplate(AddVodTemplateRequest request);
/**
* <b>description</b> :
* <p> You can call this operation to create an <code>Image</code> watermark template or a <code>Text</code> watermark template. You can use static images in the PNG format or dynamic images in the GIF, APNG, and MOV formats as image watermarks.</p>
* <ul>
* <li>After you call this operation to create a watermark template, you must call the <a href="~~AddTranscodeTemplateGroup~~">AddTranscodeTemplateGroup</a> or <a href="~~UpdateTranscodeTemplateGroup~~">UpdateTranscodeTemplateGroup</a> operation to associate the watermark template with a transcoding template group. This way, you can add watermarks to videos during transcoding.</li>
* <li>For more information, see <a href="https://help.aliyun.com/document_detail/99369.html">Video watermarks</a>.</li>
* </ul>
*
* @param request the request parameters of AddWatermark AddWatermarkRequest
* @return AddWatermarkResponse
*/
CompletableFuture<AddWatermarkResponse> addWatermark(AddWatermarkRequest request);
/**
* <b>description</b> :
* <blockquote>
* <p>You can grant a RAM user or RAM role permissions to access up to 10 applications.</p>
* </blockquote>
*
* @param request the request parameters of AttachAppPolicyToIdentity AttachAppPolicyToIdentityRequest
* @return AttachAppPolicyToIdentityResponse
*/
CompletableFuture<AttachAppPolicyToIdentityResponse> attachAppPolicyToIdentity(AttachAppPolicyToIdentityRequest request);
/**
* <b>description</b> :
* <p> You can specify up to 20 audio or video file IDs in each request.</p>
* <ul>
* <li>After a media file is uploaded, ApsaraVideo VOD processes the source file. Then, information about the media file is asynchronously generated. You can configure notifications for the <a href="https://help.aliyun.com/document_detail/99935.html">VideoAnalysisComplete</a> event and call this operation to query information about a media file after you receive notifications for the <a href="https://help.aliyun.com/document_detail/99935.html">VideoAnalysisComplete</a> event. For more information, see <a href="https://help.aliyun.com/document_detail/55627.html">Overview</a>.</li>
* </ul>
*
* @param request the request parameters of BatchGetMediaInfos BatchGetMediaInfosRequest
* @return BatchGetMediaInfosResponse
*/
CompletableFuture<BatchGetMediaInfosResponse> batchGetMediaInfos(BatchGetMediaInfosRequest request);
/**
* <b>description</b> :
* <blockquote>
* <p>This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* </blockquote>
*
* @param request the request parameters of BatchSetVodDomainConfigs BatchSetVodDomainConfigsRequest
* @return BatchSetVodDomainConfigsResponse
*/
CompletableFuture<BatchSetVodDomainConfigsResponse> batchSetVodDomainConfigs(BatchSetVodDomainConfigsRequest request);
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>If the domain name that you want to enable is invalid or your Alibaba Cloud account has overdue payments, you cannot call this operation to enable the domain name.</li>
* </ul>
*
* @param request the request parameters of BatchStartVodDomain BatchStartVodDomainRequest
* @return BatchStartVodDomainResponse
*/
CompletableFuture<BatchStartVodDomainResponse> batchStartVodDomain(BatchStartVodDomainRequest request);
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>After you disable an accelerated domain name, the information about the domain name is retained. The system automatically reroutes all the requests that are destined for the domain name to the origin server.</li>
* </ul>
*
* @param request the request parameters of BatchStopVodDomain BatchStopVodDomainRequest
* @return BatchStopVodDomainResponse
*/
CompletableFuture<BatchStopVodDomainResponse> batchStopVodDomain(BatchStopVodDomainRequest request);
/**
* <b>description</b> :
* <p> You can cancel only URL-based upload jobs in the <strong>Pending</strong> state. You can query the status of a URL-based upload job by calling the <a href="https://help.aliyun.com/document_detail/106830.html">GetURLUploadInfos</a> operation.</p>
* <ul>
* <li>You cannot cancel an upload job that already starts.</li>
* <li>You must specify either JobIds or UploadUrls. If you specify both parameters, only JobIds takes effect.</li>
* </ul>
*
* @param request the request parameters of CancelUrlUploadJobs CancelUrlUploadJobsRequest
* @return CancelUrlUploadJobsResponse
*/
CompletableFuture<CancelUrlUploadJobsResponse> cancelUrlUploadJobs(CancelUrlUploadJobsRequest request);
/**
* @param request the request parameters of ChangeResourceGroup ChangeResourceGroupRequest
* @return ChangeResourceGroupResponse
*/
CompletableFuture<ChangeResourceGroupResponse> changeResourceGroup(ChangeResourceGroupRequest request);
/**
* <b>description</b> :
* <p>You can create up to 10 applications within an Alibaba Cloud account. For more information, see <a href="https://help.aliyun.com/document_detail/113600.html">Multi-application service</a>.</p>
* <h3>QPS limits</h3>
* <p>You can call this operation up to 50 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/342790.html">QPS limits on API operations in ApsaraVideo VOD</a>.</p>
*
* @param request the request parameters of CreateAppInfo CreateAppInfoRequest
* @return CreateAppInfoResponse
*/
CompletableFuture<CreateAppInfoResponse> createAppInfo(CreateAppInfoRequest request);
/**
* @param request the request parameters of CreateAudit CreateAuditRequest
* @return CreateAuditResponse
*/
CompletableFuture<CreateAuditResponse> createAudit(CreateAuditRequest request);
/**
* <b>description</b> :
* <p> <strong>Make sure that you understand the billing method and prices of ApsaraVideo VOD before you call this operation. You are charged storage fees after you upload media files to ApsaraVideo VOD. For more information, see <a href="~~188308#section_e97_xrp_mzz~~">Billing of media asset storage</a>. If you have activated the acceleration service, you are charged acceleration fees when you upload media files to ApsaraVideo VOD. For more information, see <a href="~~188310#section_sta_zm2_tsv~~">Billing of acceleration traffic</a>.</strong></p>
* <ul>
* <li>You can call this operation only to obtain the upload URLs and credentials for media files and create media assets in ApsaraVideo VOD. You cannot call this operation to upload media files. For more information about how to upload media files by calling API operations, see <a href="https://help.aliyun.com/document_detail/476208.html">Upload media files by calling API operations</a>.</li>
* <li>If the upload credential expires after 3,000 seconds, you can call the CreateUploadAttachedMedia operation again to obtain a new upload URL and a new upload credential.</li>
* <li>You can configure a callback to receive an <a href="https://help.aliyun.com/document_detail/103250.html">AttachedMediaUploadComplete</a> event notification to determine whether the upload is successful.</li>
* <li>You must obtain a URL and a credential before you upload a media file to ApsaraVideo VOD. ApsaraVideo VOD supports multiple upload methods. Each method has different requirements on upload URLs and credentials. For more information, see <a href="https://help.aliyun.com/document_detail/55397.html">Upload URLs and credentials</a>.</li>
* </ul>
*
* @param request the request parameters of CreateUploadAttachedMedia CreateUploadAttachedMediaRequest
* @return CreateUploadAttachedMediaResponse
*/
CompletableFuture<CreateUploadAttachedMediaResponse> createUploadAttachedMedia(CreateUploadAttachedMediaRequest request);
/**
* <b>description</b> :
* <p> <strong>Make sure that you understand the billing method and price of ApsaraVideo VOD before you call this operation. You are charged storage fees after you upload media files to ApsaraVideo VOD. For more information, see <a href="~~188308#section_e97_xrp_mzz~~">Billing of media asset storage</a>. If you have activated the acceleration service, you are charged acceleration fees when you upload media files to ApsaraVideo VOD. For more information, see <a href="~~188310#section_sta_zm2_tsv~~">Billing of acceleration traffic</a>.</strong></p>
* <ul>
* <li>You must obtain a URL and a credential before you upload an image to ApsaraVideo VOD. ApsaraVideo VOD provides multiple upload methods. You can upload files by using server upload SDKs, client upload SDKs, URLs, Object Storage Service (OSS) API, or OSS SDKs. Each upload method has different requirements for obtaining upload URLs and credentials. For more information, see the "Usage notes" section of the <a href="https://help.aliyun.com/document_detail/55397.html">Upload URLs and credentials</a> topic.</li>
* <li>You cannot refresh the upload URL or credential when you upload images. If the image upload credential expires, you can call this operation to obtain a new upload URL and credential. By default, the validity period of an image upload credential is 3,000 seconds.</li>
* <li>You can call the <a href="https://help.aliyun.com/document_detail/98467.html">CreateUploadAttachedMedia</a> operation to upload image watermarks.</li>
* <li>You can configure a callback for <a href="https://help.aliyun.com/document_detail/91968.html">ImageUploadComplete</a> to receive notifications about the image upload status.</li>
* </ul>
*
* @param request the request parameters of CreateUploadImage CreateUploadImageRequest
* @return CreateUploadImageResponse
*/
CompletableFuture<CreateUploadImageResponse> createUploadImage(CreateUploadImageRequest request);
/**
* <b>description</b> :
* <p> <strong>Make sure that you understand the billing method and prices of ApsaraVideo VOD before you call this operation. You are charged storage fees after you upload media files to ApsaraVideo VOD. For more information, see <a href="~~188308#section_e97_xrp_mzz~~">Billing of media asset storage</a>. If you have activated the acceleration service, you are charged acceleration fees when you upload media files to ApsaraVideo VOD. For more information, see <a href="~~188310#section_sta_zm2_tsv~~">Billing of acceleration traffic</a>.</strong></p>
* <ul>
* <li>You can call this operation to obtain upload URLs and credentials for video and audio files. For more information, see <a href="https://help.aliyun.com/document_detail/55397.html">Upload URLs and credentials</a>.</li>
* <li>You can call this operation only to obtain the upload URLs and credentials for media files and create media assets in ApsaraVideo VOD. You cannot call this operation to upload media files. For more information about how to upload media files by calling API operations, see <a href="https://help.aliyun.com/document_detail/476208.html">Upload media files by calling API operations</a>.</li>
* <li>If the upload credential expires, call the <a href="~~RefreshUploadVideo~~">RefreshUploadVideo</a> operation to obtain a new upload credential. The default validity period of an upload credential is 3,000 seconds.</li>
* <li>You can configure a callback to receive an event notification when an audio or video file is uploaded. Alternatively, after you upload an audio or video file, you can call the <a href="https://help.aliyun.com/document_detail/59624.html">GetMezzanineInfo</a> operation to determine whether the upload is successful. For more information, see <a href="https://help.aliyun.com/document_detail/55396.html">Overview</a>.</li>
* <li>The value of the VideoId parameter that is returned after you call this operation can be used for media processing or the lifecycle management of media assets.</li>
* <li>You must obtain a URL and a credential before you upload a media file to ApsaraVideo VOD. ApsaraVideo VOD supports multiple upload methods. Each method has different requirements on upload URLs and credentials. For more information, see <a href="https://help.aliyun.com/document_detail/55397.html">Upload URLs and credentials</a>.</li>
* </ul>
*
* @param request the request parameters of CreateUploadVideo CreateUploadVideoRequest
* @return CreateUploadVideoResponse
*/
CompletableFuture<CreateUploadVideoResponse> createUploadVideo(CreateUploadVideoRequest request);
/**
* @param request the request parameters of DecryptKMSDataKey DecryptKMSDataKeyRequest
* @return DecryptKMSDataKeyResponse
*/
CompletableFuture<DecryptKMSDataKeyResponse> decryptKMSDataKey(DecryptKMSDataKeyRequest request);
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong> and <strong>China (Shanghai)</strong>.</p>
* <ul>
* <li>This operation deletes only information about images that are submitted for AI processing. The image files are not deleted.</li>
* </ul>
*
* @param request the request parameters of DeleteAIImageInfos DeleteAIImageInfosRequest
* @return DeleteAIImageInfosResponse
*/
CompletableFuture<DeleteAIImageInfosResponse> deleteAIImageInfos(DeleteAIImageInfosRequest request);
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong>, <strong>China (Shanghai)</strong>, and <strong>Singapore</strong>.</p>
* <ul>
* <li>You cannot delete an AI template that is set as the default template.</li>
* </ul>
*
* @param request the request parameters of DeleteAITemplate DeleteAITemplateRequest
* @return DeleteAITemplateResponse
*/
CompletableFuture<DeleteAITemplateResponse> deleteAITemplate(DeleteAITemplateRequest request);
/**
* <b>description</b> :
* <p>Application with resources can not be deleted.</p>
*
* @param request the request parameters of DeleteAppInfo DeleteAppInfoRequest
* @return DeleteAppInfoResponse
*/
CompletableFuture<DeleteAppInfoResponse> deleteAppInfo(DeleteAppInfoRequest request);
/**
* <b>description</b> :
* <p> <strong>This operation physically deletes auxiliary media assets. You cannot recover the auxiliary media assets that you deleted. Exercise caution when you call this operation.</strong></p>
* <ul>
* <li>You can delete a maximum of 20 auxiliary media assets in one request.</li>
* </ul>
*
* @param request the request parameters of DeleteAttachedMedia DeleteAttachedMediaRequest
* @return DeleteAttachedMediaResponse
*/
CompletableFuture<DeleteAttachedMediaResponse> deleteAttachedMedia(DeleteAttachedMediaRequest request);
/**
* <b>description</b> :
* <p> <strong>After you call this operation to delete a category, all subcategories including level 2 and level 3 categories are deleted at the same time. Exercise caution when you call this operation.</strong></p>
* <ul>
* <li>If you have classified specific media resources to a category, the category names labeled on these media resources are automatically deleted when you delete the category.</li>
* </ul>
*
* @param request the request parameters of DeleteCategory DeleteCategoryRequest
* @return DeleteCategoryResponse
*/
CompletableFuture<DeleteCategoryResponse> deleteCategory(DeleteCategoryRequest request);
/**
* <b>description</b> :
* <blockquote>
* <p>This operation deletes only the information about animated stickers, but not the animated stickers themselves.</p>
* </blockquote>
*
* @param request the request parameters of DeleteDynamicImage DeleteDynamicImageRequest
* @return DeleteDynamicImageResponse
*/
CompletableFuture<DeleteDynamicImageResponse> deleteDynamicImage(DeleteDynamicImageRequest request);
/**
* <b>description</b> :
* <p> You can call this operation to delete multiple online editing projects at a time.</p>
*
* @param request the request parameters of DeleteEditingProject DeleteEditingProjectRequest
* @return DeleteEditingProjectResponse
*/
CompletableFuture<DeleteEditingProjectResponse> deleteEditingProject(DeleteEditingProjectRequest request);
/**
* @param request the request parameters of DeleteEditingProjectMaterials DeleteEditingProjectMaterialsRequest
* @return DeleteEditingProjectMaterialsResponse
*/
CompletableFuture<DeleteEditingProjectMaterialsResponse> deleteEditingProjectMaterials(DeleteEditingProjectMaterialsRequest request);
/**
* <b>description</b> :
* <p> <strong>After you call this operation to delete an image, the source file is permanently deleted and cannot be recovered. Exercise caution when you call this operation.</strong></p>
* <ul>
* <li>If some images are cached on Alibaba Cloud CDN points of presence (POPs), the image URLs do not immediately become invalid.</li>
* <li>You can call this operation to delete uploaded images and video snapshots.</li>
* </ul>
*
* @param request the request parameters of DeleteImage DeleteImageRequest
* @return DeleteImageResponse
*/
CompletableFuture<DeleteImageResponse> deleteImage(DeleteImageRequest request);
/**
* <b>description</b> :
* <blockquote>
* <p>For more information, see <a href="https://help.aliyun.com/document_detail/55627.html">Overview</a>.</p>
* </blockquote>
*
* @param request the request parameters of DeleteMessageCallback DeleteMessageCallbackRequest
* @return DeleteMessageCallbackResponse
*/
CompletableFuture<DeleteMessageCallbackResponse> deleteMessageCallback(DeleteMessageCallbackRequest request);
/**
* <b>description</b> :
* <p>All media processing operations in ApsaraVideo VOD, such as transcoding, snapshot capture, and content moderation, are performed based on source files. If you delete the source files, you cannot perform media processing operations. Exercise caution when you call this operation.</p>
*
* @param request the request parameters of DeleteMezzanines DeleteMezzaninesRequest
* @return DeleteMezzaninesResponse
*/
CompletableFuture<DeleteMezzaninesResponse> deleteMezzanines(DeleteMezzaninesRequest request);
/**
* <b>description</b> :
* <p> During multipart upload, useless parts may be retained if the upload fails. These useless parts are automatically deleted after 7 days. You can call this operation to delete the generated parts after the upload is successful or fails.</p>
* <ul>
* <li>This operation does not delete the source file or transcoded file, but deletes only the parts generated during the upload.</li>
* <li>If you call the <a href="https://help.aliyun.com/document_detail/52837.html">DeleteVideo</a> operation, the entire video file is deleted, including the generated parts.</li>
* </ul>
*
* @param request the request parameters of DeleteMultipartUpload DeleteMultipartUploadRequest
* @return DeleteMultipartUploadResponse
*/
CompletableFuture<DeleteMultipartUploadResponse> deleteMultipartUpload(DeleteMultipartUploadRequest request);
/**
* @param request the request parameters of DeleteStream DeleteStreamRequest
* @return DeleteStreamResponse
*/
CompletableFuture<DeleteStreamResponse> deleteStream(DeleteStreamRequest request);
/**
* <b>description</b> :
* <p> You cannot call this operation to delete the default transcoding template. You can delete the transcoding template when it is no longer specified as the default one.</p>
* <ul>
* <li>For security purposes, you cannot add, modify, or delete transcoding templates in a transcoding template group that is locked. To check whether a transcoding template group is locked, call the <a href="~~GetTranscodeTemplateGroup~~">GetTranscodeTemplateGroup</a> operation and obtain the Locked parameter from the response. To modify transcoding templates within a locked transcoding template group, you must call the <a href="~~UpdateTranscodeTemplateGroup~~">UpdateTranscodeTemplateGroup</a> operation to unlock the transcoding template group first.</li>
* </ul>
*
* @param request the request parameters of DeleteTranscodeTemplateGroup DeleteTranscodeTemplateGroupRequest
* @return DeleteTranscodeTemplateGroupResponse
*/
CompletableFuture<DeleteTranscodeTemplateGroupResponse> deleteTranscodeTemplateGroup(DeleteTranscodeTemplateGroupRequest request);
/**
* <b>description</b> :
* <p> This operation physically deletes videos. Deleted videos cannot be recovered. Exercise caution when you call this operation.</p>
* <ul>
* <li>You can call this operation to delete multiple videos at a time.</li>
* <li>When you delete a video, its source file, transcoded stream file, and thumbnail screenshot are also deleted. However, the Alibaba Cloud Content Delivery Network (CDN) cache is not refreshed simultaneously. You can use the refresh feature in the ApsaraVideo VOD console to clear garbage data on CDN nodes. For more information, see <a href="https://help.aliyun.com/document_detail/86098.html">Refresh and prefetch</a>.</li>
* </ul>
*
* @param request the request parameters of DeleteVideo DeleteVideoRequest
* @return DeleteVideoResponse
*/
CompletableFuture<DeleteVideoResponse> deleteVideo(DeleteVideoRequest request);
/**
* <b>description</b> :
* <blockquote>
* <ul>
* <li>This operation is available only in the <strong>China (Shanghai)</strong> region.</li>
* <li>After a domain name for CDN is removed from ApsaraVideo VOD, the domain name becomes unavailable. Proceed with caution. We recommend that you restore the A record at your DNS service provider before you remove the domain name for CDN.</li>
* <li>After you call this operation to remove a domain name for CDN from ApsaraVideo VOD, all records that are related to the domain name are deleted. If you only want to disable a domain name for CDN, call the <a href="https://help.aliyun.com/document_detail/120208.html">BatchStopVodDomain</a> operation.</li>
* </ul>
* </blockquote>
*
* @param request the request parameters of DeleteVodDomain DeleteVodDomainRequest
* @return DeleteVodDomainResponse
*/
CompletableFuture<DeleteVodDomainResponse> deleteVodDomain(DeleteVodDomainRequest request);
/**
* <b>description</b> :
* <blockquote>
* </blockquote>
* <ul>
* <li>This operation is available only in the <strong>China (Shanghai)</strong> region.</li>
* <li>After the configurations of a domain name for CDN are deleted, the domain name becomes unavailable. We recommend that you restore the A record at your DNS service provider before you delete the configurations of the domain name for CDN.</li>
* <li>After you call this operation to remove a domain name for CDN from ApsaraVideo VOD, all records that are related to the domain name are deleted. If you only want to disable a domain name for CDN, call the <a href="https://help.aliyun.com/document_detail/120208.html">BatchStopVodDomain</a> operation.</li>
* </ul>
*
* @param request the request parameters of DeleteVodSpecificConfig DeleteVodSpecificConfigRequest
* @return DeleteVodSpecificConfigResponse
*/
CompletableFuture<DeleteVodSpecificConfigResponse> deleteVodSpecificConfig(DeleteVodSpecificConfigRequest request);
/**
* @param request the request parameters of DeleteVodTemplate DeleteVodTemplateRequest
* @return DeleteVodTemplateResponse
*/
CompletableFuture<DeleteVodTemplateResponse> deleteVodTemplate(DeleteVodTemplateRequest request);
/**
* <b>description</b> :
* <p> <strong>After you delete an image watermark template, the source watermark file is physically deleted and cannot be restored. Exercise caution when you call this operation.</strong></p>
* <ul>
* <li>You cannot delete the default watermark template. To delete a default watermark template, call the <a href="~~SetDefaultWatermark~~">SetDefaultWatermark</a> operation to set another watermark template as the default one.</li>
* </ul>
*
* @param request the request parameters of DeleteWatermark DeleteWatermarkRequest
* @return DeleteWatermarkResponse
*/
CompletableFuture<DeleteWatermarkResponse> deleteWatermark(DeleteWatermarkRequest request);
/**
* <b>description</b> :
* <p> This operation is available only in the China (Shanghai) region.</p>
* <ul>
* <li>If you do not set the StartTime or EndTime parameter, the request returns the data collected in the previous 7 days. If you set both the parameters, the request returns the data collected within the specified time range.</li>
* </ul>
*
* @param request the request parameters of DescribeMediaDistribution DescribeMediaDistributionRequest
* @return DescribeMediaDistributionResponse
*/
CompletableFuture<DescribeMediaDistributionResponse> describeMediaDistribution(DescribeMediaDistributionRequest request);
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can query playback statistics on top 1,000 videos at most on a specified day. By default, top videos are sorted in descending order based on video views.</li>
* <li>You can call this operation to query only playback statistics collected on videos that are played by using ApsaraVideo Player SDKs.</li>
* <li>Playback statistics for the previous day are generated at 09:00 on the current day, in UTC+8.</li>
* <li>You can query data that is generated since January 1, 2018. The maximum time range to query is 180 days.</li>
* </ul>
*
* @param request the request parameters of DescribePlayTopVideos DescribePlayTopVideosRequest
* @return DescribePlayTopVideosResponse
*/
CompletableFuture<DescribePlayTopVideosResponse> describePlayTopVideos(DescribePlayTopVideosRequest request);
/**
* <b>description</b> :
* <blockquote>
* <ul>
* <li>This operation is available only in the <strong>China (Shanghai)</strong> region.</li>
* <li>You can call this operation to query only playback statistics collected on videos that are played by using ApsaraVideo Player SDKs.</li>
* <li>Playback statistics for the previous day are generated at 09:00 on the current day, in UTC+8.</li>
* <li>You can query data that is generated since January 1, 2018. The maximum time range to query is 180 days.</li>
* </ul>
* </blockquote>
*
* @param request the request parameters of DescribePlayUserAvg DescribePlayUserAvgRequest
* @return DescribePlayUserAvgResponse
*/
CompletableFuture<DescribePlayUserAvgResponse> describePlayUserAvg(DescribePlayUserAvgRequest request);
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can call this operation to query only playback statistics collected on videos that are played by using ApsaraVideo Player SDKs.</li>
* <li>Playback statistics for the current day are generated at 09:00 (UTC+8) on the next day.</li>
* <li>You can query data that is generated since January 1, 2018. The maximum time range to query is 180 days.</li>
* </ul>
*
* @param request the request parameters of DescribePlayUserTotal DescribePlayUserTotalRequest
* @return DescribePlayUserTotalResponse
*/
CompletableFuture<DescribePlayUserTotalResponse> describePlayUserTotal(DescribePlayUserTotalRequest request);
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can call this operation to query only playback statistics collected on videos that are played by using ApsaraVideo Player SDKs.</li>
* <li>Playback statistics for the current day are generated at 09:00 (UTC+8) on the next day.</li>
* <li>You can query only data in the last 730 days. The maximum time range to query is 180 days.</li>
* </ul>
*
* @param request the request parameters of DescribePlayVideoStatis DescribePlayVideoStatisRequest
* @return DescribePlayVideoStatisResponse
*/
CompletableFuture<DescribePlayVideoStatisResponse> describePlayVideoStatis(DescribePlayVideoStatisRequest request);
/**
* <b>description</b> :
* <blockquote>
* <ul>
* <li>This operation is available only in the <strong>China (Shanghai)</strong> region.</li>
* <li>If the time range to query is less than or equal to seven days, the system returns the statistics collected on an hourly basis. If the time range to query is greater than seven days, the system returns the statistics collected on a daily basis. The maximum time range that you can specify to query is 31 days.</li>
* </ul>
* </blockquote>
*
* @param request the request parameters of DescribeVodAIData DescribeVodAIDataRequest
* @return DescribeVodAIDataResponse
*/
CompletableFuture<DescribeVodAIDataResponse> describeVodAIData(DescribeVodAIDataRequest request);
/**
* <b>description</b> :
* <blockquote>
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* </blockquote>
*
* @param request the request parameters of DescribeVodCertificateList DescribeVodCertificateListRequest
* @return DescribeVodCertificateListResponse
*/
CompletableFuture<DescribeVodCertificateListResponse> describeVodCertificateList(DescribeVodCertificateListRequest request);
/**
* <b>description</b> :
* <p>If you specify neither the StartTime parameter nor the EndTime parameter, the data in the last 24 hours is queried. Alternatively, you can specify both the StartTime and EndTime parameters to query data that is generated in the specified duration. You can query data for the last 90 days at most.</p>
*
* @param request the request parameters of DescribeVodDomainBpsData DescribeVodDomainBpsDataRequest
* @return DescribeVodDomainBpsDataResponse
*/
CompletableFuture<DescribeVodDomainBpsDataResponse> describeVodDomainBpsData(DescribeVodDomainBpsDataRequest request);
/**
* <b>description</b> :
* <p>You can call this API operation up to 20 times per second per account. If you do not set the StartTime or EndTime parameter, the request returns the data collected in the last 24 hours. If you set both these parameters, the request returns the data collected within the specified time range. Time granularity
* The time granularity supported by Interval, the maximum time period within which historical data is available, and the data delay vary based on the time range to query, as described in the following table.</p>
* <table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>15 minutes</td>
* <td>3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* <tr>
* <td>1 day</td>
* <td>90 days</td>
* <td>366 days</td>
* <td>4 hours in most cases, not more than 24 hours</td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of DescribeVodDomainBpsDataByLayer DescribeVodDomainBpsDataByLayerRequest
* @return DescribeVodDomainBpsDataByLayerResponse
*/
CompletableFuture<DescribeVodDomainBpsDataByLayerResponse> describeVodDomainBpsDataByLayer(DescribeVodDomainBpsDataByLayerRequest request);
/**
* <b>description</b> :
* <p>This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
*
* @param request the request parameters of DescribeVodDomainCertificateInfo DescribeVodDomainCertificateInfoRequest
* @return DescribeVodDomainCertificateInfoResponse
*/
CompletableFuture<DescribeVodDomainCertificateInfoResponse> describeVodDomainCertificateInfo(DescribeVodDomainCertificateInfoRequest request);
/**
* <b>description</b> :
* <blockquote>
* <p>This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* </blockquote>
*
* @param request the request parameters of DescribeVodDomainConfigs DescribeVodDomainConfigsRequest
* @return DescribeVodDomainConfigsResponse
*/
CompletableFuture<DescribeVodDomainConfigsResponse> describeVodDomainConfigs(DescribeVodDomainConfigsRequest request);
/**
* <b>description</b> :
* <blockquote>
* <p>This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* </blockquote>
*
* @param request the request parameters of DescribeVodDomainDetail DescribeVodDomainDetailRequest
* @return DescribeVodDomainDetailResponse
*/
CompletableFuture<DescribeVodDomainDetailResponse> describeVodDomainDetail(DescribeVodDomainDetailRequest request);
/**
* <b>description</b> :
* <p>This operation is supported only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can specify a maximum of 500 accelerated domain names.</li>
* <li>If you specify neither <code>StartTime</code> nor <code>EndTime</code>, the data of the last 24 hours is queried. You can specify both <code>StartTime</code> and <code>EndTime</code> parameters to query data of a specified time range.
* <strong>Time granularity</strong>
* The time granularity varies with the time range specified by the <code>StartTime</code> and <code>EndTime</code> parameters. The following table describes the time period within which historical data is available and the data delay when you do not set <code>Interval</code>.<table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>5 minutes</td>
* <td>Time range per query < 3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>3 days ≤ Time range per query < 31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* <tr>
* <td>1 day</td>
* <td>31 days ≤ Time span of a single query ≤ 366 days</td>
* <td>366 days</td>
* <td>4 hours in most cases, not more than 24 hours</td>
* </tr>
* </tbody></table>
* </li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainHitRateData DescribeVodDomainHitRateDataRequest
* @return DescribeVodDomainHitRateDataResponse
*/
CompletableFuture<DescribeVodDomainHitRateDataResponse> describeVodDomainHitRateData(DescribeVodDomainHitRateDataRequest request);
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>For more information about the log format and latency, see <a href="https://help.aliyun.com/document_detail/86099.html">Download logs</a>.</li>
* <li>If you specify neither the StartTime parameter nor the EndTime parameter, the log data in the last 24 hours is queried.</li>
* <li>You can specify both the StartTime and EndTime parameters to query the log data that is generated in the specified time range.</li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainLog DescribeVodDomainLogRequest
* @return DescribeVodDomainLogResponse
*/
CompletableFuture<DescribeVodDomainLogResponse> describeVodDomainLog(DescribeVodDomainLogRequest request);
/**
* @param request the request parameters of DescribeVodDomainMax95BpsData DescribeVodDomainMax95BpsDataRequest
* @return DescribeVodDomainMax95BpsDataResponse
*/
CompletableFuture<DescribeVodDomainMax95BpsDataResponse> describeVodDomainMax95BpsData(DescribeVodDomainMax95BpsDataRequest request);
/**
* <b>description</b> :
* <p>This operation is available only in the China (Shanghai) region.</p>
* <ul>
* <li>You can call this operation up to 100 times per second per account.</li>
* <li>If you do not set the StartTime or EndTime parameter, the request returns the data collected in the last 24 hours. If you set both these parameters, the request returns the data collected within the specified time range.
* <strong>Time granularity</strong>
* The time granularity supported by the Interval parameter, the maximum time period within which historical data is available, and the data delay vary with the maximum time range per query, as described in the following table.<table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Maximum time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>5 minutes</td>
* <td>3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* <tr>
* <td>1 day</td>
* <td>366 days</td>
* <td>366 days</td>
* <td>4 to 24 hours</td>
* </tr>
* </tbody></table>
* </li>
* </ul>
* <hr>
*
* @param request the request parameters of DescribeVodDomainQpsData DescribeVodDomainQpsDataRequest
* @return DescribeVodDomainQpsDataResponse
*/
CompletableFuture<DescribeVodDomainQpsDataResponse> describeVodDomainQpsData(DescribeVodDomainQpsDataRequest request);
/**
* <b>description</b> :
* <p>This operation is supported only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can specify a maximum of 500 accelerated domain names.</li>
* <li>If you specify neither <code>StartTime</code> nor <code>EndTime</code>, the data of the last 1 hour is queried. You can specify both <code>StartTime</code> and <code>EndTime</code> parameters to query data of a specified time range.
* <strong>Time granularity</strong>
* The time granularity varies with the time range specified by the <code>StartTime</code> and <code>EndTime</code> parameters. The following table describes the time period within which historical data is available and the data delay.<table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>1 minute</td>
* <td>Time range per query ≤ 1 hour</td>
* <td>7 days</td>
* <td>5 minutes</td>
* </tr>
* <tr>
* <td>5 minutes</td>
* <td>1 Hour < Time range per query ≤ 3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>3 days < Time range per query ≤ 31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* </tbody></table>
* </li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainRealTimeBpsData DescribeVodDomainRealTimeBpsDataRequest
* @return DescribeVodDomainRealTimeBpsDataResponse
*/
CompletableFuture<DescribeVodDomainRealTimeBpsDataResponse> describeVodDomainRealTimeBpsData(DescribeVodDomainRealTimeBpsDataRequest request);
/**
* <b>description</b> :
* <p>This operation is supported only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can specify a maximum of 100 accelerated domain names.</li>
* <li>If you specify neither <code>StartTime</code> nor <code>EndTime</code>, the data of the last 1 hour is queried. You can specify both <code>StartTime</code> and <code>EndTime</code> parameters to query data of a specified time range.
* <strong>Time granularity</strong>
* The time granularity varies with the time range specified by the <code>StartTime</code> and <code>EndTime</code> parameters. The following table describes the time period within which historical data is available and the data delay.<table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>1 minute</td>
* <td>Time range per query ≤ 1 hour</td>
* <td>7 days</td>
* <td>5 minutes</td>
* </tr>
* <tr>
* <td>5 minutes</td>
* <td>1 Hour < Time range per query ≤ 3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>3 days < Time range per query ≤ 31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* </tbody></table>
* </li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainRealTimeByteHitRateData DescribeVodDomainRealTimeByteHitRateDataRequest
* @return DescribeVodDomainRealTimeByteHitRateDataResponse
*/
CompletableFuture<DescribeVodDomainRealTimeByteHitRateDataResponse> describeVodDomainRealTimeByteHitRateData(DescribeVodDomainRealTimeByteHitRateDataRequest request);
/**
* <b>description</b> :
* <p>You can query data within the last seven days. Data is collected every minute. You can call this API operation up to 10 times per second per account.</p>
*
* @param request the request parameters of DescribeVodDomainRealTimeDetailData DescribeVodDomainRealTimeDetailDataRequest
* @return DescribeVodDomainRealTimeDetailDataResponse
*/
CompletableFuture<DescribeVodDomainRealTimeDetailDataResponse> describeVodDomainRealTimeDetailData(DescribeVodDomainRealTimeDetailDataRequest request);
/**
* <b>description</b> :
* <p>This operation is supported only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can specify a maximum of 100 accelerated domain names.</li>
* <li>If you specify neither <code>StartTime</code> nor <code>EndTime</code>, the data of the last 1 hour is queried. You can specify both <code>StartTime</code> and <code>EndTime</code> parameters to query data of a specified time range.
* <strong>Time granularity</strong>
* The time granularity varies with the time range specified by the <code>StartTime</code> and <code>EndTime</code> parameters. The following table describes the time period within which historical data is available and the data delay.<table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query</th>
* <th>Historical data available (days)</th>
* <th>Data latency</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>1 minute</td>
* <td>Time range per query ≤ 1 hour</td>
* <td>7 days</td>
* <td>5 minutes</td>
* </tr>
* <tr>
* <td>5 minutes</td>
* <td>1 hour < Time range per query < 3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>3 days ≤ Time range per query < 31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* </tbody></table>
* </li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainRealTimeHttpCodeData DescribeVodDomainRealTimeHttpCodeDataRequest
* @return DescribeVodDomainRealTimeHttpCodeDataResponse
*/
CompletableFuture<DescribeVodDomainRealTimeHttpCodeDataResponse> describeVodDomainRealTimeHttpCodeData(DescribeVodDomainRealTimeHttpCodeDataRequest request);
/**
* <b>description</b> :
* <p>This operation is supported only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can specify a maximum of 500 accelerated domain names.</li>
* <li>If you specify neither <code>StartTime</code> nor <code>EndTime</code>, the data of the last 1 hour is queried. You can specify both <code>StartTime</code> and <code>EndTime</code> parameters to query data of a specified time range.
* <strong>Time granularity</strong>
* The time granularity varies with the time range specified by the <code>StartTime</code> and <code>EndTime</code> parameters. The following table describes the time period within which historical data is available and the data delay.<table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>1 minute</td>
* <td>Time range per query ≤ 1 hour</td>
* <td>7 days</td>
* <td>5 minutes</td>
* </tr>
* <tr>
* <td>5 minutes</td>
* <td>1 Hour < Time range per query ≤ 3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>3 days < Time range per query ≤ 31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* </tbody></table>
* </li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainRealTimeQpsData DescribeVodDomainRealTimeQpsDataRequest
* @return DescribeVodDomainRealTimeQpsDataResponse
*/
CompletableFuture<DescribeVodDomainRealTimeQpsDataResponse> describeVodDomainRealTimeQpsData(DescribeVodDomainRealTimeQpsDataRequest request);
/**
* <b>description</b> :
* <p>This operation is supported only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can specify a maximum of 100 accelerated domain names.</li>
* <li>If you specify neither <code>StartTime</code> nor <code>EndTime</code>, the data of the last 1 hour is queried. You can specify both <code>StartTime</code> and <code>EndTime</code> parameters to query data of a specified time range.</li>
* <li>By default, the POST method is used for Go. To use the FET method, you must declare <code>request.Method="GET"</code>.
* <strong>Time granularity</strong>
* The time granularity varies with the time range specified by the <code>StartTime</code> and <code>EndTime</code> parameters. The following table describes the time period within which historical data is available and the data delay.<table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>1 minute</td>
* <td>Time range per query ≤ 1 hour</td>
* <td>7 days</td>
* <td>5 minutes</td>
* </tr>
* <tr>
* <td>5 minutes</td>
* <td>1 hour < Time range per query < 3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>3 days ≤ Time range per query < 31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* </tbody></table>
* </li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainRealTimeReqHitRateData DescribeVodDomainRealTimeReqHitRateDataRequest
* @return DescribeVodDomainRealTimeReqHitRateDataResponse
*/
CompletableFuture<DescribeVodDomainRealTimeReqHitRateDataResponse> describeVodDomainRealTimeReqHitRateData(DescribeVodDomainRealTimeReqHitRateDataRequest request);
/**
* <b>description</b> :
* <p>This operation is supported only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can specify a maximum of 100 accelerated domain names.</li>
* <li>If you specify neither <code>StartTime</code> nor <code>EndTime</code>, the data of the last 1 hour is queried. You can specify both <code>StartTime</code> and <code>EndTime</code> parameters to query data of a specified time range.
* <strong>Time granularity</strong>
* The time granularity varies with the time range specified by the <code>StartTime</code> and <code>EndTime</code> parameters. The following table describes the time period within which historical data is available and the data delay.<table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>1 minute</td>
* <td>Time range per query ≤ 1 hour</td>
* <td>7 days</td>
* <td>5 minutes</td>
* </tr>
* <tr>
* <td>5 minutes</td>
* <td>1 Hour < Time range per query ≤ 3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>3 days < Time range per query ≤ 31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* </tbody></table>
* </li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainRealTimeTrafficData DescribeVodDomainRealTimeTrafficDataRequest
* @return DescribeVodDomainRealTimeTrafficDataResponse
*/
CompletableFuture<DescribeVodDomainRealTimeTrafficDataResponse> describeVodDomainRealTimeTrafficData(DescribeVodDomainRealTimeTrafficDataRequest request);
/**
* <b>description</b> :
* <p>This operation is supported only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can specify a maximum of 500 accelerated domain names.</li>
* <li>If you specify neither <code>StartTime</code> nor <code>EndTime</code>, the data of the last 24 hours is queried. You can specify both <code>StartTime</code> and <code>EndTime</code> parameters to query data of a specified time range.
* <strong>Time granularity</strong>
* The time granularity varies with the time range specified by the <code>StartTime</code> and <code>EndTime</code> parameters. The following table describes the time period within which historical data is available and the data delay when you do not set <code>Interval</code>.<table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>5 minutes</td>
* <td>Time range per query < 3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>3 days ≤ Time range per query < 31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* <tr>
* <td>1 day</td>
* <td>31 days ≤ Time range per query ≤ 90 days</td>
* <td>366 days</td>
* <td>4 hours in most cases, not more than 24 hours</td>
* </tr>
* </tbody></table>
* </li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainReqHitRateData DescribeVodDomainReqHitRateDataRequest
* @return DescribeVodDomainReqHitRateDataResponse
*/
CompletableFuture<DescribeVodDomainReqHitRateDataResponse> describeVodDomainReqHitRateData(DescribeVodDomainReqHitRateDataRequest request);
/**
* <b>description</b> :
* <p>This operation is supported only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can specify a maximum of 500 accelerated domain names.</li>
* <li>If you specify neither <code>StartTime</code> nor <code>EndTime</code>, the data of the last 24 hours is queried. You can specify both <code>StartTime</code> and <code>EndTime</code> parameters to query data of a specified time range.
* <strong>Time granularity</strong>
* The time granularity varies with the time range specified by the <code>StartTime</code> and <code>EndTime</code> parameters. The following table describes the time period within which historical data is available and the data delay when you do not set <code>Interval</code>.<table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>5 minutes</td>
* <td>Time range per query < 3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>3 days ≤ Time range per query < 31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* <tr>
* <td>1 day</td>
* <td>31 days ≤ Time span of a single query ≤ 366 days</td>
* <td>366 days</td>
* <td>4 hours in most cases, not more than 24 hours</td>
* </tr>
* </tbody></table>
* </li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainSrcBpsData DescribeVodDomainSrcBpsDataRequest
* @return DescribeVodDomainSrcBpsDataResponse
*/
CompletableFuture<DescribeVodDomainSrcBpsDataResponse> describeVodDomainSrcBpsData(DescribeVodDomainSrcBpsDataRequest request);
/**
* <b>description</b> :
* <p>This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>ApsaraVideo VOD stores the origin traffic data for 90 days before the data is deleted.</li>
* <li>If you do not set the <code>StartTime</code> or <code>EndTime</code> parameter, the request returns the data collected in the last 24 hours. If you set both the <code>StartTime</code> and <code>EndTime</code> parameters, the request returns the data collected within the specified time range.</li>
* <li>You can specify a maximum of 500 domain names in a request. Separate multiple domain names with commas (,). If you specify multiple domain names in a request, aggregation results are returned.</li>
* </ul>
* <h3>Time granularity</h3>
* <p>The time granularity supported by the Interval parameter varies based on the time range per query specified by using <code>StartTime</code> and <code>EndTime</code>. The following table describes the time period within which historical data is available and the data delay.</p>
* <table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query (days)</th>
* <th>Historical data available (days)</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>5 minutes</td>
* <td>(0, 3\]</td>
* <td>93</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>(3, 31\]</td>
* <td>186</td>
* <td>4 hours</td>
* </tr>
* <tr>
* <td>1 day</td>
* <td>(31, 366\]</td>
* <td>366</td>
* <td>04:00 on the next day</td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of DescribeVodDomainSrcTrafficData DescribeVodDomainSrcTrafficDataRequest
* @return DescribeVodDomainSrcTrafficDataResponse
*/
CompletableFuture<DescribeVodDomainSrcTrafficDataResponse> describeVodDomainSrcTrafficData(DescribeVodDomainSrcTrafficDataRequest request);
/**
* <b>description</b> :
* <p>This operation is supported only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can specify a maximum of 500 accelerated domain names.</li>
* <li>If you specify neither <code>StartTime</code> nor <code>EndTime</code>, the data of the last 24 hour is queried. You can specify both <code>StartTime</code> and <code>EndTime</code> parameters to query data of a specified time range.
* <strong>Time granularity</strong>
* The time granularity varies with the time range specified by the <code>StartTime</code> and <code>EndTime</code> parameters. The following table describes the time period within which historical data is available and the data delay when you do not set <code>Interval</code>.<table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>5 minutes</td>
* <td>Time range per query < 3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>3 days ≤ Time range per query < 31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* <tr>
* <td>1 day</td>
* <td>31 days ≤ Time range per query ≤ 366 days</td>
* <td>366 days</td>
* <td>4 hours in most cases, not more than 24 hours</td>
* </tr>
* </tbody></table>
* </li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainTrafficData DescribeVodDomainTrafficDataRequest
* @return DescribeVodDomainTrafficDataResponse
*/
CompletableFuture<DescribeVodDomainTrafficDataResponse> describeVodDomainTrafficData(DescribeVodDomainTrafficDataRequest request);
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can specify up to 100 accelerated domain names in a request. Separate multiple domain names with commas (,). If you do not specify an accelerated domain name, the data of all accelerated domain names within your Alibaba Cloud account is returned.</li>
* <li>You can query data in the last year. The maximum time range that can be queried is three months. If you specify a time range of one to three days, the system returns data on an hourly basis. If you specify a time range of four days or more, the system returns data on a daily basis.</li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainUsageData DescribeVodDomainUsageDataRequest
* @return DescribeVodDomainUsageDataResponse
*/
CompletableFuture<DescribeVodDomainUsageDataResponse> describeVodDomainUsageData(DescribeVodDomainUsageDataRequest request);
/**
* @param request the request parameters of DescribeVodEditingUsageData DescribeVodEditingUsageDataRequest
* @return DescribeVodEditingUsageDataResponse
*/
CompletableFuture<DescribeVodEditingUsageDataResponse> describeVodEditingUsageData(DescribeVodEditingUsageDataRequest request);
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>Only playback data in ApsaraVideo Player SDK is collected.</li>
* <li>You can query only data within the last 30 days.</li>
* <li>Before you call this operation, make sure that the following requirements are met:<ul>
* <li>ApsaraVideo Player SDK for Android or iOS<ul>
* <li>ApsaraVideo Player SDK for Android or iOS V5.4.9.2 or later is used.</li>
* <li>A license for ApsaraVideo Player SDK is obtained. For more information, see <a href="https://help.aliyun.com/document_detail/469166.html">Manage licenses</a>.</li>
* <li>The log reporting feature is enabled. By default, the feature is enabled for ApsaraVideo Player SDKs. For more information, see <a href="~~311525#section-dc4-gp6-xk2~~">Integrate ApsaraVideo Player SDK for Android</a> and <a href="~~313855#section-cmf-k7d-jg5~~">Integrate ApsaraVideo Player SDK for iOS</a>.</li>
* </ul>
* </li>
* <li>ApsaraVideo Player SDK for Web<ul>
* <li>ApsaraVideo Player SDK for Web V2.16.0 or later is used.</li>
* <li>A license for <strong>playback quality monitoring</strong> is obtained. To apply for the license, <a href="https://yida.alibaba-inc.com/o/webplayer#/">submit a request on Yida to enable value-added features for ApsaraVideo Player SDK for Web</a>. For more information, see the description of the <code>license</code> parameter in the <a href="~~125572#section-3ty-gwp-6pa~~">API operations</a> topic.</li>
* <li>The log reporting feature is enabled. By default, the feature is enabled for ApsaraVideo Player SDKs.</li>
* </ul>
* </li>
* </ul>
* </li>
* </ul>
*
* @param request the request parameters of DescribeVodMediaPlayData DescribeVodMediaPlayDataRequest
* @return DescribeVodMediaPlayDataResponse
*/
CompletableFuture<DescribeVodMediaPlayDataResponse> describeVodMediaPlayData(DescribeVodMediaPlayDataRequest request);
/**
* @param request the request parameters of DescribeVodPlayerCollectData DescribeVodPlayerCollectDataRequest
* @return DescribeVodPlayerCollectDataResponse
*/
CompletableFuture<DescribeVodPlayerCollectDataResponse> describeVodPlayerCollectData(DescribeVodPlayerCollectDataRequest request);
/**
* @param request the request parameters of DescribeVodPlayerDimensionData DescribeVodPlayerDimensionDataRequest
* @return DescribeVodPlayerDimensionDataResponse
*/
CompletableFuture<DescribeVodPlayerDimensionDataResponse> describeVodPlayerDimensionData(DescribeVodPlayerDimensionDataRequest request);
/**
* @param request the request parameters of DescribeVodPlayerMetricData DescribeVodPlayerMetricDataRequest
* @return DescribeVodPlayerMetricDataResponse
*/
CompletableFuture<DescribeVodPlayerMetricDataResponse> describeVodPlayerMetricData(DescribeVodPlayerMetricDataRequest request);
/**
* <b>description</b> :
* <p>The data is collected every 5 minutes. You can call this API operation up to 20 times per second per account. Time granularity
* The time granularity supported by Interval, the maximum time period within which historical data is available, and the data delay vary based on the time range to query, as described in the following table.</p>
* <table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Maximum time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>5 minutes</td>
* <td>1 hour</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of DescribeVodRangeDataByLocateAndIspService DescribeVodRangeDataByLocateAndIspServiceRequest
* @return DescribeVodRangeDataByLocateAndIspServiceResponse
*/
CompletableFuture<DescribeVodRangeDataByLocateAndIspServiceResponse> describeVodRangeDataByLocateAndIspService(DescribeVodRangeDataByLocateAndIspServiceRequest request);
/**
* <b>description</b> :
* <blockquote>
* <ul>
* <li>This operation is available only in the <strong>China (Shanghai)</strong> region.</li>
* <li>You can call the <a href="https://help.aliyun.com/document_detail/69215.html">RefreshVodObjectCaches</a> operation to refresh content and the <a href="https://help.aliyun.com/document_detail/69211.html">PreloadVodObjectCaches</a> operation to prefetch content.</li>
* </ul>
* </blockquote>
*
* @param request the request parameters of DescribeVodRefreshQuota DescribeVodRefreshQuotaRequest
* @return DescribeVodRefreshQuotaResponse
*/
CompletableFuture<DescribeVodRefreshQuotaResponse> describeVodRefreshQuota(DescribeVodRefreshQuotaRequest request);
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>If you do not specify the TaskId or ObjectPath parameter, the data in the last three days is returned on the first page. By default, one page displays a maximum of 20 entries. You can specify the TaskId and ObjectPath parameters at the same time.</li>
* </ul>
*
* @param request the request parameters of DescribeVodRefreshTasks DescribeVodRefreshTasksRequest
* @return DescribeVodRefreshTasksResponse
*/
CompletableFuture<DescribeVodRefreshTasksResponse> describeVodRefreshTasks(DescribeVodRefreshTasksRequest request);
/**
* @param request the request parameters of DescribeVodSSLCertificateList DescribeVodSSLCertificateListRequest
* @return DescribeVodSSLCertificateListResponse
*/
CompletableFuture<DescribeVodSSLCertificateListResponse> describeVodSSLCertificateList(DescribeVodSSLCertificateListRequest request);
/**
* <b>description</b> :
* <blockquote>
* <ul>
* <li>This operation is available only in the <strong>China (Shanghai)</strong> region.</li>
* <li>If the time range to query is less than or equal to seven days, the system returns the statistics collected on an hourly basis. If the time range to query is greater than seven days, the system returns the statistics collected on a daily basis. The maximum time range that you can specify to query is 31 days.</li>
* </ul>
* </blockquote>
*
* @param request the request parameters of DescribeVodStorageData DescribeVodStorageDataRequest
* @return DescribeVodStorageDataResponse
*/
CompletableFuture<DescribeVodStorageDataResponse> describeVodStorageData(DescribeVodStorageDataRequest request);
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>If you specify a time range within 7 days, the request returns the data based on hours. If you specify a time range longer than 7 days, the request returns the data based on days. The maximum time range is 31 days.</li>
* </ul>
*
* @param request the request parameters of DescribeVodTieringStorageData DescribeVodTieringStorageDataRequest
* @return DescribeVodTieringStorageDataResponse
*/
CompletableFuture<DescribeVodTieringStorageDataResponse> describeVodTieringStorageData(DescribeVodTieringStorageDataRequest request);
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>If you specify a time range within 7 days, the request returns the data based on hours. If you specify a time range longer than 7 days, the request returns the data based on days. The maximum time range is 31 days.</li>
* </ul>
*
* @param request the request parameters of DescribeVodTieringStorageRetrievalData DescribeVodTieringStorageRetrievalDataRequest
* @return DescribeVodTieringStorageRetrievalDataResponse
*/
CompletableFuture<DescribeVodTieringStorageRetrievalDataResponse> describeVodTieringStorageRetrievalData(DescribeVodTieringStorageRetrievalDataRequest request);
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>If the time range to query is less than or equal to seven days, the system returns the statistics collected on an hourly basis. If the time range to query is greater than seven days, the system returns the statistics collected on a daily basis. The maximum time range that you can specify to query is 31 days.</li>
* </ul>
*
* @param request the request parameters of DescribeVodTranscodeData DescribeVodTranscodeDataRequest
* @return DescribeVodTranscodeDataResponse
*/
CompletableFuture<DescribeVodTranscodeDataResponse> describeVodTranscodeData(DescribeVodTranscodeDataRequest request);
/**
* <b>description</b> :
* <p> You can filter domain names by name and status. Fuzzy match is supported for domain name-based query.</p>
* <ul>
* <li>This operation is available only in the China (Shanghai) region.</li>
* </ul>
*
* @param request the request parameters of DescribeVodUserDomains DescribeVodUserDomainsRequest
* @return DescribeVodUserDomainsResponse
*/
CompletableFuture<DescribeVodUserDomainsResponse> describeVodUserDomains(DescribeVodUserDomainsRequest request);
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
*
* @param request the request parameters of DescribeVodVerifyContent DescribeVodVerifyContentRequest
* @return DescribeVodVerifyContentResponse
*/
CompletableFuture<DescribeVodVerifyContentResponse> describeVodVerifyContent(DescribeVodVerifyContentRequest request);
/**
* <b>description</b> :
* <blockquote>
* <p> You can grant a maximum of 10 application permissions to a RAM user or RAM role.</p>
* </blockquote>
*
* @param request the request parameters of DetachAppPolicyFromIdentity DetachAppPolicyFromIdentityRequest
* @return DetachAppPolicyFromIdentityResponse
*/
CompletableFuture<DetachAppPolicyFromIdentityResponse> detachAppPolicyFromIdentity(DetachAppPolicyFromIdentityRequest request);
/**
* <b>description</b> :
* <p> To use the secure download feature, you must enable the download feature in the ApsaraVideo VOD console and set the download method to secure download. For more information, see <a href="https://help.aliyun.com/document_detail/86107.html">Configure download settings</a>.</p>
* <ul>
* <li>After you generate a key for secure download, you must configure the key in ApsaraVideo Player SDK. For more information, see <a href="https://help.aliyun.com/document_detail/124735.html">Secure download</a>.</li>
* </ul>
*
* @param request the request parameters of GenerateDownloadSecretKey GenerateDownloadSecretKeyRequest
* @return GenerateDownloadSecretKeyResponse
*/
CompletableFuture<GenerateDownloadSecretKeyResponse> generateDownloadSecretKey(GenerateDownloadSecretKeyRequest request);
/**
* @param request the request parameters of GenerateKMSDataKey GenerateKMSDataKeyRequest
* @return GenerateKMSDataKeyResponse
*/
CompletableFuture<GenerateKMSDataKeyResponse> generateKMSDataKey(GenerateKMSDataKeyRequest request);
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong> and <strong>China (Shanghai)</strong>.</p>
* <ul>
* <li>Call the <a href="~~SubmitAIImageJob~~">SubmitAIImageJob</a> operation to submit image AI processing jobs before you call this operation to query image AI processing jobs.</li>
* <li>You can query a maximum of 10 jobs of image AI processing in one request.</li>
* </ul>
*
* @param request the request parameters of GetAIImageJobs GetAIImageJobsRequest
* @return GetAIImageJobsResponse
*/
CompletableFuture<GetAIImageJobsResponse> getAIImageJobs(GetAIImageJobsRequest request);
/**
* <b>description</b> :
* <p>ApsaraVideo VOD stores the snapshots of the intelligent review results free of charge for two weeks. After this period, the snapshots are automatically deleted.</p>
*
* @param request the request parameters of GetAIMediaAuditJob GetAIMediaAuditJobRequest
* @return GetAIMediaAuditJobResponse
*/
CompletableFuture<GetAIMediaAuditJobResponse> getAIMediaAuditJob(GetAIMediaAuditJobRequest request);
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong>, <strong>China (Shanghai)</strong>, and <strong>Singapore</strong>.</p>
* <ul>
* <li>Before you call this operation to query details of an AI template, you must obtain the ID of the AI template.</li>
* </ul>
*
* @param request the request parameters of GetAITemplate GetAITemplateRequest
* @return GetAITemplateResponse
*/
CompletableFuture<GetAITemplateResponse> getAITemplate(GetAITemplateRequest request);
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong>, <strong>China (Shanghai)</strong>, and <strong>Singapore</strong>.</p>
* <ul>
* <li>You can obtain the smart tagging results by using the video ID.</li>
* </ul>
*
* @param request the request parameters of GetAIVideoTagResult GetAIVideoTagResultRequest
* @return GetAIVideoTagResultResponse
*/
CompletableFuture<GetAIVideoTagResultResponse> getAIVideoTagResult(GetAIVideoTagResultRequest request);
/**
* <b>description</b> :
* <p>You can specify multiple accelerated domain names in a request.</p>
*
* @param request the request parameters of GetAppInfos GetAppInfosRequest
* @return GetAppInfosResponse
*/
CompletableFuture<GetAppInfosResponse> getAppInfos(GetAppInfosRequest request);
/**
* <b>description</b> :
* <p>You can query information about up to 20 auxiliary media assets in a request.</p>
*
* @param request the request parameters of GetAttachedMediaInfo GetAttachedMediaInfoRequest
* @return GetAttachedMediaInfoResponse
*/
CompletableFuture<GetAttachedMediaInfoResponse> getAttachedMediaInfo(GetAttachedMediaInfoRequest request);
/**
* @param request the request parameters of GetAuditHistory GetAuditHistoryRequest
* @return GetAuditHistoryResponse
*/
CompletableFuture<GetAuditHistoryResponse> getAuditHistory(GetAuditHistoryRequest request);
/**
* @param request the request parameters of GetCategories GetCategoriesRequest
* @return GetCategoriesResponse
*/
CompletableFuture<GetCategoriesResponse> getCategories(GetCategoriesRequest request);
/**
* @param request the request parameters of GetDailyPlayRegionStatis GetDailyPlayRegionStatisRequest
* @return GetDailyPlayRegionStatisResponse
*/
CompletableFuture<GetDailyPlayRegionStatisResponse> getDailyPlayRegionStatis(GetDailyPlayRegionStatisRequest request);
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong>, <strong>China (Shanghai)</strong>, and <strong>Singapore</strong>.</p>
* <ul>
* <li>You can query information only about the default AI template for automated review.</li>
* </ul>
*
* @param request the request parameters of GetDefaultAITemplate GetDefaultAITemplateRequest
* @return GetDefaultAITemplateResponse
*/
CompletableFuture<GetDefaultAITemplateResponse> getDefaultAITemplate(GetDefaultAITemplateRequest request);
/**
* <b>description</b> :
* <p> This operation is supported only in the China (Shanghai) and China (Beijing) regions.</p>
* <ul>
* <li>You can call this operation to query the watermark content after you call the <a href="~~SubmitDigitalWatermarkExtractJob~~">SubmitDigitalWatermarkExtractJob</a> operation to extract the copyright or user-tracing watermark in a video.</li>
* <li>You can query watermark content extracted only from watermark extraction jobs that are submitted in the last 2 years.</li>
* </ul>
*
* @param request the request parameters of GetDigitalWatermarkExtractResult GetDigitalWatermarkExtractResultRequest
* @return GetDigitalWatermarkExtractResultResponse
*/
CompletableFuture<GetDigitalWatermarkExtractResultResponse> getDigitalWatermarkExtractResult(GetDigitalWatermarkExtractResultRequest request);
/**
* @param request the request parameters of GetEditingProject GetEditingProjectRequest
* @return GetEditingProjectResponse
*/
CompletableFuture<GetEditingProjectResponse> getEditingProject(GetEditingProjectRequest request);
/**
* <b>description</b> :
* <p>During editing, you can add materials to the timeline, but some of them may not be used.</p>
*
* @param request the request parameters of GetEditingProjectMaterials GetEditingProjectMaterialsRequest
* @return GetEditingProjectMaterialsResponse
*/
CompletableFuture<GetEditingProjectMaterialsResponse> getEditingProjectMaterials(GetEditingProjectMaterialsRequest request);
/**
* @param request the request parameters of GetImageInfo GetImageInfoRequest
* @return GetImageInfoResponse
*/
CompletableFuture<GetImageInfoResponse> getImageInfo(GetImageInfoRequest request);
/**
* <b>description</b> :
* <p> You can call the <a href="~~CreateUploadImage~~">CreateUploadImage</a> operation to upload images to ApsaraVideo VOD and call this operation to query the basic information about multiple images at a time.</p>
* <ul>
* <li>To query information about video snapshots, call the <a href="~~ListSnapshots~~">ListSnapshots</a> operation.</li>
* <li>You can specify up to 20 image IDs in one call.</li>
* </ul>
*
* @param request the request parameters of GetImageInfos GetImageInfosRequest
* @return GetImageInfosResponse
*/
CompletableFuture<GetImageInfosResponse> getImageInfos(GetImageInfosRequest request);
/**
* <b>description</b> :
* <hr>
* <p>You can call this operation to query only asynchronous tasks of the last six months. The types of tasks that you can query include transcoding tasks, snapshot tasks, and AI tasks.
* <strong>QPS limit</strong>
* You can call this operation up to 15 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/342790.html">QPS limits</a>.</p>
*
* @param request the request parameters of GetJobDetail GetJobDetailRequest
* @return GetJobDetailResponse
*/
CompletableFuture<GetJobDetailResponse> getJobDetail(GetJobDetailRequest request);
/**
* <b>description</b> :
* <p>If notifications for the <a href="https://help.aliyun.com/document_detail/89576.html">CreateAuditComplete</a> event are configured, event notifications are sent to the callback URL after automated review is complete. You can call this operation to query the details of audio review results.</p>
*
* @param request the request parameters of GetMediaAuditAudioResultDetail GetMediaAuditAudioResultDetailRequest
* @return GetMediaAuditAudioResultDetailResponse
*/
CompletableFuture<GetMediaAuditAudioResultDetailResponse> getMediaAuditAudioResultDetail(GetMediaAuditAudioResultDetailRequest request);
/**
* @param request the request parameters of GetMediaAuditResult GetMediaAuditResultRequest
* @return GetMediaAuditResultResponse
*/
CompletableFuture<GetMediaAuditResultResponse> getMediaAuditResult(GetMediaAuditResultRequest request);
/**
* <b>description</b> :
* <p> By default, only details of snapshots that violate content regulations and potentially violate content regulations are returned.</p>
* <ul>
* <li>ApsaraVideo VOD stores the snapshots in the automated review results free of charge for two weeks. After this period, the snapshots are automatically deleted.</li>
* <li>This operation is available only in the Singapore region.</li>
* </ul>
*
* @param request the request parameters of GetMediaAuditResultDetail GetMediaAuditResultDetailRequest
* @return GetMediaAuditResultDetailResponse
*/
CompletableFuture<GetMediaAuditResultDetailResponse> getMediaAuditResultDetail(GetMediaAuditResultDetailRequest request);
/**
* <b>description</b> :
* <blockquote>
* <p> By default, only details of snapshots that violate content regulations and potentially violate content regulations are returned.
* This operation is available only in the Singapore region.</p>
* </blockquote>
*
* @param request the request parameters of GetMediaAuditResultTimeline GetMediaAuditResultTimelineRequest
* @return GetMediaAuditResultTimelineResponse
*/
CompletableFuture<GetMediaAuditResultTimelineResponse> getMediaAuditResultTimeline(GetMediaAuditResultTimelineRequest request);
/**
* <b>description</b> :
* <p>Regions that support this operation: <strong>China (Beijing)</strong>, <strong>China (Shanghai)</strong>, and <strong>Singapore</strong>.</p>
*
* @param request the request parameters of GetMediaDNAResult GetMediaDNAResultRequest
* @return GetMediaDNAResultResponse
*/
CompletableFuture<GetMediaDNAResultResponse> getMediaDNAResult(GetMediaDNAResultRequest request);
/**
* <b>description</b> :
* <p>You can query the information about all media files or a specific media file in a refresh or prefetch job.</p>
* <h3>QPS limits</h3>
* <p>You can call this operation up to 50 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/342790.html">QPS limits on API operations in ApsaraVideo VoD</a>.</p>
*
* @param request the request parameters of GetMediaRefreshJobs GetMediaRefreshJobsRequest
* @return GetMediaRefreshJobsResponse
*/
CompletableFuture<GetMediaRefreshJobsResponse> getMediaRefreshJobs(GetMediaRefreshJobsRequest request);
/**
* <b>description</b> :
* <blockquote>
* <p>For more information, see <a href="https://help.aliyun.com/document_detail/55627.html">Event notification</a>.</p>
* </blockquote>
*
* @param request the request parameters of GetMessageCallback GetMessageCallbackRequest
* @return GetMessageCallbackResponse
*/
CompletableFuture<GetMessageCallbackResponse> getMessageCallback(GetMessageCallbackRequest request);
/**
* <b>description</b> :
* <p>You can obtain complete information about the source file only after a stream is transcoded.</p>
*
* @param request the request parameters of GetMezzanineInfo GetMezzanineInfoRequest
* @return GetMezzanineInfoResponse
*/
CompletableFuture<GetMezzanineInfoResponse> getMezzanineInfo(GetMezzanineInfoRequest request);
/**
* <b>description</b> :
* <p> <strong>Make sure that you understand the billing method and price of ApsaraVideo VOD before you call this operation. You are charged for outbound traffic when you download or play videos based on URLs in ApsaraVideo VOD. For more information about billing of outbound traffic, see <a href="~~188308#section-rwh-e88-f7j~~">Billing of outbound traffic</a>. If you have configured an accelerated domain name, see <a href="~~188308#section-c5t-oq9-15e~~">Billing of the acceleration service</a>. If you have activated the acceleration service, you are charged acceleration fees when you upload media files to ApsaraVideo VOD. For more information, see <a href="~~188310#section_sta_zm2_tsv~~">Billing of acceleration traffic</a>.</strong></p>
* <ul>
* <li>Only videos whose Status is Normal can be played. For more information, see <a href="https://help.aliyun.com/document_detail/57290.html">Overview</a>.</li>
* <li>If video playback fails, you can call the <a href="~~GetMezzanineInfo~~">GetMezzanineInfo</a> operation to check whether the video source information is correct.</li>
* </ul>
*
* @param request the request parameters of GetPlayInfo GetPlayInfoRequest
* @return GetPlayInfoResponse
*/
CompletableFuture<GetPlayInfoResponse> getPlayInfo(GetPlayInfoRequest request);
/**
* <b>description</b> :
* <p> An audio or video file may be transcoded multiple times. This operation returns only the latest transcoding summary.</p>
* <ul>
* <li>You can query transcoding summaries for a maximum of 10 audio and video files in one request.</li>
* <li>You can call the <a href="https://help.aliyun.com/document_detail/109120.html">ListTranscodeTask</a> operation to query historical transcoding tasks.</li>
* <li>**You can call this operation to query information only about transcoding tasks created within the past year.</li>
* </ul>
*
* @param request the request parameters of GetTranscodeSummary GetTranscodeSummaryRequest
* @return GetTranscodeSummaryResponse
*/
CompletableFuture<GetTranscodeSummaryResponse> getTranscodeSummary(GetTranscodeSummaryRequest request);
/**
* <b>description</b> :
* <p>You can call this operation to query only transcoding tasks created within the past year.</p>
*
* @param request the request parameters of GetTranscodeTask GetTranscodeTaskRequest
* @return GetTranscodeTaskResponse
*/
CompletableFuture<GetTranscodeTaskResponse> getTranscodeTask(GetTranscodeTaskRequest request);
/**
* <b>description</b> :
* <p>This operation returns information about the specified transcoding template group and the configurations of all the transcoding templates in the group.</p>
*
* @param request the request parameters of GetTranscodeTemplateGroup GetTranscodeTemplateGroupRequest
* @return GetTranscodeTemplateGroupResponse
*/
CompletableFuture<GetTranscodeTemplateGroupResponse> getTranscodeTemplateGroup(GetTranscodeTemplateGroupRequest request);
/**
* <b>description</b> :
* <p>You can query the information about a URL-based upload job by specifying the upload URL or using the job ID returned when you upload media files. The information includes the status of the upload job, custom configurations, the time when the job was created, and the time when the job was complete.
* If the upload fails, you can view the error code and error message. If the upload is successful, you can obtain the video ID.</p>
*
* @param request the request parameters of GetURLUploadInfos GetURLUploadInfosRequest
* @return GetURLUploadInfosResponse
*/
CompletableFuture<GetURLUploadInfosResponse> getURLUploadInfos(GetURLUploadInfosRequest request);
/**
* <b>description</b> :
* <p> You can call this operation to obtain the upload details only about audio and video files.</p>
* <ul>
* <li>If you use the ApsaraVideo VOD console to upload audio and video files, you can call this operation to query information such as the upload ratio. If you use an upload SDK to upload audio and video files, make sure that the version of the <a href="https://help.aliyun.com/document_detail/52200.html">upload SDK</a> meets one of the following requirements:<ul>
* <li>The version of the upload SDK for Java is 1.4.4 or later.</li>
* <li>The version of the upload SDK for C++ is 1.0.0 or later.</li>
* <li>The version of the upload SDK for PHP is 1.0.2 or later.</li>
* <li>The version of the upload SDK for Python is 1.3.0 or later.</li>
* <li>The version of the upload SDK for JavaScript is 1.4.0 or later.</li>
* <li>The version of the upload SDK for Android is 1.5.0 or later.</li>
* <li>The version of the upload SDK for iOS is 1.5.0 or later.</li>
* </ul>
* </li>
* </ul>
*
* @param request the request parameters of GetUploadDetails GetUploadDetailsRequest
* @return GetUploadDetailsResponse
*/
CompletableFuture<GetUploadDetailsResponse> getUploadDetails(GetUploadDetailsRequest request);
/**
* <b>description</b> :
* <p>After a media file is uploaded, ApsaraVideo VOD processes the source file. Then, information about the media file is asynchronously generated. You can configure notifications for the <a href="https://help.aliyun.com/document_detail/99935.html">VideoAnalysisComplete</a> event and call this operation to query information about a media file after you receive notifications for the <a href="https://help.aliyun.com/document_detail/99935.html">VideoAnalysisComplete</a> event. For more information, see <a href="https://help.aliyun.com/document_detail/55627.html">Overview</a>.</p>
*
* @param request the request parameters of GetVideoInfo GetVideoInfoRequest
* @return GetVideoInfoResponse
*/
CompletableFuture<GetVideoInfoResponse> getVideoInfo(GetVideoInfoRequest request);
/**
* <b>description</b> :
* <p> You can specify up to 20 audio or video file IDs in each request.</p>
* <ul>
* <li>After a media file is uploaded, ApsaraVideo VOD processes the source file. Then, information about the media file is asynchronously generated. You can configure notifications for the <a href="https://help.aliyun.com/document_detail/99935.html">VideoAnalysisComplete</a> event and call this operation to query information about a media file after you receive notifications for the <a href="https://help.aliyun.com/document_detail/99935.html">VideoAnalysisComplete</a> event. For more information, see <a href="https://help.aliyun.com/document_detail/55627.html">Overview</a>.</li>
* </ul>
*
* @param request the request parameters of GetVideoInfos GetVideoInfosRequest
* @return GetVideoInfosResponse
*/
CompletableFuture<GetVideoInfosResponse> getVideoInfos(GetVideoInfosRequest request);
/**
* <b>description</b> :
* <p>You can call this operation to query information about media files based on the filter conditions that you specify, such as video status and category ID. Information about a maximum of <strong>5,000</strong> media files can be returned for each request. We recommend that you set the StartTime and EndTime parameters to specify a time range for each request. For more information about how to query information about more media files or even all media files, see <a href="https://help.aliyun.com/document_detail/86044.html">SearchMedia</a>.</p>
*
* @param request the request parameters of GetVideoList GetVideoListRequest
* @return GetVideoListResponse
*/
CompletableFuture<GetVideoListResponse> getVideoList(GetVideoListRequest request);
/**
* <b>description</b> :
* <p> You can call this operation to obtain a playback credential when you use ApsaraVideo Player SDK to play a media file based on PlayAuth. The credential is used to obtain the playback URL. For more information, see <a href="https://help.aliyun.com/document_detail/125579.html">ApsaraVideo Player SDK</a>.</p>
* <ul>
* <li>You cannot obtain the playback URL of a video by using a credential that has expired. A new credential is required.</li>
* </ul>
*
* @param request the request parameters of GetVideoPlayAuth GetVideoPlayAuthRequest
* @return GetVideoPlayAuthResponse
*/
CompletableFuture<GetVideoPlayAuthResponse> getVideoPlayAuth(GetVideoPlayAuthRequest request);
/**
* @param request the request parameters of GetVodTemplate GetVodTemplateRequest
* @return GetVodTemplateResponse
*/
CompletableFuture<GetVodTemplateResponse> getVodTemplate(GetVodTemplateRequest request);
/**
* @param request the request parameters of GetWatermark GetWatermarkRequest
* @return GetWatermarkResponse
*/
CompletableFuture<GetWatermarkResponse> getWatermark(GetWatermarkRequest request);
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong> and <strong>China (Shanghai)</strong>.</p>
* <ul>
* <li>You can call this operation to query AI processing results about images of a specified video. Images of different videos cannot be queried in one request.</li>
* </ul>
*
* @param request the request parameters of ListAIImageInfo ListAIImageInfoRequest
* @return ListAIImageInfoResponse
*/
CompletableFuture<ListAIImageInfoResponse> listAIImageInfo(ListAIImageInfoRequest request);
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong>, <strong>China (Shanghai)</strong>, and <strong>Singapore</strong>.</p>
* <ul>
* <li>You can call this operation to query video fingerprinting jobs and smart tagging jobs.</li>
* </ul>
*
* @param request the request parameters of ListAIJob ListAIJobRequest
* @return ListAIJobResponse
*/
CompletableFuture<ListAIJobResponse> listAIJob(ListAIJobRequest request);
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong>, <strong>China (Shanghai)</strong>, and <strong>Singapore</strong>.</p>
* <ul>
* <li>You can call this operation to query AI templates of a specified type.</li>
* </ul>
*
* @param request the request parameters of ListAITemplate ListAITemplateRequest
* @return ListAITemplateResponse
*/
CompletableFuture<ListAITemplateResponse> listAITemplate(ListAITemplateRequest request);
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <p>You can query applications based on states.</p>
* <h3><a href="#qps-"></a>QPS limit</h3>
* <p>You can call this operation up to 30 times per second per account. Requests that exceed this limit are dropped and you may experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/342790.html">QPS limits on API operations</a>.</p>
*
* @param request the request parameters of ListAppInfo ListAppInfoRequest
* @return ListAppInfoResponse
*/
CompletableFuture<ListAppInfoResponse> listAppInfo(ListAppInfoRequest request);
/**
* <b>description</b> :
* <blockquote>
* <p>The IdentityType and IdentityName parameters take effect only when an identity assumes the application administrator role to call this operation. Otherwise, only application policies that are attached to the current identity are returned.</p>
* </blockquote>
*
* @param request the request parameters of ListAppPoliciesForIdentity ListAppPoliciesForIdentityRequest
* @return ListAppPoliciesForIdentityResponse
*/
CompletableFuture<ListAppPoliciesForIdentityResponse> listAppPoliciesForIdentity(ListAppPoliciesForIdentityRequest request);
/**
* @param request the request parameters of ListAuditSecurityIp ListAuditSecurityIpRequest
* @return ListAuditSecurityIpResponse
*/
CompletableFuture<ListAuditSecurityIpResponse> listAuditSecurityIp(ListAuditSecurityIpRequest request);
/**
* @param request the request parameters of ListDynamicImage ListDynamicImageRequest
* @return ListDynamicImageResponse
*/
CompletableFuture<ListDynamicImageResponse> listDynamicImage(ListDynamicImageRequest request);
/**
* <b>description</b> :
* <hr>
* <ul>
* <li>You can call the <a href="https://apiworkbench.aliyun-inc.com/document/vod/2017-03-21/GetJobDetail?spm=openapi-amp.newDocPublishment.0.0.616a281fSegn0e">GetJobDetail</a> operation to query detailed information about the tasks.</li>
* <li>You can call this operation to query only asynchronous tasks of the last six months. The types of tasks that you can query include transcoding tasks, snapshot tasks, and AI tasks.
* <strong>QPS limits</strong>
* You can call this operation up to 15 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/342790.html">QPS limits</a>.</li>
* </ul>
*
* @param request the request parameters of ListJobInfo ListJobInfoRequest
* @return ListJobInfoResponse
*/
CompletableFuture<ListJobInfoResponse> listJobInfo(ListJobInfoRequest request);
/**
* <b>description</b> :
* <p>You can query up to 5,000 videos based on the specified filter condition.</p>
*
* @param request the request parameters of ListLiveRecordVideo ListLiveRecordVideoRequest
* @return ListLiveRecordVideoResponse
*/
CompletableFuture<ListLiveRecordVideoResponse> listLiveRecordVideo(ListLiveRecordVideoRequest request);
/**
* <b>description</b> :
* <p>If multiple snapshots exist for a video, you can call this operation to query information about the latest snapshot.</p>
*
* @param request the request parameters of ListSnapshots ListSnapshotsRequest
* @return ListSnapshotsResponse
*/
CompletableFuture<ListSnapshotsResponse> listSnapshots(ListSnapshotsRequest request);
/**
* <b>description</b> :
* <p> You can call the <a href="https://help.aliyun.com/document_detail/109121.html">GetTranscodeTask</a> operation to query details about transcoding jobs.</p>
* <ul>
* <li><strong>You can call this operation to query only transcoding tasks created within the past year.</strong></li>
* </ul>
*
* @param request the request parameters of ListTranscodeTask ListTranscodeTaskRequest
* @return ListTranscodeTaskResponse
*/
CompletableFuture<ListTranscodeTaskResponse> listTranscodeTask(ListTranscodeTaskRequest request);
/**
* <b>description</b> :
* <blockquote>
* <p>This operation does not return the configurations of transcoding templates in each transcoding template group. To query the configurations of transcoding templates in a specific transcoding template group, call the <a href="https://help.aliyun.com/document_detail/102670.html">GetTranscodeTemplateGroup</a> operation.</p>
* </blockquote>
*
* @param request the request parameters of ListTranscodeTemplateGroup ListTranscodeTemplateGroupRequest
* @return ListTranscodeTemplateGroupResponse
*/
CompletableFuture<ListTranscodeTemplateGroupResponse> listTranscodeTemplateGroup(ListTranscodeTemplateGroupRequest request);
/**
* @param request the request parameters of ListVodTemplate ListVodTemplateRequest
* @return ListVodTemplateResponse
*/
CompletableFuture<ListVodTemplateResponse> listVodTemplate(ListVodTemplateRequest request);
/**
* @param request the request parameters of ListWatermark ListWatermarkRequest
* @return ListWatermarkResponse
*/
CompletableFuture<ListWatermarkResponse> listWatermark(ListWatermarkRequest request);
/**
* @param request the request parameters of MoveAppResource MoveAppResourceRequest
* @return MoveAppResourceResponse
*/
CompletableFuture<MoveAppResourceResponse> moveAppResource(MoveAppResourceRequest request);
/**
* <b>description</b> :
* <blockquote>
* <ul>
* <li>This operation is available only in the <strong>China (Shanghai)</strong> region.</li>
* <li>You can submit a maximum of 500 requests to prefetch resources based on URLs each day by using an Alibaba Cloud account. You cannot prefetch resources based on directories.</li>
* <li>You can call the <a href="https://help.aliyun.com/document_detail/69215.html">RefreshVodObjectCaches</a> operation to refresh content and the <a href="https://help.aliyun.com/document_detail/69211.htmll">PreloadVodObjectCaches</a> operation to prefetch content.</li>
* </ul>
* </blockquote>
*
* @param request the request parameters of PreloadVodObjectCaches PreloadVodObjectCachesRequest
* @return PreloadVodObjectCachesResponse
*/
CompletableFuture<PreloadVodObjectCachesResponse> preloadVodObjectCaches(PreloadVodObjectCachesRequest request);
/**
* <b>description</b> :
* <p> <strong>Make sure that you understand the billing method and price of ApsaraVideo VOD before you call this operation. You are charged for using the online editing feature. For more information, see <a href="~~188310#section-pyv-b8h-bo7~~">Billing</a>.</strong></p>
* <ul>
* <li>This operation returns only the submission result of a video production task. When the submission result is returned, video production may still be in progress. After a video production task is submitted, the task is queued in the background for asynchronous processing.</li>
* <li>The source files that are used in the timeline of an online editing project can be materials directly uploaded to the online project or selected from the media asset library. Only media assets that are in the Normal state can be used in the project.</li>
* <li>Videos are produced based on ProjectId and Timeline. The following content describes the parameter configurations:<ul>
* <li>You must specify ProjectId or Timeline. If you leave both parameters empty, the video cannot be produced.</li>
* <li>If you specify Timeline and leave ProjectId empty, the system automatically creates an online editing project based on Timeline and adds the materials specified in the Timeline to the project to produce videos.</li>
* <li>If you specify ProjectId and leave Timeline empty, the system automatically uses the latest timeline information of the project to produce videos.</li>
* <li>If you specify both ProjectId and Timeline, the system automatically uses the timeline information that you specified to produce videos and updates the project timeline and materials. You can also specify other parameters to update the corresponding information about the online editing project.</li>
* </ul>
* </li>
* <li>You can create up to 100 video tracks, 100 image tracks, and 100 subtitle tracks in a project.</li>
* <li>The total size of material files cannot exceed 1 TB.</li>
* <li>The buckets in which the materials reside and where the exported videos are stored must be in the same region as the region where ApsaraVideo VOD is activated.</li>
* <li>The exported videos must meet the following requirements:<ul>
* <li>The width and height of the video image cannot be less than 128 pixels.</li>
* <li>The width and height of the video image cannot exceed 4,096 pixels.</li>
* <li>The width cannot exceed 2,160 pixels.</li>
* </ul>
* </li>
* <li>After a video is produced, the video is automatically uploaded to ApsaraVideo VOD. Then, the <strong>ProduceMediaComplete</strong> and <strong>FileUploadComplete</strong> event notifications are sent to you. After the produced video is transcoded, the <strong>StreamTranscodeComplete</strong> and <strong>TranscodeComplete</strong> event notifications are sent to you.</li>
* <li>You can add special effects to the video. For more information, see <a href="https://help.aliyun.com/document_detail/69082.html">Special effects</a>.</li>
* </ul>
*
* @param request the request parameters of ProduceEditingProjectVideo ProduceEditingProjectVideoRequest
* @return ProduceEditingProjectVideoResponse
*/
CompletableFuture<ProduceEditingProjectVideoResponse> produceEditingProjectVideo(ProduceEditingProjectVideoRequest request);
/**
* <b>description</b> :
* <p> ApsaraVideo VOD allows you to purge and prefetch resources. The purge feature forces the point of presence (POP) to clear cached resources and retrieve the latest resources from origin servers. The prefetch feature allows the POP to retrieve frequently accessed resources from origin servers during off-peak hours. This increases the cache hit ratio.</p>
* <ul>
* <li>You can call this operation to submit purge or prefetch tasks based on the media ID. You can also specify the format and resolution of the media streams to purge or prefetch based on your business requirements.</li>
* <li>You can submit a maximum of 20 purge or prefetch tasks at a time.</li>
* </ul>
*
* @param request the request parameters of RefreshMediaPlayUrls RefreshMediaPlayUrlsRequest
* @return RefreshMediaPlayUrlsResponse
*/
CompletableFuture<RefreshMediaPlayUrlsResponse> refreshMediaPlayUrls(RefreshMediaPlayUrlsRequest request);
/**
* <b>description</b> :
* <p>You can also call this operation to overwrite the source file of an audio or video file. After you call this operation, the system obtains the upload URL and uploads a new source file without changing the ID of the audio or video file. If you have configured transcoding or snapshot capture for the upload, the transcoding or snapshot capture job is automatically triggered. For more information, see <a href="https://help.aliyun.com/document_detail/55397.html">Upload URLs and credentials</a>.</p>
*
* @param request the request parameters of RefreshUploadVideo RefreshUploadVideoRequest
* @return RefreshUploadVideoResponse
*/
CompletableFuture<RefreshUploadVideoResponse> refreshUploadVideo(RefreshUploadVideoRequest request);
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can submit a maximum of 2,000 requests to refresh resources based on URLs and 100 requests to refresh resources based on directories each day by using an Alibaba Cloud account.</li>
* <li>You can call the <a href="https://help.aliyun.com/document_detail/69215.html">RefreshVodObjectCaches</a> operation to refresh content and the <a href="https://help.aliyun.com/document_detail/69211.html">PreloadVodObjectCaches</a> operation to prefetch content.</li>
* </ul>
*
* @param request the request parameters of RefreshVodObjectCaches RefreshVodObjectCachesRequest
* @return RefreshVodObjectCachesResponse
*/
CompletableFuture<RefreshVodObjectCachesResponse> refreshVodObjectCaches(RefreshVodObjectCachesRequest request);
/**
* <b>description</b> :
* <p> After you add an OSS bucket to ApsaraVideo VOD, you must register media files in the OSS bucket to generate the required information. Then, you can use media IDs for features such as transcoding, snapshot capture, and AI processing.use features such as xxx on media files by specifying their IDs?</p>
* <ul>
* <li>You can register up to 10 media files in an OSS bucket in a request. The media files must be stored in the same bucket.</li>
* <li>If you do not specify a transcoding template group ID when you upload a media file to ApsaraVideo VOD, the media file is automatically transcoded based on the default template group. If you do not specify a transcoding template group ID after you register a media file, the media file is not automatically transcoded. The registered media files are automatically transcoded only if you specify a transcoding template group ID.</li>
* <li>If the media file that you want to register has been registered, this operation returns only the unique media ID that is associated with the media file. No further operation is performed.</li>
* <li>Make sure that the media file that you want to register has a valid suffix. Otherwise, the registration fails.</li>
* </ul>
*
* @param request the request parameters of RegisterMedia RegisterMediaRequest
* @return RegisterMediaResponse
*/
CompletableFuture<RegisterMediaResponse> registerMedia(RegisterMediaRequest request);
/**
* <b>description</b> :
* <p>You can call this operation to restore only Archive and Cold Archive audio and video files. You can access the audio and video files after the files are restored. You cannot change the storage class of an audio or video file that is being restored. You are charged for the retrieval traffic generated during restoration. After a Cold Archive audio or video file is restored, a Standard replica of the file is generated for access. You are charged for the storage of the replica before the file returns to the frozen state.</p>
*
* @param request the request parameters of RestoreMedia RestoreMediaRequest
* @return RestoreMediaResponse
*/
CompletableFuture<RestoreMediaResponse> restoreMedia(RestoreMediaRequest request);
/**
* @param request the request parameters of SearchEditingProject SearchEditingProjectRequest
* @return SearchEditingProjectResponse
*/
CompletableFuture<SearchEditingProjectResponse> searchEditingProject(SearchEditingProjectRequest request);
/**
* <b>description</b> :
* <p>The maximum number of data records that you can query varies based on the method used to query the data. You can use the following methods to query data:</p>
* <ul>
* <li>Method 1: Traverse data by page
* You can use the PageNo and PageSize parameters to traverse up to 5,000 data records that meet the specified filter condition. PageNo specifies the page number and PageSize specifies the number of data records displayed on a page. If the number of data records that meet the specified filter condition exceeds 5,000, change the filter conditions to narrow down the results. You cannot use this method to traverse all data records. If you want to traverse more data records, use Method 2.</li>
* <li>Method 2: Traverse all data (available only for audio and video files)
* You can use this method to traverse up to 2 million data records related to audio and video files. If the number of data records that meet the specified filter condition exceeds 2 million, change the filter conditions to narrow down the results. To traverse data page by page, you must set the PageNo, PageSize, and ScrollToken parameters. The total number of data records from the current page to the target page cannot exceed 100. For example, you set PageSize to 20. The following content describes the traverse logic:<ul>
* <li>When the PageNo parameter is set to 1, you can traverse data records from page 1 to page 5.</li>
* <li>When the PageNo parameter is set to 2, you can traverse data records from page 2 to page 6.
* Make sure that you set the appropriate page number and page size, and use a traverse method based on the number of results that meet your filter condition.</li>
* </ul>
* </li>
* </ul>
*
* @param request the request parameters of SearchMedia SearchMediaRequest
* @return SearchMediaResponse
*/
CompletableFuture<SearchMediaResponse> searchMedia(SearchMediaRequest request);
/**
* <b>description</b> :
* <p>You can play videos in the Checking or Blocked state only from the IP addresses that are added to review security groups.</p>
*
* @param request the request parameters of SetAuditSecurityIp SetAuditSecurityIpRequest
* @return SetAuditSecurityIpResponse
*/
CompletableFuture<SetAuditSecurityIpResponse> setAuditSecurityIp(SetAuditSecurityIpRequest request);
/**
* <b>description</b> :
* <blockquote>
* <p>After you use the cross-domain policy file to update the resources on the origin server, you must refresh the resources that are cached on Alibaba Cloud CDN nodes. You can use the ApsaraVideo VOD console to refresh resources. For more information, see <a href="https://help.aliyun.com/document_detail/86098.html">Refresh and prefetch</a>. Alternatively, you can call the <a href="https://help.aliyun.com/document_detail/69215.html">RefreshVodObjectCaches</a> operation to refresh resources.</p>
* </blockquote>
*
* @param request the request parameters of SetCrossdomainContent SetCrossdomainContentRequest
* @return SetCrossdomainContentResponse
*/
CompletableFuture<SetCrossdomainContentResponse> setCrossdomainContent(SetCrossdomainContentRequest request);
/**
* <b>description</b> :
* <p>Specifies an AI template as the default template.</p>
*
* @param request the request parameters of SetDefaultAITemplate SetDefaultAITemplateRequest
* @return SetDefaultAITemplateResponse
*/
CompletableFuture<SetDefaultAITemplateResponse> setDefaultAITemplate(SetDefaultAITemplateRequest request);
/**
* @param request the request parameters of SetDefaultTranscodeTemplateGroup SetDefaultTranscodeTemplateGroupRequest
* @return SetDefaultTranscodeTemplateGroupResponse
*/
CompletableFuture<SetDefaultTranscodeTemplateGroupResponse> setDefaultTranscodeTemplateGroup(SetDefaultTranscodeTemplateGroupRequest request);
/**
* @param request the request parameters of SetDefaultWatermark SetDefaultWatermarkRequest
* @return SetDefaultWatermarkResponse
*/
CompletableFuture<SetDefaultWatermarkResponse> setDefaultWatermark(SetDefaultWatermarkRequest request);
/**
* @param request the request parameters of SetEditingProjectMaterials SetEditingProjectMaterialsRequest
* @return SetEditingProjectMaterialsResponse
*/
CompletableFuture<SetEditingProjectMaterialsResponse> setEditingProjectMaterials(SetEditingProjectMaterialsRequest request);
/**
* <b>description</b> :
* <p>HTTP callbacks and MNS callbacks are supported. For more information, see <a href="https://help.aliyun.com/document_detail/55627.html">Overview</a>.</p>
*
* @param request the request parameters of SetMessageCallback SetMessageCallbackRequest
* @return SetMessageCallbackResponse
*/
CompletableFuture<SetMessageCallbackResponse> setMessageCallback(SetMessageCallbackRequest request);
/**
* <b>description</b> :
* <blockquote>
* <p>This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* </blockquote>
*
* @param request the request parameters of SetVodDomainCertificate SetVodDomainCertificateRequest
* @return SetVodDomainCertificateResponse
*/
CompletableFuture<SetVodDomainCertificateResponse> setVodDomainCertificate(SetVodDomainCertificateRequest request);
/**
* @param request the request parameters of SetVodDomainSSLCertificate SetVodDomainSSLCertificateRequest
* @return SetVodDomainSSLCertificateResponse
*/
CompletableFuture<SetVodDomainSSLCertificateResponse> setVodDomainSSLCertificate(SetVodDomainSSLCertificateRequest request);
/**
* <b>description</b> :
* <p>This operation is available only in the Singapore region.</p>
*
* @param request the request parameters of SubmitAIImageAuditJob SubmitAIImageAuditJobRequest
* @return SubmitAIImageAuditJobResponse
*/
CompletableFuture<SubmitAIImageAuditJobResponse> submitAIImageAuditJob(SubmitAIImageAuditJobRequest request);
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong> and <strong>China (Shanghai)</strong>.</p>
* <ul>
* <li>After you call this operation, you can call the <a href="https://help.aliyun.com/document_detail/186923.html">GetAIImageJobs</a> operation to query the job execution result.</li>
* </ul>
*
* @param request the request parameters of SubmitAIImageJob SubmitAIImageJobRequest
* @return SubmitAIImageJobResponse
*/
CompletableFuture<SubmitAIImageJobResponse> submitAIImageJob(SubmitAIImageJobRequest request);
/**
* <b>description</b> :
* <p> <strong>Make sure that you understand the billing method and price of ApsaraVideo VOD before you call this operation. You are charged for using the smart tagging and video fingerprinting features. For more information, see <a href="~~188310#section-g7l-s3o-9ng~~">Billing of video AI</a>.</strong></p>
* <ul>
* <li>Regions that support the video fingerprinting feature: <strong>China (Beijing)</strong>, <strong>China (Shanghai)</strong>, and <strong>Singapore</strong>. Regions that support the smart tagging feature: <strong>China (Beijing)</strong> and <strong>China (Shanghai)</strong>.</li>
* <li>You need to enable the video fingerprinting feature or the smart tagging feature before you can call this operation to submit jobs. For more information, see <a href="https://help.aliyun.com/document_detail/101148.html">Overview</a>.</li>
* <li>If this is the first time you use the video fingerprinting feature, you must submit a ticket to apply for using the media fingerprint library for free. Otherwise, the video fingerprinting feature will be affected. For more information about how to submit a ticket, see <a href="https://help.aliyun.com/document_detail/464625.html">Contact us</a>.</li>
* <li>After you submit an AI job, ApsaraVideo VOD asynchronously processes the job. The operation may return a response before the job is complete. You can configure the <a href="https://help.aliyun.com/document_detail/55627.html">Event Notification</a> feature and set the callback event to <strong>AI Processing Completed</strong>. After you receive the event notification, you can query the execution result of the AI job.</li>
* </ul>
*
* @param request the request parameters of SubmitAIJob SubmitAIJobRequest
* @return SubmitAIJobResponse
*/
CompletableFuture<SubmitAIJobResponse> submitAIJob(SubmitAIJobRequest request);
/**
* <b>description</b> :
* <p> <strong>Make sure that you understand the billing methods and price of ApsaraVideo VOD before you call this operation. You are charged for using the automated review feature. For more information about billing, submit a ticket or contact your account manager.</strong></p>
* <ul>
* <li>You can call this operation only in the <strong>China (Shanghai)</strong>, <strong>China (Beijing)</strong>, and <strong>Singapore</strong> regions.</li>
* <li>For more information, see <a href="https://help.aliyun.com/document_detail/101148.html">Automated review</a>.</li>
* <li>After an automated review job is complete, the images generated during the review are stored in the VOD bucket for two weeks free of charge. The images are automatically deleted after two weeks.</li>
* </ul>
*
* @param request the request parameters of SubmitAIMediaAuditJob SubmitAIMediaAuditJobRequest
* @return SubmitAIMediaAuditJobResponse
*/
CompletableFuture<SubmitAIMediaAuditJobResponse> submitAIMediaAuditJob(SubmitAIMediaAuditJobRequest request);
/**
* <b>description</b> :
* <p> <strong>Make sure that you understand the billing methods and price of ApsaraVideo VOD before you call this operation. You are charged for generating and extracting digital watermarks. For more information, see <a href="~~188310#62b9c940403se~~">Billing</a>.</strong></p>
* <ul>
* <li>This operation is supported only in the <strong>China (Shanghai)</strong> and <strong>China (Beijing)</strong> regions.</li>
* <li>Before you submit a digital watermark extraction job, make sure that the following conditions are met:<ul>
* <li>The video from which you want to extract the watermark is uploaded to the ApsaraVideo VOD.</li>
* <li>The video from which you want to extract the watermark is longer than 6 minutes.</li>
* </ul>
* </li>
* </ul>
*
* @param request the request parameters of SubmitDigitalWatermarkExtractJob SubmitDigitalWatermarkExtractJobRequest
* @return SubmitDigitalWatermarkExtractJobResponse
*/
CompletableFuture<SubmitDigitalWatermarkExtractJobResponse> submitDigitalWatermarkExtractJob(SubmitDigitalWatermarkExtractJobRequest request);
/**
* <b>description</b> :
* <p> You can capture a part of a video and generate animated images only when the video is in the <strong>Uploaded</strong>, <strong>Transcoding</strong>, <strong>Normal</strong>, <strong>Reviewing</strong>, or <strong>Flagged</strong> state.</p>
* <ul>
* <li>The fees for frame animation are included in your video transcoding bill. You are charged based on the output resolution and the duration. For more information, see <a href="https://help.aliyun.com/document_detail/188308.html">Billing of basic services</a>.</li>
* </ul>
* <h3>QPS limits</h3>
* <p>You can call this operation up to 30 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/342790.html">QPS limit on API operations</a>.</p>
*
* @param request the request parameters of SubmitDynamicImageJob SubmitDynamicImageJobRequest
* @return SubmitDynamicImageJobResponse
*/
CompletableFuture<SubmitDynamicImageJobResponse> submitDynamicImageJob(SubmitDynamicImageJobRequest request);
/**
* <b>description</b> :
* <p>Regions that support this operation: <strong>China (Beijing)</strong>, <strong>China (Shanghai)</strong>, and <strong>Singapore</strong>.</p>
*
* @param request the request parameters of SubmitMediaDNADeleteJob SubmitMediaDNADeleteJobRequest
* @return SubmitMediaDNADeleteJobResponse
*/
CompletableFuture<SubmitMediaDNADeleteJobResponse> submitMediaDNADeleteJob(SubmitMediaDNADeleteJobRequest request);
/**
* <b>description</b> :
* <p> During video preprocessing, videos are transcoded to meet the playback requirements of the production studio. Therefore, <strong>you are charged for video preprocessing</strong>. For more information about billing, see <a href="https://help.aliyun.com/document_detail/64531.html">Billing of production studios</a>.</p>
* <ul>
* <li>You can obtain the preprocessing result in the <a href="https://help.aliyun.com/document_detail/55638.html">TranscodeComplete</a> event notification. If <strong>Preprocess=true</strong> is returned in the event notification, the video is transcoded.</li>
* </ul>
*
* @param request the request parameters of SubmitPreprocessJobs SubmitPreprocessJobsRequest
* @return SubmitPreprocessJobsResponse
*/
CompletableFuture<SubmitPreprocessJobsResponse> submitPreprocessJobs(SubmitPreprocessJobsRequest request);
/**
* <b>description</b> :
* <p> Only snapshots in the JPG format are generated.</p>
* <ul>
* <li>After a snapshot is captured, the <a href="https://help.aliyun.com/document_detail/57337.html">SnapshotComplete</a> callback is fired and EventType=SnapshotComplete, SubType=SpecifiedTime is returned.</li>
* </ul>
* <h3><a href="#qps-"></a>QPS limits</h3>
* <p>You can call this operation up to 30 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/342790.html">QPS limits</a>.</p>
*
* @param request the request parameters of SubmitSnapshotJob SubmitSnapshotJobRequest
* @return SubmitSnapshotJobResponse
*/
CompletableFuture<SubmitSnapshotJobResponse> submitSnapshotJob(SubmitSnapshotJobRequest request);
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li><strong>Make sure that you understand the billing methods and prices of ApsaraVideo VOD before you call this operation. For more information about billing of the transcoding feature, see <a href="~~188308#section-ejb-nii-nqa~~">Billing of basic services</a>.</strong></li>
* <li>You can transcode a video only in the Uploaded, Normal, or Reviewing state.</li>
* <li>You can obtain the transcoding results from the <a href="https://help.aliyun.com/document_detail/55636.html">StreamTranscodeComplete</a> or <a href="https://help.aliyun.com/document_detail/55638.html">TranscodeComplete</a> callback.</li>
* <li>You can call this operation to dynamically override the subtitle URL in an HTTP Live Streaming (HLS) packaging task. If the packaging task does not contain subtitles, we recommend that you specify the ID of the specific packaging template group when you upload the video instead of calling this operation.</li>
* </ul>
*
* @param request the request parameters of SubmitTranscodeJobs SubmitTranscodeJobsRequest
* @return SubmitTranscodeJobsResponse
*/
CompletableFuture<SubmitTranscodeJobsResponse> submitTranscodeJobs(SubmitTranscodeJobsRequest request);
/**
* <b>description</b> :
* <p><strong>Make sure that you understand the billing method and price of ApsaraVideo VOD before you call this operation. When you use workflows to process videos, you may be charged for transcoding, encryption, and automated review. For more information, see <a href="https://help.aliyun.com/document_detail/188307.html">Billing overview</a>.</strong></p>
* <ul>
* <li>You can call this operation to initiate a VOD workflow to process media files. For more information, see <a href="https://help.aliyun.com/document_detail/115347.html">Workflows</a>.</li>
* </ul>
*
* @param request the request parameters of SubmitWorkflowJob SubmitWorkflowJobRequest
* @return SubmitWorkflowJobResponse
*/
CompletableFuture<SubmitWorkflowJobResponse> submitWorkflowJob(SubmitWorkflowJobRequest request);
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong>, <strong>China (Shanghai)</strong>, and <strong>Singapore</strong>.</p>
* <ul>
* <li>After you call the <a href="https://help.aliyun.com/document_detail/102930.html">AddAITemplate</a> operation to add an AI template, you can call this operation to modify the AI template.</li>
* </ul>
*
* @param request the request parameters of UpdateAITemplate UpdateAITemplateRequest
* @return UpdateAITemplateResponse
*/
CompletableFuture<UpdateAITemplateResponse> updateAITemplate(UpdateAITemplateRequest request);
/**
* <b>description</b> :
* <h2>QPS limit</h2>
* <p>A single user can perform a maximum of 30 queries per second (QPS). Throttling is triggered when the number of calls per second exceeds the QPS limit. The throttling may affect your business. Thus, we recommend that you observe the QPS limit on this operation.</p>
*
* @param request the request parameters of UpdateAppInfo UpdateAppInfoRequest
* @return UpdateAppInfoResponse
*/
CompletableFuture<UpdateAppInfoResponse> updateAppInfo(UpdateAppInfoRequest request);
/**
* <b>description</b> :
* <p>You can modify the information about up to 20 auxiliary media assets at a time.</p>
*
* @param request the request parameters of UpdateAttachedMediaInfos UpdateAttachedMediaInfosRequest
* @return UpdateAttachedMediaInfosResponse
*/
CompletableFuture<UpdateAttachedMediaInfosResponse> updateAttachedMediaInfos(UpdateAttachedMediaInfosRequest request);
/**
* <b>description</b> :
* <p>After you create a category, you can call this operation to modify the name of the category. If you have classified specific media resources to this category, the category names that are labeled on the media resources are automatically updated.</p>
*
* @param request the request parameters of UpdateCategory UpdateCategoryRequest
* @return UpdateCategoryResponse
*/
CompletableFuture<UpdateCategoryResponse> updateCategory(UpdateCategoryRequest request);
/**
* @param request the request parameters of UpdateEditingProject UpdateEditingProjectRequest
* @return UpdateEditingProjectResponse
*/
CompletableFuture<UpdateEditingProjectResponse> updateEditingProject(UpdateEditingProjectRequest request);
/**
* <b>description</b> :
* <p> You can call this operation to modify information such as the title, tags, description, and category about images based on image IDs. You must pass in the parameters that you want to modify. Otherwise, parameter configurations are not overwritten.</p>
* <ul>
* <li>You can modify the information about up to 20 images at a time.</li>
* </ul>
*
* @param request the request parameters of UpdateImageInfos UpdateImageInfosRequest
* @return UpdateImageInfosResponse
*/
CompletableFuture<UpdateImageInfosResponse> updateImageInfos(UpdateImageInfosRequest request);
/**
* <b>description</b> :
* <p> This operation is an asynchronous operation. You can call this operation to modify the storage classes of media assets. After the storage class is modified, a callback notification is sent.</p>
* <ul>
* <li>If the storage class of the media asset is Archive or Cold Archive and you call this operation to modify the storage class of the media asset, the media asset is automatically restored before the storage class is modified. You do not need to call the RestoreMedia operation to restore the media asset. You must specify the restoration priority for Cold Archive objects. Default configuration: RestoreTier=Standard.</li>
* <li>Media assets whose storage classes are being modified cannot be used or processed.</li>
* <li>Non-Standard objects have minimum storage durations. If an object is stored for less than the minimum storage duration, the storage class of the object cannot be changed. The following content describes the minimum storage durations for objects in different storage classes: IA or IA storage for source files: 30 days, Archive or Archive storage for source files: 60 days, Cold Archive or Cold Archive for source files: 180 days.</li>
* </ul>
*
* @param request the request parameters of UpdateMediaStorageClass UpdateMediaStorageClassRequest
* @return UpdateMediaStorageClassResponse
*/
CompletableFuture<UpdateMediaStorageClassResponse> updateMediaStorageClass(UpdateMediaStorageClassRequest request);
/**
* <b>description</b> :
* <p>For security purposes, you cannot add, modify, or delete transcoding templates in a transcoding template group that is locked. You can call the <a href="~~GetTranscodeTemplateGroup~~">GetTranscodeTemplateGroup</a> operation to query the configurations of a transcoding template group, check whether the transcoding template group is locked by using the response parameter Locked, and unlock the transcoding template group before you perform operations such as add, modify, and delete transcoding templates.</p>
*
* @param request the request parameters of UpdateTranscodeTemplateGroup UpdateTranscodeTemplateGroupRequest
* @return UpdateTranscodeTemplateGroupResponse
*/
CompletableFuture<UpdateTranscodeTemplateGroupResponse> updateTranscodeTemplateGroup(UpdateTranscodeTemplateGroupRequest request);
/**
* <b>description</b> :
* <h3><a href="#"></a></h3>
* <p>You can call this operation to modify information such as the title, tags, and description about audio and video files based on audio or video IDs. You must pass in the parameters that you want to modify. Otherwise, parameter configurations are not overwritten.</p>
* <h3><a href="#qps-"></a>Queries per second (QPS) limit</h3>
* <p>You can call this operation up to 100 times per second per account. Requests that exceed this limit are dropped and you may experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/342790.html">QPS limits on API operations</a>.</p>
*
* @param request the request parameters of UpdateVideoInfo UpdateVideoInfoRequest
* @return UpdateVideoInfoResponse
*/
CompletableFuture<UpdateVideoInfoResponse> updateVideoInfo(UpdateVideoInfoRequest request);
/**
* <b>description</b> :
* <p>The specific parameter of a video is updated only when a new value is passed in the parameter.</p>
*
* @param request the request parameters of UpdateVideoInfos UpdateVideoInfosRequest
* @return UpdateVideoInfosResponse
*/
CompletableFuture<UpdateVideoInfosResponse> updateVideoInfos(UpdateVideoInfosRequest request);
/**
* <b>description</b> :
* <p>UpdateVodDomain</p>
*
* @param request the request parameters of UpdateVodDomain UpdateVodDomainRequest
* @return UpdateVodDomainResponse
*/
CompletableFuture<UpdateVodDomainResponse> updateVodDomain(UpdateVodDomainRequest request);
/**
* @param request the request parameters of UpdateVodTemplate UpdateVodTemplateRequest
* @return UpdateVodTemplateResponse
*/
CompletableFuture<UpdateVodTemplateResponse> updateVodTemplate(UpdateVodTemplateRequest request);
/**
* <b>description</b> :
* <p> You can modify the name and configurations of the watermark template after you call the <a href="~~AddWatermark~~">AddWatermark</a> operation to create a watermark template.</p>
* <ul>
* <li>You cannot call this operation to change the image in an image watermark template.</li>
* </ul>
*
* @param request the request parameters of UpdateWatermark UpdateWatermarkRequest
* @return UpdateWatermarkResponse
*/
CompletableFuture<UpdateWatermarkResponse> updateWatermark(UpdateWatermarkRequest request);
/**
* <b>description</b> :
* <p> You can call this operation to upload media files that are not stored on a local server or device and must be uploaded based on URLs over the Internet.</p>
* <ul>
* <li>The URL-based upload jobs are asynchronous. After you submit a URL-based upload job by calling this operation, it may take hours, even days to complete. If you require high timeliness, we recommend that you use the upload SDK.</li>
* <li>If you configure callbacks, you can receive an <a href="https://help.aliyun.com/document_detail/86326.html">UploadByURLComplete</a> event notification after the media file is uploaded. You can query the upload status by calling the <a href="https://help.aliyun.com/document_detail/106830.html">GetURLUploadInfos</a> operation.</li>
* <li>After you submit an upload job, the job is asynchronously processed on the cloud. All URL-based upload jobs that are submitted in each region are queued. The waiting time for the upload job depends on the number of queued jobs. After the upload job is complete, you can associate the playback URL included in the callback with the media ID.</li>
* <li>You can call this operation only in the <strong>China (Shanghai)</strong> and <strong>Singapore</strong> regions.</li>
* <li>Every time you submit a URL-based upload job, a new media ID is generated in ApsaraVideo VOD.</li>
* </ul>
*
* @param request the request parameters of UploadMediaByURL UploadMediaByURLRequest
* @return UploadMediaByURLResponse
*/
CompletableFuture<UploadMediaByURLResponse> uploadMediaByURL(UploadMediaByURLRequest request);
/**
* <b>description</b> :
* <p> <strong>Make sure that you understand the billing method and price of ApsaraVideo VOD before you call this operation. You are charged storage fees after you upload media files to ApsaraVideo VOD. For more information, see <a href="~~188308#section_e97_xrp_mzz~~">Billing of media asset storage</a>. If you have activated the acceleration service, you are charged acceleration fees when you upload media files to ApsaraVideo VOD. For more information, see <a href="~~188310#section_sta_zm2_tsv~~">Billing of acceleration traffic</a>.</strong></p>
* <ul>
* <li>This operation is available only in the <strong>China (Shanghai)</strong> and <strong>Singapore</strong> regions.</li>
* <li>You can call this operation to upload transcoded streams to ApsaraVideo VOD from external storage. The following HDR types of transcoded streams are supported: HDR, HDR 10, HLG, Dolby Vision, HDR Vivid, and SDR+.</li>
* <li>You can call the <a href="https://help.aliyun.com/document_detail/106830.html">GetURLUploadInfos</a> operation to query the upload status. After the upload is complete, the callback of the <a href="https://help.aliyun.com/document_detail/376427.html">UploadByURLComplete</a> event is returned.</li>
* </ul>
*
* @param request the request parameters of UploadStreamByURL UploadStreamByURLRequest
* @return UploadStreamByURLResponse
*/
CompletableFuture<UploadStreamByURLResponse> uploadStreamByURL(UploadStreamByURLRequest request);
/**
* <b>description</b> :
* <p>This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
*
* @param request the request parameters of VerifyVodDomainOwner VerifyVodDomainOwnerRequest
* @return VerifyVodDomainOwnerResponse
*/
CompletableFuture<VerifyVodDomainOwnerResponse> verifyVodDomainOwner(VerifyVodDomainOwnerRequest request);
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/DefaultAsyncClient.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321;
import com.aliyun.core.http.*;
import com.aliyun.sdk.service.vod20170321.models.*;
import darabonba.core.utils.*;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import java.util.concurrent.CompletableFuture;
/**
* <p>Main client.</p>
*/
public final class DefaultAsyncClient implements AsyncClient {
protected final String product;
protected final String version;
protected final String endpointRule;
protected final java.util.Map<String, String> endpointMap;
protected final TeaRequest REQUEST;
protected final TeaAsyncHandler handler;
protected DefaultAsyncClient(ClientConfiguration configuration) {
this.handler = new TeaAsyncHandler(configuration);
this.product = "vod";
this.version = "2017-03-21";
this.endpointRule = "regional";
this.endpointMap = CommonUtil.buildMap(
new TeaPair("cn-hangzhou", "vod.cn-shanghai.aliyuncs.com"),
new TeaPair("ap-northeast-2-pop", "vod.aliyuncs.com"),
new TeaPair("ap-southeast-2", "vod.aliyuncs.com"),
new TeaPair("ap-southeast-3", "vod.aliyuncs.com"),
new TeaPair("cn-beijing-finance-1", "vod.aliyuncs.com"),
new TeaPair("cn-beijing-finance-pop", "vod.aliyuncs.com"),
new TeaPair("cn-beijing-gov-1", "vod.aliyuncs.com"),
new TeaPair("cn-beijing-nu16-b01", "vod.aliyuncs.com"),
new TeaPair("cn-chengdu", "vod.aliyuncs.com"),
new TeaPair("cn-edge-1", "vod.aliyuncs.com"),
new TeaPair("cn-fujian", "vod.aliyuncs.com"),
new TeaPair("cn-haidian-cm12-c01", "vod.aliyuncs.com"),
new TeaPair("cn-hangzhou-bj-b01", "vod.aliyuncs.com"),
new TeaPair("cn-hangzhou-finance", "vod.aliyuncs.com"),
new TeaPair("cn-hangzhou-internal-prod-1", "vod.aliyuncs.com"),
new TeaPair("cn-hangzhou-internal-test-1", "vod.aliyuncs.com"),
new TeaPair("cn-hangzhou-internal-test-2", "vod.aliyuncs.com"),
new TeaPair("cn-hangzhou-internal-test-3", "vod.aliyuncs.com"),
new TeaPair("cn-hangzhou-test-306", "vod.aliyuncs.com"),
new TeaPair("cn-hongkong-finance-pop", "vod.aliyuncs.com"),
new TeaPair("cn-huhehaote", "vod.aliyuncs.com"),
new TeaPair("cn-huhehaote-nebula-1", "vod.aliyuncs.com"),
new TeaPair("cn-qingdao", "vod.aliyuncs.com"),
new TeaPair("cn-qingdao-nebula", "vod.aliyuncs.com"),
new TeaPair("cn-shanghai-et15-b01", "vod.aliyuncs.com"),
new TeaPair("cn-shanghai-et2-b01", "vod.aliyuncs.com"),
new TeaPair("cn-shanghai-finance-1", "vod.aliyuncs.com"),
new TeaPair("cn-shanghai-inner", "vod.aliyuncs.com"),
new TeaPair("cn-shanghai-internal-test-1", "vod.aliyuncs.com"),
new TeaPair("cn-shenzhen-finance-1", "vod.aliyuncs.com"),
new TeaPair("cn-shenzhen-inner", "vod.aliyuncs.com"),
new TeaPair("cn-shenzhen-st4-d01", "vod.aliyuncs.com"),
new TeaPair("cn-shenzhen-su18-b01", "vod.aliyuncs.com"),
new TeaPair("cn-wuhan", "vod.aliyuncs.com"),
new TeaPair("cn-wulanchabu", "vod.aliyuncs.com"),
new TeaPair("cn-yushanfang", "vod.aliyuncs.com"),
new TeaPair("cn-zhangbei", "vod.aliyuncs.com"),
new TeaPair("cn-zhangbei-na61-b01", "vod.aliyuncs.com"),
new TeaPair("cn-zhangjiakou-na62-a01", "vod.aliyuncs.com"),
new TeaPair("cn-zhengzhou-nebula-1", "vod.aliyuncs.com"),
new TeaPair("eu-west-1-oxs", "vod.aliyuncs.com"),
new TeaPair("me-east-1", "vod.aliyuncs.com"),
new TeaPair("rus-west-1-pop", "vod.aliyuncs.com"),
new TeaPair("us-east-1", "vod.aliyuncs.com")
);
this.REQUEST = TeaRequest.create().setProduct(product).setEndpointRule(endpointRule).setEndpointMap(endpointMap).setVersion(version);
}
@Override
public void close() {
this.handler.close();
}
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong>, <strong>China (Shanghai)</strong>, and <strong>Singapore</strong>.</p>
* <ul>
* <li>Before you add an AI template for automated review and smart thumbnail tasks, make sure that <a href="https://ai.aliyun.com/vi/censor">automated review</a> and <a href="https://ai.aliyun.com/vi/cover">smart thumbnail</a> are enabled.</li>
* </ul>
*
* @param request the request parameters of AddAITemplate AddAITemplateRequest
* @return AddAITemplateResponse
*/
@Override
public CompletableFuture<AddAITemplateResponse> addAITemplate(AddAITemplateRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("AddAITemplate").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(AddAITemplateResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<AddAITemplateResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> You can create a maximum of 3 levels of categories for audio, video, and image files and 2 levels of categories for short video materials. Each category level can contain a maximum of 100 subcategories. To create categories for audio and video files, set <code>Type</code> to <code>default</code>. To create categories for short video materials, set <code>Type</code> to <code>material</code>.</p>
* <ul>
* <li>After you create a category, you can categorize media resources during upload or categorize the uploaded media resources. For more information, see <a href="https://help.aliyun.com/document_detail/86070.html">Manage video categories</a>.</li>
* </ul>
*
* @param request the request parameters of AddCategory AddCategoryRequest
* @return AddCategoryResponse
*/
@Override
public CompletableFuture<AddCategoryResponse> addCategory(AddCategoryRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("AddCategory").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(AddCategoryResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<AddCategoryResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> For more information about the online editing feature, see <a href="https://help.aliyun.com/document_detail/95482.html">Overview</a>.</p>
*
* @param request the request parameters of AddEditingProject AddEditingProjectRequest
* @return AddEditingProjectResponse
*/
@Override
public CompletableFuture<AddEditingProjectResponse> addEditingProject(AddEditingProjectRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("AddEditingProject").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(AddEditingProjectResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<AddEditingProjectResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of AddEditingProjectMaterials AddEditingProjectMaterialsRequest
* @return AddEditingProjectMaterialsResponse
*/
@Override
public CompletableFuture<AddEditingProjectMaterialsResponse> addEditingProjectMaterials(AddEditingProjectMaterialsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("AddEditingProjectMaterials").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(AddEditingProjectMaterialsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<AddEditingProjectMaterialsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> You cannot perform custom operations on transcoding template groups that are <strong>locked</strong> in the ApsaraVideo VOD console. You can call the <a href="~~GetTranscodeTemplateGroup~~">GetTranscodeTemplateGroup</a> operation to query the information about a transcoding template group and check whether the transcoding template group is locked based on the value of the Locked parameter. You can call the <a href="~~UpdateTranscodeTemplateGroup~~">UpdateTranscodeTemplateGroup</a> operation to unlock a transcoding template group if it is locked. Then, you can perform custom operations on the transcoding template group.</p>
* <ul>
* <li>An Object Storage Service (OSS) bucket is required to store files that are used for transcoding. You cannot create a transcoding template group if no bucket is available. To activate a bucket, perform the following operations: Log on to the ApsaraVideo VOD console. In the left-side navigation pane, choose <strong>Configuration Management > Media Management > Storage</strong>. On the <strong>Storage</strong> page, activate the bucket that is allocated by ApsaraVideo VOD.</li>
* <li>You cannot add transcoding templates to the <strong>No Transcoding</strong> template group.</li>
* <li>You can create a maximum of 20 transcoding template groups.</li>
* <li>You can add a maximum of 20 transcoding templates to a transcoding template group.</li>
* <li>If you want to generate a URL for adaptive bitrate streaming, you can add video packaging templates to a transcoding template group. You can add a maximum of 10 video packaging templates to a transcoding template group. If you add more than 10 video packaging templates, URLs of the video transcoded based on the video packaging templates are generated but the URL for adaptive bitrate streaming is not generated.</li>
* </ul>
* <h3>QPS limits</h3>
* <p>You can call this operation up to five times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/342790.html">QPS limits</a>.</p>
*
* @param request the request parameters of AddTranscodeTemplateGroup AddTranscodeTemplateGroupRequest
* @return AddTranscodeTemplateGroupResponse
*/
@Override
public CompletableFuture<AddTranscodeTemplateGroupResponse> addTranscodeTemplateGroup(AddTranscodeTemplateGroupRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("AddTranscodeTemplateGroup").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(AddTranscodeTemplateGroupResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<AddTranscodeTemplateGroupResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>Before you add a domain name to accelerate, you must activate ApsaraVideo VOD and apply for an Internet content provider (ICP) filing for the domain name. For more information about how to activate ApsaraVideo VOD, see <a href="https://help.aliyun.com/document_detail/51512.html">Activate ApsaraVideo VOD</a>.</li>
* <li>If the content on the origin server is not stored on Alibaba Cloud, the content must be reviewed by Alibaba Cloud. The review will be complete by the end of the next business day after you submit an application.</li>
* <li>You can add only one domain name to accelerate in a request. You can add a maximum of 20 accelerated domain names within an Alibaba Cloud account.</li>
* </ul>
*
* @param request the request parameters of AddVodDomain AddVodDomainRequest
* @return AddVodDomainResponse
*/
@Override
public CompletableFuture<AddVodDomainResponse> addVodDomain(AddVodDomainRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("AddVodDomain").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(AddVodDomainResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<AddVodDomainResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to add a buckets to an ApsaraVideo VOD applications.</p>
* <blockquote>
* <p>You can add only one ApsaraVideo VOD bucket for each application. If you specify an AppId that does not exist or the ID of an application for which an VOD bucket is enabled, an error is returned.</p>
* </blockquote>
*
* @param request the request parameters of AddVodStorageForApp AddVodStorageForAppRequest
* @return AddVodStorageForAppResponse
*/
@Override
public CompletableFuture<AddVodStorageForAppResponse> addVodStorageForApp(AddVodStorageForAppRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("AddVodStorageForApp").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(AddVodStorageForAppResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<AddVodStorageForAppResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> After you add a snapshot template, you can call the <a href="https://help.aliyun.com/document_detail/72213.html">SubmitSnapshotJob</a> operation and specify the template ID to submit a snapshot job.</p>
* <ul>
* <li>You can use the HTTP (HTTPS compatible) callback or MNS callback method to receive the <a href="https://help.aliyun.com/document_detail/57337.html">SnapshotComplete</a> callback. For more information, see <a href="https://help.aliyun.com/document_detail/55627.html">Overview</a>.</li>
* </ul>
*
* @param request the request parameters of AddVodTemplate AddVodTemplateRequest
* @return AddVodTemplateResponse
*/
@Override
public CompletableFuture<AddVodTemplateResponse> addVodTemplate(AddVodTemplateRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("AddVodTemplate").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(AddVodTemplateResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<AddVodTemplateResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> You can call this operation to create an <code>Image</code> watermark template or a <code>Text</code> watermark template. You can use static images in the PNG format or dynamic images in the GIF, APNG, and MOV formats as image watermarks.</p>
* <ul>
* <li>After you call this operation to create a watermark template, you must call the <a href="~~AddTranscodeTemplateGroup~~">AddTranscodeTemplateGroup</a> or <a href="~~UpdateTranscodeTemplateGroup~~">UpdateTranscodeTemplateGroup</a> operation to associate the watermark template with a transcoding template group. This way, you can add watermarks to videos during transcoding.</li>
* <li>For more information, see <a href="https://help.aliyun.com/document_detail/99369.html">Video watermarks</a>.</li>
* </ul>
*
* @param request the request parameters of AddWatermark AddWatermarkRequest
* @return AddWatermarkResponse
*/
@Override
public CompletableFuture<AddWatermarkResponse> addWatermark(AddWatermarkRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("AddWatermark").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(AddWatermarkResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<AddWatermarkResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <blockquote>
* <p>You can grant a RAM user or RAM role permissions to access up to 10 applications.</p>
* </blockquote>
*
* @param request the request parameters of AttachAppPolicyToIdentity AttachAppPolicyToIdentityRequest
* @return AttachAppPolicyToIdentityResponse
*/
@Override
public CompletableFuture<AttachAppPolicyToIdentityResponse> attachAppPolicyToIdentity(AttachAppPolicyToIdentityRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("AttachAppPolicyToIdentity").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(AttachAppPolicyToIdentityResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<AttachAppPolicyToIdentityResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> You can specify up to 20 audio or video file IDs in each request.</p>
* <ul>
* <li>After a media file is uploaded, ApsaraVideo VOD processes the source file. Then, information about the media file is asynchronously generated. You can configure notifications for the <a href="https://help.aliyun.com/document_detail/99935.html">VideoAnalysisComplete</a> event and call this operation to query information about a media file after you receive notifications for the <a href="https://help.aliyun.com/document_detail/99935.html">VideoAnalysisComplete</a> event. For more information, see <a href="https://help.aliyun.com/document_detail/55627.html">Overview</a>.</li>
* </ul>
*
* @param request the request parameters of BatchGetMediaInfos BatchGetMediaInfosRequest
* @return BatchGetMediaInfosResponse
*/
@Override
public CompletableFuture<BatchGetMediaInfosResponse> batchGetMediaInfos(BatchGetMediaInfosRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("BatchGetMediaInfos").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(BatchGetMediaInfosResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<BatchGetMediaInfosResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <blockquote>
* <p>This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* </blockquote>
*
* @param request the request parameters of BatchSetVodDomainConfigs BatchSetVodDomainConfigsRequest
* @return BatchSetVodDomainConfigsResponse
*/
@Override
public CompletableFuture<BatchSetVodDomainConfigsResponse> batchSetVodDomainConfigs(BatchSetVodDomainConfigsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("BatchSetVodDomainConfigs").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(BatchSetVodDomainConfigsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<BatchSetVodDomainConfigsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>If the domain name that you want to enable is invalid or your Alibaba Cloud account has overdue payments, you cannot call this operation to enable the domain name.</li>
* </ul>
*
* @param request the request parameters of BatchStartVodDomain BatchStartVodDomainRequest
* @return BatchStartVodDomainResponse
*/
@Override
public CompletableFuture<BatchStartVodDomainResponse> batchStartVodDomain(BatchStartVodDomainRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("BatchStartVodDomain").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(BatchStartVodDomainResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<BatchStartVodDomainResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>After you disable an accelerated domain name, the information about the domain name is retained. The system automatically reroutes all the requests that are destined for the domain name to the origin server.</li>
* </ul>
*
* @param request the request parameters of BatchStopVodDomain BatchStopVodDomainRequest
* @return BatchStopVodDomainResponse
*/
@Override
public CompletableFuture<BatchStopVodDomainResponse> batchStopVodDomain(BatchStopVodDomainRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("BatchStopVodDomain").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(BatchStopVodDomainResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<BatchStopVodDomainResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> You can cancel only URL-based upload jobs in the <strong>Pending</strong> state. You can query the status of a URL-based upload job by calling the <a href="https://help.aliyun.com/document_detail/106830.html">GetURLUploadInfos</a> operation.</p>
* <ul>
* <li>You cannot cancel an upload job that already starts.</li>
* <li>You must specify either JobIds or UploadUrls. If you specify both parameters, only JobIds takes effect.</li>
* </ul>
*
* @param request the request parameters of CancelUrlUploadJobs CancelUrlUploadJobsRequest
* @return CancelUrlUploadJobsResponse
*/
@Override
public CompletableFuture<CancelUrlUploadJobsResponse> cancelUrlUploadJobs(CancelUrlUploadJobsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CancelUrlUploadJobs").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CancelUrlUploadJobsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CancelUrlUploadJobsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ChangeResourceGroup ChangeResourceGroupRequest
* @return ChangeResourceGroupResponse
*/
@Override
public CompletableFuture<ChangeResourceGroupResponse> changeResourceGroup(ChangeResourceGroupRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ChangeResourceGroup").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ChangeResourceGroupResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ChangeResourceGroupResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can create up to 10 applications within an Alibaba Cloud account. For more information, see <a href="https://help.aliyun.com/document_detail/113600.html">Multi-application service</a>.</p>
* <h3>QPS limits</h3>
* <p>You can call this operation up to 50 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/342790.html">QPS limits on API operations in ApsaraVideo VOD</a>.</p>
*
* @param request the request parameters of CreateAppInfo CreateAppInfoRequest
* @return CreateAppInfoResponse
*/
@Override
public CompletableFuture<CreateAppInfoResponse> createAppInfo(CreateAppInfoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateAppInfo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateAppInfoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateAppInfoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of CreateAudit CreateAuditRequest
* @return CreateAuditResponse
*/
@Override
public CompletableFuture<CreateAuditResponse> createAudit(CreateAuditRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateAudit").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateAuditResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateAuditResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> <strong>Make sure that you understand the billing method and prices of ApsaraVideo VOD before you call this operation. You are charged storage fees after you upload media files to ApsaraVideo VOD. For more information, see <a href="~~188308#section_e97_xrp_mzz~~">Billing of media asset storage</a>. If you have activated the acceleration service, you are charged acceleration fees when you upload media files to ApsaraVideo VOD. For more information, see <a href="~~188310#section_sta_zm2_tsv~~">Billing of acceleration traffic</a>.</strong></p>
* <ul>
* <li>You can call this operation only to obtain the upload URLs and credentials for media files and create media assets in ApsaraVideo VOD. You cannot call this operation to upload media files. For more information about how to upload media files by calling API operations, see <a href="https://help.aliyun.com/document_detail/476208.html">Upload media files by calling API operations</a>.</li>
* <li>If the upload credential expires after 3,000 seconds, you can call the CreateUploadAttachedMedia operation again to obtain a new upload URL and a new upload credential.</li>
* <li>You can configure a callback to receive an <a href="https://help.aliyun.com/document_detail/103250.html">AttachedMediaUploadComplete</a> event notification to determine whether the upload is successful.</li>
* <li>You must obtain a URL and a credential before you upload a media file to ApsaraVideo VOD. ApsaraVideo VOD supports multiple upload methods. Each method has different requirements on upload URLs and credentials. For more information, see <a href="https://help.aliyun.com/document_detail/55397.html">Upload URLs and credentials</a>.</li>
* </ul>
*
* @param request the request parameters of CreateUploadAttachedMedia CreateUploadAttachedMediaRequest
* @return CreateUploadAttachedMediaResponse
*/
@Override
public CompletableFuture<CreateUploadAttachedMediaResponse> createUploadAttachedMedia(CreateUploadAttachedMediaRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateUploadAttachedMedia").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateUploadAttachedMediaResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateUploadAttachedMediaResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> <strong>Make sure that you understand the billing method and price of ApsaraVideo VOD before you call this operation. You are charged storage fees after you upload media files to ApsaraVideo VOD. For more information, see <a href="~~188308#section_e97_xrp_mzz~~">Billing of media asset storage</a>. If you have activated the acceleration service, you are charged acceleration fees when you upload media files to ApsaraVideo VOD. For more information, see <a href="~~188310#section_sta_zm2_tsv~~">Billing of acceleration traffic</a>.</strong></p>
* <ul>
* <li>You must obtain a URL and a credential before you upload an image to ApsaraVideo VOD. ApsaraVideo VOD provides multiple upload methods. You can upload files by using server upload SDKs, client upload SDKs, URLs, Object Storage Service (OSS) API, or OSS SDKs. Each upload method has different requirements for obtaining upload URLs and credentials. For more information, see the "Usage notes" section of the <a href="https://help.aliyun.com/document_detail/55397.html">Upload URLs and credentials</a> topic.</li>
* <li>You cannot refresh the upload URL or credential when you upload images. If the image upload credential expires, you can call this operation to obtain a new upload URL and credential. By default, the validity period of an image upload credential is 3,000 seconds.</li>
* <li>You can call the <a href="https://help.aliyun.com/document_detail/98467.html">CreateUploadAttachedMedia</a> operation to upload image watermarks.</li>
* <li>You can configure a callback for <a href="https://help.aliyun.com/document_detail/91968.html">ImageUploadComplete</a> to receive notifications about the image upload status.</li>
* </ul>
*
* @param request the request parameters of CreateUploadImage CreateUploadImageRequest
* @return CreateUploadImageResponse
*/
@Override
public CompletableFuture<CreateUploadImageResponse> createUploadImage(CreateUploadImageRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateUploadImage").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateUploadImageResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateUploadImageResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> <strong>Make sure that you understand the billing method and prices of ApsaraVideo VOD before you call this operation. You are charged storage fees after you upload media files to ApsaraVideo VOD. For more information, see <a href="~~188308#section_e97_xrp_mzz~~">Billing of media asset storage</a>. If you have activated the acceleration service, you are charged acceleration fees when you upload media files to ApsaraVideo VOD. For more information, see <a href="~~188310#section_sta_zm2_tsv~~">Billing of acceleration traffic</a>.</strong></p>
* <ul>
* <li>You can call this operation to obtain upload URLs and credentials for video and audio files. For more information, see <a href="https://help.aliyun.com/document_detail/55397.html">Upload URLs and credentials</a>.</li>
* <li>You can call this operation only to obtain the upload URLs and credentials for media files and create media assets in ApsaraVideo VOD. You cannot call this operation to upload media files. For more information about how to upload media files by calling API operations, see <a href="https://help.aliyun.com/document_detail/476208.html">Upload media files by calling API operations</a>.</li>
* <li>If the upload credential expires, call the <a href="~~RefreshUploadVideo~~">RefreshUploadVideo</a> operation to obtain a new upload credential. The default validity period of an upload credential is 3,000 seconds.</li>
* <li>You can configure a callback to receive an event notification when an audio or video file is uploaded. Alternatively, after you upload an audio or video file, you can call the <a href="https://help.aliyun.com/document_detail/59624.html">GetMezzanineInfo</a> operation to determine whether the upload is successful. For more information, see <a href="https://help.aliyun.com/document_detail/55396.html">Overview</a>.</li>
* <li>The value of the VideoId parameter that is returned after you call this operation can be used for media processing or the lifecycle management of media assets.</li>
* <li>You must obtain a URL and a credential before you upload a media file to ApsaraVideo VOD. ApsaraVideo VOD supports multiple upload methods. Each method has different requirements on upload URLs and credentials. For more information, see <a href="https://help.aliyun.com/document_detail/55397.html">Upload URLs and credentials</a>.</li>
* </ul>
*
* @param request the request parameters of CreateUploadVideo CreateUploadVideoRequest
* @return CreateUploadVideoResponse
*/
@Override
public CompletableFuture<CreateUploadVideoResponse> createUploadVideo(CreateUploadVideoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateUploadVideo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateUploadVideoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<CreateUploadVideoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DecryptKMSDataKey DecryptKMSDataKeyRequest
* @return DecryptKMSDataKeyResponse
*/
@Override
public CompletableFuture<DecryptKMSDataKeyResponse> decryptKMSDataKey(DecryptKMSDataKeyRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DecryptKMSDataKey").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DecryptKMSDataKeyResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DecryptKMSDataKeyResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong> and <strong>China (Shanghai)</strong>.</p>
* <ul>
* <li>This operation deletes only information about images that are submitted for AI processing. The image files are not deleted.</li>
* </ul>
*
* @param request the request parameters of DeleteAIImageInfos DeleteAIImageInfosRequest
* @return DeleteAIImageInfosResponse
*/
@Override
public CompletableFuture<DeleteAIImageInfosResponse> deleteAIImageInfos(DeleteAIImageInfosRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteAIImageInfos").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteAIImageInfosResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteAIImageInfosResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong>, <strong>China (Shanghai)</strong>, and <strong>Singapore</strong>.</p>
* <ul>
* <li>You cannot delete an AI template that is set as the default template.</li>
* </ul>
*
* @param request the request parameters of DeleteAITemplate DeleteAITemplateRequest
* @return DeleteAITemplateResponse
*/
@Override
public CompletableFuture<DeleteAITemplateResponse> deleteAITemplate(DeleteAITemplateRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteAITemplate").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteAITemplateResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteAITemplateResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Application with resources can not be deleted.</p>
*
* @param request the request parameters of DeleteAppInfo DeleteAppInfoRequest
* @return DeleteAppInfoResponse
*/
@Override
public CompletableFuture<DeleteAppInfoResponse> deleteAppInfo(DeleteAppInfoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteAppInfo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteAppInfoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteAppInfoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> <strong>This operation physically deletes auxiliary media assets. You cannot recover the auxiliary media assets that you deleted. Exercise caution when you call this operation.</strong></p>
* <ul>
* <li>You can delete a maximum of 20 auxiliary media assets in one request.</li>
* </ul>
*
* @param request the request parameters of DeleteAttachedMedia DeleteAttachedMediaRequest
* @return DeleteAttachedMediaResponse
*/
@Override
public CompletableFuture<DeleteAttachedMediaResponse> deleteAttachedMedia(DeleteAttachedMediaRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteAttachedMedia").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteAttachedMediaResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteAttachedMediaResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> <strong>After you call this operation to delete a category, all subcategories including level 2 and level 3 categories are deleted at the same time. Exercise caution when you call this operation.</strong></p>
* <ul>
* <li>If you have classified specific media resources to a category, the category names labeled on these media resources are automatically deleted when you delete the category.</li>
* </ul>
*
* @param request the request parameters of DeleteCategory DeleteCategoryRequest
* @return DeleteCategoryResponse
*/
@Override
public CompletableFuture<DeleteCategoryResponse> deleteCategory(DeleteCategoryRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteCategory").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteCategoryResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteCategoryResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <blockquote>
* <p>This operation deletes only the information about animated stickers, but not the animated stickers themselves.</p>
* </blockquote>
*
* @param request the request parameters of DeleteDynamicImage DeleteDynamicImageRequest
* @return DeleteDynamicImageResponse
*/
@Override
public CompletableFuture<DeleteDynamicImageResponse> deleteDynamicImage(DeleteDynamicImageRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteDynamicImage").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteDynamicImageResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteDynamicImageResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> You can call this operation to delete multiple online editing projects at a time.</p>
*
* @param request the request parameters of DeleteEditingProject DeleteEditingProjectRequest
* @return DeleteEditingProjectResponse
*/
@Override
public CompletableFuture<DeleteEditingProjectResponse> deleteEditingProject(DeleteEditingProjectRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteEditingProject").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteEditingProjectResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteEditingProjectResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DeleteEditingProjectMaterials DeleteEditingProjectMaterialsRequest
* @return DeleteEditingProjectMaterialsResponse
*/
@Override
public CompletableFuture<DeleteEditingProjectMaterialsResponse> deleteEditingProjectMaterials(DeleteEditingProjectMaterialsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteEditingProjectMaterials").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteEditingProjectMaterialsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteEditingProjectMaterialsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> <strong>After you call this operation to delete an image, the source file is permanently deleted and cannot be recovered. Exercise caution when you call this operation.</strong></p>
* <ul>
* <li>If some images are cached on Alibaba Cloud CDN points of presence (POPs), the image URLs do not immediately become invalid.</li>
* <li>You can call this operation to delete uploaded images and video snapshots.</li>
* </ul>
*
* @param request the request parameters of DeleteImage DeleteImageRequest
* @return DeleteImageResponse
*/
@Override
public CompletableFuture<DeleteImageResponse> deleteImage(DeleteImageRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteImage").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteImageResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteImageResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <blockquote>
* <p>For more information, see <a href="https://help.aliyun.com/document_detail/55627.html">Overview</a>.</p>
* </blockquote>
*
* @param request the request parameters of DeleteMessageCallback DeleteMessageCallbackRequest
* @return DeleteMessageCallbackResponse
*/
@Override
public CompletableFuture<DeleteMessageCallbackResponse> deleteMessageCallback(DeleteMessageCallbackRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteMessageCallback").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteMessageCallbackResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteMessageCallbackResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>All media processing operations in ApsaraVideo VOD, such as transcoding, snapshot capture, and content moderation, are performed based on source files. If you delete the source files, you cannot perform media processing operations. Exercise caution when you call this operation.</p>
*
* @param request the request parameters of DeleteMezzanines DeleteMezzaninesRequest
* @return DeleteMezzaninesResponse
*/
@Override
public CompletableFuture<DeleteMezzaninesResponse> deleteMezzanines(DeleteMezzaninesRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteMezzanines").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteMezzaninesResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteMezzaninesResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> During multipart upload, useless parts may be retained if the upload fails. These useless parts are automatically deleted after 7 days. You can call this operation to delete the generated parts after the upload is successful or fails.</p>
* <ul>
* <li>This operation does not delete the source file or transcoded file, but deletes only the parts generated during the upload.</li>
* <li>If you call the <a href="https://help.aliyun.com/document_detail/52837.html">DeleteVideo</a> operation, the entire video file is deleted, including the generated parts.</li>
* </ul>
*
* @param request the request parameters of DeleteMultipartUpload DeleteMultipartUploadRequest
* @return DeleteMultipartUploadResponse
*/
@Override
public CompletableFuture<DeleteMultipartUploadResponse> deleteMultipartUpload(DeleteMultipartUploadRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteMultipartUpload").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteMultipartUploadResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteMultipartUploadResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DeleteStream DeleteStreamRequest
* @return DeleteStreamResponse
*/
@Override
public CompletableFuture<DeleteStreamResponse> deleteStream(DeleteStreamRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteStream").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteStreamResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteStreamResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> You cannot call this operation to delete the default transcoding template. You can delete the transcoding template when it is no longer specified as the default one.</p>
* <ul>
* <li>For security purposes, you cannot add, modify, or delete transcoding templates in a transcoding template group that is locked. To check whether a transcoding template group is locked, call the <a href="~~GetTranscodeTemplateGroup~~">GetTranscodeTemplateGroup</a> operation and obtain the Locked parameter from the response. To modify transcoding templates within a locked transcoding template group, you must call the <a href="~~UpdateTranscodeTemplateGroup~~">UpdateTranscodeTemplateGroup</a> operation to unlock the transcoding template group first.</li>
* </ul>
*
* @param request the request parameters of DeleteTranscodeTemplateGroup DeleteTranscodeTemplateGroupRequest
* @return DeleteTranscodeTemplateGroupResponse
*/
@Override
public CompletableFuture<DeleteTranscodeTemplateGroupResponse> deleteTranscodeTemplateGroup(DeleteTranscodeTemplateGroupRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteTranscodeTemplateGroup").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteTranscodeTemplateGroupResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteTranscodeTemplateGroupResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> This operation physically deletes videos. Deleted videos cannot be recovered. Exercise caution when you call this operation.</p>
* <ul>
* <li>You can call this operation to delete multiple videos at a time.</li>
* <li>When you delete a video, its source file, transcoded stream file, and thumbnail screenshot are also deleted. However, the Alibaba Cloud Content Delivery Network (CDN) cache is not refreshed simultaneously. You can use the refresh feature in the ApsaraVideo VOD console to clear garbage data on CDN nodes. For more information, see <a href="https://help.aliyun.com/document_detail/86098.html">Refresh and prefetch</a>.</li>
* </ul>
*
* @param request the request parameters of DeleteVideo DeleteVideoRequest
* @return DeleteVideoResponse
*/
@Override
public CompletableFuture<DeleteVideoResponse> deleteVideo(DeleteVideoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteVideo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteVideoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteVideoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <blockquote>
* <ul>
* <li>This operation is available only in the <strong>China (Shanghai)</strong> region.</li>
* <li>After a domain name for CDN is removed from ApsaraVideo VOD, the domain name becomes unavailable. Proceed with caution. We recommend that you restore the A record at your DNS service provider before you remove the domain name for CDN.</li>
* <li>After you call this operation to remove a domain name for CDN from ApsaraVideo VOD, all records that are related to the domain name are deleted. If you only want to disable a domain name for CDN, call the <a href="https://help.aliyun.com/document_detail/120208.html">BatchStopVodDomain</a> operation.</li>
* </ul>
* </blockquote>
*
* @param request the request parameters of DeleteVodDomain DeleteVodDomainRequest
* @return DeleteVodDomainResponse
*/
@Override
public CompletableFuture<DeleteVodDomainResponse> deleteVodDomain(DeleteVodDomainRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteVodDomain").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteVodDomainResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteVodDomainResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <blockquote>
* </blockquote>
* <ul>
* <li>This operation is available only in the <strong>China (Shanghai)</strong> region.</li>
* <li>After the configurations of a domain name for CDN are deleted, the domain name becomes unavailable. We recommend that you restore the A record at your DNS service provider before you delete the configurations of the domain name for CDN.</li>
* <li>After you call this operation to remove a domain name for CDN from ApsaraVideo VOD, all records that are related to the domain name are deleted. If you only want to disable a domain name for CDN, call the <a href="https://help.aliyun.com/document_detail/120208.html">BatchStopVodDomain</a> operation.</li>
* </ul>
*
* @param request the request parameters of DeleteVodSpecificConfig DeleteVodSpecificConfigRequest
* @return DeleteVodSpecificConfigResponse
*/
@Override
public CompletableFuture<DeleteVodSpecificConfigResponse> deleteVodSpecificConfig(DeleteVodSpecificConfigRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteVodSpecificConfig").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteVodSpecificConfigResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteVodSpecificConfigResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DeleteVodTemplate DeleteVodTemplateRequest
* @return DeleteVodTemplateResponse
*/
@Override
public CompletableFuture<DeleteVodTemplateResponse> deleteVodTemplate(DeleteVodTemplateRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteVodTemplate").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteVodTemplateResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteVodTemplateResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> <strong>After you delete an image watermark template, the source watermark file is physically deleted and cannot be restored. Exercise caution when you call this operation.</strong></p>
* <ul>
* <li>You cannot delete the default watermark template. To delete a default watermark template, call the <a href="~~SetDefaultWatermark~~">SetDefaultWatermark</a> operation to set another watermark template as the default one.</li>
* </ul>
*
* @param request the request parameters of DeleteWatermark DeleteWatermarkRequest
* @return DeleteWatermarkResponse
*/
@Override
public CompletableFuture<DeleteWatermarkResponse> deleteWatermark(DeleteWatermarkRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteWatermark").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteWatermarkResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DeleteWatermarkResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> This operation is available only in the China (Shanghai) region.</p>
* <ul>
* <li>If you do not set the StartTime or EndTime parameter, the request returns the data collected in the previous 7 days. If you set both the parameters, the request returns the data collected within the specified time range.</li>
* </ul>
*
* @param request the request parameters of DescribeMediaDistribution DescribeMediaDistributionRequest
* @return DescribeMediaDistributionResponse
*/
@Override
public CompletableFuture<DescribeMediaDistributionResponse> describeMediaDistribution(DescribeMediaDistributionRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeMediaDistribution").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeMediaDistributionResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeMediaDistributionResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can query playback statistics on top 1,000 videos at most on a specified day. By default, top videos are sorted in descending order based on video views.</li>
* <li>You can call this operation to query only playback statistics collected on videos that are played by using ApsaraVideo Player SDKs.</li>
* <li>Playback statistics for the previous day are generated at 09:00 on the current day, in UTC+8.</li>
* <li>You can query data that is generated since January 1, 2018. The maximum time range to query is 180 days.</li>
* </ul>
*
* @param request the request parameters of DescribePlayTopVideos DescribePlayTopVideosRequest
* @return DescribePlayTopVideosResponse
*/
@Override
public CompletableFuture<DescribePlayTopVideosResponse> describePlayTopVideos(DescribePlayTopVideosRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribePlayTopVideos").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribePlayTopVideosResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribePlayTopVideosResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <blockquote>
* <ul>
* <li>This operation is available only in the <strong>China (Shanghai)</strong> region.</li>
* <li>You can call this operation to query only playback statistics collected on videos that are played by using ApsaraVideo Player SDKs.</li>
* <li>Playback statistics for the previous day are generated at 09:00 on the current day, in UTC+8.</li>
* <li>You can query data that is generated since January 1, 2018. The maximum time range to query is 180 days.</li>
* </ul>
* </blockquote>
*
* @param request the request parameters of DescribePlayUserAvg DescribePlayUserAvgRequest
* @return DescribePlayUserAvgResponse
*/
@Override
public CompletableFuture<DescribePlayUserAvgResponse> describePlayUserAvg(DescribePlayUserAvgRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribePlayUserAvg").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribePlayUserAvgResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribePlayUserAvgResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can call this operation to query only playback statistics collected on videos that are played by using ApsaraVideo Player SDKs.</li>
* <li>Playback statistics for the current day are generated at 09:00 (UTC+8) on the next day.</li>
* <li>You can query data that is generated since January 1, 2018. The maximum time range to query is 180 days.</li>
* </ul>
*
* @param request the request parameters of DescribePlayUserTotal DescribePlayUserTotalRequest
* @return DescribePlayUserTotalResponse
*/
@Override
public CompletableFuture<DescribePlayUserTotalResponse> describePlayUserTotal(DescribePlayUserTotalRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribePlayUserTotal").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribePlayUserTotalResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribePlayUserTotalResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can call this operation to query only playback statistics collected on videos that are played by using ApsaraVideo Player SDKs.</li>
* <li>Playback statistics for the current day are generated at 09:00 (UTC+8) on the next day.</li>
* <li>You can query only data in the last 730 days. The maximum time range to query is 180 days.</li>
* </ul>
*
* @param request the request parameters of DescribePlayVideoStatis DescribePlayVideoStatisRequest
* @return DescribePlayVideoStatisResponse
*/
@Override
public CompletableFuture<DescribePlayVideoStatisResponse> describePlayVideoStatis(DescribePlayVideoStatisRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribePlayVideoStatis").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribePlayVideoStatisResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribePlayVideoStatisResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <blockquote>
* <ul>
* <li>This operation is available only in the <strong>China (Shanghai)</strong> region.</li>
* <li>If the time range to query is less than or equal to seven days, the system returns the statistics collected on an hourly basis. If the time range to query is greater than seven days, the system returns the statistics collected on a daily basis. The maximum time range that you can specify to query is 31 days.</li>
* </ul>
* </blockquote>
*
* @param request the request parameters of DescribeVodAIData DescribeVodAIDataRequest
* @return DescribeVodAIDataResponse
*/
@Override
public CompletableFuture<DescribeVodAIDataResponse> describeVodAIData(DescribeVodAIDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodAIData").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodAIDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodAIDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <blockquote>
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* </blockquote>
*
* @param request the request parameters of DescribeVodCertificateList DescribeVodCertificateListRequest
* @return DescribeVodCertificateListResponse
*/
@Override
public CompletableFuture<DescribeVodCertificateListResponse> describeVodCertificateList(DescribeVodCertificateListRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodCertificateList").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodCertificateListResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodCertificateListResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>If you specify neither the StartTime parameter nor the EndTime parameter, the data in the last 24 hours is queried. Alternatively, you can specify both the StartTime and EndTime parameters to query data that is generated in the specified duration. You can query data for the last 90 days at most.</p>
*
* @param request the request parameters of DescribeVodDomainBpsData DescribeVodDomainBpsDataRequest
* @return DescribeVodDomainBpsDataResponse
*/
@Override
public CompletableFuture<DescribeVodDomainBpsDataResponse> describeVodDomainBpsData(DescribeVodDomainBpsDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodDomainBpsData").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodDomainBpsDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodDomainBpsDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this API operation up to 20 times per second per account. If you do not set the StartTime or EndTime parameter, the request returns the data collected in the last 24 hours. If you set both these parameters, the request returns the data collected within the specified time range. Time granularity
* The time granularity supported by Interval, the maximum time period within which historical data is available, and the data delay vary based on the time range to query, as described in the following table.</p>
* <table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>15 minutes</td>
* <td>3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* <tr>
* <td>1 day</td>
* <td>90 days</td>
* <td>366 days</td>
* <td>4 hours in most cases, not more than 24 hours</td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of DescribeVodDomainBpsDataByLayer DescribeVodDomainBpsDataByLayerRequest
* @return DescribeVodDomainBpsDataByLayerResponse
*/
@Override
public CompletableFuture<DescribeVodDomainBpsDataByLayerResponse> describeVodDomainBpsDataByLayer(DescribeVodDomainBpsDataByLayerRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodDomainBpsDataByLayer").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodDomainBpsDataByLayerResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodDomainBpsDataByLayerResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
*
* @param request the request parameters of DescribeVodDomainCertificateInfo DescribeVodDomainCertificateInfoRequest
* @return DescribeVodDomainCertificateInfoResponse
*/
@Override
public CompletableFuture<DescribeVodDomainCertificateInfoResponse> describeVodDomainCertificateInfo(DescribeVodDomainCertificateInfoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodDomainCertificateInfo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodDomainCertificateInfoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodDomainCertificateInfoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <blockquote>
* <p>This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* </blockquote>
*
* @param request the request parameters of DescribeVodDomainConfigs DescribeVodDomainConfigsRequest
* @return DescribeVodDomainConfigsResponse
*/
@Override
public CompletableFuture<DescribeVodDomainConfigsResponse> describeVodDomainConfigs(DescribeVodDomainConfigsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodDomainConfigs").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodDomainConfigsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodDomainConfigsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <blockquote>
* <p>This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* </blockquote>
*
* @param request the request parameters of DescribeVodDomainDetail DescribeVodDomainDetailRequest
* @return DescribeVodDomainDetailResponse
*/
@Override
public CompletableFuture<DescribeVodDomainDetailResponse> describeVodDomainDetail(DescribeVodDomainDetailRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodDomainDetail").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodDomainDetailResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodDomainDetailResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This operation is supported only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can specify a maximum of 500 accelerated domain names.</li>
* <li>If you specify neither <code>StartTime</code> nor <code>EndTime</code>, the data of the last 24 hours is queried. You can specify both <code>StartTime</code> and <code>EndTime</code> parameters to query data of a specified time range.
* <strong>Time granularity</strong>
* The time granularity varies with the time range specified by the <code>StartTime</code> and <code>EndTime</code> parameters. The following table describes the time period within which historical data is available and the data delay when you do not set <code>Interval</code>.<table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>5 minutes</td>
* <td>Time range per query < 3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>3 days ≤ Time range per query < 31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* <tr>
* <td>1 day</td>
* <td>31 days ≤ Time span of a single query ≤ 366 days</td>
* <td>366 days</td>
* <td>4 hours in most cases, not more than 24 hours</td>
* </tr>
* </tbody></table>
* </li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainHitRateData DescribeVodDomainHitRateDataRequest
* @return DescribeVodDomainHitRateDataResponse
*/
@Override
public CompletableFuture<DescribeVodDomainHitRateDataResponse> describeVodDomainHitRateData(DescribeVodDomainHitRateDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodDomainHitRateData").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodDomainHitRateDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodDomainHitRateDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>For more information about the log format and latency, see <a href="https://help.aliyun.com/document_detail/86099.html">Download logs</a>.</li>
* <li>If you specify neither the StartTime parameter nor the EndTime parameter, the log data in the last 24 hours is queried.</li>
* <li>You can specify both the StartTime and EndTime parameters to query the log data that is generated in the specified time range.</li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainLog DescribeVodDomainLogRequest
* @return DescribeVodDomainLogResponse
*/
@Override
public CompletableFuture<DescribeVodDomainLogResponse> describeVodDomainLog(DescribeVodDomainLogRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodDomainLog").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodDomainLogResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodDomainLogResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeVodDomainMax95BpsData DescribeVodDomainMax95BpsDataRequest
* @return DescribeVodDomainMax95BpsDataResponse
*/
@Override
public CompletableFuture<DescribeVodDomainMax95BpsDataResponse> describeVodDomainMax95BpsData(DescribeVodDomainMax95BpsDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodDomainMax95BpsData").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodDomainMax95BpsDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodDomainMax95BpsDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This operation is available only in the China (Shanghai) region.</p>
* <ul>
* <li>You can call this operation up to 100 times per second per account.</li>
* <li>If you do not set the StartTime or EndTime parameter, the request returns the data collected in the last 24 hours. If you set both these parameters, the request returns the data collected within the specified time range.
* <strong>Time granularity</strong>
* The time granularity supported by the Interval parameter, the maximum time period within which historical data is available, and the data delay vary with the maximum time range per query, as described in the following table.<table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Maximum time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>5 minutes</td>
* <td>3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* <tr>
* <td>1 day</td>
* <td>366 days</td>
* <td>366 days</td>
* <td>4 to 24 hours</td>
* </tr>
* </tbody></table>
* </li>
* </ul>
* <hr>
*
* @param request the request parameters of DescribeVodDomainQpsData DescribeVodDomainQpsDataRequest
* @return DescribeVodDomainQpsDataResponse
*/
@Override
public CompletableFuture<DescribeVodDomainQpsDataResponse> describeVodDomainQpsData(DescribeVodDomainQpsDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodDomainQpsData").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodDomainQpsDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodDomainQpsDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This operation is supported only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can specify a maximum of 500 accelerated domain names.</li>
* <li>If you specify neither <code>StartTime</code> nor <code>EndTime</code>, the data of the last 1 hour is queried. You can specify both <code>StartTime</code> and <code>EndTime</code> parameters to query data of a specified time range.
* <strong>Time granularity</strong>
* The time granularity varies with the time range specified by the <code>StartTime</code> and <code>EndTime</code> parameters. The following table describes the time period within which historical data is available and the data delay.<table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>1 minute</td>
* <td>Time range per query ≤ 1 hour</td>
* <td>7 days</td>
* <td>5 minutes</td>
* </tr>
* <tr>
* <td>5 minutes</td>
* <td>1 Hour < Time range per query ≤ 3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>3 days < Time range per query ≤ 31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* </tbody></table>
* </li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainRealTimeBpsData DescribeVodDomainRealTimeBpsDataRequest
* @return DescribeVodDomainRealTimeBpsDataResponse
*/
@Override
public CompletableFuture<DescribeVodDomainRealTimeBpsDataResponse> describeVodDomainRealTimeBpsData(DescribeVodDomainRealTimeBpsDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodDomainRealTimeBpsData").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodDomainRealTimeBpsDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodDomainRealTimeBpsDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This operation is supported only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can specify a maximum of 100 accelerated domain names.</li>
* <li>If you specify neither <code>StartTime</code> nor <code>EndTime</code>, the data of the last 1 hour is queried. You can specify both <code>StartTime</code> and <code>EndTime</code> parameters to query data of a specified time range.
* <strong>Time granularity</strong>
* The time granularity varies with the time range specified by the <code>StartTime</code> and <code>EndTime</code> parameters. The following table describes the time period within which historical data is available and the data delay.<table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>1 minute</td>
* <td>Time range per query ≤ 1 hour</td>
* <td>7 days</td>
* <td>5 minutes</td>
* </tr>
* <tr>
* <td>5 minutes</td>
* <td>1 Hour < Time range per query ≤ 3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>3 days < Time range per query ≤ 31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* </tbody></table>
* </li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainRealTimeByteHitRateData DescribeVodDomainRealTimeByteHitRateDataRequest
* @return DescribeVodDomainRealTimeByteHitRateDataResponse
*/
@Override
public CompletableFuture<DescribeVodDomainRealTimeByteHitRateDataResponse> describeVodDomainRealTimeByteHitRateData(DescribeVodDomainRealTimeByteHitRateDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodDomainRealTimeByteHitRateData").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodDomainRealTimeByteHitRateDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodDomainRealTimeByteHitRateDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can query data within the last seven days. Data is collected every minute. You can call this API operation up to 10 times per second per account.</p>
*
* @param request the request parameters of DescribeVodDomainRealTimeDetailData DescribeVodDomainRealTimeDetailDataRequest
* @return DescribeVodDomainRealTimeDetailDataResponse
*/
@Override
public CompletableFuture<DescribeVodDomainRealTimeDetailDataResponse> describeVodDomainRealTimeDetailData(DescribeVodDomainRealTimeDetailDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodDomainRealTimeDetailData").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodDomainRealTimeDetailDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodDomainRealTimeDetailDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This operation is supported only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can specify a maximum of 100 accelerated domain names.</li>
* <li>If you specify neither <code>StartTime</code> nor <code>EndTime</code>, the data of the last 1 hour is queried. You can specify both <code>StartTime</code> and <code>EndTime</code> parameters to query data of a specified time range.
* <strong>Time granularity</strong>
* The time granularity varies with the time range specified by the <code>StartTime</code> and <code>EndTime</code> parameters. The following table describes the time period within which historical data is available and the data delay.<table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query</th>
* <th>Historical data available (days)</th>
* <th>Data latency</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>1 minute</td>
* <td>Time range per query ≤ 1 hour</td>
* <td>7 days</td>
* <td>5 minutes</td>
* </tr>
* <tr>
* <td>5 minutes</td>
* <td>1 hour < Time range per query < 3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>3 days ≤ Time range per query < 31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* </tbody></table>
* </li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainRealTimeHttpCodeData DescribeVodDomainRealTimeHttpCodeDataRequest
* @return DescribeVodDomainRealTimeHttpCodeDataResponse
*/
@Override
public CompletableFuture<DescribeVodDomainRealTimeHttpCodeDataResponse> describeVodDomainRealTimeHttpCodeData(DescribeVodDomainRealTimeHttpCodeDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodDomainRealTimeHttpCodeData").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodDomainRealTimeHttpCodeDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodDomainRealTimeHttpCodeDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This operation is supported only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can specify a maximum of 500 accelerated domain names.</li>
* <li>If you specify neither <code>StartTime</code> nor <code>EndTime</code>, the data of the last 1 hour is queried. You can specify both <code>StartTime</code> and <code>EndTime</code> parameters to query data of a specified time range.
* <strong>Time granularity</strong>
* The time granularity varies with the time range specified by the <code>StartTime</code> and <code>EndTime</code> parameters. The following table describes the time period within which historical data is available and the data delay.<table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>1 minute</td>
* <td>Time range per query ≤ 1 hour</td>
* <td>7 days</td>
* <td>5 minutes</td>
* </tr>
* <tr>
* <td>5 minutes</td>
* <td>1 Hour < Time range per query ≤ 3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>3 days < Time range per query ≤ 31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* </tbody></table>
* </li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainRealTimeQpsData DescribeVodDomainRealTimeQpsDataRequest
* @return DescribeVodDomainRealTimeQpsDataResponse
*/
@Override
public CompletableFuture<DescribeVodDomainRealTimeQpsDataResponse> describeVodDomainRealTimeQpsData(DescribeVodDomainRealTimeQpsDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodDomainRealTimeQpsData").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodDomainRealTimeQpsDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodDomainRealTimeQpsDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This operation is supported only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can specify a maximum of 100 accelerated domain names.</li>
* <li>If you specify neither <code>StartTime</code> nor <code>EndTime</code>, the data of the last 1 hour is queried. You can specify both <code>StartTime</code> and <code>EndTime</code> parameters to query data of a specified time range.</li>
* <li>By default, the POST method is used for Go. To use the FET method, you must declare <code>request.Method="GET"</code>.
* <strong>Time granularity</strong>
* The time granularity varies with the time range specified by the <code>StartTime</code> and <code>EndTime</code> parameters. The following table describes the time period within which historical data is available and the data delay.<table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>1 minute</td>
* <td>Time range per query ≤ 1 hour</td>
* <td>7 days</td>
* <td>5 minutes</td>
* </tr>
* <tr>
* <td>5 minutes</td>
* <td>1 hour < Time range per query < 3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>3 days ≤ Time range per query < 31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* </tbody></table>
* </li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainRealTimeReqHitRateData DescribeVodDomainRealTimeReqHitRateDataRequest
* @return DescribeVodDomainRealTimeReqHitRateDataResponse
*/
@Override
public CompletableFuture<DescribeVodDomainRealTimeReqHitRateDataResponse> describeVodDomainRealTimeReqHitRateData(DescribeVodDomainRealTimeReqHitRateDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodDomainRealTimeReqHitRateData").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodDomainRealTimeReqHitRateDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodDomainRealTimeReqHitRateDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This operation is supported only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can specify a maximum of 100 accelerated domain names.</li>
* <li>If you specify neither <code>StartTime</code> nor <code>EndTime</code>, the data of the last 1 hour is queried. You can specify both <code>StartTime</code> and <code>EndTime</code> parameters to query data of a specified time range.
* <strong>Time granularity</strong>
* The time granularity varies with the time range specified by the <code>StartTime</code> and <code>EndTime</code> parameters. The following table describes the time period within which historical data is available and the data delay.<table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>1 minute</td>
* <td>Time range per query ≤ 1 hour</td>
* <td>7 days</td>
* <td>5 minutes</td>
* </tr>
* <tr>
* <td>5 minutes</td>
* <td>1 Hour < Time range per query ≤ 3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>3 days < Time range per query ≤ 31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* </tbody></table>
* </li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainRealTimeTrafficData DescribeVodDomainRealTimeTrafficDataRequest
* @return DescribeVodDomainRealTimeTrafficDataResponse
*/
@Override
public CompletableFuture<DescribeVodDomainRealTimeTrafficDataResponse> describeVodDomainRealTimeTrafficData(DescribeVodDomainRealTimeTrafficDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodDomainRealTimeTrafficData").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodDomainRealTimeTrafficDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodDomainRealTimeTrafficDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This operation is supported only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can specify a maximum of 500 accelerated domain names.</li>
* <li>If you specify neither <code>StartTime</code> nor <code>EndTime</code>, the data of the last 24 hours is queried. You can specify both <code>StartTime</code> and <code>EndTime</code> parameters to query data of a specified time range.
* <strong>Time granularity</strong>
* The time granularity varies with the time range specified by the <code>StartTime</code> and <code>EndTime</code> parameters. The following table describes the time period within which historical data is available and the data delay when you do not set <code>Interval</code>.<table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>5 minutes</td>
* <td>Time range per query < 3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>3 days ≤ Time range per query < 31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* <tr>
* <td>1 day</td>
* <td>31 days ≤ Time range per query ≤ 90 days</td>
* <td>366 days</td>
* <td>4 hours in most cases, not more than 24 hours</td>
* </tr>
* </tbody></table>
* </li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainReqHitRateData DescribeVodDomainReqHitRateDataRequest
* @return DescribeVodDomainReqHitRateDataResponse
*/
@Override
public CompletableFuture<DescribeVodDomainReqHitRateDataResponse> describeVodDomainReqHitRateData(DescribeVodDomainReqHitRateDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodDomainReqHitRateData").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodDomainReqHitRateDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodDomainReqHitRateDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This operation is supported only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can specify a maximum of 500 accelerated domain names.</li>
* <li>If you specify neither <code>StartTime</code> nor <code>EndTime</code>, the data of the last 24 hours is queried. You can specify both <code>StartTime</code> and <code>EndTime</code> parameters to query data of a specified time range.
* <strong>Time granularity</strong>
* The time granularity varies with the time range specified by the <code>StartTime</code> and <code>EndTime</code> parameters. The following table describes the time period within which historical data is available and the data delay when you do not set <code>Interval</code>.<table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>5 minutes</td>
* <td>Time range per query < 3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>3 days ≤ Time range per query < 31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* <tr>
* <td>1 day</td>
* <td>31 days ≤ Time span of a single query ≤ 366 days</td>
* <td>366 days</td>
* <td>4 hours in most cases, not more than 24 hours</td>
* </tr>
* </tbody></table>
* </li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainSrcBpsData DescribeVodDomainSrcBpsDataRequest
* @return DescribeVodDomainSrcBpsDataResponse
*/
@Override
public CompletableFuture<DescribeVodDomainSrcBpsDataResponse> describeVodDomainSrcBpsData(DescribeVodDomainSrcBpsDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodDomainSrcBpsData").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodDomainSrcBpsDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodDomainSrcBpsDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>ApsaraVideo VOD stores the origin traffic data for 90 days before the data is deleted.</li>
* <li>If you do not set the <code>StartTime</code> or <code>EndTime</code> parameter, the request returns the data collected in the last 24 hours. If you set both the <code>StartTime</code> and <code>EndTime</code> parameters, the request returns the data collected within the specified time range.</li>
* <li>You can specify a maximum of 500 domain names in a request. Separate multiple domain names with commas (,). If you specify multiple domain names in a request, aggregation results are returned.</li>
* </ul>
* <h3>Time granularity</h3>
* <p>The time granularity supported by the Interval parameter varies based on the time range per query specified by using <code>StartTime</code> and <code>EndTime</code>. The following table describes the time period within which historical data is available and the data delay.</p>
* <table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query (days)</th>
* <th>Historical data available (days)</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>5 minutes</td>
* <td>(0, 3\]</td>
* <td>93</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>(3, 31\]</td>
* <td>186</td>
* <td>4 hours</td>
* </tr>
* <tr>
* <td>1 day</td>
* <td>(31, 366\]</td>
* <td>366</td>
* <td>04:00 on the next day</td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of DescribeVodDomainSrcTrafficData DescribeVodDomainSrcTrafficDataRequest
* @return DescribeVodDomainSrcTrafficDataResponse
*/
@Override
public CompletableFuture<DescribeVodDomainSrcTrafficDataResponse> describeVodDomainSrcTrafficData(DescribeVodDomainSrcTrafficDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodDomainSrcTrafficData").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodDomainSrcTrafficDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodDomainSrcTrafficDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This operation is supported only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can specify a maximum of 500 accelerated domain names.</li>
* <li>If you specify neither <code>StartTime</code> nor <code>EndTime</code>, the data of the last 24 hour is queried. You can specify both <code>StartTime</code> and <code>EndTime</code> parameters to query data of a specified time range.
* <strong>Time granularity</strong>
* The time granularity varies with the time range specified by the <code>StartTime</code> and <code>EndTime</code> parameters. The following table describes the time period within which historical data is available and the data delay when you do not set <code>Interval</code>.<table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>5 minutes</td>
* <td>Time range per query < 3 days</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* <tr>
* <td>1 hour</td>
* <td>3 days ≤ Time range per query < 31 days</td>
* <td>186 days</td>
* <td>3 to 4 hours</td>
* </tr>
* <tr>
* <td>1 day</td>
* <td>31 days ≤ Time range per query ≤ 366 days</td>
* <td>366 days</td>
* <td>4 hours in most cases, not more than 24 hours</td>
* </tr>
* </tbody></table>
* </li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainTrafficData DescribeVodDomainTrafficDataRequest
* @return DescribeVodDomainTrafficDataResponse
*/
@Override
public CompletableFuture<DescribeVodDomainTrafficDataResponse> describeVodDomainTrafficData(DescribeVodDomainTrafficDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodDomainTrafficData").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodDomainTrafficDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodDomainTrafficDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can specify up to 100 accelerated domain names in a request. Separate multiple domain names with commas (,). If you do not specify an accelerated domain name, the data of all accelerated domain names within your Alibaba Cloud account is returned.</li>
* <li>You can query data in the last year. The maximum time range that can be queried is three months. If you specify a time range of one to three days, the system returns data on an hourly basis. If you specify a time range of four days or more, the system returns data on a daily basis.</li>
* </ul>
*
* @param request the request parameters of DescribeVodDomainUsageData DescribeVodDomainUsageDataRequest
* @return DescribeVodDomainUsageDataResponse
*/
@Override
public CompletableFuture<DescribeVodDomainUsageDataResponse> describeVodDomainUsageData(DescribeVodDomainUsageDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodDomainUsageData").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodDomainUsageDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodDomainUsageDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeVodEditingUsageData DescribeVodEditingUsageDataRequest
* @return DescribeVodEditingUsageDataResponse
*/
@Override
public CompletableFuture<DescribeVodEditingUsageDataResponse> describeVodEditingUsageData(DescribeVodEditingUsageDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodEditingUsageData").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodEditingUsageDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodEditingUsageDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>Only playback data in ApsaraVideo Player SDK is collected.</li>
* <li>You can query only data within the last 30 days.</li>
* <li>Before you call this operation, make sure that the following requirements are met:<ul>
* <li>ApsaraVideo Player SDK for Android or iOS<ul>
* <li>ApsaraVideo Player SDK for Android or iOS V5.4.9.2 or later is used.</li>
* <li>A license for ApsaraVideo Player SDK is obtained. For more information, see <a href="https://help.aliyun.com/document_detail/469166.html">Manage licenses</a>.</li>
* <li>The log reporting feature is enabled. By default, the feature is enabled for ApsaraVideo Player SDKs. For more information, see <a href="~~311525#section-dc4-gp6-xk2~~">Integrate ApsaraVideo Player SDK for Android</a> and <a href="~~313855#section-cmf-k7d-jg5~~">Integrate ApsaraVideo Player SDK for iOS</a>.</li>
* </ul>
* </li>
* <li>ApsaraVideo Player SDK for Web<ul>
* <li>ApsaraVideo Player SDK for Web V2.16.0 or later is used.</li>
* <li>A license for <strong>playback quality monitoring</strong> is obtained. To apply for the license, <a href="https://yida.alibaba-inc.com/o/webplayer#/">submit a request on Yida to enable value-added features for ApsaraVideo Player SDK for Web</a>. For more information, see the description of the <code>license</code> parameter in the <a href="~~125572#section-3ty-gwp-6pa~~">API operations</a> topic.</li>
* <li>The log reporting feature is enabled. By default, the feature is enabled for ApsaraVideo Player SDKs.</li>
* </ul>
* </li>
* </ul>
* </li>
* </ul>
*
* @param request the request parameters of DescribeVodMediaPlayData DescribeVodMediaPlayDataRequest
* @return DescribeVodMediaPlayDataResponse
*/
@Override
public CompletableFuture<DescribeVodMediaPlayDataResponse> describeVodMediaPlayData(DescribeVodMediaPlayDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodMediaPlayData").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodMediaPlayDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodMediaPlayDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeVodPlayerCollectData DescribeVodPlayerCollectDataRequest
* @return DescribeVodPlayerCollectDataResponse
*/
@Override
public CompletableFuture<DescribeVodPlayerCollectDataResponse> describeVodPlayerCollectData(DescribeVodPlayerCollectDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodPlayerCollectData").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodPlayerCollectDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodPlayerCollectDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeVodPlayerDimensionData DescribeVodPlayerDimensionDataRequest
* @return DescribeVodPlayerDimensionDataResponse
*/
@Override
public CompletableFuture<DescribeVodPlayerDimensionDataResponse> describeVodPlayerDimensionData(DescribeVodPlayerDimensionDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodPlayerDimensionData").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodPlayerDimensionDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodPlayerDimensionDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeVodPlayerMetricData DescribeVodPlayerMetricDataRequest
* @return DescribeVodPlayerMetricDataResponse
*/
@Override
public CompletableFuture<DescribeVodPlayerMetricDataResponse> describeVodPlayerMetricData(DescribeVodPlayerMetricDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodPlayerMetricData").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodPlayerMetricDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodPlayerMetricDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>The data is collected every 5 minutes. You can call this API operation up to 20 times per second per account. Time granularity
* The time granularity supported by Interval, the maximum time period within which historical data is available, and the data delay vary based on the time range to query, as described in the following table.</p>
* <table>
* <thead>
* <tr>
* <th>Time granularity</th>
* <th>Maximum time range per query</th>
* <th>Historical data available</th>
* <th>Data delay</th>
* </tr>
* </thead>
* <tbody><tr>
* <td>5 minutes</td>
* <td>1 hour</td>
* <td>93 days</td>
* <td>15 minutes</td>
* </tr>
* </tbody></table>
*
* @param request the request parameters of DescribeVodRangeDataByLocateAndIspService DescribeVodRangeDataByLocateAndIspServiceRequest
* @return DescribeVodRangeDataByLocateAndIspServiceResponse
*/
@Override
public CompletableFuture<DescribeVodRangeDataByLocateAndIspServiceResponse> describeVodRangeDataByLocateAndIspService(DescribeVodRangeDataByLocateAndIspServiceRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodRangeDataByLocateAndIspService").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodRangeDataByLocateAndIspServiceResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodRangeDataByLocateAndIspServiceResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <blockquote>
* <ul>
* <li>This operation is available only in the <strong>China (Shanghai)</strong> region.</li>
* <li>You can call the <a href="https://help.aliyun.com/document_detail/69215.html">RefreshVodObjectCaches</a> operation to refresh content and the <a href="https://help.aliyun.com/document_detail/69211.html">PreloadVodObjectCaches</a> operation to prefetch content.</li>
* </ul>
* </blockquote>
*
* @param request the request parameters of DescribeVodRefreshQuota DescribeVodRefreshQuotaRequest
* @return DescribeVodRefreshQuotaResponse
*/
@Override
public CompletableFuture<DescribeVodRefreshQuotaResponse> describeVodRefreshQuota(DescribeVodRefreshQuotaRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodRefreshQuota").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodRefreshQuotaResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodRefreshQuotaResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>If you do not specify the TaskId or ObjectPath parameter, the data in the last three days is returned on the first page. By default, one page displays a maximum of 20 entries. You can specify the TaskId and ObjectPath parameters at the same time.</li>
* </ul>
*
* @param request the request parameters of DescribeVodRefreshTasks DescribeVodRefreshTasksRequest
* @return DescribeVodRefreshTasksResponse
*/
@Override
public CompletableFuture<DescribeVodRefreshTasksResponse> describeVodRefreshTasks(DescribeVodRefreshTasksRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodRefreshTasks").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodRefreshTasksResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodRefreshTasksResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of DescribeVodSSLCertificateList DescribeVodSSLCertificateListRequest
* @return DescribeVodSSLCertificateListResponse
*/
@Override
public CompletableFuture<DescribeVodSSLCertificateListResponse> describeVodSSLCertificateList(DescribeVodSSLCertificateListRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodSSLCertificateList").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodSSLCertificateListResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodSSLCertificateListResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <blockquote>
* <ul>
* <li>This operation is available only in the <strong>China (Shanghai)</strong> region.</li>
* <li>If the time range to query is less than or equal to seven days, the system returns the statistics collected on an hourly basis. If the time range to query is greater than seven days, the system returns the statistics collected on a daily basis. The maximum time range that you can specify to query is 31 days.</li>
* </ul>
* </blockquote>
*
* @param request the request parameters of DescribeVodStorageData DescribeVodStorageDataRequest
* @return DescribeVodStorageDataResponse
*/
@Override
public CompletableFuture<DescribeVodStorageDataResponse> describeVodStorageData(DescribeVodStorageDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodStorageData").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodStorageDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodStorageDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>If you specify a time range within 7 days, the request returns the data based on hours. If you specify a time range longer than 7 days, the request returns the data based on days. The maximum time range is 31 days.</li>
* </ul>
*
* @param request the request parameters of DescribeVodTieringStorageData DescribeVodTieringStorageDataRequest
* @return DescribeVodTieringStorageDataResponse
*/
@Override
public CompletableFuture<DescribeVodTieringStorageDataResponse> describeVodTieringStorageData(DescribeVodTieringStorageDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodTieringStorageData").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodTieringStorageDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodTieringStorageDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>If you specify a time range within 7 days, the request returns the data based on hours. If you specify a time range longer than 7 days, the request returns the data based on days. The maximum time range is 31 days.</li>
* </ul>
*
* @param request the request parameters of DescribeVodTieringStorageRetrievalData DescribeVodTieringStorageRetrievalDataRequest
* @return DescribeVodTieringStorageRetrievalDataResponse
*/
@Override
public CompletableFuture<DescribeVodTieringStorageRetrievalDataResponse> describeVodTieringStorageRetrievalData(DescribeVodTieringStorageRetrievalDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodTieringStorageRetrievalData").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodTieringStorageRetrievalDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodTieringStorageRetrievalDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>If the time range to query is less than or equal to seven days, the system returns the statistics collected on an hourly basis. If the time range to query is greater than seven days, the system returns the statistics collected on a daily basis. The maximum time range that you can specify to query is 31 days.</li>
* </ul>
*
* @param request the request parameters of DescribeVodTranscodeData DescribeVodTranscodeDataRequest
* @return DescribeVodTranscodeDataResponse
*/
@Override
public CompletableFuture<DescribeVodTranscodeDataResponse> describeVodTranscodeData(DescribeVodTranscodeDataRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodTranscodeData").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodTranscodeDataResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodTranscodeDataResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> You can filter domain names by name and status. Fuzzy match is supported for domain name-based query.</p>
* <ul>
* <li>This operation is available only in the China (Shanghai) region.</li>
* </ul>
*
* @param request the request parameters of DescribeVodUserDomains DescribeVodUserDomainsRequest
* @return DescribeVodUserDomainsResponse
*/
@Override
public CompletableFuture<DescribeVodUserDomainsResponse> describeVodUserDomains(DescribeVodUserDomainsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodUserDomains").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodUserDomainsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodUserDomainsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
*
* @param request the request parameters of DescribeVodVerifyContent DescribeVodVerifyContentRequest
* @return DescribeVodVerifyContentResponse
*/
@Override
public CompletableFuture<DescribeVodVerifyContentResponse> describeVodVerifyContent(DescribeVodVerifyContentRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeVodVerifyContent").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeVodVerifyContentResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DescribeVodVerifyContentResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <blockquote>
* <p> You can grant a maximum of 10 application permissions to a RAM user or RAM role.</p>
* </blockquote>
*
* @param request the request parameters of DetachAppPolicyFromIdentity DetachAppPolicyFromIdentityRequest
* @return DetachAppPolicyFromIdentityResponse
*/
@Override
public CompletableFuture<DetachAppPolicyFromIdentityResponse> detachAppPolicyFromIdentity(DetachAppPolicyFromIdentityRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DetachAppPolicyFromIdentity").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DetachAppPolicyFromIdentityResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<DetachAppPolicyFromIdentityResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> To use the secure download feature, you must enable the download feature in the ApsaraVideo VOD console and set the download method to secure download. For more information, see <a href="https://help.aliyun.com/document_detail/86107.html">Configure download settings</a>.</p>
* <ul>
* <li>After you generate a key for secure download, you must configure the key in ApsaraVideo Player SDK. For more information, see <a href="https://help.aliyun.com/document_detail/124735.html">Secure download</a>.</li>
* </ul>
*
* @param request the request parameters of GenerateDownloadSecretKey GenerateDownloadSecretKeyRequest
* @return GenerateDownloadSecretKeyResponse
*/
@Override
public CompletableFuture<GenerateDownloadSecretKeyResponse> generateDownloadSecretKey(GenerateDownloadSecretKeyRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GenerateDownloadSecretKey").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GenerateDownloadSecretKeyResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GenerateDownloadSecretKeyResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GenerateKMSDataKey GenerateKMSDataKeyRequest
* @return GenerateKMSDataKeyResponse
*/
@Override
public CompletableFuture<GenerateKMSDataKeyResponse> generateKMSDataKey(GenerateKMSDataKeyRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GenerateKMSDataKey").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GenerateKMSDataKeyResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GenerateKMSDataKeyResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong> and <strong>China (Shanghai)</strong>.</p>
* <ul>
* <li>Call the <a href="~~SubmitAIImageJob~~">SubmitAIImageJob</a> operation to submit image AI processing jobs before you call this operation to query image AI processing jobs.</li>
* <li>You can query a maximum of 10 jobs of image AI processing in one request.</li>
* </ul>
*
* @param request the request parameters of GetAIImageJobs GetAIImageJobsRequest
* @return GetAIImageJobsResponse
*/
@Override
public CompletableFuture<GetAIImageJobsResponse> getAIImageJobs(GetAIImageJobsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetAIImageJobs").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetAIImageJobsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetAIImageJobsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>ApsaraVideo VOD stores the snapshots of the intelligent review results free of charge for two weeks. After this period, the snapshots are automatically deleted.</p>
*
* @param request the request parameters of GetAIMediaAuditJob GetAIMediaAuditJobRequest
* @return GetAIMediaAuditJobResponse
*/
@Override
public CompletableFuture<GetAIMediaAuditJobResponse> getAIMediaAuditJob(GetAIMediaAuditJobRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetAIMediaAuditJob").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetAIMediaAuditJobResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetAIMediaAuditJobResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong>, <strong>China (Shanghai)</strong>, and <strong>Singapore</strong>.</p>
* <ul>
* <li>Before you call this operation to query details of an AI template, you must obtain the ID of the AI template.</li>
* </ul>
*
* @param request the request parameters of GetAITemplate GetAITemplateRequest
* @return GetAITemplateResponse
*/
@Override
public CompletableFuture<GetAITemplateResponse> getAITemplate(GetAITemplateRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetAITemplate").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetAITemplateResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetAITemplateResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong>, <strong>China (Shanghai)</strong>, and <strong>Singapore</strong>.</p>
* <ul>
* <li>You can obtain the smart tagging results by using the video ID.</li>
* </ul>
*
* @param request the request parameters of GetAIVideoTagResult GetAIVideoTagResultRequest
* @return GetAIVideoTagResultResponse
*/
@Override
public CompletableFuture<GetAIVideoTagResultResponse> getAIVideoTagResult(GetAIVideoTagResultRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetAIVideoTagResult").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetAIVideoTagResultResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetAIVideoTagResultResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can specify multiple accelerated domain names in a request.</p>
*
* @param request the request parameters of GetAppInfos GetAppInfosRequest
* @return GetAppInfosResponse
*/
@Override
public CompletableFuture<GetAppInfosResponse> getAppInfos(GetAppInfosRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetAppInfos").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetAppInfosResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetAppInfosResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can query information about up to 20 auxiliary media assets in a request.</p>
*
* @param request the request parameters of GetAttachedMediaInfo GetAttachedMediaInfoRequest
* @return GetAttachedMediaInfoResponse
*/
@Override
public CompletableFuture<GetAttachedMediaInfoResponse> getAttachedMediaInfo(GetAttachedMediaInfoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetAttachedMediaInfo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetAttachedMediaInfoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetAttachedMediaInfoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetAuditHistory GetAuditHistoryRequest
* @return GetAuditHistoryResponse
*/
@Override
public CompletableFuture<GetAuditHistoryResponse> getAuditHistory(GetAuditHistoryRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetAuditHistory").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetAuditHistoryResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetAuditHistoryResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetCategories GetCategoriesRequest
* @return GetCategoriesResponse
*/
@Override
public CompletableFuture<GetCategoriesResponse> getCategories(GetCategoriesRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetCategories").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetCategoriesResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetCategoriesResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetDailyPlayRegionStatis GetDailyPlayRegionStatisRequest
* @return GetDailyPlayRegionStatisResponse
*/
@Override
public CompletableFuture<GetDailyPlayRegionStatisResponse> getDailyPlayRegionStatis(GetDailyPlayRegionStatisRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetDailyPlayRegionStatis").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetDailyPlayRegionStatisResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetDailyPlayRegionStatisResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong>, <strong>China (Shanghai)</strong>, and <strong>Singapore</strong>.</p>
* <ul>
* <li>You can query information only about the default AI template for automated review.</li>
* </ul>
*
* @param request the request parameters of GetDefaultAITemplate GetDefaultAITemplateRequest
* @return GetDefaultAITemplateResponse
*/
@Override
public CompletableFuture<GetDefaultAITemplateResponse> getDefaultAITemplate(GetDefaultAITemplateRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetDefaultAITemplate").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetDefaultAITemplateResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetDefaultAITemplateResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> This operation is supported only in the China (Shanghai) and China (Beijing) regions.</p>
* <ul>
* <li>You can call this operation to query the watermark content after you call the <a href="~~SubmitDigitalWatermarkExtractJob~~">SubmitDigitalWatermarkExtractJob</a> operation to extract the copyright or user-tracing watermark in a video.</li>
* <li>You can query watermark content extracted only from watermark extraction jobs that are submitted in the last 2 years.</li>
* </ul>
*
* @param request the request parameters of GetDigitalWatermarkExtractResult GetDigitalWatermarkExtractResultRequest
* @return GetDigitalWatermarkExtractResultResponse
*/
@Override
public CompletableFuture<GetDigitalWatermarkExtractResultResponse> getDigitalWatermarkExtractResult(GetDigitalWatermarkExtractResultRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetDigitalWatermarkExtractResult").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetDigitalWatermarkExtractResultResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetDigitalWatermarkExtractResultResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetEditingProject GetEditingProjectRequest
* @return GetEditingProjectResponse
*/
@Override
public CompletableFuture<GetEditingProjectResponse> getEditingProject(GetEditingProjectRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetEditingProject").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetEditingProjectResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetEditingProjectResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>During editing, you can add materials to the timeline, but some of them may not be used.</p>
*
* @param request the request parameters of GetEditingProjectMaterials GetEditingProjectMaterialsRequest
* @return GetEditingProjectMaterialsResponse
*/
@Override
public CompletableFuture<GetEditingProjectMaterialsResponse> getEditingProjectMaterials(GetEditingProjectMaterialsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetEditingProjectMaterials").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetEditingProjectMaterialsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetEditingProjectMaterialsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetImageInfo GetImageInfoRequest
* @return GetImageInfoResponse
*/
@Override
public CompletableFuture<GetImageInfoResponse> getImageInfo(GetImageInfoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetImageInfo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetImageInfoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetImageInfoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> You can call the <a href="~~CreateUploadImage~~">CreateUploadImage</a> operation to upload images to ApsaraVideo VOD and call this operation to query the basic information about multiple images at a time.</p>
* <ul>
* <li>To query information about video snapshots, call the <a href="~~ListSnapshots~~">ListSnapshots</a> operation.</li>
* <li>You can specify up to 20 image IDs in one call.</li>
* </ul>
*
* @param request the request parameters of GetImageInfos GetImageInfosRequest
* @return GetImageInfosResponse
*/
@Override
public CompletableFuture<GetImageInfosResponse> getImageInfos(GetImageInfosRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetImageInfos").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetImageInfosResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetImageInfosResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <hr>
* <p>You can call this operation to query only asynchronous tasks of the last six months. The types of tasks that you can query include transcoding tasks, snapshot tasks, and AI tasks.
* <strong>QPS limit</strong>
* You can call this operation up to 15 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/342790.html">QPS limits</a>.</p>
*
* @param request the request parameters of GetJobDetail GetJobDetailRequest
* @return GetJobDetailResponse
*/
@Override
public CompletableFuture<GetJobDetailResponse> getJobDetail(GetJobDetailRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetJobDetail").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetJobDetailResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetJobDetailResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>If notifications for the <a href="https://help.aliyun.com/document_detail/89576.html">CreateAuditComplete</a> event are configured, event notifications are sent to the callback URL after automated review is complete. You can call this operation to query the details of audio review results.</p>
*
* @param request the request parameters of GetMediaAuditAudioResultDetail GetMediaAuditAudioResultDetailRequest
* @return GetMediaAuditAudioResultDetailResponse
*/
@Override
public CompletableFuture<GetMediaAuditAudioResultDetailResponse> getMediaAuditAudioResultDetail(GetMediaAuditAudioResultDetailRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetMediaAuditAudioResultDetail").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetMediaAuditAudioResultDetailResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetMediaAuditAudioResultDetailResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetMediaAuditResult GetMediaAuditResultRequest
* @return GetMediaAuditResultResponse
*/
@Override
public CompletableFuture<GetMediaAuditResultResponse> getMediaAuditResult(GetMediaAuditResultRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetMediaAuditResult").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetMediaAuditResultResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetMediaAuditResultResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> By default, only details of snapshots that violate content regulations and potentially violate content regulations are returned.</p>
* <ul>
* <li>ApsaraVideo VOD stores the snapshots in the automated review results free of charge for two weeks. After this period, the snapshots are automatically deleted.</li>
* <li>This operation is available only in the Singapore region.</li>
* </ul>
*
* @param request the request parameters of GetMediaAuditResultDetail GetMediaAuditResultDetailRequest
* @return GetMediaAuditResultDetailResponse
*/
@Override
public CompletableFuture<GetMediaAuditResultDetailResponse> getMediaAuditResultDetail(GetMediaAuditResultDetailRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetMediaAuditResultDetail").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetMediaAuditResultDetailResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetMediaAuditResultDetailResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <blockquote>
* <p> By default, only details of snapshots that violate content regulations and potentially violate content regulations are returned.
* This operation is available only in the Singapore region.</p>
* </blockquote>
*
* @param request the request parameters of GetMediaAuditResultTimeline GetMediaAuditResultTimelineRequest
* @return GetMediaAuditResultTimelineResponse
*/
@Override
public CompletableFuture<GetMediaAuditResultTimelineResponse> getMediaAuditResultTimeline(GetMediaAuditResultTimelineRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetMediaAuditResultTimeline").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetMediaAuditResultTimelineResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetMediaAuditResultTimelineResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Regions that support this operation: <strong>China (Beijing)</strong>, <strong>China (Shanghai)</strong>, and <strong>Singapore</strong>.</p>
*
* @param request the request parameters of GetMediaDNAResult GetMediaDNAResultRequest
* @return GetMediaDNAResultResponse
*/
@Override
public CompletableFuture<GetMediaDNAResultResponse> getMediaDNAResult(GetMediaDNAResultRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetMediaDNAResult").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetMediaDNAResultResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetMediaDNAResultResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can query the information about all media files or a specific media file in a refresh or prefetch job.</p>
* <h3>QPS limits</h3>
* <p>You can call this operation up to 50 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/342790.html">QPS limits on API operations in ApsaraVideo VoD</a>.</p>
*
* @param request the request parameters of GetMediaRefreshJobs GetMediaRefreshJobsRequest
* @return GetMediaRefreshJobsResponse
*/
@Override
public CompletableFuture<GetMediaRefreshJobsResponse> getMediaRefreshJobs(GetMediaRefreshJobsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetMediaRefreshJobs").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetMediaRefreshJobsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetMediaRefreshJobsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <blockquote>
* <p>For more information, see <a href="https://help.aliyun.com/document_detail/55627.html">Event notification</a>.</p>
* </blockquote>
*
* @param request the request parameters of GetMessageCallback GetMessageCallbackRequest
* @return GetMessageCallbackResponse
*/
@Override
public CompletableFuture<GetMessageCallbackResponse> getMessageCallback(GetMessageCallbackRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetMessageCallback").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetMessageCallbackResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetMessageCallbackResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can obtain complete information about the source file only after a stream is transcoded.</p>
*
* @param request the request parameters of GetMezzanineInfo GetMezzanineInfoRequest
* @return GetMezzanineInfoResponse
*/
@Override
public CompletableFuture<GetMezzanineInfoResponse> getMezzanineInfo(GetMezzanineInfoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetMezzanineInfo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetMezzanineInfoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetMezzanineInfoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> <strong>Make sure that you understand the billing method and price of ApsaraVideo VOD before you call this operation. You are charged for outbound traffic when you download or play videos based on URLs in ApsaraVideo VOD. For more information about billing of outbound traffic, see <a href="~~188308#section-rwh-e88-f7j~~">Billing of outbound traffic</a>. If you have configured an accelerated domain name, see <a href="~~188308#section-c5t-oq9-15e~~">Billing of the acceleration service</a>. If you have activated the acceleration service, you are charged acceleration fees when you upload media files to ApsaraVideo VOD. For more information, see <a href="~~188310#section_sta_zm2_tsv~~">Billing of acceleration traffic</a>.</strong></p>
* <ul>
* <li>Only videos whose Status is Normal can be played. For more information, see <a href="https://help.aliyun.com/document_detail/57290.html">Overview</a>.</li>
* <li>If video playback fails, you can call the <a href="~~GetMezzanineInfo~~">GetMezzanineInfo</a> operation to check whether the video source information is correct.</li>
* </ul>
*
* @param request the request parameters of GetPlayInfo GetPlayInfoRequest
* @return GetPlayInfoResponse
*/
@Override
public CompletableFuture<GetPlayInfoResponse> getPlayInfo(GetPlayInfoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetPlayInfo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetPlayInfoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetPlayInfoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> An audio or video file may be transcoded multiple times. This operation returns only the latest transcoding summary.</p>
* <ul>
* <li>You can query transcoding summaries for a maximum of 10 audio and video files in one request.</li>
* <li>You can call the <a href="https://help.aliyun.com/document_detail/109120.html">ListTranscodeTask</a> operation to query historical transcoding tasks.</li>
* <li>**You can call this operation to query information only about transcoding tasks created within the past year.</li>
* </ul>
*
* @param request the request parameters of GetTranscodeSummary GetTranscodeSummaryRequest
* @return GetTranscodeSummaryResponse
*/
@Override
public CompletableFuture<GetTranscodeSummaryResponse> getTranscodeSummary(GetTranscodeSummaryRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetTranscodeSummary").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetTranscodeSummaryResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetTranscodeSummaryResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to query only transcoding tasks created within the past year.</p>
*
* @param request the request parameters of GetTranscodeTask GetTranscodeTaskRequest
* @return GetTranscodeTaskResponse
*/
@Override
public CompletableFuture<GetTranscodeTaskResponse> getTranscodeTask(GetTranscodeTaskRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetTranscodeTask").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetTranscodeTaskResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetTranscodeTaskResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This operation returns information about the specified transcoding template group and the configurations of all the transcoding templates in the group.</p>
*
* @param request the request parameters of GetTranscodeTemplateGroup GetTranscodeTemplateGroupRequest
* @return GetTranscodeTemplateGroupResponse
*/
@Override
public CompletableFuture<GetTranscodeTemplateGroupResponse> getTranscodeTemplateGroup(GetTranscodeTemplateGroupRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetTranscodeTemplateGroup").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetTranscodeTemplateGroupResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetTranscodeTemplateGroupResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can query the information about a URL-based upload job by specifying the upload URL or using the job ID returned when you upload media files. The information includes the status of the upload job, custom configurations, the time when the job was created, and the time when the job was complete.
* If the upload fails, you can view the error code and error message. If the upload is successful, you can obtain the video ID.</p>
*
* @param request the request parameters of GetURLUploadInfos GetURLUploadInfosRequest
* @return GetURLUploadInfosResponse
*/
@Override
public CompletableFuture<GetURLUploadInfosResponse> getURLUploadInfos(GetURLUploadInfosRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetURLUploadInfos").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetURLUploadInfosResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetURLUploadInfosResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> You can call this operation to obtain the upload details only about audio and video files.</p>
* <ul>
* <li>If you use the ApsaraVideo VOD console to upload audio and video files, you can call this operation to query information such as the upload ratio. If you use an upload SDK to upload audio and video files, make sure that the version of the <a href="https://help.aliyun.com/document_detail/52200.html">upload SDK</a> meets one of the following requirements:<ul>
* <li>The version of the upload SDK for Java is 1.4.4 or later.</li>
* <li>The version of the upload SDK for C++ is 1.0.0 or later.</li>
* <li>The version of the upload SDK for PHP is 1.0.2 or later.</li>
* <li>The version of the upload SDK for Python is 1.3.0 or later.</li>
* <li>The version of the upload SDK for JavaScript is 1.4.0 or later.</li>
* <li>The version of the upload SDK for Android is 1.5.0 or later.</li>
* <li>The version of the upload SDK for iOS is 1.5.0 or later.</li>
* </ul>
* </li>
* </ul>
*
* @param request the request parameters of GetUploadDetails GetUploadDetailsRequest
* @return GetUploadDetailsResponse
*/
@Override
public CompletableFuture<GetUploadDetailsResponse> getUploadDetails(GetUploadDetailsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetUploadDetails").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetUploadDetailsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetUploadDetailsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>After a media file is uploaded, ApsaraVideo VOD processes the source file. Then, information about the media file is asynchronously generated. You can configure notifications for the <a href="https://help.aliyun.com/document_detail/99935.html">VideoAnalysisComplete</a> event and call this operation to query information about a media file after you receive notifications for the <a href="https://help.aliyun.com/document_detail/99935.html">VideoAnalysisComplete</a> event. For more information, see <a href="https://help.aliyun.com/document_detail/55627.html">Overview</a>.</p>
*
* @param request the request parameters of GetVideoInfo GetVideoInfoRequest
* @return GetVideoInfoResponse
*/
@Override
public CompletableFuture<GetVideoInfoResponse> getVideoInfo(GetVideoInfoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetVideoInfo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetVideoInfoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetVideoInfoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> You can specify up to 20 audio or video file IDs in each request.</p>
* <ul>
* <li>After a media file is uploaded, ApsaraVideo VOD processes the source file. Then, information about the media file is asynchronously generated. You can configure notifications for the <a href="https://help.aliyun.com/document_detail/99935.html">VideoAnalysisComplete</a> event and call this operation to query information about a media file after you receive notifications for the <a href="https://help.aliyun.com/document_detail/99935.html">VideoAnalysisComplete</a> event. For more information, see <a href="https://help.aliyun.com/document_detail/55627.html">Overview</a>.</li>
* </ul>
*
* @param request the request parameters of GetVideoInfos GetVideoInfosRequest
* @return GetVideoInfosResponse
*/
@Override
public CompletableFuture<GetVideoInfosResponse> getVideoInfos(GetVideoInfosRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetVideoInfos").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetVideoInfosResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetVideoInfosResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to query information about media files based on the filter conditions that you specify, such as video status and category ID. Information about a maximum of <strong>5,000</strong> media files can be returned for each request. We recommend that you set the StartTime and EndTime parameters to specify a time range for each request. For more information about how to query information about more media files or even all media files, see <a href="https://help.aliyun.com/document_detail/86044.html">SearchMedia</a>.</p>
*
* @param request the request parameters of GetVideoList GetVideoListRequest
* @return GetVideoListResponse
*/
@Override
public CompletableFuture<GetVideoListResponse> getVideoList(GetVideoListRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetVideoList").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetVideoListResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetVideoListResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> You can call this operation to obtain a playback credential when you use ApsaraVideo Player SDK to play a media file based on PlayAuth. The credential is used to obtain the playback URL. For more information, see <a href="https://help.aliyun.com/document_detail/125579.html">ApsaraVideo Player SDK</a>.</p>
* <ul>
* <li>You cannot obtain the playback URL of a video by using a credential that has expired. A new credential is required.</li>
* </ul>
*
* @param request the request parameters of GetVideoPlayAuth GetVideoPlayAuthRequest
* @return GetVideoPlayAuthResponse
*/
@Override
public CompletableFuture<GetVideoPlayAuthResponse> getVideoPlayAuth(GetVideoPlayAuthRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetVideoPlayAuth").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetVideoPlayAuthResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetVideoPlayAuthResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetVodTemplate GetVodTemplateRequest
* @return GetVodTemplateResponse
*/
@Override
public CompletableFuture<GetVodTemplateResponse> getVodTemplate(GetVodTemplateRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetVodTemplate").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetVodTemplateResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetVodTemplateResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of GetWatermark GetWatermarkRequest
* @return GetWatermarkResponse
*/
@Override
public CompletableFuture<GetWatermarkResponse> getWatermark(GetWatermarkRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetWatermark").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetWatermarkResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<GetWatermarkResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong> and <strong>China (Shanghai)</strong>.</p>
* <ul>
* <li>You can call this operation to query AI processing results about images of a specified video. Images of different videos cannot be queried in one request.</li>
* </ul>
*
* @param request the request parameters of ListAIImageInfo ListAIImageInfoRequest
* @return ListAIImageInfoResponse
*/
@Override
public CompletableFuture<ListAIImageInfoResponse> listAIImageInfo(ListAIImageInfoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListAIImageInfo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListAIImageInfoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListAIImageInfoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong>, <strong>China (Shanghai)</strong>, and <strong>Singapore</strong>.</p>
* <ul>
* <li>You can call this operation to query video fingerprinting jobs and smart tagging jobs.</li>
* </ul>
*
* @param request the request parameters of ListAIJob ListAIJobRequest
* @return ListAIJobResponse
*/
@Override
public CompletableFuture<ListAIJobResponse> listAIJob(ListAIJobRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListAIJob").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListAIJobResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListAIJobResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong>, <strong>China (Shanghai)</strong>, and <strong>Singapore</strong>.</p>
* <ul>
* <li>You can call this operation to query AI templates of a specified type.</li>
* </ul>
*
* @param request the request parameters of ListAITemplate ListAITemplateRequest
* @return ListAITemplateResponse
*/
@Override
public CompletableFuture<ListAITemplateResponse> listAITemplate(ListAITemplateRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListAITemplate").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListAITemplateResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListAITemplateResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <p>You can query applications based on states.</p>
* <h3><a href="#qps-"></a>QPS limit</h3>
* <p>You can call this operation up to 30 times per second per account. Requests that exceed this limit are dropped and you may experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/342790.html">QPS limits on API operations</a>.</p>
*
* @param request the request parameters of ListAppInfo ListAppInfoRequest
* @return ListAppInfoResponse
*/
@Override
public CompletableFuture<ListAppInfoResponse> listAppInfo(ListAppInfoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListAppInfo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListAppInfoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListAppInfoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <blockquote>
* <p>The IdentityType and IdentityName parameters take effect only when an identity assumes the application administrator role to call this operation. Otherwise, only application policies that are attached to the current identity are returned.</p>
* </blockquote>
*
* @param request the request parameters of ListAppPoliciesForIdentity ListAppPoliciesForIdentityRequest
* @return ListAppPoliciesForIdentityResponse
*/
@Override
public CompletableFuture<ListAppPoliciesForIdentityResponse> listAppPoliciesForIdentity(ListAppPoliciesForIdentityRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListAppPoliciesForIdentity").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListAppPoliciesForIdentityResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListAppPoliciesForIdentityResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ListAuditSecurityIp ListAuditSecurityIpRequest
* @return ListAuditSecurityIpResponse
*/
@Override
public CompletableFuture<ListAuditSecurityIpResponse> listAuditSecurityIp(ListAuditSecurityIpRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListAuditSecurityIp").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListAuditSecurityIpResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListAuditSecurityIpResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ListDynamicImage ListDynamicImageRequest
* @return ListDynamicImageResponse
*/
@Override
public CompletableFuture<ListDynamicImageResponse> listDynamicImage(ListDynamicImageRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListDynamicImage").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListDynamicImageResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListDynamicImageResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <hr>
* <ul>
* <li>You can call the <a href="https://apiworkbench.aliyun-inc.com/document/vod/2017-03-21/GetJobDetail?spm=openapi-amp.newDocPublishment.0.0.616a281fSegn0e">GetJobDetail</a> operation to query detailed information about the tasks.</li>
* <li>You can call this operation to query only asynchronous tasks of the last six months. The types of tasks that you can query include transcoding tasks, snapshot tasks, and AI tasks.
* <strong>QPS limits</strong>
* You can call this operation up to 15 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/342790.html">QPS limits</a>.</li>
* </ul>
*
* @param request the request parameters of ListJobInfo ListJobInfoRequest
* @return ListJobInfoResponse
*/
@Override
public CompletableFuture<ListJobInfoResponse> listJobInfo(ListJobInfoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListJobInfo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListJobInfoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListJobInfoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can query up to 5,000 videos based on the specified filter condition.</p>
*
* @param request the request parameters of ListLiveRecordVideo ListLiveRecordVideoRequest
* @return ListLiveRecordVideoResponse
*/
@Override
public CompletableFuture<ListLiveRecordVideoResponse> listLiveRecordVideo(ListLiveRecordVideoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListLiveRecordVideo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListLiveRecordVideoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListLiveRecordVideoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>If multiple snapshots exist for a video, you can call this operation to query information about the latest snapshot.</p>
*
* @param request the request parameters of ListSnapshots ListSnapshotsRequest
* @return ListSnapshotsResponse
*/
@Override
public CompletableFuture<ListSnapshotsResponse> listSnapshots(ListSnapshotsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListSnapshots").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListSnapshotsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListSnapshotsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> You can call the <a href="https://help.aliyun.com/document_detail/109121.html">GetTranscodeTask</a> operation to query details about transcoding jobs.</p>
* <ul>
* <li><strong>You can call this operation to query only transcoding tasks created within the past year.</strong></li>
* </ul>
*
* @param request the request parameters of ListTranscodeTask ListTranscodeTaskRequest
* @return ListTranscodeTaskResponse
*/
@Override
public CompletableFuture<ListTranscodeTaskResponse> listTranscodeTask(ListTranscodeTaskRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListTranscodeTask").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListTranscodeTaskResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListTranscodeTaskResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <blockquote>
* <p>This operation does not return the configurations of transcoding templates in each transcoding template group. To query the configurations of transcoding templates in a specific transcoding template group, call the <a href="https://help.aliyun.com/document_detail/102670.html">GetTranscodeTemplateGroup</a> operation.</p>
* </blockquote>
*
* @param request the request parameters of ListTranscodeTemplateGroup ListTranscodeTemplateGroupRequest
* @return ListTranscodeTemplateGroupResponse
*/
@Override
public CompletableFuture<ListTranscodeTemplateGroupResponse> listTranscodeTemplateGroup(ListTranscodeTemplateGroupRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListTranscodeTemplateGroup").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListTranscodeTemplateGroupResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListTranscodeTemplateGroupResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ListVodTemplate ListVodTemplateRequest
* @return ListVodTemplateResponse
*/
@Override
public CompletableFuture<ListVodTemplateResponse> listVodTemplate(ListVodTemplateRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListVodTemplate").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListVodTemplateResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListVodTemplateResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of ListWatermark ListWatermarkRequest
* @return ListWatermarkResponse
*/
@Override
public CompletableFuture<ListWatermarkResponse> listWatermark(ListWatermarkRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListWatermark").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListWatermarkResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ListWatermarkResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of MoveAppResource MoveAppResourceRequest
* @return MoveAppResourceResponse
*/
@Override
public CompletableFuture<MoveAppResourceResponse> moveAppResource(MoveAppResourceRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("MoveAppResource").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(MoveAppResourceResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<MoveAppResourceResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <blockquote>
* <ul>
* <li>This operation is available only in the <strong>China (Shanghai)</strong> region.</li>
* <li>You can submit a maximum of 500 requests to prefetch resources based on URLs each day by using an Alibaba Cloud account. You cannot prefetch resources based on directories.</li>
* <li>You can call the <a href="https://help.aliyun.com/document_detail/69215.html">RefreshVodObjectCaches</a> operation to refresh content and the <a href="https://help.aliyun.com/document_detail/69211.htmll">PreloadVodObjectCaches</a> operation to prefetch content.</li>
* </ul>
* </blockquote>
*
* @param request the request parameters of PreloadVodObjectCaches PreloadVodObjectCachesRequest
* @return PreloadVodObjectCachesResponse
*/
@Override
public CompletableFuture<PreloadVodObjectCachesResponse> preloadVodObjectCaches(PreloadVodObjectCachesRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("PreloadVodObjectCaches").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(PreloadVodObjectCachesResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<PreloadVodObjectCachesResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> <strong>Make sure that you understand the billing method and price of ApsaraVideo VOD before you call this operation. You are charged for using the online editing feature. For more information, see <a href="~~188310#section-pyv-b8h-bo7~~">Billing</a>.</strong></p>
* <ul>
* <li>This operation returns only the submission result of a video production task. When the submission result is returned, video production may still be in progress. After a video production task is submitted, the task is queued in the background for asynchronous processing.</li>
* <li>The source files that are used in the timeline of an online editing project can be materials directly uploaded to the online project or selected from the media asset library. Only media assets that are in the Normal state can be used in the project.</li>
* <li>Videos are produced based on ProjectId and Timeline. The following content describes the parameter configurations:<ul>
* <li>You must specify ProjectId or Timeline. If you leave both parameters empty, the video cannot be produced.</li>
* <li>If you specify Timeline and leave ProjectId empty, the system automatically creates an online editing project based on Timeline and adds the materials specified in the Timeline to the project to produce videos.</li>
* <li>If you specify ProjectId and leave Timeline empty, the system automatically uses the latest timeline information of the project to produce videos.</li>
* <li>If you specify both ProjectId and Timeline, the system automatically uses the timeline information that you specified to produce videos and updates the project timeline and materials. You can also specify other parameters to update the corresponding information about the online editing project.</li>
* </ul>
* </li>
* <li>You can create up to 100 video tracks, 100 image tracks, and 100 subtitle tracks in a project.</li>
* <li>The total size of material files cannot exceed 1 TB.</li>
* <li>The buckets in which the materials reside and where the exported videos are stored must be in the same region as the region where ApsaraVideo VOD is activated.</li>
* <li>The exported videos must meet the following requirements:<ul>
* <li>The width and height of the video image cannot be less than 128 pixels.</li>
* <li>The width and height of the video image cannot exceed 4,096 pixels.</li>
* <li>The width cannot exceed 2,160 pixels.</li>
* </ul>
* </li>
* <li>After a video is produced, the video is automatically uploaded to ApsaraVideo VOD. Then, the <strong>ProduceMediaComplete</strong> and <strong>FileUploadComplete</strong> event notifications are sent to you. After the produced video is transcoded, the <strong>StreamTranscodeComplete</strong> and <strong>TranscodeComplete</strong> event notifications are sent to you.</li>
* <li>You can add special effects to the video. For more information, see <a href="https://help.aliyun.com/document_detail/69082.html">Special effects</a>.</li>
* </ul>
*
* @param request the request parameters of ProduceEditingProjectVideo ProduceEditingProjectVideoRequest
* @return ProduceEditingProjectVideoResponse
*/
@Override
public CompletableFuture<ProduceEditingProjectVideoResponse> produceEditingProjectVideo(ProduceEditingProjectVideoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ProduceEditingProjectVideo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ProduceEditingProjectVideoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<ProduceEditingProjectVideoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> ApsaraVideo VOD allows you to purge and prefetch resources. The purge feature forces the point of presence (POP) to clear cached resources and retrieve the latest resources from origin servers. The prefetch feature allows the POP to retrieve frequently accessed resources from origin servers during off-peak hours. This increases the cache hit ratio.</p>
* <ul>
* <li>You can call this operation to submit purge or prefetch tasks based on the media ID. You can also specify the format and resolution of the media streams to purge or prefetch based on your business requirements.</li>
* <li>You can submit a maximum of 20 purge or prefetch tasks at a time.</li>
* </ul>
*
* @param request the request parameters of RefreshMediaPlayUrls RefreshMediaPlayUrlsRequest
* @return RefreshMediaPlayUrlsResponse
*/
@Override
public CompletableFuture<RefreshMediaPlayUrlsResponse> refreshMediaPlayUrls(RefreshMediaPlayUrlsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("RefreshMediaPlayUrls").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RefreshMediaPlayUrlsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<RefreshMediaPlayUrlsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can also call this operation to overwrite the source file of an audio or video file. After you call this operation, the system obtains the upload URL and uploads a new source file without changing the ID of the audio or video file. If you have configured transcoding or snapshot capture for the upload, the transcoding or snapshot capture job is automatically triggered. For more information, see <a href="https://help.aliyun.com/document_detail/55397.html">Upload URLs and credentials</a>.</p>
*
* @param request the request parameters of RefreshUploadVideo RefreshUploadVideoRequest
* @return RefreshUploadVideoResponse
*/
@Override
public CompletableFuture<RefreshUploadVideoResponse> refreshUploadVideo(RefreshUploadVideoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("RefreshUploadVideo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RefreshUploadVideoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<RefreshUploadVideoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* <ul>
* <li>You can submit a maximum of 2,000 requests to refresh resources based on URLs and 100 requests to refresh resources based on directories each day by using an Alibaba Cloud account.</li>
* <li>You can call the <a href="https://help.aliyun.com/document_detail/69215.html">RefreshVodObjectCaches</a> operation to refresh content and the <a href="https://help.aliyun.com/document_detail/69211.html">PreloadVodObjectCaches</a> operation to prefetch content.</li>
* </ul>
*
* @param request the request parameters of RefreshVodObjectCaches RefreshVodObjectCachesRequest
* @return RefreshVodObjectCachesResponse
*/
@Override
public CompletableFuture<RefreshVodObjectCachesResponse> refreshVodObjectCaches(RefreshVodObjectCachesRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("RefreshVodObjectCaches").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RefreshVodObjectCachesResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<RefreshVodObjectCachesResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> After you add an OSS bucket to ApsaraVideo VOD, you must register media files in the OSS bucket to generate the required information. Then, you can use media IDs for features such as transcoding, snapshot capture, and AI processing.use features such as xxx on media files by specifying their IDs?</p>
* <ul>
* <li>You can register up to 10 media files in an OSS bucket in a request. The media files must be stored in the same bucket.</li>
* <li>If you do not specify a transcoding template group ID when you upload a media file to ApsaraVideo VOD, the media file is automatically transcoded based on the default template group. If you do not specify a transcoding template group ID after you register a media file, the media file is not automatically transcoded. The registered media files are automatically transcoded only if you specify a transcoding template group ID.</li>
* <li>If the media file that you want to register has been registered, this operation returns only the unique media ID that is associated with the media file. No further operation is performed.</li>
* <li>Make sure that the media file that you want to register has a valid suffix. Otherwise, the registration fails.</li>
* </ul>
*
* @param request the request parameters of RegisterMedia RegisterMediaRequest
* @return RegisterMediaResponse
*/
@Override
public CompletableFuture<RegisterMediaResponse> registerMedia(RegisterMediaRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("RegisterMedia").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RegisterMediaResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<RegisterMediaResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can call this operation to restore only Archive and Cold Archive audio and video files. You can access the audio and video files after the files are restored. You cannot change the storage class of an audio or video file that is being restored. You are charged for the retrieval traffic generated during restoration. After a Cold Archive audio or video file is restored, a Standard replica of the file is generated for access. You are charged for the storage of the replica before the file returns to the frozen state.</p>
*
* @param request the request parameters of RestoreMedia RestoreMediaRequest
* @return RestoreMediaResponse
*/
@Override
public CompletableFuture<RestoreMediaResponse> restoreMedia(RestoreMediaRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("RestoreMedia").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RestoreMediaResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<RestoreMediaResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of SearchEditingProject SearchEditingProjectRequest
* @return SearchEditingProjectResponse
*/
@Override
public CompletableFuture<SearchEditingProjectResponse> searchEditingProject(SearchEditingProjectRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SearchEditingProject").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SearchEditingProjectResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SearchEditingProjectResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>The maximum number of data records that you can query varies based on the method used to query the data. You can use the following methods to query data:</p>
* <ul>
* <li>Method 1: Traverse data by page
* You can use the PageNo and PageSize parameters to traverse up to 5,000 data records that meet the specified filter condition. PageNo specifies the page number and PageSize specifies the number of data records displayed on a page. If the number of data records that meet the specified filter condition exceeds 5,000, change the filter conditions to narrow down the results. You cannot use this method to traverse all data records. If you want to traverse more data records, use Method 2.</li>
* <li>Method 2: Traverse all data (available only for audio and video files)
* You can use this method to traverse up to 2 million data records related to audio and video files. If the number of data records that meet the specified filter condition exceeds 2 million, change the filter conditions to narrow down the results. To traverse data page by page, you must set the PageNo, PageSize, and ScrollToken parameters. The total number of data records from the current page to the target page cannot exceed 100. For example, you set PageSize to 20. The following content describes the traverse logic:<ul>
* <li>When the PageNo parameter is set to 1, you can traverse data records from page 1 to page 5.</li>
* <li>When the PageNo parameter is set to 2, you can traverse data records from page 2 to page 6.
* Make sure that you set the appropriate page number and page size, and use a traverse method based on the number of results that meet your filter condition.</li>
* </ul>
* </li>
* </ul>
*
* @param request the request parameters of SearchMedia SearchMediaRequest
* @return SearchMediaResponse
*/
@Override
public CompletableFuture<SearchMediaResponse> searchMedia(SearchMediaRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SearchMedia").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SearchMediaResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SearchMediaResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can play videos in the Checking or Blocked state only from the IP addresses that are added to review security groups.</p>
*
* @param request the request parameters of SetAuditSecurityIp SetAuditSecurityIpRequest
* @return SetAuditSecurityIpResponse
*/
@Override
public CompletableFuture<SetAuditSecurityIpResponse> setAuditSecurityIp(SetAuditSecurityIpRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SetAuditSecurityIp").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SetAuditSecurityIpResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SetAuditSecurityIpResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <blockquote>
* <p>After you use the cross-domain policy file to update the resources on the origin server, you must refresh the resources that are cached on Alibaba Cloud CDN nodes. You can use the ApsaraVideo VOD console to refresh resources. For more information, see <a href="https://help.aliyun.com/document_detail/86098.html">Refresh and prefetch</a>. Alternatively, you can call the <a href="https://help.aliyun.com/document_detail/69215.html">RefreshVodObjectCaches</a> operation to refresh resources.</p>
* </blockquote>
*
* @param request the request parameters of SetCrossdomainContent SetCrossdomainContentRequest
* @return SetCrossdomainContentResponse
*/
@Override
public CompletableFuture<SetCrossdomainContentResponse> setCrossdomainContent(SetCrossdomainContentRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SetCrossdomainContent").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SetCrossdomainContentResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SetCrossdomainContentResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Specifies an AI template as the default template.</p>
*
* @param request the request parameters of SetDefaultAITemplate SetDefaultAITemplateRequest
* @return SetDefaultAITemplateResponse
*/
@Override
public CompletableFuture<SetDefaultAITemplateResponse> setDefaultAITemplate(SetDefaultAITemplateRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SetDefaultAITemplate").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SetDefaultAITemplateResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SetDefaultAITemplateResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of SetDefaultTranscodeTemplateGroup SetDefaultTranscodeTemplateGroupRequest
* @return SetDefaultTranscodeTemplateGroupResponse
*/
@Override
public CompletableFuture<SetDefaultTranscodeTemplateGroupResponse> setDefaultTranscodeTemplateGroup(SetDefaultTranscodeTemplateGroupRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SetDefaultTranscodeTemplateGroup").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SetDefaultTranscodeTemplateGroupResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SetDefaultTranscodeTemplateGroupResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of SetDefaultWatermark SetDefaultWatermarkRequest
* @return SetDefaultWatermarkResponse
*/
@Override
public CompletableFuture<SetDefaultWatermarkResponse> setDefaultWatermark(SetDefaultWatermarkRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SetDefaultWatermark").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SetDefaultWatermarkResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SetDefaultWatermarkResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of SetEditingProjectMaterials SetEditingProjectMaterialsRequest
* @return SetEditingProjectMaterialsResponse
*/
@Override
public CompletableFuture<SetEditingProjectMaterialsResponse> setEditingProjectMaterials(SetEditingProjectMaterialsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SetEditingProjectMaterials").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SetEditingProjectMaterialsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SetEditingProjectMaterialsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>HTTP callbacks and MNS callbacks are supported. For more information, see <a href="https://help.aliyun.com/document_detail/55627.html">Overview</a>.</p>
*
* @param request the request parameters of SetMessageCallback SetMessageCallbackRequest
* @return SetMessageCallbackResponse
*/
@Override
public CompletableFuture<SetMessageCallbackResponse> setMessageCallback(SetMessageCallbackRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SetMessageCallback").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SetMessageCallbackResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SetMessageCallbackResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <blockquote>
* <p>This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
* </blockquote>
*
* @param request the request parameters of SetVodDomainCertificate SetVodDomainCertificateRequest
* @return SetVodDomainCertificateResponse
*/
@Override
public CompletableFuture<SetVodDomainCertificateResponse> setVodDomainCertificate(SetVodDomainCertificateRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SetVodDomainCertificate").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SetVodDomainCertificateResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SetVodDomainCertificateResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of SetVodDomainSSLCertificate SetVodDomainSSLCertificateRequest
* @return SetVodDomainSSLCertificateResponse
*/
@Override
public CompletableFuture<SetVodDomainSSLCertificateResponse> setVodDomainSSLCertificate(SetVodDomainSSLCertificateRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SetVodDomainSSLCertificate").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SetVodDomainSSLCertificateResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SetVodDomainSSLCertificateResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This operation is available only in the Singapore region.</p>
*
* @param request the request parameters of SubmitAIImageAuditJob SubmitAIImageAuditJobRequest
* @return SubmitAIImageAuditJobResponse
*/
@Override
public CompletableFuture<SubmitAIImageAuditJobResponse> submitAIImageAuditJob(SubmitAIImageAuditJobRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SubmitAIImageAuditJob").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SubmitAIImageAuditJobResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SubmitAIImageAuditJobResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong> and <strong>China (Shanghai)</strong>.</p>
* <ul>
* <li>After you call this operation, you can call the <a href="https://help.aliyun.com/document_detail/186923.html">GetAIImageJobs</a> operation to query the job execution result.</li>
* </ul>
*
* @param request the request parameters of SubmitAIImageJob SubmitAIImageJobRequest
* @return SubmitAIImageJobResponse
*/
@Override
public CompletableFuture<SubmitAIImageJobResponse> submitAIImageJob(SubmitAIImageJobRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SubmitAIImageJob").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SubmitAIImageJobResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SubmitAIImageJobResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> <strong>Make sure that you understand the billing method and price of ApsaraVideo VOD before you call this operation. You are charged for using the smart tagging and video fingerprinting features. For more information, see <a href="~~188310#section-g7l-s3o-9ng~~">Billing of video AI</a>.</strong></p>
* <ul>
* <li>Regions that support the video fingerprinting feature: <strong>China (Beijing)</strong>, <strong>China (Shanghai)</strong>, and <strong>Singapore</strong>. Regions that support the smart tagging feature: <strong>China (Beijing)</strong> and <strong>China (Shanghai)</strong>.</li>
* <li>You need to enable the video fingerprinting feature or the smart tagging feature before you can call this operation to submit jobs. For more information, see <a href="https://help.aliyun.com/document_detail/101148.html">Overview</a>.</li>
* <li>If this is the first time you use the video fingerprinting feature, you must submit a ticket to apply for using the media fingerprint library for free. Otherwise, the video fingerprinting feature will be affected. For more information about how to submit a ticket, see <a href="https://help.aliyun.com/document_detail/464625.html">Contact us</a>.</li>
* <li>After you submit an AI job, ApsaraVideo VOD asynchronously processes the job. The operation may return a response before the job is complete. You can configure the <a href="https://help.aliyun.com/document_detail/55627.html">Event Notification</a> feature and set the callback event to <strong>AI Processing Completed</strong>. After you receive the event notification, you can query the execution result of the AI job.</li>
* </ul>
*
* @param request the request parameters of SubmitAIJob SubmitAIJobRequest
* @return SubmitAIJobResponse
*/
@Override
public CompletableFuture<SubmitAIJobResponse> submitAIJob(SubmitAIJobRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SubmitAIJob").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SubmitAIJobResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SubmitAIJobResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> <strong>Make sure that you understand the billing methods and price of ApsaraVideo VOD before you call this operation. You are charged for using the automated review feature. For more information about billing, submit a ticket or contact your account manager.</strong></p>
* <ul>
* <li>You can call this operation only in the <strong>China (Shanghai)</strong>, <strong>China (Beijing)</strong>, and <strong>Singapore</strong> regions.</li>
* <li>For more information, see <a href="https://help.aliyun.com/document_detail/101148.html">Automated review</a>.</li>
* <li>After an automated review job is complete, the images generated during the review are stored in the VOD bucket for two weeks free of charge. The images are automatically deleted after two weeks.</li>
* </ul>
*
* @param request the request parameters of SubmitAIMediaAuditJob SubmitAIMediaAuditJobRequest
* @return SubmitAIMediaAuditJobResponse
*/
@Override
public CompletableFuture<SubmitAIMediaAuditJobResponse> submitAIMediaAuditJob(SubmitAIMediaAuditJobRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SubmitAIMediaAuditJob").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SubmitAIMediaAuditJobResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SubmitAIMediaAuditJobResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> <strong>Make sure that you understand the billing methods and price of ApsaraVideo VOD before you call this operation. You are charged for generating and extracting digital watermarks. For more information, see <a href="~~188310#62b9c940403se~~">Billing</a>.</strong></p>
* <ul>
* <li>This operation is supported only in the <strong>China (Shanghai)</strong> and <strong>China (Beijing)</strong> regions.</li>
* <li>Before you submit a digital watermark extraction job, make sure that the following conditions are met:<ul>
* <li>The video from which you want to extract the watermark is uploaded to the ApsaraVideo VOD.</li>
* <li>The video from which you want to extract the watermark is longer than 6 minutes.</li>
* </ul>
* </li>
* </ul>
*
* @param request the request parameters of SubmitDigitalWatermarkExtractJob SubmitDigitalWatermarkExtractJobRequest
* @return SubmitDigitalWatermarkExtractJobResponse
*/
@Override
public CompletableFuture<SubmitDigitalWatermarkExtractJobResponse> submitDigitalWatermarkExtractJob(SubmitDigitalWatermarkExtractJobRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SubmitDigitalWatermarkExtractJob").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SubmitDigitalWatermarkExtractJobResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SubmitDigitalWatermarkExtractJobResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> You can capture a part of a video and generate animated images only when the video is in the <strong>Uploaded</strong>, <strong>Transcoding</strong>, <strong>Normal</strong>, <strong>Reviewing</strong>, or <strong>Flagged</strong> state.</p>
* <ul>
* <li>The fees for frame animation are included in your video transcoding bill. You are charged based on the output resolution and the duration. For more information, see <a href="https://help.aliyun.com/document_detail/188308.html">Billing of basic services</a>.</li>
* </ul>
* <h3>QPS limits</h3>
* <p>You can call this operation up to 30 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/342790.html">QPS limit on API operations</a>.</p>
*
* @param request the request parameters of SubmitDynamicImageJob SubmitDynamicImageJobRequest
* @return SubmitDynamicImageJobResponse
*/
@Override
public CompletableFuture<SubmitDynamicImageJobResponse> submitDynamicImageJob(SubmitDynamicImageJobRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SubmitDynamicImageJob").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SubmitDynamicImageJobResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SubmitDynamicImageJobResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>Regions that support this operation: <strong>China (Beijing)</strong>, <strong>China (Shanghai)</strong>, and <strong>Singapore</strong>.</p>
*
* @param request the request parameters of SubmitMediaDNADeleteJob SubmitMediaDNADeleteJobRequest
* @return SubmitMediaDNADeleteJobResponse
*/
@Override
public CompletableFuture<SubmitMediaDNADeleteJobResponse> submitMediaDNADeleteJob(SubmitMediaDNADeleteJobRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SubmitMediaDNADeleteJob").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SubmitMediaDNADeleteJobResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SubmitMediaDNADeleteJobResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> During video preprocessing, videos are transcoded to meet the playback requirements of the production studio. Therefore, <strong>you are charged for video preprocessing</strong>. For more information about billing, see <a href="https://help.aliyun.com/document_detail/64531.html">Billing of production studios</a>.</p>
* <ul>
* <li>You can obtain the preprocessing result in the <a href="https://help.aliyun.com/document_detail/55638.html">TranscodeComplete</a> event notification. If <strong>Preprocess=true</strong> is returned in the event notification, the video is transcoded.</li>
* </ul>
*
* @param request the request parameters of SubmitPreprocessJobs SubmitPreprocessJobsRequest
* @return SubmitPreprocessJobsResponse
*/
@Override
public CompletableFuture<SubmitPreprocessJobsResponse> submitPreprocessJobs(SubmitPreprocessJobsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SubmitPreprocessJobs").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SubmitPreprocessJobsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SubmitPreprocessJobsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> Only snapshots in the JPG format are generated.</p>
* <ul>
* <li>After a snapshot is captured, the <a href="https://help.aliyun.com/document_detail/57337.html">SnapshotComplete</a> callback is fired and EventType=SnapshotComplete, SubType=SpecifiedTime is returned.</li>
* </ul>
* <h3><a href="#qps-"></a>QPS limits</h3>
* <p>You can call this operation up to 30 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/342790.html">QPS limits</a>.</p>
*
* @param request the request parameters of SubmitSnapshotJob SubmitSnapshotJobRequest
* @return SubmitSnapshotJobResponse
*/
@Override
public CompletableFuture<SubmitSnapshotJobResponse> submitSnapshotJob(SubmitSnapshotJobRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SubmitSnapshotJob").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SubmitSnapshotJobResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SubmitSnapshotJobResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3><a href="#"></a>Usage notes</h3>
* <ul>
* <li><strong>Make sure that you understand the billing methods and prices of ApsaraVideo VOD before you call this operation. For more information about billing of the transcoding feature, see <a href="~~188308#section-ejb-nii-nqa~~">Billing of basic services</a>.</strong></li>
* <li>You can transcode a video only in the Uploaded, Normal, or Reviewing state.</li>
* <li>You can obtain the transcoding results from the <a href="https://help.aliyun.com/document_detail/55636.html">StreamTranscodeComplete</a> or <a href="https://help.aliyun.com/document_detail/55638.html">TranscodeComplete</a> callback.</li>
* <li>You can call this operation to dynamically override the subtitle URL in an HTTP Live Streaming (HLS) packaging task. If the packaging task does not contain subtitles, we recommend that you specify the ID of the specific packaging template group when you upload the video instead of calling this operation.</li>
* </ul>
*
* @param request the request parameters of SubmitTranscodeJobs SubmitTranscodeJobsRequest
* @return SubmitTranscodeJobsResponse
*/
@Override
public CompletableFuture<SubmitTranscodeJobsResponse> submitTranscodeJobs(SubmitTranscodeJobsRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SubmitTranscodeJobs").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SubmitTranscodeJobsResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SubmitTranscodeJobsResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p><strong>Make sure that you understand the billing method and price of ApsaraVideo VOD before you call this operation. When you use workflows to process videos, you may be charged for transcoding, encryption, and automated review. For more information, see <a href="https://help.aliyun.com/document_detail/188307.html">Billing overview</a>.</strong></p>
* <ul>
* <li>You can call this operation to initiate a VOD workflow to process media files. For more information, see <a href="https://help.aliyun.com/document_detail/115347.html">Workflows</a>.</li>
* </ul>
*
* @param request the request parameters of SubmitWorkflowJob SubmitWorkflowJobRequest
* @return SubmitWorkflowJobResponse
*/
@Override
public CompletableFuture<SubmitWorkflowJobResponse> submitWorkflowJob(SubmitWorkflowJobRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("SubmitWorkflowJob").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(SubmitWorkflowJobResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<SubmitWorkflowJobResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> Regions that support this operation: <strong>China (Beijing)</strong>, <strong>China (Shanghai)</strong>, and <strong>Singapore</strong>.</p>
* <ul>
* <li>After you call the <a href="https://help.aliyun.com/document_detail/102930.html">AddAITemplate</a> operation to add an AI template, you can call this operation to modify the AI template.</li>
* </ul>
*
* @param request the request parameters of UpdateAITemplate UpdateAITemplateRequest
* @return UpdateAITemplateResponse
*/
@Override
public CompletableFuture<UpdateAITemplateResponse> updateAITemplate(UpdateAITemplateRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateAITemplate").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateAITemplateResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateAITemplateResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h2>QPS limit</h2>
* <p>A single user can perform a maximum of 30 queries per second (QPS). Throttling is triggered when the number of calls per second exceeds the QPS limit. The throttling may affect your business. Thus, we recommend that you observe the QPS limit on this operation.</p>
*
* @param request the request parameters of UpdateAppInfo UpdateAppInfoRequest
* @return UpdateAppInfoResponse
*/
@Override
public CompletableFuture<UpdateAppInfoResponse> updateAppInfo(UpdateAppInfoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateAppInfo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateAppInfoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateAppInfoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>You can modify the information about up to 20 auxiliary media assets at a time.</p>
*
* @param request the request parameters of UpdateAttachedMediaInfos UpdateAttachedMediaInfosRequest
* @return UpdateAttachedMediaInfosResponse
*/
@Override
public CompletableFuture<UpdateAttachedMediaInfosResponse> updateAttachedMediaInfos(UpdateAttachedMediaInfosRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateAttachedMediaInfos").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateAttachedMediaInfosResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateAttachedMediaInfosResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>After you create a category, you can call this operation to modify the name of the category. If you have classified specific media resources to this category, the category names that are labeled on the media resources are automatically updated.</p>
*
* @param request the request parameters of UpdateCategory UpdateCategoryRequest
* @return UpdateCategoryResponse
*/
@Override
public CompletableFuture<UpdateCategoryResponse> updateCategory(UpdateCategoryRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateCategory").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateCategoryResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateCategoryResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of UpdateEditingProject UpdateEditingProjectRequest
* @return UpdateEditingProjectResponse
*/
@Override
public CompletableFuture<UpdateEditingProjectResponse> updateEditingProject(UpdateEditingProjectRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateEditingProject").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateEditingProjectResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateEditingProjectResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> You can call this operation to modify information such as the title, tags, description, and category about images based on image IDs. You must pass in the parameters that you want to modify. Otherwise, parameter configurations are not overwritten.</p>
* <ul>
* <li>You can modify the information about up to 20 images at a time.</li>
* </ul>
*
* @param request the request parameters of UpdateImageInfos UpdateImageInfosRequest
* @return UpdateImageInfosResponse
*/
@Override
public CompletableFuture<UpdateImageInfosResponse> updateImageInfos(UpdateImageInfosRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateImageInfos").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateImageInfosResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateImageInfosResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> This operation is an asynchronous operation. You can call this operation to modify the storage classes of media assets. After the storage class is modified, a callback notification is sent.</p>
* <ul>
* <li>If the storage class of the media asset is Archive or Cold Archive and you call this operation to modify the storage class of the media asset, the media asset is automatically restored before the storage class is modified. You do not need to call the RestoreMedia operation to restore the media asset. You must specify the restoration priority for Cold Archive objects. Default configuration: RestoreTier=Standard.</li>
* <li>Media assets whose storage classes are being modified cannot be used or processed.</li>
* <li>Non-Standard objects have minimum storage durations. If an object is stored for less than the minimum storage duration, the storage class of the object cannot be changed. The following content describes the minimum storage durations for objects in different storage classes: IA or IA storage for source files: 30 days, Archive or Archive storage for source files: 60 days, Cold Archive or Cold Archive for source files: 180 days.</li>
* </ul>
*
* @param request the request parameters of UpdateMediaStorageClass UpdateMediaStorageClassRequest
* @return UpdateMediaStorageClassResponse
*/
@Override
public CompletableFuture<UpdateMediaStorageClassResponse> updateMediaStorageClass(UpdateMediaStorageClassRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateMediaStorageClass").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateMediaStorageClassResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateMediaStorageClassResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>For security purposes, you cannot add, modify, or delete transcoding templates in a transcoding template group that is locked. You can call the <a href="~~GetTranscodeTemplateGroup~~">GetTranscodeTemplateGroup</a> operation to query the configurations of a transcoding template group, check whether the transcoding template group is locked by using the response parameter Locked, and unlock the transcoding template group before you perform operations such as add, modify, and delete transcoding templates.</p>
*
* @param request the request parameters of UpdateTranscodeTemplateGroup UpdateTranscodeTemplateGroupRequest
* @return UpdateTranscodeTemplateGroupResponse
*/
@Override
public CompletableFuture<UpdateTranscodeTemplateGroupResponse> updateTranscodeTemplateGroup(UpdateTranscodeTemplateGroupRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateTranscodeTemplateGroup").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateTranscodeTemplateGroupResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateTranscodeTemplateGroupResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <h3><a href="#"></a></h3>
* <p>You can call this operation to modify information such as the title, tags, and description about audio and video files based on audio or video IDs. You must pass in the parameters that you want to modify. Otherwise, parameter configurations are not overwritten.</p>
* <h3><a href="#qps-"></a>Queries per second (QPS) limit</h3>
* <p>You can call this operation up to 100 times per second per account. Requests that exceed this limit are dropped and you may experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/342790.html">QPS limits on API operations</a>.</p>
*
* @param request the request parameters of UpdateVideoInfo UpdateVideoInfoRequest
* @return UpdateVideoInfoResponse
*/
@Override
public CompletableFuture<UpdateVideoInfoResponse> updateVideoInfo(UpdateVideoInfoRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateVideoInfo").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateVideoInfoResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateVideoInfoResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>The specific parameter of a video is updated only when a new value is passed in the parameter.</p>
*
* @param request the request parameters of UpdateVideoInfos UpdateVideoInfosRequest
* @return UpdateVideoInfosResponse
*/
@Override
public CompletableFuture<UpdateVideoInfosResponse> updateVideoInfos(UpdateVideoInfosRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateVideoInfos").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateVideoInfosResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateVideoInfosResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>UpdateVodDomain</p>
*
* @param request the request parameters of UpdateVodDomain UpdateVodDomainRequest
* @return UpdateVodDomainResponse
*/
@Override
public CompletableFuture<UpdateVodDomainResponse> updateVodDomain(UpdateVodDomainRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateVodDomain").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateVodDomainResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateVodDomainResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* @param request the request parameters of UpdateVodTemplate UpdateVodTemplateRequest
* @return UpdateVodTemplateResponse
*/
@Override
public CompletableFuture<UpdateVodTemplateResponse> updateVodTemplate(UpdateVodTemplateRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateVodTemplate").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateVodTemplateResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateVodTemplateResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> You can modify the name and configurations of the watermark template after you call the <a href="~~AddWatermark~~">AddWatermark</a> operation to create a watermark template.</p>
* <ul>
* <li>You cannot call this operation to change the image in an image watermark template.</li>
* </ul>
*
* @param request the request parameters of UpdateWatermark UpdateWatermarkRequest
* @return UpdateWatermarkResponse
*/
@Override
public CompletableFuture<UpdateWatermarkResponse> updateWatermark(UpdateWatermarkRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateWatermark").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateWatermarkResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UpdateWatermarkResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> You can call this operation to upload media files that are not stored on a local server or device and must be uploaded based on URLs over the Internet.</p>
* <ul>
* <li>The URL-based upload jobs are asynchronous. After you submit a URL-based upload job by calling this operation, it may take hours, even days to complete. If you require high timeliness, we recommend that you use the upload SDK.</li>
* <li>If you configure callbacks, you can receive an <a href="https://help.aliyun.com/document_detail/86326.html">UploadByURLComplete</a> event notification after the media file is uploaded. You can query the upload status by calling the <a href="https://help.aliyun.com/document_detail/106830.html">GetURLUploadInfos</a> operation.</li>
* <li>After you submit an upload job, the job is asynchronously processed on the cloud. All URL-based upload jobs that are submitted in each region are queued. The waiting time for the upload job depends on the number of queued jobs. After the upload job is complete, you can associate the playback URL included in the callback with the media ID.</li>
* <li>You can call this operation only in the <strong>China (Shanghai)</strong> and <strong>Singapore</strong> regions.</li>
* <li>Every time you submit a URL-based upload job, a new media ID is generated in ApsaraVideo VOD.</li>
* </ul>
*
* @param request the request parameters of UploadMediaByURL UploadMediaByURLRequest
* @return UploadMediaByURLResponse
*/
@Override
public CompletableFuture<UploadMediaByURLResponse> uploadMediaByURL(UploadMediaByURLRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UploadMediaByURL").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UploadMediaByURLResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UploadMediaByURLResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p> <strong>Make sure that you understand the billing method and price of ApsaraVideo VOD before you call this operation. You are charged storage fees after you upload media files to ApsaraVideo VOD. For more information, see <a href="~~188308#section_e97_xrp_mzz~~">Billing of media asset storage</a>. If you have activated the acceleration service, you are charged acceleration fees when you upload media files to ApsaraVideo VOD. For more information, see <a href="~~188310#section_sta_zm2_tsv~~">Billing of acceleration traffic</a>.</strong></p>
* <ul>
* <li>This operation is available only in the <strong>China (Shanghai)</strong> and <strong>Singapore</strong> regions.</li>
* <li>You can call this operation to upload transcoded streams to ApsaraVideo VOD from external storage. The following HDR types of transcoded streams are supported: HDR, HDR 10, HLG, Dolby Vision, HDR Vivid, and SDR+.</li>
* <li>You can call the <a href="https://help.aliyun.com/document_detail/106830.html">GetURLUploadInfos</a> operation to query the upload status. After the upload is complete, the callback of the <a href="https://help.aliyun.com/document_detail/376427.html">UploadByURLComplete</a> event is returned.</li>
* </ul>
*
* @param request the request parameters of UploadStreamByURL UploadStreamByURLRequest
* @return UploadStreamByURLResponse
*/
@Override
public CompletableFuture<UploadStreamByURLResponse> uploadStreamByURL(UploadStreamByURLRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UploadStreamByURL").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UploadStreamByURLResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<UploadStreamByURLResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
/**
* <b>description</b> :
* <p>This operation is available only in the <strong>China (Shanghai)</strong> region.</p>
*
* @param request the request parameters of VerifyVodDomainOwner VerifyVodDomainOwnerRequest
* @return VerifyVodDomainOwnerResponse
*/
@Override
public CompletableFuture<VerifyVodDomainOwnerResponse> verifyVodDomainOwner(VerifyVodDomainOwnerRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("VerifyVodDomainOwner").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(VerifyVodDomainOwnerResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<VerifyVodDomainOwnerResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/DefaultAsyncClientBuilder.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321;
import com.aliyun.sdk.gateway.pop.BaseClientBuilder;
public final class DefaultAsyncClientBuilder extends BaseClientBuilder<DefaultAsyncClientBuilder, AsyncClient> {
@Override
protected String serviceName() {
return "vod20170321";
}
@Override
protected final AsyncClient buildClient() {
return new DefaultAsyncClient(super.applyClientConfiguration());
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddAITemplateRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddAITemplateRequest} extends {@link RequestModel}
*
* <p>AddAITemplateRequest</p>
*/
public class AddAITemplateRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TemplateConfig")
@com.aliyun.core.annotation.Validation(required = true)
private String templateConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TemplateName")
@com.aliyun.core.annotation.Validation(required = true)
private String templateName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TemplateType")
@com.aliyun.core.annotation.Validation(required = true)
private String templateType;
private AddAITemplateRequest(Builder builder) {
super(builder);
this.templateConfig = builder.templateConfig;
this.templateName = builder.templateName;
this.templateType = builder.templateType;
}
public static Builder builder() {
return new Builder();
}
public static AddAITemplateRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return templateConfig
*/
public String getTemplateConfig() {
return this.templateConfig;
}
/**
* @return templateName
*/
public String getTemplateName() {
return this.templateName;
}
/**
* @return templateType
*/
public String getTemplateType() {
return this.templateType;
}
public static final class Builder extends Request.Builder<AddAITemplateRequest, Builder> {
private String templateConfig;
private String templateName;
private String templateType;
private Builder() {
super();
}
private Builder(AddAITemplateRequest request) {
super(request);
this.templateConfig = request.templateConfig;
this.templateName = request.templateName;
this.templateType = request.templateType;
}
/**
* <p>The detailed configurations of the AI template. The value must be a JSON string. For more information, see <a href="~~89863#title-vd3-499-o36~~">AITemplateConfig</a>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>{"AuditItem":["terrorism","porn"],"AuditRange":["image-cover","text-title","video"],"AuditContent":["screen"],"AuditAutoBlock":"yes"}</p>
*/
public Builder templateConfig(String templateConfig) {
this.putQueryParameter("TemplateConfig", templateConfig);
this.templateConfig = templateConfig;
return this;
}
/**
* <p>The name of the AI template. The name can be up to 128 bytes in length.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>AI-media-test</p>
*/
public Builder templateName(String templateName) {
this.putQueryParameter("TemplateName", templateName);
this.templateName = templateName;
return this;
}
/**
* <p>The type of the AI template. Valid values:</p>
* <ul>
* <li><strong>AIMediaAudit</strong>: automated review</li>
* <li><strong>AIImage</strong>: smart thumbnail</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>AIMediaAudit</p>
*/
public Builder templateType(String templateType) {
this.putQueryParameter("TemplateType", templateType);
this.templateType = templateType;
return this;
}
@Override
public AddAITemplateRequest build() {
return new AddAITemplateRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddAITemplateResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddAITemplateResponse} extends {@link TeaModel}
*
* <p>AddAITemplateResponse</p>
*/
public class AddAITemplateResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private AddAITemplateResponseBody body;
private AddAITemplateResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static AddAITemplateResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public AddAITemplateResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<AddAITemplateResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(AddAITemplateResponseBody body);
@Override
AddAITemplateResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<AddAITemplateResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private AddAITemplateResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(AddAITemplateResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(AddAITemplateResponseBody body) {
this.body = body;
return this;
}
@Override
public AddAITemplateResponse build() {
return new AddAITemplateResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddAITemplateResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddAITemplateResponseBody} extends {@link TeaModel}
*
* <p>AddAITemplateResponseBody</p>
*/
public class AddAITemplateResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TemplateId")
private String templateId;
private AddAITemplateResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.templateId = builder.templateId;
}
public static Builder builder() {
return new Builder();
}
public static AddAITemplateResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return templateId
*/
public String getTemplateId() {
return this.templateId;
}
public static final class Builder {
private String requestId;
private String templateId;
private Builder() {
}
private Builder(AddAITemplateResponseBody model) {
this.requestId = model.requestId;
this.templateId = model.templateId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>25818875-5F78-4A13-BEF6-****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the AI template.</p>
*
* <strong>example:</strong>
* <p>1706a0063dd733f6a823ef32e0a5****</p>
*/
public Builder templateId(String templateId) {
this.templateId = templateId;
return this;
}
public AddAITemplateResponseBody build() {
return new AddAITemplateResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddCategoryRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddCategoryRequest} extends {@link RequestModel}
*
* <p>AddCategoryRequest</p>
*/
public class AddCategoryRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CateName")
@com.aliyun.core.annotation.Validation(required = true)
private String cateName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ParentId")
private Long parentId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private AddCategoryRequest(Builder builder) {
super(builder);
this.cateName = builder.cateName;
this.parentId = builder.parentId;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static AddCategoryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return cateName
*/
public String getCateName() {
return this.cateName;
}
/**
* @return parentId
*/
public Long getParentId() {
return this.parentId;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder extends Request.Builder<AddCategoryRequest, Builder> {
private String cateName;
private Long parentId;
private String type;
private Builder() {
super();
}
private Builder(AddCategoryRequest request) {
super(request);
this.cateName = request.cateName;
this.parentId = request.parentId;
this.type = request.type;
}
/**
* <p>The name of the category.</p>
* <ul>
* <li>The value can be up to 64 bytes in length.</li>
* <li>The value must be encoded in UTF-8.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder cateName(String cateName) {
this.putQueryParameter("CateName", cateName);
this.cateName = cateName;
return this;
}
/**
* <p>The ID of the parent category.</p>
* <p>To obtain the category ID, perform the following steps: Log on to the <a href="https://vod.console.aliyun.com">ApsaraVideo VOD console</a>. Choose <strong>Configuration Management</strong> > <strong>Media Management</strong> > <strong>Categories</strong>. On the <strong>Audio and Video / Image Category</strong> or <strong>Short Video Material Category</strong> tab, view the category ID.</p>
* <blockquote>
* <ul>
* <li>If you specify this parameter, the system creates a subcategory under the parent category. If you leave this parameter empty, the system creates a level 1 category.</li>
* <li>You cannot modify, add, or delete level 1 categories of short video materials. You can create only subcategories under level 1 categories for short video materials. This parameter is required when you set <code>Type</code> to <code>material</code>.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>100012****</p>
*/
public Builder parentId(Long parentId) {
this.putQueryParameter("ParentId", parentId);
this.parentId = parentId;
return this;
}
/**
* <p>The type of the category. Valid values:</p>
* <ul>
* <li><strong>default</strong> (default): audio, video, and image files</li>
* <li><strong>material</strong>: short video materials</li>
* </ul>
*
* <strong>example:</strong>
* <p>default</p>
*/
public Builder type(String type) {
this.putQueryParameter("Type", type);
this.type = type;
return this;
}
@Override
public AddCategoryRequest build() {
return new AddCategoryRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddCategoryResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddCategoryResponse} extends {@link TeaModel}
*
* <p>AddCategoryResponse</p>
*/
public class AddCategoryResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private AddCategoryResponseBody body;
private AddCategoryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static AddCategoryResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public AddCategoryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<AddCategoryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(AddCategoryResponseBody body);
@Override
AddCategoryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<AddCategoryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private AddCategoryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(AddCategoryResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(AddCategoryResponseBody body) {
this.body = body;
return this;
}
@Override
public AddCategoryResponse build() {
return new AddCategoryResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddCategoryResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddCategoryResponseBody} extends {@link TeaModel}
*
* <p>AddCategoryResponseBody</p>
*/
public class AddCategoryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Category")
private Category category;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private AddCategoryResponseBody(Builder builder) {
this.category = builder.category;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static AddCategoryResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return category
*/
public Category getCategory() {
return this.category;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Category category;
private String requestId;
private Builder() {
}
private Builder(AddCategoryResponseBody model) {
this.category = model.category;
this.requestId = model.requestId;
}
/**
* <p>The information about the category.</p>
*/
public Builder category(Category category) {
this.category = category;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>25818875-5F78-4AF6-D7393642CA58****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public AddCategoryResponseBody build() {
return new AddCategoryResponseBody(this);
}
}
/**
*
* {@link AddCategoryResponseBody} extends {@link TeaModel}
*
* <p>AddCategoryResponseBody</p>
*/
public static class Category extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CateId")
private Long cateId;
@com.aliyun.core.annotation.NameInMap("CateName")
private String cateName;
@com.aliyun.core.annotation.NameInMap("Level")
private Long level;
@com.aliyun.core.annotation.NameInMap("ParentId")
private Long parentId;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private Category(Builder builder) {
this.cateId = builder.cateId;
this.cateName = builder.cateName;
this.level = builder.level;
this.parentId = builder.parentId;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static Category create() {
return builder().build();
}
/**
* @return cateId
*/
public Long getCateId() {
return this.cateId;
}
/**
* @return cateName
*/
public String getCateName() {
return this.cateName;
}
/**
* @return level
*/
public Long getLevel() {
return this.level;
}
/**
* @return parentId
*/
public Long getParentId() {
return this.parentId;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private Long cateId;
private String cateName;
private Long level;
private Long parentId;
private String type;
private Builder() {
}
private Builder(Category model) {
this.cateId = model.cateId;
this.cateName = model.cateName;
this.level = model.level;
this.parentId = model.parentId;
this.type = model.type;
}
/**
* <p>The ID of the category. You can use the value of this parameter when you call the <a href="~~UpdateCategory~~">UpdateCategory</a>, <a href="~~DeleteCategory~~">DeleteCategory</a>, and <a href="~~GetCategories~~">GetCategories</a> operations.</p>
*
* <strong>example:</strong>
* <p>10020</p>
*/
public Builder cateId(Long cateId) {
this.cateId = cateId;
return this;
}
/**
* <p>The name of the category.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder cateName(String cateName) {
this.cateName = cateName;
return this;
}
/**
* <p>The level of the category. Valid values:</p>
* <ul>
* <li><strong>0</strong>: level 1 category</li>
* <li><strong>1</strong>: level 2 category</li>
* <li><strong>1</strong>: level 3 category</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder level(Long level) {
this.level = level;
return this;
}
/**
* <p>The ID of the parent category.</p>
*
* <strong>example:</strong>
* <p>100012</p>
*/
public Builder parentId(Long parentId) {
this.parentId = parentId;
return this;
}
/**
* <p>The type of the category. Valid values:</p>
* <ul>
* <li><strong>default</strong>: audio, video, and image files</li>
* <li><strong>material</strong>: short video materials</li>
* </ul>
*
* <strong>example:</strong>
* <p>default</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public Category build() {
return new Category(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddEditingProjectMaterialsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddEditingProjectMaterialsRequest} extends {@link RequestModel}
*
* <p>AddEditingProjectMaterialsRequest</p>
*/
public class AddEditingProjectMaterialsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MaterialIds")
@com.aliyun.core.annotation.Validation(required = true)
private String materialIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MaterialType")
@com.aliyun.core.annotation.Validation(required = true)
private String materialType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private String ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ProjectId")
@com.aliyun.core.annotation.Validation(required = true)
private String projectId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private String resourceOwnerId;
private AddEditingProjectMaterialsRequest(Builder builder) {
super(builder);
this.materialIds = builder.materialIds;
this.materialType = builder.materialType;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.projectId = builder.projectId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static AddEditingProjectMaterialsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return materialIds
*/
public String getMaterialIds() {
return this.materialIds;
}
/**
* @return materialType
*/
public String getMaterialType() {
return this.materialType;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public String getOwnerId() {
return this.ownerId;
}
/**
* @return projectId
*/
public String getProjectId() {
return this.projectId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public String getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<AddEditingProjectMaterialsRequest, Builder> {
private String materialIds;
private String materialType;
private String ownerAccount;
private String ownerId;
private String projectId;
private String resourceOwnerAccount;
private String resourceOwnerId;
private Builder() {
super();
}
private Builder(AddEditingProjectMaterialsRequest request) {
super(request);
this.materialIds = request.materialIds;
this.materialType = request.materialType;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.projectId = request.projectId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>Separate multiple material IDs with commas (,). You can specify up to 10 IDs.</p>
* <blockquote>
* <p> If you specify multiple materials, make sure that the materials are of the same type as specified in MaterialType.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>d3251979f9fd41f2acb29ccda5a6f772</p>
*/
public Builder materialIds(String materialIds) {
this.putQueryParameter("MaterialIds", materialIds);
this.materialIds = materialIds;
return this;
}
/**
* <p>The type of the material. Valid values:</p>
* <ul>
* <li><strong>video</strong></li>
* <li><strong>audio</strong></li>
* <li><strong>image</strong></li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>video</p>
*/
public Builder materialType(String materialType) {
this.putQueryParameter("MaterialType", materialType);
this.materialType = materialType;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(String ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The ID of the online editing project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>afa31b483b5c41609185de0e1b790579</p>
*/
public Builder projectId(String projectId) {
this.putQueryParameter("ProjectId", projectId);
this.projectId = projectId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(String resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public AddEditingProjectMaterialsRequest build() {
return new AddEditingProjectMaterialsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddEditingProjectMaterialsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddEditingProjectMaterialsResponse} extends {@link TeaModel}
*
* <p>AddEditingProjectMaterialsResponse</p>
*/
public class AddEditingProjectMaterialsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private AddEditingProjectMaterialsResponseBody body;
private AddEditingProjectMaterialsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static AddEditingProjectMaterialsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public AddEditingProjectMaterialsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<AddEditingProjectMaterialsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(AddEditingProjectMaterialsResponseBody body);
@Override
AddEditingProjectMaterialsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<AddEditingProjectMaterialsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private AddEditingProjectMaterialsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(AddEditingProjectMaterialsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(AddEditingProjectMaterialsResponseBody body) {
this.body = body;
return this;
}
@Override
public AddEditingProjectMaterialsResponse build() {
return new AddEditingProjectMaterialsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddEditingProjectMaterialsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddEditingProjectMaterialsResponseBody} extends {@link TeaModel}
*
* <p>AddEditingProjectMaterialsResponseBody</p>
*/
public class AddEditingProjectMaterialsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MaterialList")
private java.util.List<MaterialList> materialList;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private AddEditingProjectMaterialsResponseBody(Builder builder) {
this.materialList = builder.materialList;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static AddEditingProjectMaterialsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return materialList
*/
public java.util.List<MaterialList> getMaterialList() {
return this.materialList;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<MaterialList> materialList;
private String requestId;
private Builder() {
}
private Builder(AddEditingProjectMaterialsResponseBody model) {
this.materialList = model.materialList;
this.requestId = model.requestId;
}
/**
* <p>The materials.</p>
*/
public Builder materialList(java.util.List<MaterialList> materialList) {
this.materialList = materialList;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>85237CDA-0B54-5CED-BA10-A8A71AA13C1A</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public AddEditingProjectMaterialsResponseBody build() {
return new AddEditingProjectMaterialsResponseBody(this);
}
}
/**
*
* {@link AddEditingProjectMaterialsResponseBody} extends {@link TeaModel}
*
* <p>AddEditingProjectMaterialsResponseBody</p>
*/
public static class MaterialList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CateId")
private Integer cateId;
@com.aliyun.core.annotation.NameInMap("CateName")
private String cateName;
@com.aliyun.core.annotation.NameInMap("CoverURL")
private String coverURL;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("CustomerId")
private Long customerId;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("Duration")
private Float duration;
@com.aliyun.core.annotation.NameInMap("MaterialId")
private String materialId;
@com.aliyun.core.annotation.NameInMap("MaterialType")
private String materialType;
@com.aliyun.core.annotation.NameInMap("ModifyTime")
private String modifyTime;
@com.aliyun.core.annotation.NameInMap("Size")
private Long size;
@com.aliyun.core.annotation.NameInMap("Snapshots")
private java.util.List<String> snapshots;
@com.aliyun.core.annotation.NameInMap("SpriteConfig")
private String spriteConfig;
@com.aliyun.core.annotation.NameInMap("Sprites")
private java.util.List<String> sprites;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Tags")
private String tags;
@com.aliyun.core.annotation.NameInMap("Title")
private String title;
private MaterialList(Builder builder) {
this.cateId = builder.cateId;
this.cateName = builder.cateName;
this.coverURL = builder.coverURL;
this.createTime = builder.createTime;
this.customerId = builder.customerId;
this.description = builder.description;
this.duration = builder.duration;
this.materialId = builder.materialId;
this.materialType = builder.materialType;
this.modifyTime = builder.modifyTime;
this.size = builder.size;
this.snapshots = builder.snapshots;
this.spriteConfig = builder.spriteConfig;
this.sprites = builder.sprites;
this.status = builder.status;
this.tags = builder.tags;
this.title = builder.title;
}
public static Builder builder() {
return new Builder();
}
public static MaterialList create() {
return builder().build();
}
/**
* @return cateId
*/
public Integer getCateId() {
return this.cateId;
}
/**
* @return cateName
*/
public String getCateName() {
return this.cateName;
}
/**
* @return coverURL
*/
public String getCoverURL() {
return this.coverURL;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return customerId
*/
public Long getCustomerId() {
return this.customerId;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return duration
*/
public Float getDuration() {
return this.duration;
}
/**
* @return materialId
*/
public String getMaterialId() {
return this.materialId;
}
/**
* @return materialType
*/
public String getMaterialType() {
return this.materialType;
}
/**
* @return modifyTime
*/
public String getModifyTime() {
return this.modifyTime;
}
/**
* @return size
*/
public Long getSize() {
return this.size;
}
/**
* @return snapshots
*/
public java.util.List<String> getSnapshots() {
return this.snapshots;
}
/**
* @return spriteConfig
*/
public String getSpriteConfig() {
return this.spriteConfig;
}
/**
* @return sprites
*/
public java.util.List<String> getSprites() {
return this.sprites;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return tags
*/
public String getTags() {
return this.tags;
}
/**
* @return title
*/
public String getTitle() {
return this.title;
}
public static final class Builder {
private Integer cateId;
private String cateName;
private String coverURL;
private String createTime;
private Long customerId;
private String description;
private Float duration;
private String materialId;
private String materialType;
private String modifyTime;
private Long size;
private java.util.List<String> snapshots;
private String spriteConfig;
private java.util.List<String> sprites;
private String status;
private String tags;
private String title;
private Builder() {
}
private Builder(MaterialList model) {
this.cateId = model.cateId;
this.cateName = model.cateName;
this.coverURL = model.coverURL;
this.createTime = model.createTime;
this.customerId = model.customerId;
this.description = model.description;
this.duration = model.duration;
this.materialId = model.materialId;
this.materialType = model.materialType;
this.modifyTime = model.modifyTime;
this.size = model.size;
this.snapshots = model.snapshots;
this.spriteConfig = model.spriteConfig;
this.sprites = model.sprites;
this.status = model.status;
this.tags = model.tags;
this.title = model.title;
}
/**
* <p>The ID of the category.</p>
*
* <strong>example:</strong>
* <p>1000487543</p>
*/
public Builder cateId(Integer cateId) {
this.cateId = cateId;
return this;
}
/**
* <p>The category name of the material.</p>
*
* <strong>example:</strong>
* <p>cate1</p>
*/
public Builder cateName(String cateName) {
this.cateName = cateName;
return this;
}
/**
* <p>The thumbnail URL.</p>
*/
public Builder coverURL(String coverURL) {
this.coverURL = coverURL;
return this;
}
/**
* <p>The time when the material was created. The time follows the ISO 8601 standard in the <em>YYYY-MM-DD**Thh:mm:ss</em> format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2019-10-02T08:26Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The ID of the user.</p>
*
* <strong>example:</strong>
* <p>1234751840694470</p>
*/
public Builder customerId(Long customerId) {
this.customerId = customerId;
return this;
}
/**
* <p>The description of the material.</p>
*
* <strong>example:</strong>
* <p>test material</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The duration of the material. Unit: seconds. The value is accurate to four decimal places.</p>
*
* <strong>example:</strong>
* <p>3690.2332</p>
*/
public Builder duration(Float duration) {
this.duration = duration;
return this;
}
/**
* <p>The ID of the material.</p>
*
* <strong>example:</strong>
* <p>85befc4118b84c6723e53b80b1****</p>
*/
public Builder materialId(String materialId) {
this.materialId = materialId;
return this;
}
/**
* <p>The type of the material. Valid values:</p>
* <ul>
* <li><strong>video</strong></li>
* <li><strong>audio</strong></li>
* <li><strong>image</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>video</p>
*/
public Builder materialType(String materialType) {
this.materialType = materialType;
return this;
}
/**
* <p>The time when the material was last updated. The time follows the ISO 8601 standard in the <em>YYYY-MM-DD**Thh:mm:ss</em> format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2022-11-25T07:28:34Z</p>
*/
public Builder modifyTime(String modifyTime) {
this.modifyTime = modifyTime;
return this;
}
/**
* <p>The size of the material.</p>
*
* <strong>example:</strong>
* <p>1682694</p>
*/
public Builder size(Long size) {
this.size = size;
return this;
}
/**
* <p>The URLs of snapshots.</p>
*/
public Builder snapshots(java.util.List<String> snapshots) {
this.snapshots = snapshots;
return this;
}
/**
* <p>The configuration of the sprite snapshot.</p>
*
* <strong>example:</strong>
* <p>xxx</p>
*/
public Builder spriteConfig(String spriteConfig) {
this.spriteConfig = spriteConfig;
return this;
}
/**
* <p>The URLs of sprite snapshots.</p>
*/
public Builder sprites(java.util.List<String> sprites) {
this.sprites = sprites;
return this;
}
/**
* <p>The status of the material. Valid values:</p>
* <ul>
* <li><strong>Normal</strong></li>
* <li><strong>Uploading</strong></li>
* <li><strong>UploadFail</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The tag of the material. Multiple tags are separated by commas (,).</p>
*
* <strong>example:</strong>
* <p>tag1,tag2</p>
*/
public Builder tags(String tags) {
this.tags = tags;
return this;
}
/**
* <p>The title of the material.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder title(String title) {
this.title = title;
return this;
}
public MaterialList build() {
return new MaterialList(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddEditingProjectRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddEditingProjectRequest} extends {@link RequestModel}
*
* <p>AddEditingProjectRequest</p>
*/
public class AddEditingProjectRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CoverURL")
private String coverURL;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Division")
private String division;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private String ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private String resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Timeline")
private String timeline;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Title")
@com.aliyun.core.annotation.Validation(required = true)
private String title;
private AddEditingProjectRequest(Builder builder) {
super(builder);
this.coverURL = builder.coverURL;
this.description = builder.description;
this.division = builder.division;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.timeline = builder.timeline;
this.title = builder.title;
}
public static Builder builder() {
return new Builder();
}
public static AddEditingProjectRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return coverURL
*/
public String getCoverURL() {
return this.coverURL;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return division
*/
public String getDivision() {
return this.division;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public String getOwnerId() {
return this.ownerId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public String getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return timeline
*/
public String getTimeline() {
return this.timeline;
}
/**
* @return title
*/
public String getTitle() {
return this.title;
}
public static final class Builder extends Request.Builder<AddEditingProjectRequest, Builder> {
private String coverURL;
private String description;
private String division;
private String ownerAccount;
private String ownerId;
private String resourceOwnerAccount;
private String resourceOwnerId;
private String timeline;
private String title;
private Builder() {
super();
}
private Builder(AddEditingProjectRequest request) {
super(request);
this.coverURL = request.coverURL;
this.description = request.description;
this.division = request.division;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.timeline = request.timeline;
this.title = request.title;
}
/**
* <p>The thumbnail URL of the online editing project. If you leave this parameter empty and materials exist on the video track in the timeline, the thumbnail of the first material is used by default.</p>
*
* <strong>example:</strong>
* <p><a href="https://demo.aliyundoc.com/6AB4D0E1E1C74468883516C2349D1FC2-6-2.png">https://demo.aliyundoc.com/6AB4D0E1E1C74468883516C2349D1FC2-6-2.png</a></p>
*/
public Builder coverURL(String coverURL) {
this.putQueryParameter("CoverURL", coverURL);
this.coverURL = coverURL;
return this;
}
/**
* <p>The description of the online editing project.</p>
*
* <strong>example:</strong>
* <p>testtimeline001desciption</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>The region in which ApsaraVideo VOD is activated.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder division(String division) {
this.putQueryParameter("Division", division);
this.division = division;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(String ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(String resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The timeline of the online editing project in JSON format. For more information about the structure, see <a href="https://help.aliyun.com/document_detail/52839.html">Timeline</a>.</p>
* <p>If you leave this parameter empty, an empty timeline is created and the duration of the online editing project is zero.</p>
*
* <strong>example:</strong>
* <p>{"VideoTracks":[{"VideoTrackClips":[{"MediaId":"cc3308ac5006aed55a54328bc3443****"},{"MediaId":"95948ddba24446b6aed5db985e78****"}]}]}</p>
*/
public Builder timeline(String timeline) {
this.putQueryParameter("Timeline", timeline);
this.timeline = timeline;
return this;
}
/**
* <p>The title of the online editing project.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>testtimeline</p>
*/
public Builder title(String title) {
this.putQueryParameter("Title", title);
this.title = title;
return this;
}
@Override
public AddEditingProjectRequest build() {
return new AddEditingProjectRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddEditingProjectResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddEditingProjectResponse} extends {@link TeaModel}
*
* <p>AddEditingProjectResponse</p>
*/
public class AddEditingProjectResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private AddEditingProjectResponseBody body;
private AddEditingProjectResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static AddEditingProjectResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public AddEditingProjectResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<AddEditingProjectResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(AddEditingProjectResponseBody body);
@Override
AddEditingProjectResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<AddEditingProjectResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private AddEditingProjectResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(AddEditingProjectResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(AddEditingProjectResponseBody body) {
this.body = body;
return this;
}
@Override
public AddEditingProjectResponse build() {
return new AddEditingProjectResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddEditingProjectResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddEditingProjectResponseBody} extends {@link TeaModel}
*
* <p>AddEditingProjectResponseBody</p>
*/
public class AddEditingProjectResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Project")
private Project project;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private AddEditingProjectResponseBody(Builder builder) {
this.project = builder.project;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static AddEditingProjectResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return project
*/
public Project getProject() {
return this.project;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Project project;
private String requestId;
private Builder() {
}
private Builder(AddEditingProjectResponseBody model) {
this.project = model.project;
this.requestId = model.requestId;
}
/**
* <p>The information about the online editing project. For more information about the structure, see <a href="https://help.aliyun.com/document_detail/52839.html">EditingProject</a>.</p>
*/
public Builder project(Project project) {
this.project = project;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>E4EBD2BF-5EB0-4476-8829-9D94E1B1****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public AddEditingProjectResponseBody build() {
return new AddEditingProjectResponseBody(this);
}
}
/**
*
* {@link AddEditingProjectResponseBody} extends {@link TeaModel}
*
* <p>AddEditingProjectResponseBody</p>
*/
public static class Project extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("ModifiedTime")
private String modifiedTime;
@com.aliyun.core.annotation.NameInMap("ProjectId")
private String projectId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Title")
private String title;
private Project(Builder builder) {
this.creationTime = builder.creationTime;
this.description = builder.description;
this.modifiedTime = builder.modifiedTime;
this.projectId = builder.projectId;
this.status = builder.status;
this.title = builder.title;
}
public static Builder builder() {
return new Builder();
}
public static Project create() {
return builder().build();
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return modifiedTime
*/
public String getModifiedTime() {
return this.modifiedTime;
}
/**
* @return projectId
*/
public String getProjectId() {
return this.projectId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return title
*/
public String getTitle() {
return this.title;
}
public static final class Builder {
private String creationTime;
private String description;
private String modifiedTime;
private String projectId;
private String status;
private String title;
private Builder() {
}
private Builder(Project model) {
this.creationTime = model.creationTime;
this.description = model.description;
this.modifiedTime = model.modifiedTime;
this.projectId = model.projectId;
this.status = model.status;
this.title = model.title;
}
/**
* <p>The time when the online editing project was created. The time follows the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm:ss</em>Z format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2017-01-11T12:00:00Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The description of the online editing project.</p>
*
* <strong>example:</strong>
* <p>testtimeline001desciption</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The time when the online editing project was last modified. The time follows the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm:ss</em>Z format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2017-01-11T13:00:00Z</p>
*/
public Builder modifiedTime(String modifiedTime) {
this.modifiedTime = modifiedTime;
return this;
}
/**
* <p>The ID of the online editing project.</p>
*
* <strong>example:</strong>
* <p>fb2101bf24bf4df34c4cb3187****</p>
*/
public Builder projectId(String projectId) {
this.projectId = projectId;
return this;
}
/**
* <p>The status of the online editing project. Valid values:</p>
* <ul>
* <li><strong>Normal</strong>: the online editing project is in draft.</li>
* <li><strong>Producing</strong>: the video is being produced.</li>
* <li><strong>Produced</strong>: the video is produced.</li>
* <li><strong>ProduceFailed</strong>: the video failed to be produced.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The title of the online editing project.</p>
*
* <strong>example:</strong>
* <p>testtimeline</p>
*/
public Builder title(String title) {
this.title = title;
return this;
}
public Project build() {
return new Project(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddTranscodeTemplateGroupRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddTranscodeTemplateGroupRequest} extends {@link RequestModel}
*
* <p>AddTranscodeTemplateGroupRequest</p>
*/
public class AddTranscodeTemplateGroupRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TranscodeTemplateGroupId")
private String transcodeTemplateGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TranscodeTemplateList")
private String transcodeTemplateList;
private AddTranscodeTemplateGroupRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.name = builder.name;
this.transcodeTemplateGroupId = builder.transcodeTemplateGroupId;
this.transcodeTemplateList = builder.transcodeTemplateList;
}
public static Builder builder() {
return new Builder();
}
public static AddTranscodeTemplateGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return transcodeTemplateGroupId
*/
public String getTranscodeTemplateGroupId() {
return this.transcodeTemplateGroupId;
}
/**
* @return transcodeTemplateList
*/
public String getTranscodeTemplateList() {
return this.transcodeTemplateList;
}
public static final class Builder extends Request.Builder<AddTranscodeTemplateGroupRequest, Builder> {
private String appId;
private String name;
private String transcodeTemplateGroupId;
private String transcodeTemplateList;
private Builder() {
super();
}
private Builder(AddTranscodeTemplateGroupRequest request) {
super(request);
this.appId = request.appId;
this.name = request.name;
this.transcodeTemplateGroupId = request.transcodeTemplateGroupId;
this.transcodeTemplateList = request.transcodeTemplateList;
}
/**
* <p>The application ID. Default value: <strong>app-1000000</strong>. For more information, see <a href="https://help.aliyun.com/document_detail/113600.html">Use the multi-application service</a>.</p>
*
* <strong>example:</strong>
* <p>app-****</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
/**
* <p>The name of the transcoding template group.</p>
* <ul>
* <li>The name can be up to 128 bytes in length.</li>
* <li>The value must be encoded in UTF-8.</li>
* </ul>
* <blockquote>
* <p>You must specify TranscodeTemplateGroupId or Name in the request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>transcodetemplate</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>The ID of the transcoding template group. If a transcoding template group ID is specified, you can add transcoding templates to the template group.</p>
* <blockquote>
* <p>You must specify TranscodeTemplateGroupId or Name in the request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>4c71a339fe52b4fa6f4527****</p>
*/
public Builder transcodeTemplateGroupId(String transcodeTemplateGroupId) {
this.putQueryParameter("TranscodeTemplateGroupId", transcodeTemplateGroupId);
this.transcodeTemplateGroupId = transcodeTemplateGroupId;
return this;
}
/**
* <p>The configurations of the transcoding template. The value is a string in JSON format. For more information about the data structure, see <a href="https://help.aliyun.com/document_detail/52839.html">TranscodeTemplate</a>.</p>
* <blockquote>
* <ul>
* <li>If you do not specify this parameter, the transcoding job cannot be automatically created after you upload a video.</li>
* <li>If you do not need to set Width or Height, do not specify the corresponding parameter. You cannot set the value to an empty string, such as "Height":"".</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>[{"Video":{"Bitrate":"400","Codec":"H.264","Fps":"30","Height":""},"Definition":"SD","Container":{"Format":"mp4"},"TemplateName":"testName","MuxConfig":{},"Audio":{"Codec":"AAC","Bitrate":"64","Samplerate":"44100"}}]</p>
*/
public Builder transcodeTemplateList(String transcodeTemplateList) {
this.putQueryParameter("TranscodeTemplateList", transcodeTemplateList);
this.transcodeTemplateList = transcodeTemplateList;
return this;
}
@Override
public AddTranscodeTemplateGroupRequest build() {
return new AddTranscodeTemplateGroupRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddTranscodeTemplateGroupResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddTranscodeTemplateGroupResponse} extends {@link TeaModel}
*
* <p>AddTranscodeTemplateGroupResponse</p>
*/
public class AddTranscodeTemplateGroupResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private AddTranscodeTemplateGroupResponseBody body;
private AddTranscodeTemplateGroupResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static AddTranscodeTemplateGroupResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public AddTranscodeTemplateGroupResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<AddTranscodeTemplateGroupResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(AddTranscodeTemplateGroupResponseBody body);
@Override
AddTranscodeTemplateGroupResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<AddTranscodeTemplateGroupResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private AddTranscodeTemplateGroupResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(AddTranscodeTemplateGroupResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(AddTranscodeTemplateGroupResponseBody body) {
this.body = body;
return this;
}
@Override
public AddTranscodeTemplateGroupResponse build() {
return new AddTranscodeTemplateGroupResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddTranscodeTemplateGroupResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddTranscodeTemplateGroupResponseBody} extends {@link TeaModel}
*
* <p>AddTranscodeTemplateGroupResponseBody</p>
*/
public class AddTranscodeTemplateGroupResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TranscodeTemplateGroupId")
private String transcodeTemplateGroupId;
private AddTranscodeTemplateGroupResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.transcodeTemplateGroupId = builder.transcodeTemplateGroupId;
}
public static Builder builder() {
return new Builder();
}
public static AddTranscodeTemplateGroupResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return transcodeTemplateGroupId
*/
public String getTranscodeTemplateGroupId() {
return this.transcodeTemplateGroupId;
}
public static final class Builder {
private String requestId;
private String transcodeTemplateGroupId;
private Builder() {
}
private Builder(AddTranscodeTemplateGroupResponseBody model) {
this.requestId = model.requestId;
this.transcodeTemplateGroupId = model.transcodeTemplateGroupId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>25818875-5F78-4AF6-D7393642CA58****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the transcoding template group.</p>
*
* <strong>example:</strong>
* <p>34e908aa4024af7821c31f93a2a****</p>
*/
public Builder transcodeTemplateGroupId(String transcodeTemplateGroupId) {
this.transcodeTemplateGroupId = transcodeTemplateGroupId;
return this;
}
public AddTranscodeTemplateGroupResponseBody build() {
return new AddTranscodeTemplateGroupResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddVodDomainRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddVodDomainRequest} extends {@link RequestModel}
*
* <p>AddVodDomainRequest</p>
*/
public class AddVodDomainRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CheckUrl")
private String checkUrl;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DomainName")
@com.aliyun.core.annotation.Validation(required = true)
private String domainName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Scope")
private String scope;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityToken")
private String securityToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Sources")
@com.aliyun.core.annotation.Validation(required = true)
private String sources;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TopLevelDomain")
private String topLevelDomain;
private AddVodDomainRequest(Builder builder) {
super(builder);
this.checkUrl = builder.checkUrl;
this.domainName = builder.domainName;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.scope = builder.scope;
this.securityToken = builder.securityToken;
this.sources = builder.sources;
this.topLevelDomain = builder.topLevelDomain;
}
public static Builder builder() {
return new Builder();
}
public static AddVodDomainRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return checkUrl
*/
public String getCheckUrl() {
return this.checkUrl;
}
/**
* @return domainName
*/
public String getDomainName() {
return this.domainName;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return scope
*/
public String getScope() {
return this.scope;
}
/**
* @return securityToken
*/
public String getSecurityToken() {
return this.securityToken;
}
/**
* @return sources
*/
public String getSources() {
return this.sources;
}
/**
* @return topLevelDomain
*/
public String getTopLevelDomain() {
return this.topLevelDomain;
}
public static final class Builder extends Request.Builder<AddVodDomainRequest, Builder> {
private String checkUrl;
private String domainName;
private String ownerAccount;
private Long ownerId;
private String scope;
private String securityToken;
private String sources;
private String topLevelDomain;
private Builder() {
super();
}
private Builder(AddVodDomainRequest request) {
super(request);
this.checkUrl = request.checkUrl;
this.domainName = request.domainName;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.scope = request.scope;
this.securityToken = request.securityToken;
this.sources = request.sources;
this.topLevelDomain = request.topLevelDomain;
}
/**
* <p>The URL that is used for health checks.</p>
*
* <strong>example:</strong>
* <p><a href="http://www.example.com/test.html">www.example.com/test.html</a></p>
*/
public Builder checkUrl(String checkUrl) {
this.putQueryParameter("CheckUrl", checkUrl);
this.checkUrl = checkUrl;
return this;
}
/**
* <p>The domain name that you want to accelerate. Wildcard domain names that start with periods (.) are supported. Example: .example.com.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>example.com</p>
*/
public Builder domainName(String domainName) {
this.putQueryParameter("DomainName", domainName);
this.domainName = domainName;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>This parameter is applicable to users of level 3 or higher in the Chinese mainland and users outside the Chinese mainland. Default value: domestic. Valid values:</p>
* <ul>
* <li><strong>domestic</strong>: Chinese mainland</li>
* <li><strong>overseas</strong>: outside the Chinese mainland</li>
* <li><strong>global</strong>: regions in and outside the Chinese mainland</li>
* </ul>
*
* <strong>example:</strong>
* <p>domestic</p>
*/
public Builder scope(String scope) {
this.putQueryParameter("Scope", scope);
this.scope = scope;
return this;
}
/**
* SecurityToken.
*/
public Builder securityToken(String securityToken) {
this.putQueryParameter("SecurityToken", securityToken);
this.securityToken = securityToken;
return this;
}
/**
* <p>The information about the addresses of origin servers. For more information, see the <strong>Sources</strong> table in this topic.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>[{"content":"1.1.1.1","type":"ipaddr","priority":"20","port":80}]</p>
*/
public Builder sources(String sources) {
this.putQueryParameter("Sources", sources);
this.sources = sources;
return this;
}
/**
* <p>The top-level domain.</p>
*
* <strong>example:</strong>
* <p>example.com</p>
*/
public Builder topLevelDomain(String topLevelDomain) {
this.putQueryParameter("TopLevelDomain", topLevelDomain);
this.topLevelDomain = topLevelDomain;
return this;
}
@Override
public AddVodDomainRequest build() {
return new AddVodDomainRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddVodDomainResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddVodDomainResponse} extends {@link TeaModel}
*
* <p>AddVodDomainResponse</p>
*/
public class AddVodDomainResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private AddVodDomainResponseBody body;
private AddVodDomainResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static AddVodDomainResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public AddVodDomainResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<AddVodDomainResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(AddVodDomainResponseBody body);
@Override
AddVodDomainResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<AddVodDomainResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private AddVodDomainResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(AddVodDomainResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(AddVodDomainResponseBody body) {
this.body = body;
return this;
}
@Override
public AddVodDomainResponse build() {
return new AddVodDomainResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddVodDomainResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddVodDomainResponseBody} extends {@link TeaModel}
*
* <p>AddVodDomainResponseBody</p>
*/
public class AddVodDomainResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private AddVodDomainResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static AddVodDomainResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(AddVodDomainResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>15C66C7B-671A-4297-****-2C4477247A74</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public AddVodDomainResponseBody build() {
return new AddVodDomainResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddVodStorageForAppRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddVodStorageForAppRequest} extends {@link RequestModel}
*
* <p>AddVodStorageForAppRequest</p>
*/
public class AddVodStorageForAppRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
@com.aliyun.core.annotation.Validation(required = true)
private String appId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StorageLocation")
private String storageLocation;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StorageType")
private String storageType;
private AddVodStorageForAppRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.storageLocation = builder.storageLocation;
this.storageType = builder.storageType;
}
public static Builder builder() {
return new Builder();
}
public static AddVodStorageForAppRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return storageLocation
*/
public String getStorageLocation() {
return this.storageLocation;
}
/**
* @return storageType
*/
public String getStorageType() {
return this.storageType;
}
public static final class Builder extends Request.Builder<AddVodStorageForAppRequest, Builder> {
private String appId;
private String storageLocation;
private String storageType;
private Builder() {
super();
}
private Builder(AddVodStorageForAppRequest request) {
super(request);
this.appId = request.appId;
this.storageLocation = request.storageLocation;
this.storageType = request.storageType;
}
/**
* <p>The IDs of applications. You can obtain the application ID from the <code>AppId</code> parameter in the response to the <a href="~~CreateAppInfo~~">CreateAppInfo</a> or <a href="~~ListAppInfo~~">ListAppInfo</a> operation.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>app-****</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
/**
* <p>The address of an Object Storage Service (OSS) bucket. This parameter does not take effect. You can call this operation to add only VOD buckets.</p>
*
* <strong>example:</strong>
* <p>out-****.oss-cn-shanghai.aliyuncs.com</p>
*/
public Builder storageLocation(String storageLocation) {
this.putQueryParameter("StorageLocation", storageLocation);
this.storageLocation = storageLocation;
return this;
}
/**
* <p>The storage class. Default value: <strong>vod_oss_bucket</strong>.</p>
*
* <strong>example:</strong>
* <p>vod_oss_bucket</p>
*/
public Builder storageType(String storageType) {
this.putQueryParameter("StorageType", storageType);
this.storageType = storageType;
return this;
}
@Override
public AddVodStorageForAppRequest build() {
return new AddVodStorageForAppRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddVodStorageForAppResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddVodStorageForAppResponse} extends {@link TeaModel}
*
* <p>AddVodStorageForAppResponse</p>
*/
public class AddVodStorageForAppResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private AddVodStorageForAppResponseBody body;
private AddVodStorageForAppResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static AddVodStorageForAppResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public AddVodStorageForAppResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<AddVodStorageForAppResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(AddVodStorageForAppResponseBody body);
@Override
AddVodStorageForAppResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<AddVodStorageForAppResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private AddVodStorageForAppResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(AddVodStorageForAppResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(AddVodStorageForAppResponseBody body) {
this.body = body;
return this;
}
@Override
public AddVodStorageForAppResponse build() {
return new AddVodStorageForAppResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddVodStorageForAppResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddVodStorageForAppResponseBody} extends {@link TeaModel}
*
* <p>AddVodStorageForAppResponseBody</p>
*/
public class AddVodStorageForAppResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("StorageLocation")
private String storageLocation;
private AddVodStorageForAppResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.storageLocation = builder.storageLocation;
}
public static Builder builder() {
return new Builder();
}
public static AddVodStorageForAppResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return storageLocation
*/
public String getStorageLocation() {
return this.storageLocation;
}
public static final class Builder {
private String requestId;
private String storageLocation;
private Builder() {
}
private Builder(AddVodStorageForAppResponseBody model) {
this.requestId = model.requestId;
this.storageLocation = model.storageLocation;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>25818875-5F78-4A*****F6-D7393642CA58</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The address of the VOD bucket.</p>
*
* <strong>example:</strong>
* <p>out-****.oss-cn-shanghai.aliyuncs.com</p>
*/
public Builder storageLocation(String storageLocation) {
this.storageLocation = storageLocation;
return this;
}
public AddVodStorageForAppResponseBody build() {
return new AddVodStorageForAppResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddVodTemplateRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddVodTemplateRequest} extends {@link RequestModel}
*
* <p>AddVodTemplateRequest</p>
*/
public class AddVodTemplateRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
@com.aliyun.core.annotation.Validation(required = true)
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TemplateConfig")
@com.aliyun.core.annotation.Validation(required = true)
private String templateConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TemplateType")
@com.aliyun.core.annotation.Validation(required = true)
private String templateType;
private AddVodTemplateRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.name = builder.name;
this.templateConfig = builder.templateConfig;
this.templateType = builder.templateType;
}
public static Builder builder() {
return new Builder();
}
public static AddVodTemplateRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return templateConfig
*/
public String getTemplateConfig() {
return this.templateConfig;
}
/**
* @return templateType
*/
public String getTemplateType() {
return this.templateType;
}
public static final class Builder extends Request.Builder<AddVodTemplateRequest, Builder> {
private String appId;
private String name;
private String templateConfig;
private String templateType;
private Builder() {
super();
}
private Builder(AddVodTemplateRequest request) {
super(request);
this.appId = request.appId;
this.name = request.name;
this.templateConfig = request.templateConfig;
this.templateType = request.templateType;
}
/**
* <p>The ID of the application. Default value: <strong>app-1000000</strong>. For more information, see <a href="https://help.aliyun.com/document_detail/113600.html">Multi-application service</a>.</p>
*
* <strong>example:</strong>
* <p>app-****</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
/**
* <p>The name of the template.</p>
* <ul>
* <li>The name cannot exceed 128 bytes.</li>
* <li>The value must be encoded in UTF-8.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>The configurations of the snapshot template. The value must be a JSON string. For more information about the data structure, see <a href="https://help.aliyun.com/document_detail/98618.html">SnapshotTemplateConfig</a> and <a href="https://help.aliyun.com/document_detail/98618.html">DynamicImageTemplateConfig</a>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>{"SnapshotConfig":{"Count":10,"SpecifiedOffsetTime":0,"Interval":1,"FrameType":"normal"},"SnapshotType":"NormalSnapshot"}</p>
*/
public Builder templateConfig(String templateConfig) {
this.putQueryParameter("TemplateConfig", templateConfig);
this.templateConfig = templateConfig;
return this;
}
/**
* <p>The type of the template. Set the value to <strong>Snapshot</strong>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Snapshot</p>
*/
public Builder templateType(String templateType) {
this.putQueryParameter("TemplateType", templateType);
this.templateType = templateType;
return this;
}
@Override
public AddVodTemplateRequest build() {
return new AddVodTemplateRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddVodTemplateResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddVodTemplateResponse} extends {@link TeaModel}
*
* <p>AddVodTemplateResponse</p>
*/
public class AddVodTemplateResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private AddVodTemplateResponseBody body;
private AddVodTemplateResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static AddVodTemplateResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public AddVodTemplateResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<AddVodTemplateResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(AddVodTemplateResponseBody body);
@Override
AddVodTemplateResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<AddVodTemplateResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private AddVodTemplateResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(AddVodTemplateResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(AddVodTemplateResponseBody body) {
this.body = body;
return this;
}
@Override
public AddVodTemplateResponse build() {
return new AddVodTemplateResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddVodTemplateResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddVodTemplateResponseBody} extends {@link TeaModel}
*
* <p>AddVodTemplateResponseBody</p>
*/
public class AddVodTemplateResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("VodTemplateId")
private String vodTemplateId;
private AddVodTemplateResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.vodTemplateId = builder.vodTemplateId;
}
public static Builder builder() {
return new Builder();
}
public static AddVodTemplateResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return vodTemplateId
*/
public String getVodTemplateId() {
return this.vodTemplateId;
}
public static final class Builder {
private String requestId;
private String vodTemplateId;
private Builder() {
}
private Builder(AddVodTemplateResponseBody model) {
this.requestId = model.requestId;
this.vodTemplateId = model.vodTemplateId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>25818875-5F78-4A*****F6-D7393642CA58</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the snapshot template. You can call the <a href="https://help.aliyun.com/document_detail/72213.html">SubmitSnapshotJob</a> operation to submit snapshot jobs.</p>
*
* <strong>example:</strong>
* <p>f5b228fe6930e*****0d6bf55bd87789</p>
*/
public Builder vodTemplateId(String vodTemplateId) {
this.vodTemplateId = vodTemplateId;
return this;
}
public AddVodTemplateResponseBody build() {
return new AddVodTemplateResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddWatermarkRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddWatermarkRequest} extends {@link RequestModel}
*
* <p>AddWatermarkRequest</p>
*/
public class AddWatermarkRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FileUrl")
private String fileUrl;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
@com.aliyun.core.annotation.Validation(required = true)
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Type")
@com.aliyun.core.annotation.Validation(required = true)
private String type;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("WatermarkConfig")
@com.aliyun.core.annotation.Validation(required = true)
private String watermarkConfig;
private AddWatermarkRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.fileUrl = builder.fileUrl;
this.name = builder.name;
this.type = builder.type;
this.watermarkConfig = builder.watermarkConfig;
}
public static Builder builder() {
return new Builder();
}
public static AddWatermarkRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return fileUrl
*/
public String getFileUrl() {
return this.fileUrl;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return watermarkConfig
*/
public String getWatermarkConfig() {
return this.watermarkConfig;
}
public static final class Builder extends Request.Builder<AddWatermarkRequest, Builder> {
private String appId;
private String fileUrl;
private String name;
private String type;
private String watermarkConfig;
private Builder() {
super();
}
private Builder(AddWatermarkRequest request) {
super(request);
this.appId = request.appId;
this.fileUrl = request.fileUrl;
this.name = request.name;
this.type = request.type;
this.watermarkConfig = request.watermarkConfig;
}
/**
* <p>The ID of the application. Default value: <strong>app-1000000</strong>. If you have activated the multi-application service, specify the ID of the application to add the watermark template in the specified application. For more information, see <a href="https://help.aliyun.com/document_detail/113600.html">Overview</a>.</p>
*
* <strong>example:</strong>
* <p>app-****</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
/**
* <p>The URL of the watermark file. The URL must be an Object Storage Service (OSS) URL and cannot contain the information used for URL signing.</p>
* <blockquote>
* <ul>
* <li>This parameter is required if you set <code>Type</code> to <code>Image</code>.</li>
* <li>You can obtain the URL from the <code>FileURL</code> parameter in the response to the <a href="~~CreateUploadAttachedMedia~~">CreateUploadAttachedMedia</a> operation that you call to upload the watermark image to ApsaraVideo VOD.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p><a href="http://outin-326268*****63e1403e7.oss-cn-shanghai.aliyuncs.com/image/cover/C99345*****E7FDEC-6-2.png">http://outin-326268*****63e1403e7.oss-cn-shanghai.aliyuncs.com/image/cover/C99345*****E7FDEC-6-2.png</a></p>
*/
public Builder fileUrl(String fileUrl) {
this.putQueryParameter("FileUrl", fileUrl);
this.fileUrl = fileUrl;
return this;
}
/**
* <p>The name of the watermark template.</p>
* <ul>
* <li>Only letters and digits are supported.</li>
* <li>The name cannot exceed 128 bytes.</li>
* <li>The value must be encoded in UTF-8.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>watermark</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>The type of the watermark template. Valid values:</p>
* <ul>
* <li><strong>Image</strong> (default): image watermark template</li>
* <li><strong>Text</strong>: text watermark template</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Text</p>
*/
public Builder type(String type) {
this.putQueryParameter("Type", type);
this.type = type;
return this;
}
/**
* <p>The configuration information of the watermark such as the display position and special effects. The value must be a JSON string. The configuration parameters for image and text watermarks are different. For more information about the parameter structure, see <a href="~~98618#section-h01-44s-2lr~~">WatermarkConfig</a>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>{"Width":"55","Height":"55","Dx":"9","Dy":"9","ReferPos":"BottonLeft"}</p>
*/
public Builder watermarkConfig(String watermarkConfig) {
this.putQueryParameter("WatermarkConfig", watermarkConfig);
this.watermarkConfig = watermarkConfig;
return this;
}
@Override
public AddWatermarkRequest build() {
return new AddWatermarkRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddWatermarkResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddWatermarkResponse} extends {@link TeaModel}
*
* <p>AddWatermarkResponse</p>
*/
public class AddWatermarkResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private AddWatermarkResponseBody body;
private AddWatermarkResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static AddWatermarkResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public AddWatermarkResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<AddWatermarkResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(AddWatermarkResponseBody body);
@Override
AddWatermarkResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<AddWatermarkResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private AddWatermarkResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(AddWatermarkResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(AddWatermarkResponseBody body) {
this.body = body;
return this;
}
@Override
public AddWatermarkResponse build() {
return new AddWatermarkResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AddWatermarkResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddWatermarkResponseBody} extends {@link TeaModel}
*
* <p>AddWatermarkResponseBody</p>
*/
public class AddWatermarkResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("WatermarkInfo")
private WatermarkInfo watermarkInfo;
private AddWatermarkResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.watermarkInfo = builder.watermarkInfo;
}
public static Builder builder() {
return new Builder();
}
public static AddWatermarkResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return watermarkInfo
*/
public WatermarkInfo getWatermarkInfo() {
return this.watermarkInfo;
}
public static final class Builder {
private String requestId;
private WatermarkInfo watermarkInfo;
private Builder() {
}
private Builder(AddWatermarkResponseBody model) {
this.requestId = model.requestId;
this.watermarkInfo = model.watermarkInfo;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>25818875-5F78-4A*****F6-D7393642CA58</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information about the watermark template.</p>
*/
public Builder watermarkInfo(WatermarkInfo watermarkInfo) {
this.watermarkInfo = watermarkInfo;
return this;
}
public AddWatermarkResponseBody build() {
return new AddWatermarkResponseBody(this);
}
}
/**
*
* {@link AddWatermarkResponseBody} extends {@link TeaModel}
*
* <p>AddWatermarkResponseBody</p>
*/
public static class WatermarkInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("FileUrl")
private String fileUrl;
@com.aliyun.core.annotation.NameInMap("IsDefault")
private String isDefault;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("WatermarkConfig")
private String watermarkConfig;
@com.aliyun.core.annotation.NameInMap("WatermarkId")
private String watermarkId;
private WatermarkInfo(Builder builder) {
this.creationTime = builder.creationTime;
this.fileUrl = builder.fileUrl;
this.isDefault = builder.isDefault;
this.name = builder.name;
this.type = builder.type;
this.watermarkConfig = builder.watermarkConfig;
this.watermarkId = builder.watermarkId;
}
public static Builder builder() {
return new Builder();
}
public static WatermarkInfo create() {
return builder().build();
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return fileUrl
*/
public String getFileUrl() {
return this.fileUrl;
}
/**
* @return isDefault
*/
public String getIsDefault() {
return this.isDefault;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return watermarkConfig
*/
public String getWatermarkConfig() {
return this.watermarkConfig;
}
/**
* @return watermarkId
*/
public String getWatermarkId() {
return this.watermarkId;
}
public static final class Builder {
private String creationTime;
private String fileUrl;
private String isDefault;
private String name;
private String type;
private String watermarkConfig;
private String watermarkId;
private Builder() {
}
private Builder(WatermarkInfo model) {
this.creationTime = model.creationTime;
this.fileUrl = model.fileUrl;
this.isDefault = model.isDefault;
this.name = model.name;
this.type = model.type;
this.watermarkConfig = model.watermarkConfig;
this.watermarkId = model.watermarkId;
}
/**
* <p>The time when the watermark template was created. The time follows the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm:ss</em>Z format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2018-11-07T09:05:52Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The URL of the watermark file. The URL is an Object Storage Service (OSS) URL or an Alibaba Cloud CDN URL.</p>
* <blockquote>
* <p> This parameter is returned only for image watermark templates.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p><a href="https://outin-3262*****9f4b3e7.oss-cn-shanghai.aliyuncs.com/image/cover/E6C3448CC8B715E6F8A72EC6B-6-2.png?Expires=1541600583&OSSAccessKeyId=****&Signature=gmf1eYMoDVg%2BHQCb4UGozBW">https://outin-3262*****9f4b3e7.oss-cn-shanghai.aliyuncs.com/image/cover/E6C3448CC8B715E6F8A72EC6B-6-2.png?Expires=1541600583&OSSAccessKeyId=****&Signature=gmf1eYMoDVg%2BHQCb4UGozBW</a>****</p>
*/
public Builder fileUrl(String fileUrl) {
this.fileUrl = fileUrl;
return this;
}
/**
* <p>Indicates whether the watermark template is the default one. Valid values:</p>
* <ul>
* <li><strong>Default</strong></li>
* <li><strong>NotDefault</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>NotDefault</p>
*/
public Builder isDefault(String isDefault) {
this.isDefault = isDefault;
return this;
}
/**
* <p>The name of the watermark template.</p>
*
* <strong>example:</strong>
* <p>text watermark test</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The type of the watermark template.</p>
* <ul>
* <li><strong>Image</strong>: image watermark template</li>
* <li><strong>Text</strong>: text watermark template</li>
* </ul>
*
* <strong>example:</strong>
* <p>Text</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The configuration information of the watermark such as the display position and special effects. The value is a JSON string. The configuration parameters for image and text watermarks are different. For more information about the parameter structure, see <a href="~~98618#section-h01-44s-2lr~~">WatermarkConfig</a>.</p>
*
* <strong>example:</strong>
* <p>{"FontColor": "Blue","FontSize": 80, "Content": "watermark test" }</p>
*/
public Builder watermarkConfig(String watermarkConfig) {
this.watermarkConfig = watermarkConfig;
return this;
}
/**
* <p>The ID of the watermark template.</p>
*
* <strong>example:</strong>
* <p>9bcc8bfadb84*****109a2671d0df97</p>
*/
public Builder watermarkId(String watermarkId) {
this.watermarkId = watermarkId;
return this;
}
public WatermarkInfo build() {
return new WatermarkInfo(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AppInfoDTO.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AppInfoDTO} extends {@link TeaModel}
*
* <p>AppInfoDTO</p>
*/
public class AppInfoDTO extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppName")
private String appName;
@com.aliyun.core.annotation.NameInMap("AppType")
private Integer appType;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("GmtCreate")
private String gmtCreate;
@com.aliyun.core.annotation.NameInMap("GmtModified")
private String gmtModified;
@com.aliyun.core.annotation.NameInMap("ItemId")
private String itemId;
@com.aliyun.core.annotation.NameInMap("ModificationTime")
private String modificationTime;
@com.aliyun.core.annotation.NameInMap("Platforms")
private java.util.List<Platforms> platforms;
@com.aliyun.core.annotation.NameInMap("UserId")
private Long userId;
private AppInfoDTO(Builder builder) {
this.appName = builder.appName;
this.appType = builder.appType;
this.creationTime = builder.creationTime;
this.gmtCreate = builder.gmtCreate;
this.gmtModified = builder.gmtModified;
this.itemId = builder.itemId;
this.modificationTime = builder.modificationTime;
this.platforms = builder.platforms;
this.userId = builder.userId;
}
public static Builder builder() {
return new Builder();
}
public static AppInfoDTO create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return appType
*/
public Integer getAppType() {
return this.appType;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return gmtCreate
*/
public String getGmtCreate() {
return this.gmtCreate;
}
/**
* @return gmtModified
*/
public String getGmtModified() {
return this.gmtModified;
}
/**
* @return itemId
*/
public String getItemId() {
return this.itemId;
}
/**
* @return modificationTime
*/
public String getModificationTime() {
return this.modificationTime;
}
/**
* @return platforms
*/
public java.util.List<Platforms> getPlatforms() {
return this.platforms;
}
/**
* @return userId
*/
public Long getUserId() {
return this.userId;
}
public static final class Builder {
private String appName;
private Integer appType;
private String creationTime;
private String gmtCreate;
private String gmtModified;
private String itemId;
private String modificationTime;
private java.util.List<Platforms> platforms;
private Long userId;
private Builder() {
}
private Builder(AppInfoDTO model) {
this.appName = model.appName;
this.appType = model.appType;
this.creationTime = model.creationTime;
this.gmtCreate = model.gmtCreate;
this.gmtModified = model.gmtModified;
this.itemId = model.itemId;
this.modificationTime = model.modificationTime;
this.platforms = model.platforms;
this.userId = model.userId;
}
/**
* AppName.
*/
public Builder appName(String appName) {
this.appName = appName;
return this;
}
/**
* AppType.
*/
public Builder appType(Integer appType) {
this.appType = appType;
return this;
}
/**
* CreationTime.
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* GmtCreate.
*/
public Builder gmtCreate(String gmtCreate) {
this.gmtCreate = gmtCreate;
return this;
}
/**
* GmtModified.
*/
public Builder gmtModified(String gmtModified) {
this.gmtModified = gmtModified;
return this;
}
/**
* ItemId.
*/
public Builder itemId(String itemId) {
this.itemId = itemId;
return this;
}
/**
* ModificationTime.
*/
public Builder modificationTime(String modificationTime) {
this.modificationTime = modificationTime;
return this;
}
/**
* Platforms.
*/
public Builder platforms(java.util.List<Platforms> platforms) {
this.platforms = platforms;
return this;
}
/**
* UserId.
*/
public Builder userId(Long userId) {
this.userId = userId;
return this;
}
public AppInfoDTO build() {
return new AppInfoDTO(this);
}
}
/**
*
* {@link AppInfoDTO} extends {@link TeaModel}
*
* <p>AppInfoDTO</p>
*/
public static class Platforms extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ItemId")
private String itemId;
@com.aliyun.core.annotation.NameInMap("LicenseItemIds")
private java.util.List<String> licenseItemIds;
@com.aliyun.core.annotation.NameInMap("PkgName")
private String pkgName;
@com.aliyun.core.annotation.NameInMap("PkgSignature")
private String pkgSignature;
@com.aliyun.core.annotation.NameInMap("PlatformType")
private Long platformType;
@com.aliyun.core.annotation.NameInMap("Type")
private Long type;
private Platforms(Builder builder) {
this.itemId = builder.itemId;
this.licenseItemIds = builder.licenseItemIds;
this.pkgName = builder.pkgName;
this.pkgSignature = builder.pkgSignature;
this.platformType = builder.platformType;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static Platforms create() {
return builder().build();
}
/**
* @return itemId
*/
public String getItemId() {
return this.itemId;
}
/**
* @return licenseItemIds
*/
public java.util.List<String> getLicenseItemIds() {
return this.licenseItemIds;
}
/**
* @return pkgName
*/
public String getPkgName() {
return this.pkgName;
}
/**
* @return pkgSignature
*/
public String getPkgSignature() {
return this.pkgSignature;
}
/**
* @return platformType
*/
public Long getPlatformType() {
return this.platformType;
}
/**
* @return type
*/
public Long getType() {
return this.type;
}
public static final class Builder {
private String itemId;
private java.util.List<String> licenseItemIds;
private String pkgName;
private String pkgSignature;
private Long platformType;
private Long type;
private Builder() {
}
private Builder(Platforms model) {
this.itemId = model.itemId;
this.licenseItemIds = model.licenseItemIds;
this.pkgName = model.pkgName;
this.pkgSignature = model.pkgSignature;
this.platformType = model.platformType;
this.type = model.type;
}
/**
* ItemId.
*/
public Builder itemId(String itemId) {
this.itemId = itemId;
return this;
}
/**
* LicenseItemIds.
*/
public Builder licenseItemIds(java.util.List<String> licenseItemIds) {
this.licenseItemIds = licenseItemIds;
return this;
}
/**
* PkgName.
*/
public Builder pkgName(String pkgName) {
this.pkgName = pkgName;
return this;
}
/**
* PkgSignature.
*/
public Builder pkgSignature(String pkgSignature) {
this.pkgSignature = pkgSignature;
return this;
}
/**
* PlatformType.
*/
public Builder platformType(Long platformType) {
this.platformType = platformType;
return this;
}
/**
* Type.
*/
public Builder type(Long type) {
this.type = type;
return this;
}
public Platforms build() {
return new Platforms(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AttachAppPolicyToIdentityRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AttachAppPolicyToIdentityRequest} extends {@link RequestModel}
*
* <p>AttachAppPolicyToIdentityRequest</p>
*/
public class AttachAppPolicyToIdentityRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IdentityName")
@com.aliyun.core.annotation.Validation(required = true)
private String identityName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IdentityType")
@com.aliyun.core.annotation.Validation(required = true)
private String identityType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PolicyNames")
@com.aliyun.core.annotation.Validation(required = true)
private String policyNames;
private AttachAppPolicyToIdentityRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.identityName = builder.identityName;
this.identityType = builder.identityType;
this.policyNames = builder.policyNames;
}
public static Builder builder() {
return new Builder();
}
public static AttachAppPolicyToIdentityRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return identityName
*/
public String getIdentityName() {
return this.identityName;
}
/**
* @return identityType
*/
public String getIdentityType() {
return this.identityType;
}
/**
* @return policyNames
*/
public String getPolicyNames() {
return this.policyNames;
}
public static final class Builder extends Request.Builder<AttachAppPolicyToIdentityRequest, Builder> {
private String appId;
private String identityName;
private String identityType;
private String policyNames;
private Builder() {
super();
}
private Builder(AttachAppPolicyToIdentityRequest request) {
super(request);
this.appId = request.appId;
this.identityName = request.identityName;
this.identityType = request.identityType;
this.policyNames = request.policyNames;
}
/**
* <p>The ID of the application. Default value: <strong>app-1000000</strong>. For more information, see <a href="https://help.aliyun.com/document_detail/113600.html">Multi-application service</a>.</p>
* <blockquote>
* <p>This parameter is optional only if you set the policy name to VODAppAdministratorAccess.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>app-****</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
/**
* <p>The ID of the RAM user or the name of the RAM role.</p>
* <ul>
* <li>Specify the ID of the RAM user when the IdentityType parameter is set to RamUser.</li>
* <li>Specify the name of the RAM role when the IdentityType parameter is set to RamRole.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <hr>
*/
public Builder identityName(String identityName) {
this.putQueryParameter("IdentityName", identityName);
this.identityName = identityName;
return this;
}
/**
* <p>The type of the identity. Valid values:</p>
* <ul>
* <li><strong>RamUser</strong>: a RAM user</li>
* <li><strong>RamRole</strong>: a RAM role</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>RamRole</p>
*/
public Builder identityType(String identityType) {
this.putQueryParameter("IdentityType", identityType);
this.identityType = identityType;
return this;
}
/**
* <p>The name of the policy. Only system policies are supported. Separate multiple policy names with commas (,). Valid values:</p>
* <ul>
* <li><strong>VODAppFullAccess</strong>: permissions to manage all resources in an application.</li>
* <li><strong>VODAppReadOnlyAccess</strong>: permissions to read all resources in an application.</li>
* <li><strong>VODAppAdministratorAccess</strong>: permissions of the application administrator.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>VODAppFullAccess</p>
*/
public Builder policyNames(String policyNames) {
this.putQueryParameter("PolicyNames", policyNames);
this.policyNames = policyNames;
return this;
}
@Override
public AttachAppPolicyToIdentityRequest build() {
return new AttachAppPolicyToIdentityRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AttachAppPolicyToIdentityResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AttachAppPolicyToIdentityResponse} extends {@link TeaModel}
*
* <p>AttachAppPolicyToIdentityResponse</p>
*/
public class AttachAppPolicyToIdentityResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private AttachAppPolicyToIdentityResponseBody body;
private AttachAppPolicyToIdentityResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static AttachAppPolicyToIdentityResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public AttachAppPolicyToIdentityResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<AttachAppPolicyToIdentityResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(AttachAppPolicyToIdentityResponseBody body);
@Override
AttachAppPolicyToIdentityResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<AttachAppPolicyToIdentityResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private AttachAppPolicyToIdentityResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(AttachAppPolicyToIdentityResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(AttachAppPolicyToIdentityResponseBody body) {
this.body = body;
return this;
}
@Override
public AttachAppPolicyToIdentityResponse build() {
return new AttachAppPolicyToIdentityResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/AttachAppPolicyToIdentityResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AttachAppPolicyToIdentityResponseBody} extends {@link TeaModel}
*
* <p>AttachAppPolicyToIdentityResponseBody</p>
*/
public class AttachAppPolicyToIdentityResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FailedPolicyNames")
private java.util.List<String> failedPolicyNames;
@com.aliyun.core.annotation.NameInMap("NonExistPolicyNames")
private java.util.List<String> nonExistPolicyNames;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private AttachAppPolicyToIdentityResponseBody(Builder builder) {
this.failedPolicyNames = builder.failedPolicyNames;
this.nonExistPolicyNames = builder.nonExistPolicyNames;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static AttachAppPolicyToIdentityResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return failedPolicyNames
*/
public java.util.List<String> getFailedPolicyNames() {
return this.failedPolicyNames;
}
/**
* @return nonExistPolicyNames
*/
public java.util.List<String> getNonExistPolicyNames() {
return this.nonExistPolicyNames;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<String> failedPolicyNames;
private java.util.List<String> nonExistPolicyNames;
private String requestId;
private Builder() {
}
private Builder(AttachAppPolicyToIdentityResponseBody model) {
this.failedPolicyNames = model.failedPolicyNames;
this.nonExistPolicyNames = model.nonExistPolicyNames;
this.requestId = model.requestId;
}
/**
* <p>The names of the policies that failed to be granted to the RAM user or RAM role.</p>
*/
public Builder failedPolicyNames(java.util.List<String> failedPolicyNames) {
this.failedPolicyNames = failedPolicyNames;
return this;
}
/**
* <p>The names of the policies that were not found.</p>
*/
public Builder nonExistPolicyNames(java.util.List<String> nonExistPolicyNames) {
this.nonExistPolicyNames = nonExistPolicyNames;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>25818875-5F78-4A13-****-D7393642CA58</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public AttachAppPolicyToIdentityResponseBody build() {
return new AttachAppPolicyToIdentityResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/BatchGetMediaInfosRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link BatchGetMediaInfosRequest} extends {@link RequestModel}
*
* <p>BatchGetMediaInfosRequest</p>
*/
public class BatchGetMediaInfosRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MediaIds")
@com.aliyun.core.annotation.Validation(required = true)
private String mediaIds;
private BatchGetMediaInfosRequest(Builder builder) {
super(builder);
this.mediaIds = builder.mediaIds;
}
public static Builder builder() {
return new Builder();
}
public static BatchGetMediaInfosRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return mediaIds
*/
public String getMediaIds() {
return this.mediaIds;
}
public static final class Builder extends Request.Builder<BatchGetMediaInfosRequest, Builder> {
private String mediaIds;
private Builder() {
super();
}
private Builder(BatchGetMediaInfosRequest request) {
super(request);
this.mediaIds = request.mediaIds;
}
/**
* <p>The ID of the media asset. The ID can be the video ID or audio ID. Separate IDs with commas (,). You can specify a maximum of 20 IDs. You can use one of the following methods to obtain the ID of the media asset:</p>
* <ul>
* <li>Log on to the ApsaraVideo VOD console. In the left-side navigation pane, choose Media Files > Audio/Video. On the Video and Audio page, view the ID of the media asset. This method is applicable to files that are uploaded by using the ApsaraVideo VOD console.</li>
* <li>Obtain the value of VideoId from the response to the CreateUploadVideo operation that you call to upload media assets.</li>
* <li>Obtain the value of VideoId from the response to the SearchMedia operation that you call to query the media ID after the media asset is uploaded.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>61ccbdb06fa83012be4d8083f6****,7d2fbc380b0e08e55f****</p>
*/
public Builder mediaIds(String mediaIds) {
this.putQueryParameter("MediaIds", mediaIds);
this.mediaIds = mediaIds;
return this;
}
@Override
public BatchGetMediaInfosRequest build() {
return new BatchGetMediaInfosRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/BatchGetMediaInfosResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link BatchGetMediaInfosResponse} extends {@link TeaModel}
*
* <p>BatchGetMediaInfosResponse</p>
*/
public class BatchGetMediaInfosResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private BatchGetMediaInfosResponseBody body;
private BatchGetMediaInfosResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static BatchGetMediaInfosResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public BatchGetMediaInfosResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<BatchGetMediaInfosResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(BatchGetMediaInfosResponseBody body);
@Override
BatchGetMediaInfosResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<BatchGetMediaInfosResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BatchGetMediaInfosResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(BatchGetMediaInfosResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(BatchGetMediaInfosResponseBody body) {
this.body = body;
return this;
}
@Override
public BatchGetMediaInfosResponse build() {
return new BatchGetMediaInfosResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/BatchGetMediaInfosResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link BatchGetMediaInfosResponseBody} extends {@link TeaModel}
*
* <p>BatchGetMediaInfosResponseBody</p>
*/
public class BatchGetMediaInfosResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ForbiddenMediaIds")
private java.util.List<String> forbiddenMediaIds;
@com.aliyun.core.annotation.NameInMap("MediaInfos")
private java.util.List<MediaInfos> mediaInfos;
@com.aliyun.core.annotation.NameInMap("NonExistMediaIds")
private java.util.List<String> nonExistMediaIds;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private BatchGetMediaInfosResponseBody(Builder builder) {
this.forbiddenMediaIds = builder.forbiddenMediaIds;
this.mediaInfos = builder.mediaInfos;
this.nonExistMediaIds = builder.nonExistMediaIds;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static BatchGetMediaInfosResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return forbiddenMediaIds
*/
public java.util.List<String> getForbiddenMediaIds() {
return this.forbiddenMediaIds;
}
/**
* @return mediaInfos
*/
public java.util.List<MediaInfos> getMediaInfos() {
return this.mediaInfos;
}
/**
* @return nonExistMediaIds
*/
public java.util.List<String> getNonExistMediaIds() {
return this.nonExistMediaIds;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<String> forbiddenMediaIds;
private java.util.List<MediaInfos> mediaInfos;
private java.util.List<String> nonExistMediaIds;
private String requestId;
private Builder() {
}
private Builder(BatchGetMediaInfosResponseBody model) {
this.forbiddenMediaIds = model.forbiddenMediaIds;
this.mediaInfos = model.mediaInfos;
this.nonExistMediaIds = model.nonExistMediaIds;
this.requestId = model.requestId;
}
/**
* <p>The IDs of the media assets that do not support the operation typically because you are not authorized to perform the operation. For more information, see <a href="https://help.aliyun.com/document_detail/113600.html">Overview</a>.</p>
*/
public Builder forbiddenMediaIds(java.util.List<String> forbiddenMediaIds) {
this.forbiddenMediaIds = forbiddenMediaIds;
return this;
}
/**
* <p>Details about media assets.</p>
*/
public Builder mediaInfos(java.util.List<MediaInfos> mediaInfos) {
this.mediaInfos = mediaInfos;
return this;
}
/**
* <p>The IDs of the media assets that do not exist.</p>
*/
public Builder nonExistMediaIds(java.util.List<String> nonExistMediaIds) {
this.nonExistMediaIds = nonExistMediaIds;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>9E290613-04F4-47F4-795D30732077****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public BatchGetMediaInfosResponseBody build() {
return new BatchGetMediaInfosResponseBody(this);
}
}
/**
*
* {@link BatchGetMediaInfosResponseBody} extends {@link TeaModel}
*
* <p>BatchGetMediaInfosResponseBody</p>
*/
public static class MediaInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("CateId")
private Long cateId;
@com.aliyun.core.annotation.NameInMap("CateName")
private String cateName;
@com.aliyun.core.annotation.NameInMap("CoverURL")
private String coverURL;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("DownloadSwitch")
private String downloadSwitch;
@com.aliyun.core.annotation.NameInMap("MediaId")
private String mediaId;
@com.aliyun.core.annotation.NameInMap("ModificationTime")
private String modificationTime;
@com.aliyun.core.annotation.NameInMap("RestoreExpiration")
private String restoreExpiration;
@com.aliyun.core.annotation.NameInMap("RestoreStatus")
private String restoreStatus;
@com.aliyun.core.annotation.NameInMap("Snapshots")
private java.util.List<String> snapshots;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("StorageClass")
private String storageClass;
@com.aliyun.core.annotation.NameInMap("StorageLocation")
private String storageLocation;
@com.aliyun.core.annotation.NameInMap("Tags")
private String tags;
@com.aliyun.core.annotation.NameInMap("TemplateGroupId")
private String templateGroupId;
@com.aliyun.core.annotation.NameInMap("Title")
private String title;
@com.aliyun.core.annotation.NameInMap("UserData")
private String userData;
private MediaInfo(Builder builder) {
this.appId = builder.appId;
this.cateId = builder.cateId;
this.cateName = builder.cateName;
this.coverURL = builder.coverURL;
this.creationTime = builder.creationTime;
this.description = builder.description;
this.downloadSwitch = builder.downloadSwitch;
this.mediaId = builder.mediaId;
this.modificationTime = builder.modificationTime;
this.restoreExpiration = builder.restoreExpiration;
this.restoreStatus = builder.restoreStatus;
this.snapshots = builder.snapshots;
this.status = builder.status;
this.storageClass = builder.storageClass;
this.storageLocation = builder.storageLocation;
this.tags = builder.tags;
this.templateGroupId = builder.templateGroupId;
this.title = builder.title;
this.userData = builder.userData;
}
public static Builder builder() {
return new Builder();
}
public static MediaInfo create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return cateId
*/
public Long getCateId() {
return this.cateId;
}
/**
* @return cateName
*/
public String getCateName() {
return this.cateName;
}
/**
* @return coverURL
*/
public String getCoverURL() {
return this.coverURL;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return downloadSwitch
*/
public String getDownloadSwitch() {
return this.downloadSwitch;
}
/**
* @return mediaId
*/
public String getMediaId() {
return this.mediaId;
}
/**
* @return modificationTime
*/
public String getModificationTime() {
return this.modificationTime;
}
/**
* @return restoreExpiration
*/
public String getRestoreExpiration() {
return this.restoreExpiration;
}
/**
* @return restoreStatus
*/
public String getRestoreStatus() {
return this.restoreStatus;
}
/**
* @return snapshots
*/
public java.util.List<String> getSnapshots() {
return this.snapshots;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return storageClass
*/
public String getStorageClass() {
return this.storageClass;
}
/**
* @return storageLocation
*/
public String getStorageLocation() {
return this.storageLocation;
}
/**
* @return tags
*/
public String getTags() {
return this.tags;
}
/**
* @return templateGroupId
*/
public String getTemplateGroupId() {
return this.templateGroupId;
}
/**
* @return title
*/
public String getTitle() {
return this.title;
}
/**
* @return userData
*/
public String getUserData() {
return this.userData;
}
public static final class Builder {
private String appId;
private Long cateId;
private String cateName;
private String coverURL;
private String creationTime;
private String description;
private String downloadSwitch;
private String mediaId;
private String modificationTime;
private String restoreExpiration;
private String restoreStatus;
private java.util.List<String> snapshots;
private String status;
private String storageClass;
private String storageLocation;
private String tags;
private String templateGroupId;
private String title;
private String userData;
private Builder() {
}
private Builder(MediaInfo model) {
this.appId = model.appId;
this.cateId = model.cateId;
this.cateName = model.cateName;
this.coverURL = model.coverURL;
this.creationTime = model.creationTime;
this.description = model.description;
this.downloadSwitch = model.downloadSwitch;
this.mediaId = model.mediaId;
this.modificationTime = model.modificationTime;
this.restoreExpiration = model.restoreExpiration;
this.restoreStatus = model.restoreStatus;
this.snapshots = model.snapshots;
this.status = model.status;
this.storageClass = model.storageClass;
this.storageLocation = model.storageLocation;
this.tags = model.tags;
this.templateGroupId = model.templateGroupId;
this.title = model.title;
this.userData = model.userData;
}
/**
* <p>The ID of the application.</p>
*
* <strong>example:</strong>
* <p>app-****</p>
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* <p>The ID of the category.</p>
*
* <strong>example:</strong>
* <p>781111****</p>
*/
public Builder cateId(Long cateId) {
this.cateId = cateId;
return this;
}
/**
* <p>The name of the category.</p>
*
* <strong>example:</strong>
* <p>CateName</p>
*/
public Builder cateName(String cateName) {
this.cateName = cateName;
return this;
}
/**
* <p>The thumbnail URL of the media asset.</p>
*
* <strong>example:</strong>
* <p><a href="https://example.aliyundoc.com/****.jpg">https://example.aliyundoc.com/****.jpg</a></p>
*/
public Builder coverURL(String coverURL) {
this.coverURL = coverURL;
return this;
}
/**
* <p>The time when the media asset was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2017-11-14T09:15:50Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The description of the media asset.</p>
*
* <strong>example:</strong>
* <p>Aliyun VOD Video Description</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>Indicates whether the offline download feature is enabled. If you enable the offline download feature, users can download and play videos by using the ApsaraVideo Player on a local PC. For more information, see <a href="https://help.aliyun.com/document_detail/86107.html">Configure download settings</a>. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder downloadSwitch(String downloadSwitch) {
this.downloadSwitch = downloadSwitch;
return this;
}
/**
* <p>The ID of the media asset.</p>
*
* <strong>example:</strong>
* <p>7753d144efd74d6c45fe0570****</p>
*/
public Builder mediaId(String mediaId) {
this.mediaId = mediaId;
return this;
}
/**
* <p>The time when the media asset was last updated. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2017-06-26T06:38:48Z</p>
*/
public Builder modificationTime(String modificationTime) {
this.modificationTime = modificationTime;
return this;
}
/**
* <p>The period of time in which the audio file remains in the restored state.</p>
*
* <strong>example:</strong>
* <p>2023-03-30T10:14:14Z</p>
*/
public Builder restoreExpiration(String restoreExpiration) {
this.restoreExpiration = restoreExpiration;
return this;
}
/**
* <p>The restoration status of the media asset. Valid values:</p>
* <ul>
* <li><strong>Processing</strong></li>
* <li><strong>Success</strong></li>
* <li><strong>Failed</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Success</p>
*/
public Builder restoreStatus(String restoreStatus) {
this.restoreStatus = restoreStatus;
return this;
}
/**
* <p>The array of video snapshot URLs.</p>
*/
public Builder snapshots(java.util.List<String> snapshots) {
this.snapshots = snapshots;
return this;
}
/**
* <p>The status of the video. Valid values:</p>
* <ul>
* <li><strong>Uploading</strong></li>
* <li><strong>UploadFail</strong></li>
* <li><strong>UploadSucc</strong></li>
* <li><strong>Transcoding</strong></li>
* <li><strong>TranscodeFail</strong></li>
* <li><strong>Blocked</strong></li>
* <li><strong>Normal</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The storage type. Valid values:</p>
* <ul>
* <li><strong>Standard</strong>: All media assets are stored as Standard objects.</li>
* <li><strong>IA</strong>: All media assets are stored as IA objects.</li>
* <li><strong>Archive</strong>: All media assets are stored as Archive objects.</li>
* <li><strong>ColdArchive</strong>: All media assets are stored as Cold Archive objects.</li>
* <li><strong>SourceIA</strong>: Only the source files are IA objects.</li>
* <li><strong>SourceArchive</strong>: Only the source files are Archive objects.</li>
* <li><strong>SourceColdArchive</strong>: Only the source file is stored as a Cold Archive object.</li>
* <li><strong>Changing</strong>: The storage class of the media asset is being changed.</li>
* <li><strong>SourceChanging</strong>: The storage class of the media asset is being changed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Standard</p>
*/
public Builder storageClass(String storageClass) {
this.storageClass = storageClass;
return this;
}
/**
* <p>The storage address of the media asset.</p>
*
* <strong>example:</strong>
* <p>outin-***.oss-cn-shanghai.aliyuncs.com</p>
*/
public Builder storageLocation(String storageLocation) {
this.storageLocation = storageLocation;
return this;
}
/**
* <p>The tags of the media asset. Separate tags with commas (,).</p>
*
* <strong>example:</strong>
* <p>tag1,tag2</p>
*/
public Builder tags(String tags) {
this.tags = tags;
return this;
}
/**
* <p>The ID of the transcoding template group.</p>
*
* <strong>example:</strong>
* <p>b4039216985f4312a5382a4ed****</p>
*/
public Builder templateGroupId(String templateGroupId) {
this.templateGroupId = templateGroupId;
return this;
}
/**
* <p>The title of the media asset.</p>
*
* <strong>example:</strong>
* <p>Aliyun VOD Video Title</p>
*/
public Builder title(String title) {
this.title = title;
return this;
}
/**
* <p>The custom parameters.</p>
*
* <strong>example:</strong>
* <p>{"Extend":"xxx","MessageCallback":"xxx"}</p>
*/
public Builder userData(String userData) {
this.userData = userData;
return this;
}
public MediaInfo build() {
return new MediaInfo(this);
}
}
}
/**
*
* {@link BatchGetMediaInfosResponseBody} extends {@link TeaModel}
*
* <p>BatchGetMediaInfosResponseBody</p>
*/
public static class AudioStreamList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Bitrate")
private String bitrate;
@com.aliyun.core.annotation.NameInMap("ChannelLayout")
private String channelLayout;
@com.aliyun.core.annotation.NameInMap("Channels")
private String channels;
@com.aliyun.core.annotation.NameInMap("CodecLongName")
private String codecLongName;
@com.aliyun.core.annotation.NameInMap("CodecName")
private String codecName;
@com.aliyun.core.annotation.NameInMap("CodecTag")
private String codecTag;
@com.aliyun.core.annotation.NameInMap("CodecTagString")
private String codecTagString;
@com.aliyun.core.annotation.NameInMap("CodecTimeBase")
private String codecTimeBase;
@com.aliyun.core.annotation.NameInMap("Duration")
private String duration;
@com.aliyun.core.annotation.NameInMap("Index")
private String index;
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.NameInMap("NumFrames")
private String numFrames;
@com.aliyun.core.annotation.NameInMap("SampleFmt")
private String sampleFmt;
@com.aliyun.core.annotation.NameInMap("SampleRate")
private String sampleRate;
@com.aliyun.core.annotation.NameInMap("StartTime")
private String startTime;
@com.aliyun.core.annotation.NameInMap("Timebase")
private String timebase;
private AudioStreamList(Builder builder) {
this.bitrate = builder.bitrate;
this.channelLayout = builder.channelLayout;
this.channels = builder.channels;
this.codecLongName = builder.codecLongName;
this.codecName = builder.codecName;
this.codecTag = builder.codecTag;
this.codecTagString = builder.codecTagString;
this.codecTimeBase = builder.codecTimeBase;
this.duration = builder.duration;
this.index = builder.index;
this.lang = builder.lang;
this.numFrames = builder.numFrames;
this.sampleFmt = builder.sampleFmt;
this.sampleRate = builder.sampleRate;
this.startTime = builder.startTime;
this.timebase = builder.timebase;
}
public static Builder builder() {
return new Builder();
}
public static AudioStreamList create() {
return builder().build();
}
/**
* @return bitrate
*/
public String getBitrate() {
return this.bitrate;
}
/**
* @return channelLayout
*/
public String getChannelLayout() {
return this.channelLayout;
}
/**
* @return channels
*/
public String getChannels() {
return this.channels;
}
/**
* @return codecLongName
*/
public String getCodecLongName() {
return this.codecLongName;
}
/**
* @return codecName
*/
public String getCodecName() {
return this.codecName;
}
/**
* @return codecTag
*/
public String getCodecTag() {
return this.codecTag;
}
/**
* @return codecTagString
*/
public String getCodecTagString() {
return this.codecTagString;
}
/**
* @return codecTimeBase
*/
public String getCodecTimeBase() {
return this.codecTimeBase;
}
/**
* @return duration
*/
public String getDuration() {
return this.duration;
}
/**
* @return index
*/
public String getIndex() {
return this.index;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return numFrames
*/
public String getNumFrames() {
return this.numFrames;
}
/**
* @return sampleFmt
*/
public String getSampleFmt() {
return this.sampleFmt;
}
/**
* @return sampleRate
*/
public String getSampleRate() {
return this.sampleRate;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
/**
* @return timebase
*/
public String getTimebase() {
return this.timebase;
}
public static final class Builder {
private String bitrate;
private String channelLayout;
private String channels;
private String codecLongName;
private String codecName;
private String codecTag;
private String codecTagString;
private String codecTimeBase;
private String duration;
private String index;
private String lang;
private String numFrames;
private String sampleFmt;
private String sampleRate;
private String startTime;
private String timebase;
private Builder() {
}
private Builder(AudioStreamList model) {
this.bitrate = model.bitrate;
this.channelLayout = model.channelLayout;
this.channels = model.channels;
this.codecLongName = model.codecLongName;
this.codecName = model.codecName;
this.codecTag = model.codecTag;
this.codecTagString = model.codecTagString;
this.codecTimeBase = model.codecTimeBase;
this.duration = model.duration;
this.index = model.index;
this.lang = model.lang;
this.numFrames = model.numFrames;
this.sampleFmt = model.sampleFmt;
this.sampleRate = model.sampleRate;
this.startTime = model.startTime;
this.timebase = model.timebase;
}
/**
* <p>The bitrate.</p>
*
* <strong>example:</strong>
* <p>62.885</p>
*/
public Builder bitrate(String bitrate) {
this.bitrate = bitrate;
return this;
}
/**
* <p>The output layout of the audio channels. Valid values:</p>
* <ul>
* <li><strong>mono</strong></li>
* <li><strong>stereo</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>mono</p>
*/
public Builder channelLayout(String channelLayout) {
this.channelLayout = channelLayout;
return this;
}
/**
* <p>The number of sound tracks.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder channels(String channels) {
this.channels = channels;
return this;
}
/**
* <p>The full name of the encoding format.</p>
*
* <strong>example:</strong>
* <p>AAC (Advanced Audio Coding)</p>
*/
public Builder codecLongName(String codecLongName) {
this.codecLongName = codecLongName;
return this;
}
/**
* <p>The short name of the encoding format.</p>
*
* <strong>example:</strong>
* <p>aac</p>
*/
public Builder codecName(String codecName) {
this.codecName = codecName;
return this;
}
/**
* <p>The tag of the encoding format.</p>
*
* <strong>example:</strong>
* <p>0x6134706d</p>
*/
public Builder codecTag(String codecTag) {
this.codecTag = codecTag;
return this;
}
/**
* <p>The tag string of the encoding format.</p>
*
* <strong>example:</strong>
* <p>mp4a</p>
*/
public Builder codecTagString(String codecTagString) {
this.codecTagString = codecTagString;
return this;
}
/**
* <p>The time base of the encoder.</p>
*
* <strong>example:</strong>
* <p>1/44100</p>
*/
public Builder codecTimeBase(String codecTimeBase) {
this.codecTimeBase = codecTimeBase;
return this;
}
/**
* <p>The duration.</p>
*
* <strong>example:</strong>
* <p>3.227574</p>
*/
public Builder duration(String duration) {
this.duration = duration;
return this;
}
/**
* <p>The sequence number of the audio stream. The value indicates the position of the audio stream in all audio streams.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder index(String index) {
this.index = index;
return this;
}
/**
* <p>The language.</p>
*
* <strong>example:</strong>
* <p>und</p>
*/
public Builder lang(String lang) {
this.lang = lang;
return this;
}
/**
* <p>The total number of frames.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder numFrames(String numFrames) {
this.numFrames = numFrames;
return this;
}
/**
* <p>The sampling format.</p>
*
* <strong>example:</strong>
* <p>fltp</p>
*/
public Builder sampleFmt(String sampleFmt) {
this.sampleFmt = sampleFmt;
return this;
}
/**
* <p>The sampling rate.</p>
*
* <strong>example:</strong>
* <p>44100</p>
*/
public Builder sampleRate(String sampleRate) {
this.sampleRate = sampleRate;
return this;
}
/**
* <p>The start time. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2017-01-11T12:00:00Z</p>
*/
public Builder startTime(String startTime) {
this.startTime = startTime;
return this;
}
/**
* <p>The time base.</p>
*
* <strong>example:</strong>
* <p>0.000000</p>
*/
public Builder timebase(String timebase) {
this.timebase = timebase;
return this;
}
public AudioStreamList build() {
return new AudioStreamList(this);
}
}
}
/**
*
* {@link BatchGetMediaInfosResponseBody} extends {@link TeaModel}
*
* <p>BatchGetMediaInfosResponseBody</p>
*/
public static class VideoStreamList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AvgFPS")
private String avgFPS;
@com.aliyun.core.annotation.NameInMap("Bitrate")
private String bitrate;
@com.aliyun.core.annotation.NameInMap("CodecLongName")
private String codecLongName;
@com.aliyun.core.annotation.NameInMap("CodecName")
private String codecName;
@com.aliyun.core.annotation.NameInMap("CodecTag")
private String codecTag;
@com.aliyun.core.annotation.NameInMap("CodecTagString")
private String codecTagString;
@com.aliyun.core.annotation.NameInMap("CodecTimeBase")
private String codecTimeBase;
@com.aliyun.core.annotation.NameInMap("Dar")
private String dar;
@com.aliyun.core.annotation.NameInMap("Duration")
private String duration;
@com.aliyun.core.annotation.NameInMap("Fps")
private String fps;
@com.aliyun.core.annotation.NameInMap("HDRType")
private String HDRType;
@com.aliyun.core.annotation.NameInMap("HasBFrames")
private String hasBFrames;
@com.aliyun.core.annotation.NameInMap("Height")
private String height;
@com.aliyun.core.annotation.NameInMap("Index")
private String index;
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.NameInMap("Level")
private String level;
@com.aliyun.core.annotation.NameInMap("NumFrames")
private String numFrames;
@com.aliyun.core.annotation.NameInMap("PixFmt")
private String pixFmt;
@com.aliyun.core.annotation.NameInMap("Profile")
private String profile;
@com.aliyun.core.annotation.NameInMap("Rotate")
private String rotate;
@com.aliyun.core.annotation.NameInMap("Sar")
private String sar;
@com.aliyun.core.annotation.NameInMap("StartTime")
private String startTime;
@com.aliyun.core.annotation.NameInMap("Timebase")
private String timebase;
@com.aliyun.core.annotation.NameInMap("Width")
private String width;
private VideoStreamList(Builder builder) {
this.avgFPS = builder.avgFPS;
this.bitrate = builder.bitrate;
this.codecLongName = builder.codecLongName;
this.codecName = builder.codecName;
this.codecTag = builder.codecTag;
this.codecTagString = builder.codecTagString;
this.codecTimeBase = builder.codecTimeBase;
this.dar = builder.dar;
this.duration = builder.duration;
this.fps = builder.fps;
this.HDRType = builder.HDRType;
this.hasBFrames = builder.hasBFrames;
this.height = builder.height;
this.index = builder.index;
this.lang = builder.lang;
this.level = builder.level;
this.numFrames = builder.numFrames;
this.pixFmt = builder.pixFmt;
this.profile = builder.profile;
this.rotate = builder.rotate;
this.sar = builder.sar;
this.startTime = builder.startTime;
this.timebase = builder.timebase;
this.width = builder.width;
}
public static Builder builder() {
return new Builder();
}
public static VideoStreamList create() {
return builder().build();
}
/**
* @return avgFPS
*/
public String getAvgFPS() {
return this.avgFPS;
}
/**
* @return bitrate
*/
public String getBitrate() {
return this.bitrate;
}
/**
* @return codecLongName
*/
public String getCodecLongName() {
return this.codecLongName;
}
/**
* @return codecName
*/
public String getCodecName() {
return this.codecName;
}
/**
* @return codecTag
*/
public String getCodecTag() {
return this.codecTag;
}
/**
* @return codecTagString
*/
public String getCodecTagString() {
return this.codecTagString;
}
/**
* @return codecTimeBase
*/
public String getCodecTimeBase() {
return this.codecTimeBase;
}
/**
* @return dar
*/
public String getDar() {
return this.dar;
}
/**
* @return duration
*/
public String getDuration() {
return this.duration;
}
/**
* @return fps
*/
public String getFps() {
return this.fps;
}
/**
* @return HDRType
*/
public String getHDRType() {
return this.HDRType;
}
/**
* @return hasBFrames
*/
public String getHasBFrames() {
return this.hasBFrames;
}
/**
* @return height
*/
public String getHeight() {
return this.height;
}
/**
* @return index
*/
public String getIndex() {
return this.index;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return level
*/
public String getLevel() {
return this.level;
}
/**
* @return numFrames
*/
public String getNumFrames() {
return this.numFrames;
}
/**
* @return pixFmt
*/
public String getPixFmt() {
return this.pixFmt;
}
/**
* @return profile
*/
public String getProfile() {
return this.profile;
}
/**
* @return rotate
*/
public String getRotate() {
return this.rotate;
}
/**
* @return sar
*/
public String getSar() {
return this.sar;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
/**
* @return timebase
*/
public String getTimebase() {
return this.timebase;
}
/**
* @return width
*/
public String getWidth() {
return this.width;
}
public static final class Builder {
private String avgFPS;
private String bitrate;
private String codecLongName;
private String codecName;
private String codecTag;
private String codecTagString;
private String codecTimeBase;
private String dar;
private String duration;
private String fps;
private String HDRType;
private String hasBFrames;
private String height;
private String index;
private String lang;
private String level;
private String numFrames;
private String pixFmt;
private String profile;
private String rotate;
private String sar;
private String startTime;
private String timebase;
private String width;
private Builder() {
}
private Builder(VideoStreamList model) {
this.avgFPS = model.avgFPS;
this.bitrate = model.bitrate;
this.codecLongName = model.codecLongName;
this.codecName = model.codecName;
this.codecTag = model.codecTag;
this.codecTagString = model.codecTagString;
this.codecTimeBase = model.codecTimeBase;
this.dar = model.dar;
this.duration = model.duration;
this.fps = model.fps;
this.HDRType = model.HDRType;
this.hasBFrames = model.hasBFrames;
this.height = model.height;
this.index = model.index;
this.lang = model.lang;
this.level = model.level;
this.numFrames = model.numFrames;
this.pixFmt = model.pixFmt;
this.profile = model.profile;
this.rotate = model.rotate;
this.sar = model.sar;
this.startTime = model.startTime;
this.timebase = model.timebase;
this.width = model.width;
}
/**
* <p>The average frame rate.</p>
*
* <strong>example:</strong>
* <p>30.0</p>
*/
public Builder avgFPS(String avgFPS) {
this.avgFPS = avgFPS;
return this;
}
/**
* <p>The bitrate of the file. Unit: Kbit/s.</p>
*
* <strong>example:</strong>
* <p>500</p>
*/
public Builder bitrate(String bitrate) {
this.bitrate = bitrate;
return this;
}
/**
* <p>The full name of the encoding format.</p>
*
* <strong>example:</strong>
* <p>H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10</p>
*/
public Builder codecLongName(String codecLongName) {
this.codecLongName = codecLongName;
return this;
}
/**
* <p>The short name of the encoding format.</p>
*
* <strong>example:</strong>
* <p>h264</p>
*/
public Builder codecName(String codecName) {
this.codecName = codecName;
return this;
}
/**
* <p>The tag of the encoding format.</p>
*
* <strong>example:</strong>
* <p>0x31637661</p>
*/
public Builder codecTag(String codecTag) {
this.codecTag = codecTag;
return this;
}
/**
* <p>The tag string of the encoding format.</p>
*
* <strong>example:</strong>
* <p>avc1</p>
*/
public Builder codecTagString(String codecTagString) {
this.codecTagString = codecTagString;
return this;
}
/**
* <p>The time base of the encoder.</p>
*
* <strong>example:</strong>
* <p>1/60</p>
*/
public Builder codecTimeBase(String codecTimeBase) {
this.codecTimeBase = codecTimeBase;
return this;
}
/**
* <p>The display aspect ratio (DAR).</p>
*
* <strong>example:</strong>
* <p>0:1</p>
*/
public Builder dar(String dar) {
this.dar = dar;
return this;
}
/**
* <p>The duration.</p>
*
* <strong>example:</strong>
* <p>3.166667</p>
*/
public Builder duration(String duration) {
this.duration = duration;
return this;
}
/**
* <p>The frame rate of the output file.</p>
*
* <strong>example:</strong>
* <p>30.0</p>
*/
public Builder fps(String fps) {
this.fps = fps;
return this;
}
/**
* <p>The HDR type of the video stream.</p>
*
* <strong>example:</strong>
* <p>HDR</p>
*/
public Builder HDRType(String HDRType) {
this.HDRType = HDRType;
return this;
}
/**
* <p>Indicates whether the video stream contains bidirectional frames (B-frames).</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder hasBFrames(String hasBFrames) {
this.hasBFrames = hasBFrames;
return this;
}
/**
* <p>The height of the video stream.</p>
*
* <strong>example:</strong>
* <p>320</p>
*/
public Builder height(String height) {
this.height = height;
return this;
}
/**
* <p>The sequence number of the video stream. The value identifies the position of the video stream in all video streams.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder index(String index) {
this.index = index;
return this;
}
/**
* <p>The language.</p>
*
* <strong>example:</strong>
* <p>und</p>
*/
public Builder lang(String lang) {
this.lang = lang;
return this;
}
/**
* <p>The codec level.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder level(String level) {
this.level = level;
return this;
}
/**
* <p>The total number of frames.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder numFrames(String numFrames) {
this.numFrames = numFrames;
return this;
}
/**
* <p>The pixel format of the video stream.</p>
*
* <strong>example:</strong>
* <p>yuv420p</p>
*/
public Builder pixFmt(String pixFmt) {
this.pixFmt = pixFmt;
return this;
}
/**
* <p>The codec profile.</p>
*
* <strong>example:</strong>
* <p>Main</p>
*/
public Builder profile(String profile) {
this.profile = profile;
return this;
}
/**
* <p>The rotation angle of the video. Valid values: [0,360).</p>
*
* <strong>example:</strong>
* <p>90</p>
*/
public Builder rotate(String rotate) {
this.rotate = rotate;
return this;
}
/**
* <p>The sample aspect ratio (SAR).</p>
*
* <strong>example:</strong>
* <p>0:1</p>
*/
public Builder sar(String sar) {
this.sar = sar;
return this;
}
/**
* <p>The start time. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2017-01-11T12:00:00Z</p>
*/
public Builder startTime(String startTime) {
this.startTime = startTime;
return this;
}
/**
* <p>The time base.</p>
*
* <strong>example:</strong>
* <p>0.000000</p>
*/
public Builder timebase(String timebase) {
this.timebase = timebase;
return this;
}
/**
* <p>The horizontal resolution of the video.</p>
*
* <strong>example:</strong>
* <p>568</p>
*/
public Builder width(String width) {
this.width = width;
return this;
}
public VideoStreamList build() {
return new VideoStreamList(this);
}
}
}
/**
*
* {@link BatchGetMediaInfosResponseBody} extends {@link TeaModel}
*
* <p>BatchGetMediaInfosResponseBody</p>
*/
public static class MezzanineInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AudioStreamList")
private java.util.List<AudioStreamList> audioStreamList;
@com.aliyun.core.annotation.NameInMap("Bitrate")
private String bitrate;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("Duration")
private String duration;
@com.aliyun.core.annotation.NameInMap("FileName")
private String fileName;
@com.aliyun.core.annotation.NameInMap("FileURL")
private String fileURL;
@com.aliyun.core.annotation.NameInMap("Fps")
private String fps;
@com.aliyun.core.annotation.NameInMap("Height")
private Long height;
@com.aliyun.core.annotation.NameInMap("MediaId")
private String mediaId;
@com.aliyun.core.annotation.NameInMap("Size")
private Long size;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("VideoStreamList")
private java.util.List<VideoStreamList> videoStreamList;
@com.aliyun.core.annotation.NameInMap("Width")
private Long width;
private MezzanineInfo(Builder builder) {
this.audioStreamList = builder.audioStreamList;
this.bitrate = builder.bitrate;
this.creationTime = builder.creationTime;
this.duration = builder.duration;
this.fileName = builder.fileName;
this.fileURL = builder.fileURL;
this.fps = builder.fps;
this.height = builder.height;
this.mediaId = builder.mediaId;
this.size = builder.size;
this.status = builder.status;
this.videoStreamList = builder.videoStreamList;
this.width = builder.width;
}
public static Builder builder() {
return new Builder();
}
public static MezzanineInfo create() {
return builder().build();
}
/**
* @return audioStreamList
*/
public java.util.List<AudioStreamList> getAudioStreamList() {
return this.audioStreamList;
}
/**
* @return bitrate
*/
public String getBitrate() {
return this.bitrate;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return duration
*/
public String getDuration() {
return this.duration;
}
/**
* @return fileName
*/
public String getFileName() {
return this.fileName;
}
/**
* @return fileURL
*/
public String getFileURL() {
return this.fileURL;
}
/**
* @return fps
*/
public String getFps() {
return this.fps;
}
/**
* @return height
*/
public Long getHeight() {
return this.height;
}
/**
* @return mediaId
*/
public String getMediaId() {
return this.mediaId;
}
/**
* @return size
*/
public Long getSize() {
return this.size;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return videoStreamList
*/
public java.util.List<VideoStreamList> getVideoStreamList() {
return this.videoStreamList;
}
/**
* @return width
*/
public Long getWidth() {
return this.width;
}
public static final class Builder {
private java.util.List<AudioStreamList> audioStreamList;
private String bitrate;
private String creationTime;
private String duration;
private String fileName;
private String fileURL;
private String fps;
private Long height;
private String mediaId;
private Long size;
private String status;
private java.util.List<VideoStreamList> videoStreamList;
private Long width;
private Builder() {
}
private Builder(MezzanineInfo model) {
this.audioStreamList = model.audioStreamList;
this.bitrate = model.bitrate;
this.creationTime = model.creationTime;
this.duration = model.duration;
this.fileName = model.fileName;
this.fileURL = model.fileURL;
this.fps = model.fps;
this.height = model.height;
this.mediaId = model.mediaId;
this.size = model.size;
this.status = model.status;
this.videoStreamList = model.videoStreamList;
this.width = model.width;
}
/**
* <p>The information about the audio stream.</p>
*/
public Builder audioStreamList(java.util.List<AudioStreamList> audioStreamList) {
this.audioStreamList = audioStreamList;
return this;
}
/**
* <p>The bitrate of the file. Unit: Kbit/s.</p>
*
* <strong>example:</strong>
* <p>771.2280</p>
*/
public Builder bitrate(String bitrate) {
this.bitrate = bitrate;
return this;
}
/**
* <p>The time when the source file was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2017-11-14T09:15:50Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The duration of the file. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>42.4930</p>
*/
public Builder duration(String duration) {
this.duration = duration;
return this;
}
/**
* <p>The name of the file.</p>
*
* <strong>example:</strong>
* <p>27ffc438-164h67f57ef-0005-6884-51a-1****.mp4</p>
*/
public Builder fileName(String fileName) {
this.fileName = fileName;
return this;
}
/**
* <p>The OSS URL of the source file.</p>
*
* <strong>example:</strong>
* <p><a href="http://example-bucket-****.oss-cn-shanghai.aliyuncs.com/27ffc438-164h67f57ef-0005-6884-51a-1****.mp4">http://example-bucket-****.oss-cn-shanghai.aliyuncs.com/27ffc438-164h67f57ef-0005-6884-51a-1****.mp4</a></p>
*/
public Builder fileURL(String fileURL) {
this.fileURL = fileURL;
return this;
}
/**
* <p>The frame rate of the file.</p>
*
* <strong>example:</strong>
* <p>25.0000</p>
*/
public Builder fps(String fps) {
this.fps = fps;
return this;
}
/**
* <p>The height of the file. Unit: pixels.</p>
*
* <strong>example:</strong>
* <p>540</p>
*/
public Builder height(Long height) {
this.height = height;
return this;
}
/**
* <p>The ID of the media asset.</p>
*
* <strong>example:</strong>
* <p>1f1a6fc03ca04814031b8a6559e****</p>
*/
public Builder mediaId(String mediaId) {
this.mediaId = mediaId;
return this;
}
/**
* <p>The size of the file. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>4096477</p>
*/
public Builder size(Long size) {
this.size = size;
return this;
}
/**
* <p>The state of the file. Valid values:</p>
* <ul>
* <li><strong>Uploading</strong>: The file is being uploaded. This is the initial status.</li>
* <li><strong>Normal</strong>: The file is uploaded.</li>
* <li><strong>UploadFail</strong>: The file failed to be uploaded.</li>
* <li><strong>Deleted</strong>: The file is deleted.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The information about the video streams.</p>
*/
public Builder videoStreamList(java.util.List<VideoStreamList> videoStreamList) {
this.videoStreamList = videoStreamList;
return this;
}
/**
* <p>The width of the file. Unit: pixels.</p>
*
* <strong>example:</strong>
* <p>960</p>
*/
public Builder width(Long width) {
this.width = width;
return this;
}
public MezzanineInfo build() {
return new MezzanineInfo(this);
}
}
}
/**
*
* {@link BatchGetMediaInfosResponseBody} extends {@link TeaModel}
*
* <p>BatchGetMediaInfosResponseBody</p>
*/
public static class PlayInfoList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BitDepth")
private Integer bitDepth;
@com.aliyun.core.annotation.NameInMap("Bitrate")
private String bitrate;
@com.aliyun.core.annotation.NameInMap("CodecName")
private String codecName;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("Definition")
private String definition;
@com.aliyun.core.annotation.NameInMap("Duration")
private String duration;
@com.aliyun.core.annotation.NameInMap("Encrypt")
private Long encrypt;
@com.aliyun.core.annotation.NameInMap("EncryptMode")
private String encryptMode;
@com.aliyun.core.annotation.NameInMap("EncryptType")
private String encryptType;
@com.aliyun.core.annotation.NameInMap("Format")
private String format;
@com.aliyun.core.annotation.NameInMap("Fps")
private String fps;
@com.aliyun.core.annotation.NameInMap("HDRType")
private String HDRType;
@com.aliyun.core.annotation.NameInMap("Height")
private Long height;
@com.aliyun.core.annotation.NameInMap("JobExt")
private String jobExt;
@com.aliyun.core.annotation.NameInMap("JobId")
private String jobId;
@com.aliyun.core.annotation.NameInMap("JobType")
private Integer jobType;
@com.aliyun.core.annotation.NameInMap("ModificationTime")
private String modificationTime;
@com.aliyun.core.annotation.NameInMap("NarrowBandType")
private String narrowBandType;
@com.aliyun.core.annotation.NameInMap("PlayURL")
private String playURL;
@com.aliyun.core.annotation.NameInMap("Size")
private Long size;
@com.aliyun.core.annotation.NameInMap("Specification")
private String specification;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("StreamType")
private String streamType;
@com.aliyun.core.annotation.NameInMap("TemplateGroupId")
private String templateGroupId;
@com.aliyun.core.annotation.NameInMap("TemplateId")
private String templateId;
@com.aliyun.core.annotation.NameInMap("WatermarkId")
private String watermarkId;
@com.aliyun.core.annotation.NameInMap("Width")
private Long width;
private PlayInfoList(Builder builder) {
this.bitDepth = builder.bitDepth;
this.bitrate = builder.bitrate;
this.codecName = builder.codecName;
this.creationTime = builder.creationTime;
this.definition = builder.definition;
this.duration = builder.duration;
this.encrypt = builder.encrypt;
this.encryptMode = builder.encryptMode;
this.encryptType = builder.encryptType;
this.format = builder.format;
this.fps = builder.fps;
this.HDRType = builder.HDRType;
this.height = builder.height;
this.jobExt = builder.jobExt;
this.jobId = builder.jobId;
this.jobType = builder.jobType;
this.modificationTime = builder.modificationTime;
this.narrowBandType = builder.narrowBandType;
this.playURL = builder.playURL;
this.size = builder.size;
this.specification = builder.specification;
this.status = builder.status;
this.streamType = builder.streamType;
this.templateGroupId = builder.templateGroupId;
this.templateId = builder.templateId;
this.watermarkId = builder.watermarkId;
this.width = builder.width;
}
public static Builder builder() {
return new Builder();
}
public static PlayInfoList create() {
return builder().build();
}
/**
* @return bitDepth
*/
public Integer getBitDepth() {
return this.bitDepth;
}
/**
* @return bitrate
*/
public String getBitrate() {
return this.bitrate;
}
/**
* @return codecName
*/
public String getCodecName() {
return this.codecName;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return definition
*/
public String getDefinition() {
return this.definition;
}
/**
* @return duration
*/
public String getDuration() {
return this.duration;
}
/**
* @return encrypt
*/
public Long getEncrypt() {
return this.encrypt;
}
/**
* @return encryptMode
*/
public String getEncryptMode() {
return this.encryptMode;
}
/**
* @return encryptType
*/
public String getEncryptType() {
return this.encryptType;
}
/**
* @return format
*/
public String getFormat() {
return this.format;
}
/**
* @return fps
*/
public String getFps() {
return this.fps;
}
/**
* @return HDRType
*/
public String getHDRType() {
return this.HDRType;
}
/**
* @return height
*/
public Long getHeight() {
return this.height;
}
/**
* @return jobExt
*/
public String getJobExt() {
return this.jobExt;
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
/**
* @return jobType
*/
public Integer getJobType() {
return this.jobType;
}
/**
* @return modificationTime
*/
public String getModificationTime() {
return this.modificationTime;
}
/**
* @return narrowBandType
*/
public String getNarrowBandType() {
return this.narrowBandType;
}
/**
* @return playURL
*/
public String getPlayURL() {
return this.playURL;
}
/**
* @return size
*/
public Long getSize() {
return this.size;
}
/**
* @return specification
*/
public String getSpecification() {
return this.specification;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return streamType
*/
public String getStreamType() {
return this.streamType;
}
/**
* @return templateGroupId
*/
public String getTemplateGroupId() {
return this.templateGroupId;
}
/**
* @return templateId
*/
public String getTemplateId() {
return this.templateId;
}
/**
* @return watermarkId
*/
public String getWatermarkId() {
return this.watermarkId;
}
/**
* @return width
*/
public Long getWidth() {
return this.width;
}
public static final class Builder {
private Integer bitDepth;
private String bitrate;
private String codecName;
private String creationTime;
private String definition;
private String duration;
private Long encrypt;
private String encryptMode;
private String encryptType;
private String format;
private String fps;
private String HDRType;
private Long height;
private String jobExt;
private String jobId;
private Integer jobType;
private String modificationTime;
private String narrowBandType;
private String playURL;
private Long size;
private String specification;
private String status;
private String streamType;
private String templateGroupId;
private String templateId;
private String watermarkId;
private Long width;
private Builder() {
}
private Builder(PlayInfoList model) {
this.bitDepth = model.bitDepth;
this.bitrate = model.bitrate;
this.codecName = model.codecName;
this.creationTime = model.creationTime;
this.definition = model.definition;
this.duration = model.duration;
this.encrypt = model.encrypt;
this.encryptMode = model.encryptMode;
this.encryptType = model.encryptType;
this.format = model.format;
this.fps = model.fps;
this.HDRType = model.HDRType;
this.height = model.height;
this.jobExt = model.jobExt;
this.jobId = model.jobId;
this.jobType = model.jobType;
this.modificationTime = model.modificationTime;
this.narrowBandType = model.narrowBandType;
this.playURL = model.playURL;
this.size = model.size;
this.specification = model.specification;
this.status = model.status;
this.streamType = model.streamType;
this.templateGroupId = model.templateGroupId;
this.templateId = model.templateId;
this.watermarkId = model.watermarkId;
this.width = model.width;
}
/**
* <p>The color depth. This value is an integer.</p>
*
* <strong>example:</strong>
* <p>8</p>
*/
public Builder bitDepth(Integer bitDepth) {
this.bitDepth = bitDepth;
return this;
}
/**
* <p>The bitrate of the media stream. Unit: Kbit/s.</p>
*
* <strong>example:</strong>
* <p>450.878</p>
*/
public Builder bitrate(String bitrate) {
this.bitrate = bitrate;
return this;
}
/**
* <p>The short name of the codec.</p>
*
* <strong>example:</strong>
* <p>h264</p>
*/
public Builder codecName(String codecName) {
this.codecName = codecName;
return this;
}
/**
* <p>The creation time. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2022-04-18T07:37:15Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The quality of the video stream. Valid values:</p>
* <ul>
* <li><strong>FD</strong>: low definition</li>
* <li><strong>LD</strong>: standard definition</li>
* <li><strong>SD</strong>: high definition</li>
* <li><strong>HD</strong>: ultra-high definition</li>
* <li><strong>OD</strong>: original definition</li>
* <li><strong>2K</strong></li>
* <li><strong>4K</strong></li>
* <li><strong>SQ</strong>: standard sound quality</li>
* <li><strong>HQ</strong>: high sound quality</li>
* <li><strong>AUTO</strong>: adaptive bitrate</li>
* </ul>
*
* <strong>example:</strong>
* <p>LD</p>
*/
public Builder definition(String definition) {
this.definition = definition;
return this;
}
/**
* <p>The duration of the media stream. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>9.0464</p>
*/
public Builder duration(String duration) {
this.duration = duration;
return this;
}
/**
* <p>Indicates whether the media stream was encrypted. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The media stream is not encrypted.</li>
* <li><strong>1</strong>: The media stream is encrypted.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder encrypt(Long encrypt) {
this.encrypt = encrypt;
return this;
}
/**
* <p>The encryption type of the media stream. Valid values:</p>
* <ul>
* <li><strong>License</strong>: decryption on local devices.</li>
* </ul>
* <blockquote>
* <p> If the encryption type is <strong>License</strong>, only ApsaraVideo Player SDK can be used to play videos.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>License</p>
*/
public Builder encryptMode(String encryptMode) {
this.encryptMode = encryptMode;
return this;
}
/**
* <p>The encryption type of the media stream. Valid values:</p>
* <ul>
* <li><strong>AliyunVoDEncryption</strong>: Alibaba Cloud proprietary cryptography</li>
* <li><strong>HLSEncryption</strong>: HTTP Live Streaming (HLS) encryption</li>
* </ul>
* <blockquote>
* <p> If the encryption type is AliyunVoDEncryption, only ApsaraVideo Player SDK can be used to play videos.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>AliyunVoDEncryption</p>
*/
public Builder encryptType(String encryptType) {
this.encryptType = encryptType;
return this;
}
/**
* <p>The format of the media stream.</p>
* <ul>
* <li>If the media file is a video file, the valid values are <strong>mp4</strong> and <strong>m3u8</strong>.</li>
* <li>If the media asset is an audio-only file, the value is <strong>mp3</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>m3u8</p>
*/
public Builder format(String format) {
this.format = format;
return this;
}
/**
* <p>The frame rate of the media stream. Unit: frames per second (FPS).</p>
*
* <strong>example:</strong>
* <p>25</p>
*/
public Builder fps(String fps) {
this.fps = fps;
return this;
}
/**
* <p>The HDR type of the media stream. Valid values:</p>
* <ul>
* <li>HDR</li>
* <li>HDR10</li>
* <li>HLG</li>
* <li>DolbyVision</li>
* <li>HDRVivid</li>
* <li>SDR+</li>
* </ul>
*
* <strong>example:</strong>
* <p>HLG</p>
*/
public Builder HDRType(String HDRType) {
this.HDRType = HDRType;
return this;
}
/**
* <p>The height of the media stream. Unit: pixels.</p>
*
* <strong>example:</strong>
* <p>640</p>
*/
public Builder height(Long height) {
this.height = height;
return this;
}
/**
* <p>The custom watermark information of the copyright watermark. This parameter is returned if you set <code>JobType</code> to <code>2</code>.</p>
*
* <strong>example:</strong>
* <p>CopyrightMarkTest</p>
*/
public Builder jobExt(String jobExt) {
this.jobExt = jobExt;
return this;
}
/**
* <p>The job ID for transcoding the media stream. This ID uniquely identifies a media stream.</p>
*
* <strong>example:</strong>
* <p>80e9c6580e754a798c3c19c59b16****</p>
*/
public Builder jobId(String jobId) {
this.jobId = jobId;
return this;
}
/**
* <p>The type of the digital watermark. Valid values:</p>
* <ul>
* <li><strong>1</strong>: user-tracing watermark</li>
* <li><strong>2</strong>: copyright watermark</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder jobType(Integer jobType) {
this.jobType = jobType;
return this;
}
/**
* <p>The update time. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2022-04-20T06:32:19Z</p>
*/
public Builder modificationTime(String modificationTime) {
this.modificationTime = modificationTime;
return this;
}
/**
* <p>The transcoding type. Valid values:</p>
* <ul>
* <li><strong>0</strong>: regular transcoding</li>
* <li><strong>1.0</strong>: Narrowband HD™ 1.0 transcoding</li>
* <li><strong>2.0</strong>: Narrowband HD™ 2.0 transcoding</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder narrowBandType(String narrowBandType) {
this.narrowBandType = narrowBandType;
return this;
}
/**
* <p>The playback URL of the video stream.</p>
*/
public Builder playURL(String playURL) {
this.playURL = playURL;
return this;
}
/**
* <p>The size of the media stream. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>418112</p>
*/
public Builder size(Long size) {
this.size = size;
return this;
}
/**
* <p>The specifications of transcoded audio and video streams. For more information about the valid values, see <a href="~~124671#section-6bv-l0g-opq~~">Output specifications</a>.</p>
*
* <strong>example:</strong>
* <p>H264.LD</p>
*/
public Builder specification(String specification) {
this.specification = specification;
return this;
}
/**
* <p>The status of the audio or video stream. Valid values:</p>
* <ul>
* <li><strong>Normal</strong>: The latest transcoded stream in each quality and format is in the Normal status.</li>
* <li><strong>Invisible</strong>: If multiple streams are transcoded in the same quality and format, the latest transcoded stream is in the Normal status and other streams are in the Invisible status.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The type of the media stream. If the media stream is a video stream, the value is <strong>video</strong>. If the media stream is an audio-only stream, the value is <strong>audio</strong>.</p>
*
* <strong>example:</strong>
* <p>video</p>
*/
public Builder streamType(String streamType) {
this.streamType = streamType;
return this;
}
/**
* <p>The ID of the transcoding template group.</p>
*
* <strong>example:</strong>
* <p>fb0716154b21a4ecb5b70a26ccc8****</p>
*/
public Builder templateGroupId(String templateGroupId) {
this.templateGroupId = templateGroupId;
return this;
}
/**
* <p>The ID of the transcoding template.</p>
*
* <strong>example:</strong>
* <p>a86a4338dd2e83da45154004a541****</p>
*/
public Builder templateId(String templateId) {
this.templateId = templateId;
return this;
}
/**
* <p>The ID of the watermark that is associated with the media stream.</p>
*
* <strong>example:</strong>
* <p>dgfn26457856****</p>
*/
public Builder watermarkId(String watermarkId) {
this.watermarkId = watermarkId;
return this;
}
/**
* <p>The width of the media stream. Unit: pixels.</p>
*
* <strong>example:</strong>
* <p>360</p>
*/
public Builder width(Long width) {
this.width = width;
return this;
}
public PlayInfoList build() {
return new PlayInfoList(this);
}
}
}
/**
*
* {@link BatchGetMediaInfosResponseBody} extends {@link TeaModel}
*
* <p>BatchGetMediaInfosResponseBody</p>
*/
public static class MediaInfos extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MediaId")
private String mediaId;
@com.aliyun.core.annotation.NameInMap("MediaInfo")
private MediaInfo mediaInfo;
@com.aliyun.core.annotation.NameInMap("MezzanineInfo")
private MezzanineInfo mezzanineInfo;
@com.aliyun.core.annotation.NameInMap("PlayInfoList")
private java.util.List<PlayInfoList> playInfoList;
private MediaInfos(Builder builder) {
this.mediaId = builder.mediaId;
this.mediaInfo = builder.mediaInfo;
this.mezzanineInfo = builder.mezzanineInfo;
this.playInfoList = builder.playInfoList;
}
public static Builder builder() {
return new Builder();
}
public static MediaInfos create() {
return builder().build();
}
/**
* @return mediaId
*/
public String getMediaId() {
return this.mediaId;
}
/**
* @return mediaInfo
*/
public MediaInfo getMediaInfo() {
return this.mediaInfo;
}
/**
* @return mezzanineInfo
*/
public MezzanineInfo getMezzanineInfo() {
return this.mezzanineInfo;
}
/**
* @return playInfoList
*/
public java.util.List<PlayInfoList> getPlayInfoList() {
return this.playInfoList;
}
public static final class Builder {
private String mediaId;
private MediaInfo mediaInfo;
private MezzanineInfo mezzanineInfo;
private java.util.List<PlayInfoList> playInfoList;
private Builder() {
}
private Builder(MediaInfos model) {
this.mediaId = model.mediaId;
this.mediaInfo = model.mediaInfo;
this.mezzanineInfo = model.mezzanineInfo;
this.playInfoList = model.playInfoList;
}
/**
* <p>The ID of the media asset.</p>
*
* <strong>example:</strong>
* <p>10a5fa364a5b71ef89246733a78e****</p>
*/
public Builder mediaId(String mediaId) {
this.mediaId = mediaId;
return this;
}
/**
* <p>The basic information of the media asset.</p>
*/
public Builder mediaInfo(MediaInfo mediaInfo) {
this.mediaInfo = mediaInfo;
return this;
}
/**
* <p>The source file information.</p>
*/
public Builder mezzanineInfo(MezzanineInfo mezzanineInfo) {
this.mezzanineInfo = mezzanineInfo;
return this;
}
/**
* <p>The information about the audio or video stream.</p>
*/
public Builder playInfoList(java.util.List<PlayInfoList> playInfoList) {
this.playInfoList = playInfoList;
return this;
}
public MediaInfos build() {
return new MediaInfos(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/BatchSetVodDomainConfigsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link BatchSetVodDomainConfigsRequest} extends {@link RequestModel}
*
* <p>BatchSetVodDomainConfigsRequest</p>
*/
public class BatchSetVodDomainConfigsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DomainNames")
@com.aliyun.core.annotation.Validation(required = true)
private String domainNames;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Functions")
@com.aliyun.core.annotation.Validation(required = true)
private String functions;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityToken")
private String securityToken;
private BatchSetVodDomainConfigsRequest(Builder builder) {
super(builder);
this.domainNames = builder.domainNames;
this.functions = builder.functions;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.securityToken = builder.securityToken;
}
public static Builder builder() {
return new Builder();
}
public static BatchSetVodDomainConfigsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return domainNames
*/
public String getDomainNames() {
return this.domainNames;
}
/**
* @return functions
*/
public String getFunctions() {
return this.functions;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return securityToken
*/
public String getSecurityToken() {
return this.securityToken;
}
public static final class Builder extends Request.Builder<BatchSetVodDomainConfigsRequest, Builder> {
private String domainNames;
private String functions;
private String ownerAccount;
private Long ownerId;
private String securityToken;
private Builder() {
super();
}
private Builder(BatchSetVodDomainConfigsRequest request) {
super(request);
this.domainNames = request.domainNames;
this.functions = request.functions;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.securityToken = request.securityToken;
}
/**
* <p>The domain name for CDN. Separate multiple domain names with commas (,).</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>example.com</p>
*/
public Builder domainNames(String domainNames) {
this.putQueryParameter("DomainNames", domainNames);
this.domainNames = domainNames;
return this;
}
/**
* <p>The features to configure.</p>
* <ul>
* <li>Set this parameter in the following format: <code>[{"functionArgs":[{"argName":"domain_name","argValue":"www.example.com"}],"functionName":"set_req_host_header"}]</code>.</li>
* <li>Specific features, such as filetype_based_ttl_set, support more than one configuration record. To update one of the configuration records, use the configId field to specify the record. <code>[{"functionArgs":[{"argName":"file_type","argValue":"jpg"},{"argName":"ttl","argValue":"18"},{"argName":"weight","argValue":"30"}],"functionName":"filetype_based_ttl_set","configId":5068995}]</code></li>
* <li>For more information, see the <strong>Feature description</strong> section.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>[{"functionArgs":[{"argName":"domain_name","argValue":"<a href="http://www.example.com%22%7D%5D,%22functionName%22:%22set_req_host_header%22%7D%5D">www.example.com"}],"functionName":"set_req_host_header"}]</a></p>
*/
public Builder functions(String functions) {
this.putQueryParameter("Functions", functions);
this.functions = functions;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* SecurityToken.
*/
public Builder securityToken(String securityToken) {
this.putQueryParameter("SecurityToken", securityToken);
this.securityToken = securityToken;
return this;
}
@Override
public BatchSetVodDomainConfigsRequest build() {
return new BatchSetVodDomainConfigsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/BatchSetVodDomainConfigsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link BatchSetVodDomainConfigsResponse} extends {@link TeaModel}
*
* <p>BatchSetVodDomainConfigsResponse</p>
*/
public class BatchSetVodDomainConfigsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private BatchSetVodDomainConfigsResponseBody body;
private BatchSetVodDomainConfigsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static BatchSetVodDomainConfigsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public BatchSetVodDomainConfigsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<BatchSetVodDomainConfigsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(BatchSetVodDomainConfigsResponseBody body);
@Override
BatchSetVodDomainConfigsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<BatchSetVodDomainConfigsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BatchSetVodDomainConfigsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(BatchSetVodDomainConfigsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(BatchSetVodDomainConfigsResponseBody body) {
this.body = body;
return this;
}
@Override
public BatchSetVodDomainConfigsResponse build() {
return new BatchSetVodDomainConfigsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/BatchSetVodDomainConfigsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link BatchSetVodDomainConfigsResponseBody} extends {@link TeaModel}
*
* <p>BatchSetVodDomainConfigsResponseBody</p>
*/
public class BatchSetVodDomainConfigsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private BatchSetVodDomainConfigsResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static BatchSetVodDomainConfigsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(BatchSetVodDomainConfigsResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>04F0F334-1335-436C-****-6C044FE73368</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public BatchSetVodDomainConfigsResponseBody build() {
return new BatchSetVodDomainConfigsResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/BatchStartVodDomainRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link BatchStartVodDomainRequest} extends {@link RequestModel}
*
* <p>BatchStartVodDomainRequest</p>
*/
public class BatchStartVodDomainRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DomainNames")
@com.aliyun.core.annotation.Validation(required = true)
private String domainNames;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityToken")
private String securityToken;
private BatchStartVodDomainRequest(Builder builder) {
super(builder);
this.domainNames = builder.domainNames;
this.ownerId = builder.ownerId;
this.securityToken = builder.securityToken;
}
public static Builder builder() {
return new Builder();
}
public static BatchStartVodDomainRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return domainNames
*/
public String getDomainNames() {
return this.domainNames;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return securityToken
*/
public String getSecurityToken() {
return this.securityToken;
}
public static final class Builder extends Request.Builder<BatchStartVodDomainRequest, Builder> {
private String domainNames;
private Long ownerId;
private String securityToken;
private Builder() {
super();
}
private Builder(BatchStartVodDomainRequest request) {
super(request);
this.domainNames = request.domainNames;
this.ownerId = request.ownerId;
this.securityToken = request.securityToken;
}
/**
* <p>The accelerated domain name. Separate multiple domain names with commas (,).</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>example.com</p>
*/
public Builder domainNames(String domainNames) {
this.putQueryParameter("DomainNames", domainNames);
this.domainNames = domainNames;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* SecurityToken.
*/
public Builder securityToken(String securityToken) {
this.putQueryParameter("SecurityToken", securityToken);
this.securityToken = securityToken;
return this;
}
@Override
public BatchStartVodDomainRequest build() {
return new BatchStartVodDomainRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/BatchStartVodDomainResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link BatchStartVodDomainResponse} extends {@link TeaModel}
*
* <p>BatchStartVodDomainResponse</p>
*/
public class BatchStartVodDomainResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private BatchStartVodDomainResponseBody body;
private BatchStartVodDomainResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static BatchStartVodDomainResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public BatchStartVodDomainResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<BatchStartVodDomainResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(BatchStartVodDomainResponseBody body);
@Override
BatchStartVodDomainResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<BatchStartVodDomainResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BatchStartVodDomainResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(BatchStartVodDomainResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(BatchStartVodDomainResponseBody body) {
this.body = body;
return this;
}
@Override
public BatchStartVodDomainResponse build() {
return new BatchStartVodDomainResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/BatchStartVodDomainResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link BatchStartVodDomainResponseBody} extends {@link TeaModel}
*
* <p>BatchStartVodDomainResponseBody</p>
*/
public class BatchStartVodDomainResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private BatchStartVodDomainResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static BatchStartVodDomainResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(BatchStartVodDomainResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>15C66C7B-671A-4297-****-2C4477247A74</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public BatchStartVodDomainResponseBody build() {
return new BatchStartVodDomainResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/BatchStopVodDomainRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link BatchStopVodDomainRequest} extends {@link RequestModel}
*
* <p>BatchStopVodDomainRequest</p>
*/
public class BatchStopVodDomainRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DomainNames")
@com.aliyun.core.annotation.Validation(required = true)
private String domainNames;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityToken")
private String securityToken;
private BatchStopVodDomainRequest(Builder builder) {
super(builder);
this.domainNames = builder.domainNames;
this.ownerId = builder.ownerId;
this.securityToken = builder.securityToken;
}
public static Builder builder() {
return new Builder();
}
public static BatchStopVodDomainRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return domainNames
*/
public String getDomainNames() {
return this.domainNames;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return securityToken
*/
public String getSecurityToken() {
return this.securityToken;
}
public static final class Builder extends Request.Builder<BatchStopVodDomainRequest, Builder> {
private String domainNames;
private Long ownerId;
private String securityToken;
private Builder() {
super();
}
private Builder(BatchStopVodDomainRequest request) {
super(request);
this.domainNames = request.domainNames;
this.ownerId = request.ownerId;
this.securityToken = request.securityToken;
}
/**
* <p>The accelerated domain name. Separate multiple domain names with commas (,).</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>example.com</p>
*/
public Builder domainNames(String domainNames) {
this.putQueryParameter("DomainNames", domainNames);
this.domainNames = domainNames;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* SecurityToken.
*/
public Builder securityToken(String securityToken) {
this.putQueryParameter("SecurityToken", securityToken);
this.securityToken = securityToken;
return this;
}
@Override
public BatchStopVodDomainRequest build() {
return new BatchStopVodDomainRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/BatchStopVodDomainResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link BatchStopVodDomainResponse} extends {@link TeaModel}
*
* <p>BatchStopVodDomainResponse</p>
*/
public class BatchStopVodDomainResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private BatchStopVodDomainResponseBody body;
private BatchStopVodDomainResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static BatchStopVodDomainResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public BatchStopVodDomainResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<BatchStopVodDomainResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(BatchStopVodDomainResponseBody body);
@Override
BatchStopVodDomainResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<BatchStopVodDomainResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private BatchStopVodDomainResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(BatchStopVodDomainResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(BatchStopVodDomainResponseBody body) {
this.body = body;
return this;
}
@Override
public BatchStopVodDomainResponse build() {
return new BatchStopVodDomainResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/BatchStopVodDomainResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link BatchStopVodDomainResponseBody} extends {@link TeaModel}
*
* <p>BatchStopVodDomainResponseBody</p>
*/
public class BatchStopVodDomainResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private BatchStopVodDomainResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static BatchStopVodDomainResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(BatchStopVodDomainResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>15C66C7B-671A-4297-****-2C4477247A74</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public BatchStopVodDomainResponseBody build() {
return new BatchStopVodDomainResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/CancelUrlUploadJobsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CancelUrlUploadJobsRequest} extends {@link RequestModel}
*
* <p>CancelUrlUploadJobsRequest</p>
*/
public class CancelUrlUploadJobsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("JobIds")
private String jobIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UploadUrls")
private String uploadUrls;
private CancelUrlUploadJobsRequest(Builder builder) {
super(builder);
this.jobIds = builder.jobIds;
this.uploadUrls = builder.uploadUrls;
}
public static Builder builder() {
return new Builder();
}
public static CancelUrlUploadJobsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return jobIds
*/
public String getJobIds() {
return this.jobIds;
}
/**
* @return uploadUrls
*/
public String getUploadUrls() {
return this.uploadUrls;
}
public static final class Builder extends Request.Builder<CancelUrlUploadJobsRequest, Builder> {
private String jobIds;
private String uploadUrls;
private Builder() {
super();
}
private Builder(CancelUrlUploadJobsRequest request) {
super(request);
this.jobIds = request.jobIds;
this.uploadUrls = request.uploadUrls;
}
/**
* <p>The IDs of the upload jobs. You can obtain the job IDs from PlayInfo in the response to the <a href="https://help.aliyun.com/document_detail/56124.html">GetPlayInfo</a> operation.</p>
* <ul>
* <li>You can specify a maximum of 10 IDs.</li>
* <li>Separate multiple IDs with commas (,).</li>
* </ul>
* <blockquote>
* <p> You must specify either JobIds or UploadUrls. If you specify both the JobIds and UploadUrls parameters, only the value of the JobIds parameter takes effect.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>341c92e6c18dc435ee31253685****,0193d395194a83ad6ee2ef27a5b5****</p>
*/
public Builder jobIds(String jobIds) {
this.putQueryParameter("JobIds", jobIds);
this.jobIds = jobIds;
return this;
}
/**
* <p>The upload URLs of source video files. Separate multiple URLs with commas (,). You can specify a maximum of 10 URLs.</p>
* <blockquote>
* <ul>
* <li>You must encode the URLs before you use the URLs.</li>
* <li>You must specify either JobIds or UploadUrls. If you specify both the JobIds and UploadUrls parameters, only the value of the JobIds parameter takes effect.</li>
* </ul>
* </blockquote>
*/
public Builder uploadUrls(String uploadUrls) {
this.putQueryParameter("UploadUrls", uploadUrls);
this.uploadUrls = uploadUrls;
return this;
}
@Override
public CancelUrlUploadJobsRequest build() {
return new CancelUrlUploadJobsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/CancelUrlUploadJobsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CancelUrlUploadJobsResponse} extends {@link TeaModel}
*
* <p>CancelUrlUploadJobsResponse</p>
*/
public class CancelUrlUploadJobsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CancelUrlUploadJobsResponseBody body;
private CancelUrlUploadJobsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CancelUrlUploadJobsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CancelUrlUploadJobsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CancelUrlUploadJobsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CancelUrlUploadJobsResponseBody body);
@Override
CancelUrlUploadJobsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CancelUrlUploadJobsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CancelUrlUploadJobsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CancelUrlUploadJobsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CancelUrlUploadJobsResponseBody body) {
this.body = body;
return this;
}
@Override
public CancelUrlUploadJobsResponse build() {
return new CancelUrlUploadJobsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/CancelUrlUploadJobsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CancelUrlUploadJobsResponseBody} extends {@link TeaModel}
*
* <p>CancelUrlUploadJobsResponseBody</p>
*/
public class CancelUrlUploadJobsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CanceledJobs")
private java.util.List<String> canceledJobs;
@com.aliyun.core.annotation.NameInMap("NonExists")
private java.util.List<String> nonExists;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CancelUrlUploadJobsResponseBody(Builder builder) {
this.canceledJobs = builder.canceledJobs;
this.nonExists = builder.nonExists;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CancelUrlUploadJobsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return canceledJobs
*/
public java.util.List<String> getCanceledJobs() {
return this.canceledJobs;
}
/**
* @return nonExists
*/
public java.util.List<String> getNonExists() {
return this.nonExists;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<String> canceledJobs;
private java.util.List<String> nonExists;
private String requestId;
private Builder() {
}
private Builder(CancelUrlUploadJobsResponseBody model) {
this.canceledJobs = model.canceledJobs;
this.nonExists = model.nonExists;
this.requestId = model.requestId;
}
/**
* <p>The IDs of canceled jobs.</p>
*/
public Builder canceledJobs(java.util.List<String> canceledJobs) {
this.canceledJobs = canceledJobs;
return this;
}
/**
* <p>The jobs that do not exist.</p>
*/
public Builder nonExists(java.util.List<String> nonExists) {
this.nonExists = nonExists;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>25818875-5F78-4D5C-3C3D-D7393642****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CancelUrlUploadJobsResponseBody build() {
return new CancelUrlUploadJobsResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/ChangeResourceGroupRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ChangeResourceGroupRequest} extends {@link RequestModel}
*
* <p>ChangeResourceGroupRequest</p>
*/
public class ChangeResourceGroupRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceRegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceRegionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
private ChangeResourceGroupRequest(Builder builder) {
super(builder);
this.resourceGroupId = builder.resourceGroupId;
this.resourceId = builder.resourceId;
this.resourceRegionId = builder.resourceRegionId;
this.resourceType = builder.resourceType;
}
public static Builder builder() {
return new Builder();
}
public static ChangeResourceGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceRegionId
*/
public String getResourceRegionId() {
return this.resourceRegionId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
public static final class Builder extends Request.Builder<ChangeResourceGroupRequest, Builder> {
private String resourceGroupId;
private String resourceId;
private String resourceRegionId;
private String resourceType;
private Builder() {
super();
}
private Builder(ChangeResourceGroupRequest request) {
super(request);
this.resourceGroupId = request.resourceGroupId;
this.resourceId = request.resourceId;
this.resourceRegionId = request.resourceRegionId;
this.resourceType = request.resourceType;
}
/**
* <p>The ID of the resource group.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rg-aekzko7fsuj****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The ID of resource</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>app-xxxxxxx</p>
*/
public Builder resourceId(String resourceId) {
this.putQueryParameter("ResourceId", resourceId);
this.resourceId = resourceId;
return this;
}
/**
* <p>The ID of the region.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder resourceRegionId(String resourceRegionId) {
this.putQueryParameter("ResourceRegionId", resourceRegionId);
this.resourceRegionId = resourceRegionId;
return this;
}
/**
* <p>The type of resource</p>
*
* <strong>example:</strong>
* <p>AppInfo</p>
*/
public Builder resourceType(String resourceType) {
this.putQueryParameter("ResourceType", resourceType);
this.resourceType = resourceType;
return this;
}
@Override
public ChangeResourceGroupRequest build() {
return new ChangeResourceGroupRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/ChangeResourceGroupResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ChangeResourceGroupResponse} extends {@link TeaModel}
*
* <p>ChangeResourceGroupResponse</p>
*/
public class ChangeResourceGroupResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private ChangeResourceGroupResponseBody body;
private ChangeResourceGroupResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ChangeResourceGroupResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public ChangeResourceGroupResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ChangeResourceGroupResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ChangeResourceGroupResponseBody body);
@Override
ChangeResourceGroupResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ChangeResourceGroupResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ChangeResourceGroupResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ChangeResourceGroupResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(ChangeResourceGroupResponseBody body) {
this.body = body;
return this;
}
@Override
public ChangeResourceGroupResponse build() {
return new ChangeResourceGroupResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/ChangeResourceGroupResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ChangeResourceGroupResponseBody} extends {@link TeaModel}
*
* <p>ChangeResourceGroupResponseBody</p>
*/
public class ChangeResourceGroupResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ChangeResourceGroupResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ChangeResourceGroupResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(ChangeResourceGroupResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>Id of the request</p>
*
* <strong>example:</strong>
* <p>25818875-5F78-4A*****F6-D7393642CA58</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ChangeResourceGroupResponseBody build() {
return new ChangeResourceGroupResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/CreateAppInfoRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateAppInfoRequest} extends {@link RequestModel}
*
* <p>CreateAppInfoRequest</p>
*/
public class CreateAppInfoRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppName")
@com.aliyun.core.annotation.Validation(required = true)
private String appName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
private CreateAppInfoRequest(Builder builder) {
super(builder);
this.appName = builder.appName;
this.description = builder.description;
this.resourceGroupId = builder.resourceGroupId;
}
public static Builder builder() {
return new Builder();
}
public static CreateAppInfoRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
public static final class Builder extends Request.Builder<CreateAppInfoRequest, Builder> {
private String appName;
private String description;
private String resourceGroupId;
private Builder() {
super();
}
private Builder(CreateAppInfoRequest request) {
super(request);
this.appName = request.appName;
this.description = request.description;
this.resourceGroupId = request.resourceGroupId;
}
/**
* <p>The name of the application. The application name must be unique.</p>
* <ul>
* <li>The name can contain letters, digits, periods (.), hyphens (-), and at signs (@). The name can be up to 128 characters in length.</li>
* <li>The value must be encoded in UTF-8.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder appName(String appName) {
this.putQueryParameter("AppName", appName);
this.appName = appName;
return this;
}
/**
* <p>The description of the application.</p>
* <ul>
* <li>The description can contain up to 512 characters in length.</li>
* <li>The value must be encoded in UTF-8.</li>
* </ul>
*
* <strong>example:</strong>
* <p>myfirstapp</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-aekzko7fsuj****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
@Override
public CreateAppInfoRequest build() {
return new CreateAppInfoRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/CreateAppInfoResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateAppInfoResponse} extends {@link TeaModel}
*
* <p>CreateAppInfoResponse</p>
*/
public class CreateAppInfoResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateAppInfoResponseBody body;
private CreateAppInfoResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateAppInfoResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateAppInfoResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateAppInfoResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateAppInfoResponseBody body);
@Override
CreateAppInfoResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateAppInfoResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateAppInfoResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateAppInfoResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateAppInfoResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateAppInfoResponse build() {
return new CreateAppInfoResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/CreateAppInfoResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateAppInfoResponseBody} extends {@link TeaModel}
*
* <p>CreateAppInfoResponseBody</p>
*/
public class CreateAppInfoResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreateAppInfoResponseBody(Builder builder) {
this.appId = builder.appId;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreateAppInfoResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String appId;
private String requestId;
private Builder() {
}
private Builder(CreateAppInfoResponseBody model) {
this.appId = model.appId;
this.requestId = model.requestId;
}
/**
* <p>The ID of the application.</p>
*
* <strong>example:</strong>
* <p>app-****</p>
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>25818875-5F78-4A13-34D5-D7393642****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreateAppInfoResponseBody build() {
return new CreateAppInfoResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/CreateAuditRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateAuditRequest} extends {@link RequestModel}
*
* <p>CreateAuditRequest</p>
*/
public class CreateAuditRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AuditContent")
@com.aliyun.core.annotation.Validation(required = true)
private String auditContent;
private CreateAuditRequest(Builder builder) {
super(builder);
this.auditContent = builder.auditContent;
}
public static Builder builder() {
return new Builder();
}
public static CreateAuditRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return auditContent
*/
public String getAuditContent() {
return this.auditContent;
}
public static final class Builder extends Request.Builder<CreateAuditRequest, Builder> {
private String auditContent;
private Builder() {
super();
}
private Builder(CreateAuditRequest request) {
super(request);
this.auditContent = request.auditContent;
}
/**
* <p>The review content. You can specify up to <strong>100</strong> audio or video files in a request. The value must be converted to a string.<br>For more information about this parameter, see the <strong>AuditContent</strong> section of this topic.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>[{"VideoId":"93ab850b4f<em><strong><strong>b54b6e91d24d81d4","Status":"Normal"},{"VideoId":"f867fbfb58</strong></strong></em>8bbab65c4480ae1d","Status":"Blocked","Reason":"porn video","Comment":"porn video"}]</p>
*/
public Builder auditContent(String auditContent) {
this.putQueryParameter("AuditContent", auditContent);
this.auditContent = auditContent;
return this;
}
@Override
public CreateAuditRequest build() {
return new CreateAuditRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/CreateAuditResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateAuditResponse} extends {@link TeaModel}
*
* <p>CreateAuditResponse</p>
*/
public class CreateAuditResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateAuditResponseBody body;
private CreateAuditResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateAuditResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateAuditResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateAuditResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateAuditResponseBody body);
@Override
CreateAuditResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateAuditResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateAuditResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateAuditResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateAuditResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateAuditResponse build() {
return new CreateAuditResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/CreateAuditResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateAuditResponseBody} extends {@link TeaModel}
*
* <p>CreateAuditResponseBody</p>
*/
public class CreateAuditResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreateAuditResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreateAuditResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(CreateAuditResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>25818875-5F78-4A*****F6-D7393642CA58</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreateAuditResponseBody build() {
return new CreateAuditResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/CreateUploadAttachedMediaRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateUploadAttachedMediaRequest} extends {@link RequestModel}
*
* <p>CreateUploadAttachedMediaRequest</p>
*/
public class CreateUploadAttachedMediaRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BusinessType")
@com.aliyun.core.annotation.Validation(required = true)
private String businessType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CateIds")
private String cateIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FileName")
private String fileName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FileSize")
private String fileSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MediaExt")
private String mediaExt;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StorageLocation")
private String storageLocation;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tags")
private String tags;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Title")
private String title;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UserData")
private String userData;
private CreateUploadAttachedMediaRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.businessType = builder.businessType;
this.cateIds = builder.cateIds;
this.description = builder.description;
this.fileName = builder.fileName;
this.fileSize = builder.fileSize;
this.mediaExt = builder.mediaExt;
this.storageLocation = builder.storageLocation;
this.tags = builder.tags;
this.title = builder.title;
this.userData = builder.userData;
}
public static Builder builder() {
return new Builder();
}
public static CreateUploadAttachedMediaRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return businessType
*/
public String getBusinessType() {
return this.businessType;
}
/**
* @return cateIds
*/
public String getCateIds() {
return this.cateIds;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return fileName
*/
public String getFileName() {
return this.fileName;
}
/**
* @return fileSize
*/
public String getFileSize() {
return this.fileSize;
}
/**
* @return mediaExt
*/
public String getMediaExt() {
return this.mediaExt;
}
/**
* @return storageLocation
*/
public String getStorageLocation() {
return this.storageLocation;
}
/**
* @return tags
*/
public String getTags() {
return this.tags;
}
/**
* @return title
*/
public String getTitle() {
return this.title;
}
/**
* @return userData
*/
public String getUserData() {
return this.userData;
}
public static final class Builder extends Request.Builder<CreateUploadAttachedMediaRequest, Builder> {
private String appId;
private String businessType;
private String cateIds;
private String description;
private String fileName;
private String fileSize;
private String mediaExt;
private String storageLocation;
private String tags;
private String title;
private String userData;
private Builder() {
super();
}
private Builder(CreateUploadAttachedMediaRequest request) {
super(request);
this.appId = request.appId;
this.businessType = request.businessType;
this.cateIds = request.cateIds;
this.description = request.description;
this.fileName = request.fileName;
this.fileSize = request.fileSize;
this.mediaExt = request.mediaExt;
this.storageLocation = request.storageLocation;
this.tags = request.tags;
this.title = request.title;
this.userData = request.userData;
}
/**
* <p>The ID of the application. Default value: <strong>app-1000000</strong>. If you have activated the multi-application service, specify the ID of the application to add the watermark template in the specified application. For more information, see <a href="https://help.aliyun.com/document_detail/113600.html">Overview</a>.</p>
*
* <strong>example:</strong>
* <p>app-****</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
/**
* <p>The type of the auxiliary media asset. Valid values:</p>
* <ul>
* <li><strong>watermark</strong></li>
* <li><strong>subtitle</strong></li>
* <li><strong>material</strong></li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>watermark</p>
*/
public Builder businessType(String businessType) {
this.putQueryParameter("BusinessType", businessType);
this.businessType = businessType;
return this;
}
/**
* <p>The ID of the category. Separate multiple IDs with commas (,). You can specify up to five IDs. You can use one of the following methods to obtain the ID:</p>
* <ul>
* <li>Log on to the <a href="https://vod.console.aliyun.com">ApsaraVideo VOD console</a>. In the left-side navigation pane, choose <strong>Configuration Management</strong> > <strong>Media Management</strong> > <strong>Categories</strong> to view the category ID of the media file.</li>
* <li>Obtain the category ID from the response to the <a href="~~AddCategory~~">AddCategory</a> operation that you call to create a category.</li>
* <li>Obtain the category ID from the response to the <a href="~~GetCategories~~">GetCategories</a> operation that you call to query categories.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1298****,0813****</p>
*/
public Builder cateIds(String cateIds) {
this.putQueryParameter("CateIds", cateIds);
this.cateIds = cateIds;
return this;
}
/**
* <p>The description of the auxiliary media asset. Take note of the following items:</p>
* <ul>
* <li>The description can be up to 1,024 bytes in length.</li>
* <li>The value must be encoded in UTF-8.</li>
* </ul>
*
* <strong>example:</strong>
* <p>uploadTest</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>The source file URL of the auxiliary media asset.</p>
* <blockquote>
* <p> The file name extension is optional. If the file name extension that you specified for this parameter is different from the value of MediaExt, the value of MediaExt takes effect.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>D:\test.png</p>
*/
public Builder fileName(String fileName) {
this.putQueryParameter("FileName", fileName);
this.fileName = fileName;
return this;
}
/**
* <p>The size of the auxiliary media asset. Unit: byte.</p>
*
* <strong>example:</strong>
* <p>123</p>
*/
public Builder fileSize(String fileSize) {
this.putQueryParameter("FileSize", fileSize);
this.fileSize = fileSize;
return this;
}
/**
* <p>The file name extension of the auxiliary media asset.</p>
* <ul>
* <li>Valid values for watermarks: <strong>png, gif, apng, and mov</strong></li>
* <li>Valid values for subtitles: <strong>srt, ass, stl, ttml, and vtt</strong></li>
* <li>Valid values for materials: <strong>jpg, gif, png, mp4, mat, zip, and apk</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>png</p>
*/
public Builder mediaExt(String mediaExt) {
this.putQueryParameter("MediaExt", mediaExt);
this.mediaExt = mediaExt;
return this;
}
/**
* <p>The storage address. Perform the following operations to obtain the storage address:</p>
* <p>Log on to the <a href="https://vod.console.aliyun.com">ApsaraVideo VOD console</a>. In the left-side navigation pane, choose <strong>Configuration Management</strong> > <strong>Media Management</strong> > <strong>Storage</strong>. On the Storage page, view the storage address.</p>
* <blockquote>
* <p> If you leave this parameter empty, the auxiliary media asset is uploaded to the default storage address. If you specify this parameter, the auxiliary media asset is uploaded to the specified storage address.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>out-****.oss-cn-shanghai.aliyuncs.com</p>
*/
public Builder storageLocation(String storageLocation) {
this.putQueryParameter("StorageLocation", storageLocation);
this.storageLocation = storageLocation;
return this;
}
/**
* <p>The one or more tags of the auxiliary media asset. Take note of the following items:</p>
* <ul>
* <li>You can specify a maximum of 16 tags.</li>
* <li>If you need to specify multiple tags, separate the tags with commas (,).</li>
* <li>Each tag can be up to 32 characters in length.</li>
* <li>The value must be encoded in UTF-8.</li>
* </ul>
*
* <strong>example:</strong>
* <p>tag1,tag2</p>
*/
public Builder tags(String tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
/**
* <p>The title of the auxiliary media asset. The following rules apply:</p>
* <ul>
* <li>The title cannot exceed 128 bytes.</li>
* <li>The title must be encoded in UTF-8.</li>
* </ul>
*
* <strong>example:</strong>
* <p>testTitle</p>
*/
public Builder title(String title) {
this.putQueryParameter("Title", title);
this.title = title;
return this;
}
/**
* <p>The custom configurations. For example, you can specify callback configurations and upload acceleration configurations. The value must be a JSON string. For more information, see <a href="~~86952#section-6fg-qll-v3w~~">Request parameters</a>.</p>
* <blockquote>
* <ul>
* <li>The callback configurations take effect only after you specify the HTTP callback URL and select the specific callback events in the ApsaraVideo VOD console. For more information about how to configure HTTP callback settings in the ApsaraVideo VOD console, see <a href="https://help.aliyun.com/document_detail/86071.html">Configure callback settings</a>.</li>
* <li>If you want to enable the upload acceleration feature, submit a ticket. For more information, see <a href="https://help.aliyun.com/document_detail/55396.html">Overview</a>. For more information about how to submit a ticket, see <a href="https://help.aliyun.com/document_detail/464625.html">Contact us</a>.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>{"MessageCallback":{"CallbackURL":"<a href="http://example.aliyundoc.com%22%7D,%22Extend%22:%7B%22localId%22:%22xxx%22,%22test%22:%22www%22%7D%7D">http://example.aliyundoc.com"},"Extend":{"localId":"xxx","test":"www"}}</a></p>
*/
public Builder userData(String userData) {
this.putQueryParameter("UserData", userData);
this.userData = userData;
return this;
}
@Override
public CreateUploadAttachedMediaRequest build() {
return new CreateUploadAttachedMediaRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/CreateUploadAttachedMediaResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateUploadAttachedMediaResponse} extends {@link TeaModel}
*
* <p>CreateUploadAttachedMediaResponse</p>
*/
public class CreateUploadAttachedMediaResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateUploadAttachedMediaResponseBody body;
private CreateUploadAttachedMediaResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateUploadAttachedMediaResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateUploadAttachedMediaResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateUploadAttachedMediaResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateUploadAttachedMediaResponseBody body);
@Override
CreateUploadAttachedMediaResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateUploadAttachedMediaResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateUploadAttachedMediaResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateUploadAttachedMediaResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateUploadAttachedMediaResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateUploadAttachedMediaResponse build() {
return new CreateUploadAttachedMediaResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/CreateUploadAttachedMediaResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateUploadAttachedMediaResponseBody} extends {@link TeaModel}
*
* <p>CreateUploadAttachedMediaResponseBody</p>
*/
public class CreateUploadAttachedMediaResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FileURL")
private String fileURL;
@com.aliyun.core.annotation.NameInMap("MediaId")
private String mediaId;
@com.aliyun.core.annotation.NameInMap("MediaURL")
private String mediaURL;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("UploadAddress")
private String uploadAddress;
@com.aliyun.core.annotation.NameInMap("UploadAuth")
private String uploadAuth;
private CreateUploadAttachedMediaResponseBody(Builder builder) {
this.fileURL = builder.fileURL;
this.mediaId = builder.mediaId;
this.mediaURL = builder.mediaURL;
this.requestId = builder.requestId;
this.uploadAddress = builder.uploadAddress;
this.uploadAuth = builder.uploadAuth;
}
public static Builder builder() {
return new Builder();
}
public static CreateUploadAttachedMediaResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return fileURL
*/
public String getFileURL() {
return this.fileURL;
}
/**
* @return mediaId
*/
public String getMediaId() {
return this.mediaId;
}
/**
* @return mediaURL
*/
public String getMediaURL() {
return this.mediaURL;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return uploadAddress
*/
public String getUploadAddress() {
return this.uploadAddress;
}
/**
* @return uploadAuth
*/
public String getUploadAuth() {
return this.uploadAuth;
}
public static final class Builder {
private String fileURL;
private String mediaId;
private String mediaURL;
private String requestId;
private String uploadAddress;
private String uploadAuth;
private Builder() {
}
private Builder(CreateUploadAttachedMediaResponseBody model) {
this.fileURL = model.fileURL;
this.mediaId = model.mediaId;
this.mediaURL = model.mediaURL;
this.requestId = model.requestId;
this.uploadAddress = model.uploadAddress;
this.uploadAuth = model.uploadAuth;
}
/**
* <p>The URL of the auxiliary media asset file. The URL is an Object Storage Service (OSS) URL and does not contain the information used for URL signing.</p>
* <p>You can use specify this value for the <code>FileUrl</code> parameter when you call the <a href="~~AddWatermark~~">AddWatermark</a> operation to create a watermark template.</p>
*
* <strong>example:</strong>
* <p>https://<strong><strong>.oss-cn-shanghai.aliyuncs.com/watermark/</strong></strong>.mov</p>
*/
public Builder fileURL(String fileURL) {
this.fileURL = fileURL;
return this;
}
/**
* <p>The ID of the auxiliary media asset.</p>
*
* <strong>example:</strong>
* <p>97dc17a5abc3668489b84ce9****</p>
*/
public Builder mediaId(String mediaId) {
this.mediaId = mediaId;
return this;
}
/**
* <p>The URL of the auxiliary media asset.</p>
* <p>If a domain name for Alibaba Cloud CDN is specified, a CDN URL is returned. Otherwise, an OSS URL is returned.</p>
* <blockquote>
* <p> If you enable the URL signing feature of ApsaraVideo VOD, you may be unable to access the returned URL of the auxiliary media asset by using a browser and the HTTP status code 403 may be returned. To resolve this issue, you can disable the <a href="https://help.aliyun.com/document_detail/86090.html">URL signing</a> feature or <a href="https://help.aliyun.com/document_detail/57007.html">generate a signed URL</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p><a href="http://example.aliyundoc.com/watermark/****.mov?auth_key=">http://example.aliyundoc.com/watermark/****.mov?auth_key=</a>****</p>
*/
public Builder mediaURL(String mediaURL) {
this.mediaURL = mediaURL;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>73254DE5-F260-4720-D06856B63C01****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The upload URL.</p>
* <blockquote>
* <p> The upload URL returned by this operation is Base64-encoded. Before you can use an SDK or an API operation to upload a media asset based on the upload URL, you must decode the upload URL by using the Base64 algorithm. You must parse the upload URL only if you use native OSS SDKs or OSS API for uploads.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>LWNuLXNoYW5naGFpLmFsaXl1b****</p>
*/
public Builder uploadAddress(String uploadAddress) {
this.uploadAddress = uploadAddress;
return this;
}
/**
* <p>The upload credential.</p>
* <blockquote>
* <p> The upload credential returned by this operation is Base64-encoded. Before you can use an SDK or an API operation to upload a media asset based on the upload credential, you must decode the upload credential by using the Base64 algorithm. You must parse the upload credential only if you use native OSS SDKs or OSS API for uploads.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>UzFnUjFxNkZ0NUIZTaklyNWJoQ00zdHF****</p>
*/
public Builder uploadAuth(String uploadAuth) {
this.uploadAuth = uploadAuth;
return this;
}
public CreateUploadAttachedMediaResponseBody build() {
return new CreateUploadAttachedMediaResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/CreateUploadImageRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateUploadImageRequest} extends {@link RequestModel}
*
* <p>CreateUploadImageRequest</p>
*/
public class CreateUploadImageRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CateId")
private Long cateId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ImageExt")
private String imageExt;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ImageType")
@com.aliyun.core.annotation.Validation(required = true)
private String imageType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OriginalFileName")
private String originalFileName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StorageLocation")
private String storageLocation;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tags")
private String tags;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Title")
private String title;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UserData")
private String userData;
private CreateUploadImageRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.cateId = builder.cateId;
this.description = builder.description;
this.imageExt = builder.imageExt;
this.imageType = builder.imageType;
this.originalFileName = builder.originalFileName;
this.storageLocation = builder.storageLocation;
this.tags = builder.tags;
this.title = builder.title;
this.userData = builder.userData;
}
public static Builder builder() {
return new Builder();
}
public static CreateUploadImageRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return cateId
*/
public Long getCateId() {
return this.cateId;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return imageExt
*/
public String getImageExt() {
return this.imageExt;
}
/**
* @return imageType
*/
public String getImageType() {
return this.imageType;
}
/**
* @return originalFileName
*/
public String getOriginalFileName() {
return this.originalFileName;
}
/**
* @return storageLocation
*/
public String getStorageLocation() {
return this.storageLocation;
}
/**
* @return tags
*/
public String getTags() {
return this.tags;
}
/**
* @return title
*/
public String getTitle() {
return this.title;
}
/**
* @return userData
*/
public String getUserData() {
return this.userData;
}
public static final class Builder extends Request.Builder<CreateUploadImageRequest, Builder> {
private String appId;
private Long cateId;
private String description;
private String imageExt;
private String imageType;
private String originalFileName;
private String storageLocation;
private String tags;
private String title;
private String userData;
private Builder() {
super();
}
private Builder(CreateUploadImageRequest request) {
super(request);
this.appId = request.appId;
this.cateId = request.cateId;
this.description = request.description;
this.imageExt = request.imageExt;
this.imageType = request.imageType;
this.originalFileName = request.originalFileName;
this.storageLocation = request.storageLocation;
this.tags = request.tags;
this.title = request.title;
this.userData = request.userData;
}
/**
* <p>The ID of the application. Default value: <strong>app-1000000</strong>. For more information, see <a href="https://help.aliyun.com/document_detail/113600.html">Overview</a>.</p>
*
* <strong>example:</strong>
* <p>app-1000000</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
/**
* <p>The category ID of the image. You can use one of the following methods to obtain the category ID:</p>
* <ul>
* <li>Log on to the <a href="https://vod.console.aliyun.com">ApsaraVideo VOD console</a>. In the left-side navigation pane, choose <strong>Configuration Management</strong> > <strong>Media Management</strong> > <strong>Categories</strong>. On the Categories page, you can view the category ID of the image.</li>
* <li>Obtain the value of CateId from the response to the <a href="https://help.aliyun.com/document_detail/56401.html">AddCategory</a> operation.</li>
* <li>Obtain the value of CateId from the response to the <a href="https://help.aliyun.com/document_detail/56406.html">GetCategories</a> operation.</li>
* </ul>
*
* <strong>example:</strong>
* <p>100036****</p>
*/
public Builder cateId(Long cateId) {
this.putQueryParameter("CateId", cateId);
this.cateId = cateId;
return this;
}
/**
* <p>The description of the image.</p>
* <ul>
* <li>The description can be up to 1,024 characters in length.</li>
* <li>The value must be encoded in UTF-8.</li>
* </ul>
*
* <strong>example:</strong>
* <p>The description of the image</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>The file name extension of the image. Valid values:</p>
* <ul>
* <li><strong>png</strong> (default)</li>
* <li><strong>jpg</strong></li>
* <li><strong>jpeg</strong></li>
* <li><strong>gif</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>png</p>
*/
public Builder imageExt(String imageExt) {
this.putQueryParameter("ImageExt", imageExt);
this.imageExt = imageExt;
return this;
}
/**
* <p>The type of the image. Valid values:</p>
* <ul>
* <li><strong>default</strong>: the default image type.</li>
* <li><strong>cover</strong>: the thumbnail.</li>
* </ul>
* <blockquote>
* <p>You can manage only images of the <strong>default</strong> type in the ApsaraVideo VOD console.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>default</p>
*/
public Builder imageType(String imageType) {
this.putQueryParameter("ImageType", imageType);
this.imageType = imageType;
return this;
}
/**
* <p>The name of the source file.</p>
* <blockquote>
* <p>The name must contain a file name extension. The file name extension is not case-sensitive.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>D:\picture_01.png</p>
*/
public Builder originalFileName(String originalFileName) {
this.putQueryParameter("OriginalFileName", originalFileName);
this.originalFileName = originalFileName;
return this;
}
/**
* <p>The storage address. Perform the following operations to obtain the storage address: Log on to the <a href="https://vod.console.aliyun.com">ApsaraVideo VOD console</a>. In the left-side navigation pane, choose <strong>Configuration Management</strong> > <strong>Media Management</strong> > <strong>Storage</strong>. On the Storage page, view the storage address.</p>
* <blockquote>
* <p>If you specify a storage address, media files are uploaded to the specified address.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>outin-****..oss-cn-shanghai.aliyuncs.com</p>
*/
public Builder storageLocation(String storageLocation) {
this.putQueryParameter("StorageLocation", storageLocation);
this.storageLocation = storageLocation;
return this;
}
/**
* <p>The tags of the image. The following rules apply:</p>
* <ul>
* <li>Each tag can be up to 32 characters in length.</li>
* <li>You can specify a maximum of 16 tags for an image.</li>
* <li>Separate multiple tags with commas (,).</li>
* <li>The value must be encoded in UTF-8.</li>
* </ul>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder tags(String tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
/**
* <p>The title of the image. The following rules apply:</p>
* <ul>
* <li>The title can be up to 128 characters in length.</li>
* <li>The value must be encoded in UTF-8.</li>
* </ul>
*
* <strong>example:</strong>
* <p>mytitle</p>
*/
public Builder title(String title) {
this.putQueryParameter("Title", title);
this.title = title;
return this;
}
/**
* <p>The custom configurations, including callback configurations and upload acceleration configurations. The value must be a JSON string. For more information, see the "UserData: specifies the custom configurations for media upload" section of the <a href="https://help.aliyun.com/document_detail/86952.html">Request parameters</a> topic.</p>
* <blockquote>
* <ul>
* <li>The callback configurations take effect only after you specify the HTTP callback URL and select specific callback events in the ApsaraVideo VOD console. For more information about how to configure HTTP callback settings in the ApsaraVideo VOD console, see <a href="https://help.aliyun.com/document_detail/86071.html">Configure callback settings</a>.</li>
* <li>If you want to enable the upload acceleration feature, submit a ticket. For more information, see <a href="https://help.aliyun.com/document_detail/55396.html">Overview</a>. For more information about how to submit a ticket, see <a href="https://help.aliyun.com/document_detail/464625.html">Contact us</a>.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>{"MessageCallback":{"CallbackURL":"<a href="http://example.aliyundoc.com%22%7D,%22Extend%22:%7B%22localId%22:%22xxx%22,%22test%22:%22www%22%7D%7D">http://example.aliyundoc.com"},"Extend":{"localId":"xxx","test":"www"}}</a></p>
*/
public Builder userData(String userData) {
this.putQueryParameter("UserData", userData);
this.userData = userData;
return this;
}
@Override
public CreateUploadImageRequest build() {
return new CreateUploadImageRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/CreateUploadImageResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateUploadImageResponse} extends {@link TeaModel}
*
* <p>CreateUploadImageResponse</p>
*/
public class CreateUploadImageResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateUploadImageResponseBody body;
private CreateUploadImageResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateUploadImageResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateUploadImageResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateUploadImageResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateUploadImageResponseBody body);
@Override
CreateUploadImageResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateUploadImageResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateUploadImageResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateUploadImageResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateUploadImageResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateUploadImageResponse build() {
return new CreateUploadImageResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/CreateUploadImageResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateUploadImageResponseBody} extends {@link TeaModel}
*
* <p>CreateUploadImageResponseBody</p>
*/
public class CreateUploadImageResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FileURL")
private String fileURL;
@com.aliyun.core.annotation.NameInMap("ImageId")
private String imageId;
@com.aliyun.core.annotation.NameInMap("ImageURL")
private String imageURL;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("UploadAddress")
private String uploadAddress;
@com.aliyun.core.annotation.NameInMap("UploadAuth")
private String uploadAuth;
private CreateUploadImageResponseBody(Builder builder) {
this.fileURL = builder.fileURL;
this.imageId = builder.imageId;
this.imageURL = builder.imageURL;
this.requestId = builder.requestId;
this.uploadAddress = builder.uploadAddress;
this.uploadAuth = builder.uploadAuth;
}
public static Builder builder() {
return new Builder();
}
public static CreateUploadImageResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return fileURL
*/
public String getFileURL() {
return this.fileURL;
}
/**
* @return imageId
*/
public String getImageId() {
return this.imageId;
}
/**
* @return imageURL
*/
public String getImageURL() {
return this.imageURL;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return uploadAddress
*/
public String getUploadAddress() {
return this.uploadAddress;
}
/**
* @return uploadAuth
*/
public String getUploadAuth() {
return this.uploadAuth;
}
public static final class Builder {
private String fileURL;
private String imageId;
private String imageURL;
private String requestId;
private String uploadAddress;
private String uploadAuth;
private Builder() {
}
private Builder(CreateUploadImageResponseBody model) {
this.fileURL = model.fileURL;
this.imageId = model.imageId;
this.imageURL = model.imageURL;
this.requestId = model.requestId;
this.uploadAddress = model.uploadAddress;
this.uploadAuth = model.uploadAuth;
}
/**
* <p>The OSS URL of the file. The URL does not contain the information used for URL signing. You can specify FileUrl when you call the <a href="https://help.aliyun.com/document_detail/98617.html">AddWatermark</a> operation.</p>
*
* <strong>example:</strong>
* <p><a href="http://example.aliyundoc.com/cover/2017-34DB-4F4C-9373-003AA060****.png">http://example.aliyundoc.com/cover/2017-34DB-4F4C-9373-003AA060****.png</a></p>
*/
public Builder fileURL(String fileURL) {
this.fileURL = fileURL;
return this;
}
/**
* <p>The ID of the image file.</p>
*
* <strong>example:</strong>
* <p>93ab850b4f6f46e91d24d81d4****</p>
*/
public Builder imageId(String imageId) {
this.imageId = imageId;
return this;
}
/**
* <p>The URL of the image.</p>
* <blockquote>
* <p>If the returned URL is inaccessible from a browser and the HTTP 403 status code is returned, the URL signing feature in ApsaraVideo VOD is enabled. To resolve this issue, you can disable the <a href="https://help.aliyun.com/document_detail/86090.html">URL signing</a> feature or <a href="https://help.aliyun.com/document_detail/57007.html">generate a signed URL</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p><a href="http://example.aliyundoc.com/cover/2017-34DB-4F4C-9373-003AA060****.png">http://example.aliyundoc.com/cover/2017-34DB-4F4C-9373-003AA060****.png</a></p>
*/
public Builder imageURL(String imageURL) {
this.imageURL = imageURL;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>25818875-5F78-AEF6-D7393642****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The upload URL.</p>
* <blockquote>
* <p>The returned upload URL is a Base64-encoded URL. You must decode the Base64-encoded URL before you use an SDK or call an API operation to upload auxiliary media assets. You need to parse UploadAddress only if you use the OSS SDK or call an OSS API operation to upload auxiliary media assets.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>eyJTZWN1cmuIjoiQ0FJU3p3TjF****</p>
*/
public Builder uploadAddress(String uploadAddress) {
this.uploadAddress = uploadAddress;
return this;
}
/**
* <p>The upload credential.</p>
* <blockquote>
* <p>The returned upload credential is a Base64-encoded value. You must decode the Base64-encoded credential before you use an SDK or call an API operation to upload auxiliary media assets. You need to parse UploadAuth only if you use the OSS SDK or call an OSS API operation to upload auxiliary media assets.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>eyJFbmmRCI6Im****</p>
*/
public Builder uploadAuth(String uploadAuth) {
this.uploadAuth = uploadAuth;
return this;
}
public CreateUploadImageResponseBody build() {
return new CreateUploadImageResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/CreateUploadVideoRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateUploadVideoRequest} extends {@link RequestModel}
*
* <p>CreateUploadVideoRequest</p>
*/
public class CreateUploadVideoRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CateId")
private Long cateId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CoverURL")
private String coverURL;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FileName")
@com.aliyun.core.annotation.Validation(required = true)
private String fileName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FileSize")
private Long fileSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StorageLocation")
private String storageLocation;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tags")
private String tags;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TemplateGroupId")
private String templateGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Title")
@com.aliyun.core.annotation.Validation(required = true)
private String title;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UserData")
private String userData;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("WorkflowId")
private String workflowId;
private CreateUploadVideoRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.cateId = builder.cateId;
this.coverURL = builder.coverURL;
this.description = builder.description;
this.fileName = builder.fileName;
this.fileSize = builder.fileSize;
this.storageLocation = builder.storageLocation;
this.tags = builder.tags;
this.templateGroupId = builder.templateGroupId;
this.title = builder.title;
this.userData = builder.userData;
this.workflowId = builder.workflowId;
}
public static Builder builder() {
return new Builder();
}
public static CreateUploadVideoRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return cateId
*/
public Long getCateId() {
return this.cateId;
}
/**
* @return coverURL
*/
public String getCoverURL() {
return this.coverURL;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return fileName
*/
public String getFileName() {
return this.fileName;
}
/**
* @return fileSize
*/
public Long getFileSize() {
return this.fileSize;
}
/**
* @return storageLocation
*/
public String getStorageLocation() {
return this.storageLocation;
}
/**
* @return tags
*/
public String getTags() {
return this.tags;
}
/**
* @return templateGroupId
*/
public String getTemplateGroupId() {
return this.templateGroupId;
}
/**
* @return title
*/
public String getTitle() {
return this.title;
}
/**
* @return userData
*/
public String getUserData() {
return this.userData;
}
/**
* @return workflowId
*/
public String getWorkflowId() {
return this.workflowId;
}
public static final class Builder extends Request.Builder<CreateUploadVideoRequest, Builder> {
private String appId;
private Long cateId;
private String coverURL;
private String description;
private String fileName;
private Long fileSize;
private String storageLocation;
private String tags;
private String templateGroupId;
private String title;
private String userData;
private String workflowId;
private Builder() {
super();
}
private Builder(CreateUploadVideoRequest request) {
super(request);
this.appId = request.appId;
this.cateId = request.cateId;
this.coverURL = request.coverURL;
this.description = request.description;
this.fileName = request.fileName;
this.fileSize = request.fileSize;
this.storageLocation = request.storageLocation;
this.tags = request.tags;
this.templateGroupId = request.templateGroupId;
this.title = request.title;
this.userData = request.userData;
this.workflowId = request.workflowId;
}
/**
* <p>The ID of the application. Default value: <strong>app-1000000</strong>. For more information, see <a href="https://help.aliyun.com/document_detail/113600.html">Overview</a>.</p>
*
* <strong>example:</strong>
* <p>app-1000000</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
/**
* <p>The ID of the category. You can use one of the following methods to obtain the ID:</p>
* <ul>
* <li>Log on to the <a href="https://vod.console.aliyun.com">ApsaraVideo VOD console</a>. In the left-side navigation pane, choose <strong>Configuration Management</strong> > <strong>Media Management</strong> > <strong>Categories</strong> to view the category ID of the media file.</li>
* <li>Obtain the value of CateId from the response to the <a href="~~AddCategory~~">AddCategory</a> operation.</li>
* <li>Obtain the value of CateId from the response to the <a href="~~GetCategories~~">GetCategories</a> operation.</li>
* </ul>
*
* <strong>example:</strong>
* <p>100036****</p>
*/
public Builder cateId(Long cateId) {
this.putQueryParameter("CateId", cateId);
this.cateId = cateId;
return this;
}
/**
* <p>The URL of the custom video thumbnail.</p>
*
* <strong>example:</strong>
* <p><a href="https://example.aliyundoc.com/image/D22F553TEST****.jpeg">https://example.aliyundoc.com/image/D22F553TEST****.jpeg</a></p>
*/
public Builder coverURL(String coverURL) {
this.putQueryParameter("CoverURL", coverURL);
this.coverURL = coverURL;
return this;
}
/**
* <p>The description of the audio or video file.</p>
* <ul>
* <li>The value can be up to 1,024 characters in length.</li>
* <li>The value must be encoded in UTF-8.</li>
* </ul>
*
* <strong>example:</strong>
* <p>UploadTest</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>The name of the source file.</p>
* <ul>
* <li>The name must contain a file name extension, which is not case-sensitive.</li>
* <li>For more information about file name extensions supported by ApsaraVideo VOD, see <a href="https://help.aliyun.com/document_detail/55396.html">Overview</a>.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>D:\video_01.mp4</p>
*/
public Builder fileName(String fileName) {
this.putQueryParameter("FileName", fileName);
this.fileName = fileName;
return this;
}
/**
* <p>The size of the source file. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>123</p>
*/
public Builder fileSize(Long fileSize) {
this.putQueryParameter("FileSize", fileSize);
this.fileSize = fileSize;
return this;
}
/**
* <p>The storage address. Perform the following operations to obtain the storage address: Log on to the <a href="https://vod.console.aliyun.com">ApsaraVideo VOD console</a>. In the left-side navigation pane, choose <strong>Configuration Management</strong> > <strong>Media Management</strong> > <strong>Storage</strong>. On the Storage page, view the storage address.</p>
* <blockquote>
* <p> If you leave this parameter empty, audio and video files are uploaded to the default storage address. If you specify a storage address, audio and video files are uploaded to the specified address.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>out-****.oss-cn-shanghai.aliyuncs.com</p>
*/
public Builder storageLocation(String storageLocation) {
this.putQueryParameter("StorageLocation", storageLocation);
this.storageLocation = storageLocation;
return this;
}
/**
* <p>The tags of the audio or video file.</p>
* <ul>
* <li>You can specify a maximum of 16 tags.</li>
* <li>If you want to specify multiple tags, separate the tags with commas (,).</li>
* <li>Each tag can be up to 32 characters in length.</li>
* <li>The value must be encoded in UTF-8.</li>
* </ul>
*
* <strong>example:</strong>
* <p>tag1,tag2</p>
*/
public Builder tags(String tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
/**
* <p>The ID of the transcoding template group. You can use one of the following methods to obtain the ID:</p>
* <ul>
* <li>Log on to the ApsaraVideo VOD console. In the left-side navigation pane, choose Configuration Management > Media Processing > Transcoding Template Groups. On the Transcoding Template Groups page, you can view the ID of the transcoding template group.<a href="https://vod.console.aliyun.com"></a>************</li>
* <li>Obtain the value of the TranscodeTemplateGroupId parameter from the response to the <a href="https://help.aliyun.com/document_detail/102665.html">AddTranscodeTemplateGroup</a> operation that you called to create a transcoding template group.</li>
* <li>Obtain the value of the TranscodeTemplateGroupId parameter from the response to the <a href="https://help.aliyun.com/document_detail/102669.html">ListTranscodeTemplateGroup</a> operation that you called to query transcoding template groups.</li>
* </ul>
* <blockquote>
* <ul>
* <li>If you specify both WorkflowId and TemplateGroupId, the value of the WorkflowId parameter takes effect.</li>
* <li>If this parameter is not specified, transcoding is performed based on the default transcoding template group. If the transcoding template group ID is specified, transcoding is performed based on the specified template group.</li>
* <li>If the <strong>No Transcoding</strong> template group is used, only the <a href="https://help.aliyun.com/document_detail/55630.html">FileUploadComplete</a> event notification is returned after a video is uploaded. The <a href="https://help.aliyun.com/document_detail/55636.html">StreamTranscodeComplete</a> event notification is not returned.</li>
* <li>If you use the <strong>No Transcoding</strong> template group to upload videos, only videos in the format of MP4, FLV, MP3, M3U8, or WebM can be played. Videos in other formats can only be stored in ApsaraVideo VOD. You can view the file name extension to obtain the video format. If you want to use ApsaraVideo Player, make sure that the version of the player is V3.1.0 or later.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>405477f9e214d19ea2c7c854****</p>
*/
public Builder templateGroupId(String templateGroupId) {
this.putQueryParameter("TemplateGroupId", templateGroupId);
this.templateGroupId = templateGroupId;
return this;
}
/**
* <p>The title of the audio or video file.</p>
* <ul>
* <li>The title can be up to 128 characters in length.</li>
* <li>The value must be encoded in UTF-8.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>UploadTest</p>
*/
public Builder title(String title) {
this.putQueryParameter("Title", title);
this.title = title;
return this;
}
/**
* <p>The custom configurations such as callback configurations and upload acceleration configurations. The value must be a JSON string. For more information, see <a href="https://help.aliyun.com/document_detail/86952.html">Request parameters</a>.</p>
* <blockquote>
* <ul>
* <li>The callback configurations take effect only after you specify the HTTP callback URL and select specific callback events in the ApsaraVideo VOD console. For more information about how to configure HTTP callback settings in the ApsaraVideo VOD console, see <a href="https://help.aliyun.com/document_detail/86071.html">Configure callback settings</a>.</li>
* <li>If you want to enable the upload acceleration feature, <a href="https://yida.alibaba-inc.com/o/ticketapply">submit a request on Yida</a>. For more information, see <a href="https://help.aliyun.com/document_detail/55396.html">Overview</a>.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>{"MessageCallback":{"CallbackURL":"<a href="http://example.aliyundoc.com%22%7D,%22Extend%22:%7B%22localId%22:%22*****%22,%22test%22:%22www%22%7D%7D">http://example.aliyundoc.com"},"Extend":{"localId":"*****","test":"www"}}</a></p>
*/
public Builder userData(String userData) {
this.putQueryParameter("UserData", userData);
this.userData = userData;
return this;
}
/**
* <p>The ID of the workflow. To view the ID of the workflow, log on to the <a href="https://vod.console.aliyun.com">ApsaraVideo VOD console</a>. In the left-side navigation pane, choose <strong>Configuration Management</strong> > <strong>Media Processing</strong> > <strong>Workflows</strong>.</p>
* <blockquote>
* <p>If you specify the WorkflowId and TemplateGroupId parameters, the value of the WorkflowId parameter takes effect. For more information, see <a href="https://help.aliyun.com/document_detail/115347.html">Workflows</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>613efff3887ec34af685714cc461****</p>
*/
public Builder workflowId(String workflowId) {
this.putQueryParameter("WorkflowId", workflowId);
this.workflowId = workflowId;
return this;
}
@Override
public CreateUploadVideoRequest build() {
return new CreateUploadVideoRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321 | java-sources/com/aliyun/alibabacloud-vod20170321/2.0.18/com/aliyun/sdk/service/vod20170321/models/CreateUploadVideoResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vod20170321.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateUploadVideoResponse} extends {@link TeaModel}
*
* <p>CreateUploadVideoResponse</p>
*/
public class CreateUploadVideoResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateUploadVideoResponseBody body;
private CreateUploadVideoResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateUploadVideoResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateUploadVideoResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateUploadVideoResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateUploadVideoResponseBody body);
@Override
CreateUploadVideoResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateUploadVideoResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateUploadVideoResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateUploadVideoResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateUploadVideoResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateUploadVideoResponse build() {
return new CreateUploadVideoResponse(this);
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.