index int64 | repo_id string | file_path string | content string |
|---|---|---|---|
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/GetAIImageJobsResponse.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 GetAIImageJobsResponse} extends {@link TeaModel}
*
* <p>GetAIImageJobsResponse</p>
*/
public class GetAIImageJobsResponse 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 GetAIImageJobsResponseBody body;
private GetAIImageJobsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAIImageJobsResponse 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 GetAIImageJobsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAIImageJobsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAIImageJobsResponseBody body);
@Override
GetAIImageJobsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAIImageJobsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAIImageJobsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAIImageJobsResponse 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(GetAIImageJobsResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAIImageJobsResponse build() {
return new GetAIImageJobsResponse(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/GetAIImageJobsResponseBody.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 GetAIImageJobsResponseBody} extends {@link TeaModel}
*
* <p>GetAIImageJobsResponseBody</p>
*/
public class GetAIImageJobsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AIImageJobList")
private java.util.List<AIImageJobList> AIImageJobList;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetAIImageJobsResponseBody(Builder builder) {
this.AIImageJobList = builder.AIImageJobList;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetAIImageJobsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return AIImageJobList
*/
public java.util.List<AIImageJobList> getAIImageJobList() {
return this.AIImageJobList;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<AIImageJobList> AIImageJobList;
private String requestId;
private Builder() {
}
private Builder(GetAIImageJobsResponseBody model) {
this.AIImageJobList = model.AIImageJobList;
this.requestId = model.requestId;
}
/**
* <p>The image AI processing jobs.</p>
*/
public Builder AIImageJobList(java.util.List<AIImageJobList> AIImageJobList) {
this.AIImageJobList = AIImageJobList;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>7721B494-1F78-4E*****E8-A7CEE7315BFA</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetAIImageJobsResponseBody build() {
return new GetAIImageJobsResponseBody(this);
}
}
/**
*
* {@link GetAIImageJobsResponseBody} extends {@link TeaModel}
*
* <p>GetAIImageJobsResponseBody</p>
*/
public static class AIImageJobList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AIImageResult")
private String AIImageResult;
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("JobId")
private String jobId;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("TemplateConfig")
private String templateConfig;
@com.aliyun.core.annotation.NameInMap("TemplateId")
private String templateId;
@com.aliyun.core.annotation.NameInMap("UserData")
private String userData;
@com.aliyun.core.annotation.NameInMap("VideoId")
private String videoId;
private AIImageJobList(Builder builder) {
this.AIImageResult = builder.AIImageResult;
this.code = builder.code;
this.creationTime = builder.creationTime;
this.jobId = builder.jobId;
this.message = builder.message;
this.status = builder.status;
this.templateConfig = builder.templateConfig;
this.templateId = builder.templateId;
this.userData = builder.userData;
this.videoId = builder.videoId;
}
public static Builder builder() {
return new Builder();
}
public static AIImageJobList create() {
return builder().build();
}
/**
* @return AIImageResult
*/
public String getAIImageResult() {
return this.AIImageResult;
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return templateConfig
*/
public String getTemplateConfig() {
return this.templateConfig;
}
/**
* @return templateId
*/
public String getTemplateId() {
return this.templateId;
}
/**
* @return userData
*/
public String getUserData() {
return this.userData;
}
/**
* @return videoId
*/
public String getVideoId() {
return this.videoId;
}
public static final class Builder {
private String AIImageResult;
private String code;
private String creationTime;
private String jobId;
private String message;
private String status;
private String templateConfig;
private String templateId;
private String userData;
private String videoId;
private Builder() {
}
private Builder(AIImageJobList model) {
this.AIImageResult = model.AIImageResult;
this.code = model.code;
this.creationTime = model.creationTime;
this.jobId = model.jobId;
this.message = model.message;
this.status = model.status;
this.templateConfig = model.templateConfig;
this.templateId = model.templateId;
this.userData = model.userData;
this.videoId = model.videoId;
}
/**
* <p>The Object Storage Service (OSS) URL of the image file.</p>
* <blockquote>
* <p>This parameter does not include the complete authentication information. To obtain the authentication information, you must generate a signed URL. Alternatively, you can call the <a href="~~ListAIImageInfo~~">ListAIImageInfo</a> operation to obtain the image information.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>[{"Score":5.035636554444242,"Url":"<a href="http://outin-*****.oss-cn-shanghai.aliyuncs.com/357a8748c577*****789d2726e6436aa/image/ai/b0a7612554d*****5cbe3-00001.gif%22%7D%5D">http://outin-*****.oss-cn-shanghai.aliyuncs.com/357a8748c577*****789d2726e6436aa/image/ai/b0a7612554d*****5cbe3-00001.gif"}]</a></p>
*/
public Builder AIImageResult(String AIImageResult) {
this.AIImageResult = AIImageResult;
return this;
}
/**
* <p>The error code.</p>
*
* <strong>example:</strong>
* <p>Success</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The time when the image AI processing job 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>2020-10-15T03:30:03Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The ID of the image AI processing job.</p>
*
* <strong>example:</strong>
* <p>cf08a2c6e11e*****de1711b738b9067</p>
*/
public Builder jobId(String jobId) {
this.jobId = jobId;
return this;
}
/**
* <p>The error message.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The status of the job. Valid values:</p>
* <ul>
* <li><strong>success</strong></li>
* <li><strong>fail</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The configurations of the AI template that was used to submit the job.</p>
*
* <strong>example:</strong>
* <p>{"Format":"gif","SetDefaultCover":"true"}</p>
*/
public Builder templateConfig(String templateConfig) {
this.templateConfig = templateConfig;
return this;
}
/**
* <p>The ID of the AI template.</p>
*
* <strong>example:</strong>
* <p>5a86a00f15194*****d7fe7de1b4a173</p>
*/
public Builder templateId(String templateId) {
this.templateId = templateId;
return this;
}
/**
* <p>The user data.</p>
* <ul>
* <li>The value must be a JSON string.</li>
* <li>The MessageCallback or Extend parameter is returned.</li>
* <li>The value contains a maximum of 512 bytes.</li>
* </ul>
* <p>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>
*
* <strong>example:</strong>
* <p>{"Extend":{"localId":"****","test":"www"}}</p>
*/
public Builder userData(String userData) {
this.userData = userData;
return this;
}
/**
* <p>The ID of the video.</p>
*
* <strong>example:</strong>
* <p>357a8748c577*****789d2726e6436aa</p>
*/
public Builder videoId(String videoId) {
this.videoId = videoId;
return this;
}
public AIImageJobList build() {
return new AIImageJobList(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/GetAIMediaAuditJobRequest.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 GetAIMediaAuditJobRequest} extends {@link RequestModel}
*
* <p>GetAIMediaAuditJobRequest</p>
*/
public class GetAIMediaAuditJobRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("JobId")
@com.aliyun.core.annotation.Validation(required = true)
private String jobId;
private GetAIMediaAuditJobRequest(Builder builder) {
super(builder);
this.jobId = builder.jobId;
}
public static Builder builder() {
return new Builder();
}
public static GetAIMediaAuditJobRequest 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<GetAIMediaAuditJobRequest, Builder> {
private String jobId;
private Builder() {
super();
}
private Builder(GetAIMediaAuditJobRequest request) {
super(request);
this.jobId = request.jobId;
}
/**
* <p>The ID of the intelligent review job.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>bdbc266af6894*****943a70176d92e9</p>
*/
public Builder jobId(String jobId) {
this.putQueryParameter("JobId", jobId);
this.jobId = jobId;
return this;
}
@Override
public GetAIMediaAuditJobRequest build() {
return new GetAIMediaAuditJobRequest(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/GetAIMediaAuditJobResponse.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 GetAIMediaAuditJobResponse} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponse</p>
*/
public class GetAIMediaAuditJobResponse 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 GetAIMediaAuditJobResponseBody body;
private GetAIMediaAuditJobResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAIMediaAuditJobResponse 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 GetAIMediaAuditJobResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAIMediaAuditJobResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAIMediaAuditJobResponseBody body);
@Override
GetAIMediaAuditJobResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAIMediaAuditJobResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAIMediaAuditJobResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAIMediaAuditJobResponse 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(GetAIMediaAuditJobResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAIMediaAuditJobResponse build() {
return new GetAIMediaAuditJobResponse(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/GetAIMediaAuditJobResponseBody.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 GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public class GetAIMediaAuditJobResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MediaAuditJob")
private MediaAuditJob mediaAuditJob;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetAIMediaAuditJobResponseBody(Builder builder) {
this.mediaAuditJob = builder.mediaAuditJob;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetAIMediaAuditJobResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return mediaAuditJob
*/
public MediaAuditJob getMediaAuditJob() {
return this.mediaAuditJob;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private MediaAuditJob mediaAuditJob;
private String requestId;
private Builder() {
}
private Builder(GetAIMediaAuditJobResponseBody model) {
this.mediaAuditJob = model.mediaAuditJob;
this.requestId = model.requestId;
}
/**
* <p>The information about the intelligent review job.</p>
*/
public Builder mediaAuditJob(MediaAuditJob mediaAuditJob) {
this.mediaAuditJob = mediaAuditJob;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>EAA3E96A-02E2-41*****85-08E1D568ED3A</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetAIMediaAuditJobResponseBody build() {
return new GetAIMediaAuditJobResponseBody(this);
}
}
/**
*
* {@link GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public static class AudioResult extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Scene")
private String scene;
@com.aliyun.core.annotation.NameInMap("Score")
private String score;
@com.aliyun.core.annotation.NameInMap("Suggestion")
private String suggestion;
private AudioResult(Builder builder) {
this.label = builder.label;
this.scene = builder.scene;
this.score = builder.score;
this.suggestion = builder.suggestion;
}
public static Builder builder() {
return new Builder();
}
public static AudioResult create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return scene
*/
public String getScene() {
return this.scene;
}
/**
* @return score
*/
public String getScore() {
return this.score;
}
/**
* @return suggestion
*/
public String getSuggestion() {
return this.suggestion;
}
public static final class Builder {
private String label;
private String scene;
private String score;
private String suggestion;
private Builder() {
}
private Builder(AudioResult model) {
this.label = model.label;
this.scene = model.scene;
this.score = model.score;
this.suggestion = model.suggestion;
}
/**
* <p>The category of the review result.</p>
* <ul>
* <li><strong>normal</strong>: normal content</li>
* <li><strong>spam</strong>: spam</li>
* <li><strong>ad</strong>: ads</li>
* <li><strong>politics</strong>: political content</li>
* <li><strong>terrorism</strong>: terrorist content</li>
* <li><strong>abuse</strong>: abuse</li>
* <li><strong>porn</strong>: pornographic content.</li>
* <li><strong>flood</strong>: excessive junk content</li>
* <li><strong>contraband</strong>: prohibited content</li>
* <li><strong>meaningless</strong>: meaningless content</li>
* </ul>
*
* <strong>example:</strong>
* <p>normal</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The review scenario. The value is <strong>antispam</strong>.</p>
*
* <strong>example:</strong>
* <p>antispam</p>
*/
public Builder scene(String scene) {
this.scene = scene;
return this;
}
/**
* <p>The score.</p>
*
* <strong>example:</strong>
* <p>99.91</p>
*/
public Builder score(String score) {
this.score = score;
return this;
}
/**
* <p>The recommendation for review results. Valid values:</p>
* <ul>
* <li><strong>block</strong></li>
* <li><strong>review</strong></li>
* <li><strong>pass</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>pass</p>
*/
public Builder suggestion(String suggestion) {
this.suggestion = suggestion;
return this;
}
public AudioResult build() {
return new AudioResult(this);
}
}
}
/**
*
* {@link GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public static class Result extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Scene")
private String scene;
@com.aliyun.core.annotation.NameInMap("Score")
private String score;
@com.aliyun.core.annotation.NameInMap("Suggestion")
private String suggestion;
private Result(Builder builder) {
this.label = builder.label;
this.scene = builder.scene;
this.score = builder.score;
this.suggestion = builder.suggestion;
}
public static Builder builder() {
return new Builder();
}
public static Result create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return scene
*/
public String getScene() {
return this.scene;
}
/**
* @return score
*/
public String getScore() {
return this.score;
}
/**
* @return suggestion
*/
public String getSuggestion() {
return this.suggestion;
}
public static final class Builder {
private String label;
private String scene;
private String score;
private String suggestion;
private Builder() {
}
private Builder(Result model) {
this.label = model.label;
this.scene = model.scene;
this.score = model.score;
this.suggestion = model.suggestion;
}
/**
* <p>The category of the review result.</p>
* <p>Valid values if scene is <strong>porn</strong>:</p>
* <ul>
* <li><strong>porn</strong></li>
* <li><strong>sexy</strong></li>
* <li><strong>normal</strong></li>
* </ul>
* <p>Valid values if scene is <strong>terrorism</strong>:</p>
* <ul>
* <li><strong>normal</strong></li>
* <li><strong>bloody</strong></li>
* <li><strong>explosion</strong></li>
* <li><strong>outfit</strong></li>
* <li><strong>logo</strong></li>
* <li><strong>weapon</strong></li>
* <li><strong>politics</strong></li>
* <li><strong>violence</strong></li>
* <li><strong>crowd</strong></li>
* <li><strong>parade</strong></li>
* <li><strong>carcrash</strong></li>
* <li><strong>flag</strong></li>
* <li><strong>location</strong></li>
* <li><strong>others</strong></li>
* </ul>
* <p>Valid values if scene is <strong>ad</strong>:</p>
* <ul>
* <li><strong>normal</strong>: normal content</li>
* <li><strong>ad</strong>: ads</li>
* <li><strong>politics</strong>: political content</li>
* <li><strong>porn</strong>: pornographic content</li>
* <li><strong>abuse</strong>: verbal abuse</li>
* <li><strong>terrorism</strong>: terrorist content</li>
* <li><strong>contraband</strong>: prohibited content</li>
* <li><strong>spam</strong>: spam content</li>
* <li><strong>npx</strong>: illegal ad</li>
* <li><strong>qrcode</strong>: QR code</li>
* <li><strong>programCode</strong>: mini program code</li>
* </ul>
* <p>Valid values if scene is <strong>live</strong>:</p>
* <ul>
* <li><strong>normal</strong>: normal content</li>
* <li><strong>meaningless</strong>: meaningless content, such as a black or white screen.</li>
* <li><strong>PIP</strong>: picture-in-picture</li>
* <li><strong>smoking</strong>: smoking</li>
* <li><strong>drivelive</strong>: live broadcasting in a running vehicle</li>
* </ul>
* <p>Valid values if scene is <strong>logo</strong>:</p>
* <ul>
* <li><strong>normal</strong>: normal content</li>
* <li><strong>TV</strong>: controlled TV station logo</li>
* <li><strong>trademark</strong>: trademark</li>
* </ul>
*
* <strong>example:</strong>
* <p>porn</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The review scenario. Valid values:</p>
* <ul>
* <li><strong>porn</strong>: pornographic content</li>
* <li><strong>terrorism</strong>: terrorist or politically sensitive content</li>
* <li><strong>ad</strong>: ad violation</li>
* <li><strong>live</strong>: undesirable scene</li>
* <li><strong>logo</strong>: logo</li>
* </ul>
*
* <strong>example:</strong>
* <p>porn</p>
*/
public Builder scene(String scene) {
this.scene = scene;
return this;
}
/**
* <p>The score of the image of the category that is indicated by Label. Valid values: <code>[0, 100]</code>. The score is representative of the confidence.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder score(String score) {
this.score = score;
return this;
}
/**
* <p>The recommendation for review results. Valid values:</p>
* <ul>
* <li><strong>block</strong></li>
* <li><strong>review</strong></li>
* <li><strong>pass</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>pass</p>
*/
public Builder suggestion(String suggestion) {
this.suggestion = suggestion;
return this;
}
public Result build() {
return new Result(this);
}
}
}
/**
*
* {@link GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public static class ImageResult extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Result")
private java.util.List<Result> result;
@com.aliyun.core.annotation.NameInMap("Suggestion")
private String suggestion;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("Url")
private String url;
private ImageResult(Builder builder) {
this.label = builder.label;
this.result = builder.result;
this.suggestion = builder.suggestion;
this.type = builder.type;
this.url = builder.url;
}
public static Builder builder() {
return new Builder();
}
public static ImageResult create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return result
*/
public java.util.List<Result> getResult() {
return this.result;
}
/**
* @return suggestion
*/
public String getSuggestion() {
return this.suggestion;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return url
*/
public String getUrl() {
return this.url;
}
public static final class Builder {
private String label;
private java.util.List<Result> result;
private String suggestion;
private String type;
private String url;
private Builder() {
}
private Builder(ImageResult model) {
this.label = model.label;
this.result = model.result;
this.suggestion = model.suggestion;
this.type = model.type;
this.url = model.url;
}
/**
* <p>The categories of the image review results. Multiple values are separated by commas (,). Valid values:</p>
* <ul>
* <li><strong>porn</strong>: pornographic content</li>
* <li><strong>terrorism</strong>: terrorist or politically sensitive content</li>
* <li><strong>ad</strong>: ad violation</li>
* <li><strong>live</strong>: undesirable scene</li>
* <li><strong>logo</strong>: logo</li>
* <li><strong>normal</strong>: normal content</li>
* </ul>
*
* <strong>example:</strong>
* <p>normal</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>Details of image review results.</p>
*/
public Builder result(java.util.List<Result> result) {
this.result = result;
return this;
}
/**
* <p>The recommendation for review results. Valid values:</p>
* <ul>
* <li><strong>block</strong></li>
* <li><strong>review</strong></li>
* <li><strong>pass</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>pass</p>
*/
public Builder suggestion(String suggestion) {
this.suggestion = suggestion;
return this;
}
/**
* <p>The type of the image. Valid value: <strong>cover</strong>.</p>
*
* <strong>example:</strong>
* <p>cover</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The URL of the image.</p>
*
* <strong>example:</strong>
* <p><a href="http://www.test.com/****.jpg">http://www.test.com/****.jpg</a></p>
*/
public Builder url(String url) {
this.url = url;
return this;
}
public ImageResult build() {
return new ImageResult(this);
}
}
}
/**
*
* {@link GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public static class TextResult extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Content")
private String content;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Scene")
private String scene;
@com.aliyun.core.annotation.NameInMap("Score")
private String score;
@com.aliyun.core.annotation.NameInMap("Suggestion")
private String suggestion;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private TextResult(Builder builder) {
this.content = builder.content;
this.label = builder.label;
this.scene = builder.scene;
this.score = builder.score;
this.suggestion = builder.suggestion;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static TextResult create() {
return builder().build();
}
/**
* @return content
*/
public String getContent() {
return this.content;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return scene
*/
public String getScene() {
return this.scene;
}
/**
* @return score
*/
public String getScore() {
return this.score;
}
/**
* @return suggestion
*/
public String getSuggestion() {
return this.suggestion;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private String content;
private String label;
private String scene;
private String score;
private String suggestion;
private String type;
private Builder() {
}
private Builder(TextResult model) {
this.content = model.content;
this.label = model.label;
this.scene = model.scene;
this.score = model.score;
this.suggestion = model.suggestion;
this.type = model.type;
}
/**
* <p>The text content.</p>
*
* <strong>example:</strong>
* <p>Test</p>
*/
public Builder content(String content) {
this.content = content;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>spam</strong>: spam content</li>
* <li><strong>ad</strong>: ads</li>
* <li><strong>abuse</strong>: abuse</li>
* <li><strong>flood</strong>: excessive junk content</li>
* <li><strong>contraband</strong>: prohibited content</li>
* <li><strong>meaningless</strong>: meaningless content</li>
* <li><strong>normal</strong>: normal content</li>
* </ul>
*
* <strong>example:</strong>
* <p>ad</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The review scenario. The value is <strong>antispam</strong>.</p>
*
* <strong>example:</strong>
* <p>antispam</p>
*/
public Builder scene(String scene) {
this.scene = scene;
return this;
}
/**
* <p>The score of the image of the category that is indicated by Label. Valid values: <code>[0, 100]</code>. The score is representative of the confidence.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder score(String score) {
this.score = score;
return this;
}
/**
* <p>The recommendation for review results. Valid values:</p>
* <ul>
* <li><strong>block</strong></li>
* <li><strong>review</strong></li>
* <li><strong>pass</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>pass</p>
*/
public Builder suggestion(String suggestion) {
this.suggestion = suggestion;
return this;
}
/**
* <p>The type of the text. The value is <strong>title</strong>.</p>
*
* <strong>example:</strong>
* <p>title</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public TextResult build() {
return new TextResult(this);
}
}
}
/**
*
* {@link GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public static class CounterList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
private CounterList(Builder builder) {
this.count = builder.count;
this.label = builder.label;
}
public static Builder builder() {
return new Builder();
}
public static CounterList create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
public static final class Builder {
private Integer count;
private String label;
private Builder() {
}
private Builder(CounterList model) {
this.count = model.count;
this.label = model.label;
}
/**
* <p>The number of video snapshots.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The categories of the ad review results. Valid values:</p>
* <ul>
* <li><strong>normal</strong>: normal content</li>
* <li><strong>ad</strong>: other ads</li>
* <li><strong>politics</strong>: political content</li>
* <li><strong>porn</strong>: pornographic content</li>
* <li><strong>abuse</strong>: abuse</li>
* <li><strong>terrorism</strong>: terrorist content</li>
* <li><strong>contraband</strong>: prohibited content</li>
* <li><strong>spam</strong>: spam content</li>
* <li><strong>npx</strong>: illegal ad</li>
* <li><strong>qrcode</strong>: QR code</li>
* <li><strong>programCode</strong>: mini program code</li>
* </ul>
*
* <strong>example:</strong>
* <p>ad</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
public CounterList build() {
return new CounterList(this);
}
}
}
/**
*
* {@link GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public static class TopList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Score")
private String score;
@com.aliyun.core.annotation.NameInMap("Timestamp")
private String timestamp;
@com.aliyun.core.annotation.NameInMap("Url")
private String url;
private TopList(Builder builder) {
this.label = builder.label;
this.score = builder.score;
this.timestamp = builder.timestamp;
this.url = builder.url;
}
public static Builder builder() {
return new Builder();
}
public static TopList create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return score
*/
public String getScore() {
return this.score;
}
/**
* @return timestamp
*/
public String getTimestamp() {
return this.timestamp;
}
/**
* @return url
*/
public String getUrl() {
return this.url;
}
public static final class Builder {
private String label;
private String score;
private String timestamp;
private String url;
private Builder() {
}
private Builder(TopList model) {
this.label = model.label;
this.score = model.score;
this.timestamp = model.timestamp;
this.url = model.url;
}
/**
* <p>The categories of the ad review results. Valid values:</p>
* <ul>
* <li><strong>normal</strong>: normal content</li>
* <li><strong>ad</strong>: other ads</li>
* <li><strong>politics</strong>: political content</li>
* <li><strong>porn</strong>: pornographic content</li>
* <li><strong>abuse</strong>: abuse</li>
* <li><strong>terrorism</strong>: terrorist content</li>
* <li><strong>contraband</strong>: prohibited content</li>
* <li><strong>spam</strong>: spam content</li>
* <li><strong>npx</strong>: illegal ad</li>
* <li><strong>qrcode</strong>: QR code</li>
* <li><strong>programCode</strong>: mini program code</li>
* </ul>
*
* <strong>example:</strong>
* <p>ad</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The score of the snapshot in the category that is indicated by Label.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder score(String score) {
this.score = score;
return this;
}
/**
* <p>The timestamp of the snapshot in the video. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>500</p>
*/
public Builder timestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
/**
* <p>The URL of the video snapshot.</p>
*
* <strong>example:</strong>
* <p><a href="http://temp-****bucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg">http://temp-****bucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg</a></p>
*/
public Builder url(String url) {
this.url = url;
return this;
}
public TopList build() {
return new TopList(this);
}
}
}
/**
*
* {@link GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public static class AdResult extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AverageScore")
private String averageScore;
@com.aliyun.core.annotation.NameInMap("CounterList")
private java.util.List<CounterList> counterList;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("MaxScore")
private String maxScore;
@com.aliyun.core.annotation.NameInMap("Suggestion")
private String suggestion;
@com.aliyun.core.annotation.NameInMap("TopList")
private java.util.List<TopList> topList;
private AdResult(Builder builder) {
this.averageScore = builder.averageScore;
this.counterList = builder.counterList;
this.label = builder.label;
this.maxScore = builder.maxScore;
this.suggestion = builder.suggestion;
this.topList = builder.topList;
}
public static Builder builder() {
return new Builder();
}
public static AdResult create() {
return builder().build();
}
/**
* @return averageScore
*/
public String getAverageScore() {
return this.averageScore;
}
/**
* @return counterList
*/
public java.util.List<CounterList> getCounterList() {
return this.counterList;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return maxScore
*/
public String getMaxScore() {
return this.maxScore;
}
/**
* @return suggestion
*/
public String getSuggestion() {
return this.suggestion;
}
/**
* @return topList
*/
public java.util.List<TopList> getTopList() {
return this.topList;
}
public static final class Builder {
private String averageScore;
private java.util.List<CounterList> counterList;
private String label;
private String maxScore;
private String suggestion;
private java.util.List<TopList> topList;
private Builder() {
}
private Builder(AdResult model) {
this.averageScore = model.averageScore;
this.counterList = model.counterList;
this.label = model.label;
this.maxScore = model.maxScore;
this.suggestion = model.suggestion;
this.topList = model.topList;
}
/**
* <p>The average score of the review results.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder averageScore(String averageScore) {
this.averageScore = averageScore;
return this;
}
/**
* <p>The number of snapshots of each category in the review result.</p>
*/
public Builder counterList(java.util.List<CounterList> counterList) {
this.counterList = counterList;
return this;
}
/**
* <p>The categories of the ad review results. Valid values:</p>
* <ul>
* <li><strong>normal</strong>: normal content</li>
* <li><strong>ad</strong>: other ads</li>
* <li><strong>politics</strong>: political content</li>
* <li><strong>porn</strong>: pornographic content</li>
* <li><strong>abuse</strong>: abuse</li>
* <li><strong>terrorism</strong>: terrorist content</li>
* <li><strong>contraband</strong>: prohibited content</li>
* <li><strong>spam</strong>: spam content</li>
* <li><strong>npx</strong>: illegal ad</li>
* <li><strong>qrcode</strong>: QR code</li>
* <li><strong>programCode</strong>: mini program code</li>
* </ul>
*
* <strong>example:</strong>
* <p>ad</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The highest review score.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder maxScore(String maxScore) {
this.maxScore = maxScore;
return this;
}
/**
* <p>The recommendation for review results. Valid values:</p>
* <ul>
* <li><strong>block</strong>: The content violates the regulations.</li>
* <li><strong>review</strong>: The content may violate the regulations.</li>
* <li><strong>pass</strong>: The content passes the review.</li>
* </ul>
*
* <strong>example:</strong>
* <p>block</p>
*/
public Builder suggestion(String suggestion) {
this.suggestion = suggestion;
return this;
}
/**
* <p>The information about the snapshot that has the highest score in the category.</p>
*/
public Builder topList(java.util.List<TopList> topList) {
this.topList = topList;
return this;
}
public AdResult build() {
return new AdResult(this);
}
}
}
/**
*
* {@link GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public static class LiveResultCounterList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
private LiveResultCounterList(Builder builder) {
this.count = builder.count;
this.label = builder.label;
}
public static Builder builder() {
return new Builder();
}
public static LiveResultCounterList create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
public static final class Builder {
private Integer count;
private String label;
private Builder() {
}
private Builder(LiveResultCounterList model) {
this.count = model.count;
this.label = model.label;
}
/**
* <p>The number of video snapshots.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>normal</strong>: normal content</li>
* <li><strong>meaningless</strong>: meaningless content, such as a black or white screen.</li>
* <li><strong>PIP</strong>: picture-in-picture</li>
* <li><strong>smoking</strong>: smoking</li>
* <li><strong>drivelive</strong>: live broadcasting in a running vehicle</li>
* </ul>
*
* <strong>example:</strong>
* <p>live</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
public LiveResultCounterList build() {
return new LiveResultCounterList(this);
}
}
}
/**
*
* {@link GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public static class LiveResultTopList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Score")
private String score;
@com.aliyun.core.annotation.NameInMap("Timestamp")
private String timestamp;
@com.aliyun.core.annotation.NameInMap("Url")
private String url;
private LiveResultTopList(Builder builder) {
this.label = builder.label;
this.score = builder.score;
this.timestamp = builder.timestamp;
this.url = builder.url;
}
public static Builder builder() {
return new Builder();
}
public static LiveResultTopList create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return score
*/
public String getScore() {
return this.score;
}
/**
* @return timestamp
*/
public String getTimestamp() {
return this.timestamp;
}
/**
* @return url
*/
public String getUrl() {
return this.url;
}
public static final class Builder {
private String label;
private String score;
private String timestamp;
private String url;
private Builder() {
}
private Builder(LiveResultTopList model) {
this.label = model.label;
this.score = model.score;
this.timestamp = model.timestamp;
this.url = model.url;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>normal</strong>: normal content</li>
* <li><strong>meaningless</strong>: meaningless content, such as a black or white screen.</li>
* <li><strong>PIP</strong>: picture-in-picture</li>
* <li><strong>smoking</strong>: smoking</li>
* <li><strong>drivelive</strong>: live broadcasting in a running vehicle</li>
* </ul>
*
* <strong>example:</strong>
* <p>live</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The score of the snapshot in the category that is indicated by Label.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder score(String score) {
this.score = score;
return this;
}
/**
* <p>The timestamp of the snapshot in the video. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>500</p>
*/
public Builder timestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
/**
* <p>The URL of the video snapshot.</p>
*
* <strong>example:</strong>
* <p><a href="http://temp-****bucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg">http://temp-****bucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg</a></p>
*/
public Builder url(String url) {
this.url = url;
return this;
}
public LiveResultTopList build() {
return new LiveResultTopList(this);
}
}
}
/**
*
* {@link GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public static class LiveResult extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AverageScore")
private String averageScore;
@com.aliyun.core.annotation.NameInMap("CounterList")
private java.util.List<LiveResultCounterList> counterList;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("MaxScore")
private String maxScore;
@com.aliyun.core.annotation.NameInMap("Suggestion")
private String suggestion;
@com.aliyun.core.annotation.NameInMap("TopList")
private java.util.List<LiveResultTopList> topList;
private LiveResult(Builder builder) {
this.averageScore = builder.averageScore;
this.counterList = builder.counterList;
this.label = builder.label;
this.maxScore = builder.maxScore;
this.suggestion = builder.suggestion;
this.topList = builder.topList;
}
public static Builder builder() {
return new Builder();
}
public static LiveResult create() {
return builder().build();
}
/**
* @return averageScore
*/
public String getAverageScore() {
return this.averageScore;
}
/**
* @return counterList
*/
public java.util.List<LiveResultCounterList> getCounterList() {
return this.counterList;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return maxScore
*/
public String getMaxScore() {
return this.maxScore;
}
/**
* @return suggestion
*/
public String getSuggestion() {
return this.suggestion;
}
/**
* @return topList
*/
public java.util.List<LiveResultTopList> getTopList() {
return this.topList;
}
public static final class Builder {
private String averageScore;
private java.util.List<LiveResultCounterList> counterList;
private String label;
private String maxScore;
private String suggestion;
private java.util.List<LiveResultTopList> topList;
private Builder() {
}
private Builder(LiveResult model) {
this.averageScore = model.averageScore;
this.counterList = model.counterList;
this.label = model.label;
this.maxScore = model.maxScore;
this.suggestion = model.suggestion;
this.topList = model.topList;
}
/**
* <p>The average score of the review results.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder averageScore(String averageScore) {
this.averageScore = averageScore;
return this;
}
/**
* <p>The categories of the review results and the number of video snapshots in each category.</p>
*/
public Builder counterList(java.util.List<LiveResultCounterList> counterList) {
this.counterList = counterList;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>normal</strong>: normal content</li>
* <li><strong>meaningless</strong>: meaningless content, such as a black or white screen.</li>
* <li><strong>PIP</strong>: picture-in-picture</li>
* <li><strong>smoking</strong>: smoking</li>
* <li><strong>drivelive</strong>: live broadcasting in a running vehicle</li>
* </ul>
*
* <strong>example:</strong>
* <p>live</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The highest review score.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder maxScore(String maxScore) {
this.maxScore = maxScore;
return this;
}
/**
* <p>The recommendation for review results. Valid values:</p>
* <ul>
* <li><strong>block</strong>: The content violates the regulations.</li>
* <li><strong>review</strong>: The content may violate the regulations.</li>
* <li><strong>pass</strong>: The content passes the review.</li>
* </ul>
*
* <strong>example:</strong>
* <p>block</p>
*/
public Builder suggestion(String suggestion) {
this.suggestion = suggestion;
return this;
}
/**
* <p>The information about the snapshot that has the highest score in the category.</p>
*/
public Builder topList(java.util.List<LiveResultTopList> topList) {
this.topList = topList;
return this;
}
public LiveResult build() {
return new LiveResult(this);
}
}
}
/**
*
* {@link GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public static class LogoResultCounterList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
private LogoResultCounterList(Builder builder) {
this.count = builder.count;
this.label = builder.label;
}
public static Builder builder() {
return new Builder();
}
public static LogoResultCounterList create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
public static final class Builder {
private Integer count;
private String label;
private Builder() {
}
private Builder(LogoResultCounterList model) {
this.count = model.count;
this.label = model.label;
}
/**
* <p>The number of video snapshots.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>normal</strong>: normal content</li>
* <li><strong>TV</strong>: controlled TV station logo</li>
* <li><strong>trademark</strong>: trademark</li>
* </ul>
*
* <strong>example:</strong>
* <p>logo</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
public LogoResultCounterList build() {
return new LogoResultCounterList(this);
}
}
}
/**
*
* {@link GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public static class LogoResultTopList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Score")
private String score;
@com.aliyun.core.annotation.NameInMap("Timestamp")
private String timestamp;
@com.aliyun.core.annotation.NameInMap("Url")
private String url;
private LogoResultTopList(Builder builder) {
this.label = builder.label;
this.score = builder.score;
this.timestamp = builder.timestamp;
this.url = builder.url;
}
public static Builder builder() {
return new Builder();
}
public static LogoResultTopList create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return score
*/
public String getScore() {
return this.score;
}
/**
* @return timestamp
*/
public String getTimestamp() {
return this.timestamp;
}
/**
* @return url
*/
public String getUrl() {
return this.url;
}
public static final class Builder {
private String label;
private String score;
private String timestamp;
private String url;
private Builder() {
}
private Builder(LogoResultTopList model) {
this.label = model.label;
this.score = model.score;
this.timestamp = model.timestamp;
this.url = model.url;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>normal</strong>: normal content</li>
* <li><strong>TV</strong>: controlled TV station logo</li>
* <li><strong>trademark</strong>: trademark</li>
* </ul>
*
* <strong>example:</strong>
* <p>logo</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The score of the snapshot in the category that is indicated by Label.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder score(String score) {
this.score = score;
return this;
}
/**
* <p>The timestamp of the snapshot in the video. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>5000</p>
*/
public Builder timestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
/**
* <p>The URL of the video snapshot.</p>
*
* <strong>example:</strong>
* <p><a href="http://temp-****bucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg">http://temp-****bucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg</a></p>
*/
public Builder url(String url) {
this.url = url;
return this;
}
public LogoResultTopList build() {
return new LogoResultTopList(this);
}
}
}
/**
*
* {@link GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public static class LogoResult extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AverageScore")
private String averageScore;
@com.aliyun.core.annotation.NameInMap("CounterList")
private java.util.List<LogoResultCounterList> counterList;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("MaxScore")
private String maxScore;
@com.aliyun.core.annotation.NameInMap("Suggestion")
private String suggestion;
@com.aliyun.core.annotation.NameInMap("TopList")
private java.util.List<LogoResultTopList> topList;
private LogoResult(Builder builder) {
this.averageScore = builder.averageScore;
this.counterList = builder.counterList;
this.label = builder.label;
this.maxScore = builder.maxScore;
this.suggestion = builder.suggestion;
this.topList = builder.topList;
}
public static Builder builder() {
return new Builder();
}
public static LogoResult create() {
return builder().build();
}
/**
* @return averageScore
*/
public String getAverageScore() {
return this.averageScore;
}
/**
* @return counterList
*/
public java.util.List<LogoResultCounterList> getCounterList() {
return this.counterList;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return maxScore
*/
public String getMaxScore() {
return this.maxScore;
}
/**
* @return suggestion
*/
public String getSuggestion() {
return this.suggestion;
}
/**
* @return topList
*/
public java.util.List<LogoResultTopList> getTopList() {
return this.topList;
}
public static final class Builder {
private String averageScore;
private java.util.List<LogoResultCounterList> counterList;
private String label;
private String maxScore;
private String suggestion;
private java.util.List<LogoResultTopList> topList;
private Builder() {
}
private Builder(LogoResult model) {
this.averageScore = model.averageScore;
this.counterList = model.counterList;
this.label = model.label;
this.maxScore = model.maxScore;
this.suggestion = model.suggestion;
this.topList = model.topList;
}
/**
* <p>The average score of the snapshots in the category indicated by Label.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder averageScore(String averageScore) {
this.averageScore = averageScore;
return this;
}
/**
* <p>The categories of the review results and the number of video snapshots in each category.</p>
*/
public Builder counterList(java.util.List<LogoResultCounterList> counterList) {
this.counterList = counterList;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>normal</strong>: normal content</li>
* <li><strong>TV</strong>: controlled TV station logo</li>
* <li><strong>trademark</strong>: trademark</li>
* </ul>
*
* <strong>example:</strong>
* <p>logo</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The highest score of the snapshot of the category that is indicated by Label.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder maxScore(String maxScore) {
this.maxScore = maxScore;
return this;
}
/**
* <p>The recommendation for review results. Valid values:</p>
* <ul>
* <li><strong>block</strong>: The content violates the regulations.</li>
* <li><strong>review</strong>: The content may violate the regulations.</li>
* <li><strong>pass</strong>: The content passes the review.</li>
* </ul>
*
* <strong>example:</strong>
* <p>block</p>
*/
public Builder suggestion(String suggestion) {
this.suggestion = suggestion;
return this;
}
/**
* <p>The information about the snapshot that has the highest score in the category.</p>
*/
public Builder topList(java.util.List<LogoResultTopList> topList) {
this.topList = topList;
return this;
}
public LogoResult build() {
return new LogoResult(this);
}
}
}
/**
*
* {@link GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public static class PornResultCounterList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
private PornResultCounterList(Builder builder) {
this.count = builder.count;
this.label = builder.label;
}
public static Builder builder() {
return new Builder();
}
public static PornResultCounterList create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
public static final class Builder {
private Integer count;
private String label;
private Builder() {
}
private Builder(PornResultCounterList model) {
this.count = model.count;
this.label = model.label;
}
/**
* <p>The number of video snapshots.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The results of pornographic content review. Valid values:</p>
* <ul>
* <li><strong>porn</strong></li>
* <li><strong>sexy</strong></li>
* <li><strong>normal</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>porn</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
public PornResultCounterList build() {
return new PornResultCounterList(this);
}
}
}
/**
*
* {@link GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public static class PornResultTopList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Score")
private String score;
@com.aliyun.core.annotation.NameInMap("Timestamp")
private String timestamp;
@com.aliyun.core.annotation.NameInMap("Url")
private String url;
private PornResultTopList(Builder builder) {
this.label = builder.label;
this.score = builder.score;
this.timestamp = builder.timestamp;
this.url = builder.url;
}
public static Builder builder() {
return new Builder();
}
public static PornResultTopList create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return score
*/
public String getScore() {
return this.score;
}
/**
* @return timestamp
*/
public String getTimestamp() {
return this.timestamp;
}
/**
* @return url
*/
public String getUrl() {
return this.url;
}
public static final class Builder {
private String label;
private String score;
private String timestamp;
private String url;
private Builder() {
}
private Builder(PornResultTopList model) {
this.label = model.label;
this.score = model.score;
this.timestamp = model.timestamp;
this.url = model.url;
}
/**
* <p>The results of pornographic content review. Valid values:</p>
* <ul>
* <li><strong>porn</strong></li>
* <li><strong>sexy</strong></li>
* <li><strong>normal</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>porn</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The score of the snapshot in the category that is indicated by Label. Valid values: <code>[0, 100]</code>. The value is accurate to 10 decimal places. The score is representative of the confidence.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder score(String score) {
this.score = score;
return this;
}
/**
* <p>The timestamp of the snapshot in the video. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>3005</p>
*/
public Builder timestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
/**
* <p>The URL of the video snapshot.</p>
*
* <strong>example:</strong>
* <p><a href="http://temp-****bucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg">http://temp-****bucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg</a></p>
*/
public Builder url(String url) {
this.url = url;
return this;
}
public PornResultTopList build() {
return new PornResultTopList(this);
}
}
}
/**
*
* {@link GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public static class PornResult extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AverageScore")
private String averageScore;
@com.aliyun.core.annotation.NameInMap("CounterList")
private java.util.List<PornResultCounterList> counterList;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("MaxScore")
private String maxScore;
@com.aliyun.core.annotation.NameInMap("Suggestion")
private String suggestion;
@com.aliyun.core.annotation.NameInMap("TopList")
private java.util.List<PornResultTopList> topList;
private PornResult(Builder builder) {
this.averageScore = builder.averageScore;
this.counterList = builder.counterList;
this.label = builder.label;
this.maxScore = builder.maxScore;
this.suggestion = builder.suggestion;
this.topList = builder.topList;
}
public static Builder builder() {
return new Builder();
}
public static PornResult create() {
return builder().build();
}
/**
* @return averageScore
*/
public String getAverageScore() {
return this.averageScore;
}
/**
* @return counterList
*/
public java.util.List<PornResultCounterList> getCounterList() {
return this.counterList;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return maxScore
*/
public String getMaxScore() {
return this.maxScore;
}
/**
* @return suggestion
*/
public String getSuggestion() {
return this.suggestion;
}
/**
* @return topList
*/
public java.util.List<PornResultTopList> getTopList() {
return this.topList;
}
public static final class Builder {
private String averageScore;
private java.util.List<PornResultCounterList> counterList;
private String label;
private String maxScore;
private String suggestion;
private java.util.List<PornResultTopList> topList;
private Builder() {
}
private Builder(PornResult model) {
this.averageScore = model.averageScore;
this.counterList = model.counterList;
this.label = model.label;
this.maxScore = model.maxScore;
this.suggestion = model.suggestion;
this.topList = model.topList;
}
/**
* <p>The average score of the snapshots of the category that is indicated by Label. Valid values: <code>[0, 100]</code>. The value is accurate to 10 decimal places. The score is representative of the confidence.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder averageScore(String averageScore) {
this.averageScore = averageScore;
return this;
}
/**
* <p>The number of snapshots of each category in the review result.</p>
*/
public Builder counterList(java.util.List<PornResultCounterList> counterList) {
this.counterList = counterList;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>porn</strong></li>
* <li><strong>sexy</strong></li>
* <li><strong>normal</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>porn</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The highest score of the snapshot of the category that is indicated by Label. Valid values: <code>[0, 100]</code>. The value is accurate to 10 decimal places. The score is representative of the confidence.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder maxScore(String maxScore) {
this.maxScore = maxScore;
return this;
}
/**
* <p>The recommendation for review results. Valid values:</p>
* <ul>
* <li><strong>block</strong>: The content violates the regulations.</li>
* <li><strong>review</strong>: The content may violate the regulations.</li>
* <li><strong>pass</strong>: The content passes the review.</li>
* </ul>
*
* <strong>example:</strong>
* <p>pass</p>
*/
public Builder suggestion(String suggestion) {
this.suggestion = suggestion;
return this;
}
/**
* <p>The information about the snapshot that has the highest score in the category.</p>
*/
public Builder topList(java.util.List<PornResultTopList> topList) {
this.topList = topList;
return this;
}
public PornResult build() {
return new PornResult(this);
}
}
}
/**
*
* {@link GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public static class TerrorismResultCounterList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
private TerrorismResultCounterList(Builder builder) {
this.count = builder.count;
this.label = builder.label;
}
public static Builder builder() {
return new Builder();
}
public static TerrorismResultCounterList create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
public static final class Builder {
private Integer count;
private String label;
private Builder() {
}
private Builder(TerrorismResultCounterList model) {
this.count = model.count;
this.label = model.label;
}
/**
* <p>The number of video snapshots.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The results of terrorist content review. Valid values:</p>
* <ul>
* <li><strong>normal</strong></li>
* <li><strong>bloody</strong></li>
* <li><strong>explosion</strong></li>
* <li><strong>outfit</strong></li>
* <li><strong>logo</strong></li>
* <li><strong>weapon</strong></li>
* <li><strong>politics</strong></li>
* <li><strong>violence</strong></li>
* <li><strong>crowd</strong></li>
* <li><strong>parade</strong></li>
* <li><strong>carcrash</strong></li>
* <li><strong>flag</strong></li>
* <li><strong>location</strong></li>
* <li><strong>others</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>terrorism</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
public TerrorismResultCounterList build() {
return new TerrorismResultCounterList(this);
}
}
}
/**
*
* {@link GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public static class TerrorismResultTopList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Score")
private String score;
@com.aliyun.core.annotation.NameInMap("Timestamp")
private String timestamp;
@com.aliyun.core.annotation.NameInMap("Url")
private String url;
private TerrorismResultTopList(Builder builder) {
this.label = builder.label;
this.score = builder.score;
this.timestamp = builder.timestamp;
this.url = builder.url;
}
public static Builder builder() {
return new Builder();
}
public static TerrorismResultTopList create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return score
*/
public String getScore() {
return this.score;
}
/**
* @return timestamp
*/
public String getTimestamp() {
return this.timestamp;
}
/**
* @return url
*/
public String getUrl() {
return this.url;
}
public static final class Builder {
private String label;
private String score;
private String timestamp;
private String url;
private Builder() {
}
private Builder(TerrorismResultTopList model) {
this.label = model.label;
this.score = model.score;
this.timestamp = model.timestamp;
this.url = model.url;
}
/**
* <p>The results of terrorist content review. Valid values:</p>
* <ul>
* <li><strong>normal</strong></li>
* <li><strong>bloody</strong></li>
* <li><strong>explosion</strong></li>
* <li><strong>outfit</strong></li>
* <li><strong>logo</strong></li>
* <li><strong>weapon</strong></li>
* <li><strong>politics</strong></li>
* <li><strong>violence</strong></li>
* <li><strong>crowd</strong></li>
* <li><strong>parade</strong></li>
* <li><strong>carcrash</strong></li>
* <li><strong>flag</strong></li>
* <li><strong>location</strong></li>
* <li><strong>others</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>normal</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The score of the snapshot in the category that is indicated by Label. Valid values: <code>[0, 100]</code>. The value is accurate to 10 decimal places. The score is representative of the confidence.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder score(String score) {
this.score = score;
return this;
}
/**
* <p>The timestamp of the snapshot in the video. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder timestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
/**
* <p>The URL of the video snapshot.</p>
*
* <strong>example:</strong>
* <p><a href="http://ali*****.com/aivideocensor/yytysursrutyrxuq/****.jpg">http://ali*****.com/aivideocensor/yytysursrutyrxuq/****.jpg</a></p>
*/
public Builder url(String url) {
this.url = url;
return this;
}
public TerrorismResultTopList build() {
return new TerrorismResultTopList(this);
}
}
}
/**
*
* {@link GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public static class TerrorismResult extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AverageScore")
private String averageScore;
@com.aliyun.core.annotation.NameInMap("CounterList")
private java.util.List<TerrorismResultCounterList> counterList;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("MaxScore")
private String maxScore;
@com.aliyun.core.annotation.NameInMap("Suggestion")
private String suggestion;
@com.aliyun.core.annotation.NameInMap("TopList")
private java.util.List<TerrorismResultTopList> topList;
private TerrorismResult(Builder builder) {
this.averageScore = builder.averageScore;
this.counterList = builder.counterList;
this.label = builder.label;
this.maxScore = builder.maxScore;
this.suggestion = builder.suggestion;
this.topList = builder.topList;
}
public static Builder builder() {
return new Builder();
}
public static TerrorismResult create() {
return builder().build();
}
/**
* @return averageScore
*/
public String getAverageScore() {
return this.averageScore;
}
/**
* @return counterList
*/
public java.util.List<TerrorismResultCounterList> getCounterList() {
return this.counterList;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return maxScore
*/
public String getMaxScore() {
return this.maxScore;
}
/**
* @return suggestion
*/
public String getSuggestion() {
return this.suggestion;
}
/**
* @return topList
*/
public java.util.List<TerrorismResultTopList> getTopList() {
return this.topList;
}
public static final class Builder {
private String averageScore;
private java.util.List<TerrorismResultCounterList> counterList;
private String label;
private String maxScore;
private String suggestion;
private java.util.List<TerrorismResultTopList> topList;
private Builder() {
}
private Builder(TerrorismResult model) {
this.averageScore = model.averageScore;
this.counterList = model.counterList;
this.label = model.label;
this.maxScore = model.maxScore;
this.suggestion = model.suggestion;
this.topList = model.topList;
}
/**
* <p>The average score of the snapshots of the category that is indicated by Label. Valid values: <code>[0, 100]</code>. The value is accurate to 10 decimal places. The score is representative of the confidence.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder averageScore(String averageScore) {
this.averageScore = averageScore;
return this;
}
/**
* <p>The categories of terrorist content review results and the number of video snapshots in each category.</p>
*/
public Builder counterList(java.util.List<TerrorismResultCounterList> counterList) {
this.counterList = counterList;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>normal</strong></li>
* <li><strong>bloody</strong></li>
* <li><strong>explosion</strong></li>
* <li><strong>outfit</strong></li>
* <li><strong>logo</strong></li>
* <li><strong>weapon</strong></li>
* <li><strong>politics</strong></li>
* <li><strong>violence</strong></li>
* <li><strong>crowd</strong></li>
* <li><strong>parade</strong></li>
* <li><strong>carcrash</strong></li>
* <li><strong>flag</strong></li>
* <li><strong>location</strong></li>
* <li><strong>others</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>normal</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The highest score of the snapshot of the category that is indicated by Label. Valid values: <code>[0, 100]</code>. The value is accurate to 10 decimal places. The score is representative of the confidence.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder maxScore(String maxScore) {
this.maxScore = maxScore;
return this;
}
/**
* <p>The recommendation for terrorist content review results. Valid values:</p>
* <ul>
* <li><strong>block</strong></li>
* <li><strong>review</strong></li>
* <li><strong>pass</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>pass</p>
*/
public Builder suggestion(String suggestion) {
this.suggestion = suggestion;
return this;
}
/**
* <p>The information about the snapshot that has the highest score in the category.</p>
*/
public Builder topList(java.util.List<TerrorismResultTopList> topList) {
this.topList = topList;
return this;
}
public TerrorismResult build() {
return new TerrorismResult(this);
}
}
}
/**
*
* {@link GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public static class VideoResult extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AdResult")
private AdResult adResult;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("LiveResult")
private LiveResult liveResult;
@com.aliyun.core.annotation.NameInMap("LogoResult")
private LogoResult logoResult;
@com.aliyun.core.annotation.NameInMap("PornResult")
private PornResult pornResult;
@com.aliyun.core.annotation.NameInMap("Suggestion")
private String suggestion;
@com.aliyun.core.annotation.NameInMap("TerrorismResult")
private TerrorismResult terrorismResult;
private VideoResult(Builder builder) {
this.adResult = builder.adResult;
this.label = builder.label;
this.liveResult = builder.liveResult;
this.logoResult = builder.logoResult;
this.pornResult = builder.pornResult;
this.suggestion = builder.suggestion;
this.terrorismResult = builder.terrorismResult;
}
public static Builder builder() {
return new Builder();
}
public static VideoResult create() {
return builder().build();
}
/**
* @return adResult
*/
public AdResult getAdResult() {
return this.adResult;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return liveResult
*/
public LiveResult getLiveResult() {
return this.liveResult;
}
/**
* @return logoResult
*/
public LogoResult getLogoResult() {
return this.logoResult;
}
/**
* @return pornResult
*/
public PornResult getPornResult() {
return this.pornResult;
}
/**
* @return suggestion
*/
public String getSuggestion() {
return this.suggestion;
}
/**
* @return terrorismResult
*/
public TerrorismResult getTerrorismResult() {
return this.terrorismResult;
}
public static final class Builder {
private AdResult adResult;
private String label;
private LiveResult liveResult;
private LogoResult logoResult;
private PornResult pornResult;
private String suggestion;
private TerrorismResult terrorismResult;
private Builder() {
}
private Builder(VideoResult model) {
this.adResult = model.adResult;
this.label = model.label;
this.liveResult = model.liveResult;
this.logoResult = model.logoResult;
this.pornResult = model.pornResult;
this.suggestion = model.suggestion;
this.terrorismResult = model.terrorismResult;
}
/**
* <p>The results of ad review.</p>
*/
public Builder adResult(AdResult adResult) {
this.adResult = adResult;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>porn</strong>: pornographic content</li>
* <li><strong>terrorism</strong>: terrorist or politically sensitive content</li>
* <li><strong>ad</strong>: ad violation</li>
* <li><strong>live</strong>: undesirable scene</li>
* <li><strong>logo</strong>: logo</li>
* <li><strong>normal</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>normal</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The results of undesired content review.</p>
*/
public Builder liveResult(LiveResult liveResult) {
this.liveResult = liveResult;
return this;
}
/**
* <p>The results of logo review.</p>
*/
public Builder logoResult(LogoResult logoResult) {
this.logoResult = logoResult;
return this;
}
/**
* <p>The results of pornographic content review.</p>
*/
public Builder pornResult(PornResult pornResult) {
this.pornResult = pornResult;
return this;
}
/**
* <p>The recommendation for video review results. Valid values:</p>
* <ul>
* <li><strong>block</strong></li>
* <li><strong>review</strong></li>
* <li><strong>pass</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>pass</p>
*/
public Builder suggestion(String suggestion) {
this.suggestion = suggestion;
return this;
}
/**
* <p>The results of terrorist content review.</p>
*/
public Builder terrorismResult(TerrorismResult terrorismResult) {
this.terrorismResult = terrorismResult;
return this;
}
public VideoResult build() {
return new VideoResult(this);
}
}
}
/**
*
* {@link GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AbnormalModules")
private String abnormalModules;
@com.aliyun.core.annotation.NameInMap("AudioResult")
private java.util.List<AudioResult> audioResult;
@com.aliyun.core.annotation.NameInMap("ImageResult")
private java.util.List<ImageResult> imageResult;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Suggestion")
private String suggestion;
@com.aliyun.core.annotation.NameInMap("TextResult")
private java.util.List<TextResult> textResult;
@com.aliyun.core.annotation.NameInMap("VideoResult")
private VideoResult videoResult;
private Data(Builder builder) {
this.abnormalModules = builder.abnormalModules;
this.audioResult = builder.audioResult;
this.imageResult = builder.imageResult;
this.label = builder.label;
this.suggestion = builder.suggestion;
this.textResult = builder.textResult;
this.videoResult = builder.videoResult;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return abnormalModules
*/
public String getAbnormalModules() {
return this.abnormalModules;
}
/**
* @return audioResult
*/
public java.util.List<AudioResult> getAudioResult() {
return this.audioResult;
}
/**
* @return imageResult
*/
public java.util.List<ImageResult> getImageResult() {
return this.imageResult;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return suggestion
*/
public String getSuggestion() {
return this.suggestion;
}
/**
* @return textResult
*/
public java.util.List<TextResult> getTextResult() {
return this.textResult;
}
/**
* @return videoResult
*/
public VideoResult getVideoResult() {
return this.videoResult;
}
public static final class Builder {
private String abnormalModules;
private java.util.List<AudioResult> audioResult;
private java.util.List<ImageResult> imageResult;
private String label;
private String suggestion;
private java.util.List<TextResult> textResult;
private VideoResult videoResult;
private Builder() {
}
private Builder(Data model) {
this.abnormalModules = model.abnormalModules;
this.audioResult = model.audioResult;
this.imageResult = model.imageResult;
this.label = model.label;
this.suggestion = model.suggestion;
this.textResult = model.textResult;
this.videoResult = model.videoResult;
}
/**
* <p>The content that violates the regulations. Separate multiple values with commas (,). Valid values:</p>
* <ul>
* <li><strong>video</strong>: the video.</li>
* <li><strong>image-cover</strong>: the cover.</li>
* <li><strong>text-title</strong>: the title.</li>
* </ul>
*
* <strong>example:</strong>
* <p>video</p>
*/
public Builder abnormalModules(String abnormalModules) {
this.abnormalModules = abnormalModules;
return this;
}
/**
* <p>The results of audio review.</p>
*/
public Builder audioResult(java.util.List<AudioResult> audioResult) {
this.audioResult = audioResult;
return this;
}
/**
* <p>The results of image review.</p>
*/
public Builder imageResult(java.util.List<ImageResult> imageResult) {
this.imageResult = imageResult;
return this;
}
/**
* <p>The category of the review result. Multiple values are separated by commas (,). Valid values:</p>
* <ul>
* <li><strong>porn</strong>: pornographic content</li>
* <li><strong>terrorism</strong>: terrorist or politically sensitive content</li>
* <li><strong>ad</strong>: ad violation</li>
* <li><strong>live</strong>: undesirable scene</li>
* <li><strong>logo</strong>: logo</li>
* <li><strong>audio</strong>: audio anti-spam</li>
* <li><strong>normal</strong>: normal content</li>
* </ul>
*
* <strong>example:</strong>
* <p>normal</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The recommendation for review results. Valid values:</p>
* <ul>
* <li><strong>block</strong>: The content violates the regulations.</li>
* <li><strong>review</strong>: The content may violate the regulations.</li>
* <li><strong>pass</strong>: The content passes the review.</li>
* </ul>
*
* <strong>example:</strong>
* <p>pass</p>
*/
public Builder suggestion(String suggestion) {
this.suggestion = suggestion;
return this;
}
/**
* <p>The text moderation results.</p>
*/
public Builder textResult(java.util.List<TextResult> textResult) {
this.textResult = textResult;
return this;
}
/**
* <p>The results of video review.</p>
*/
public Builder videoResult(VideoResult videoResult) {
this.videoResult = videoResult;
return this;
}
public Data build() {
return new Data(this);
}
}
}
/**
*
* {@link GetAIMediaAuditJobResponseBody} extends {@link TeaModel}
*
* <p>GetAIMediaAuditJobResponseBody</p>
*/
public static class MediaAuditJob extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("CompleteTime")
private String completeTime;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("JobId")
private String jobId;
@com.aliyun.core.annotation.NameInMap("MediaId")
private String mediaId;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private MediaAuditJob(Builder builder) {
this.code = builder.code;
this.completeTime = builder.completeTime;
this.creationTime = builder.creationTime;
this.data = builder.data;
this.jobId = builder.jobId;
this.mediaId = builder.mediaId;
this.message = builder.message;
this.status = builder.status;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static MediaAuditJob create() {
return builder().build();
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return completeTime
*/
public String getCompleteTime() {
return this.completeTime;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
/**
* @return mediaId
*/
public String getMediaId() {
return this.mediaId;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private String code;
private String completeTime;
private String creationTime;
private Data data;
private String jobId;
private String mediaId;
private String message;
private String status;
private String type;
private Builder() {
}
private Builder(MediaAuditJob model) {
this.code = model.code;
this.completeTime = model.completeTime;
this.creationTime = model.creationTime;
this.data = model.data;
this.jobId = model.jobId;
this.mediaId = model.mediaId;
this.message = model.message;
this.status = model.status;
this.type = model.type;
}
/**
* <p>The error code. This parameter is returned if the value of Status is fail.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The time when the job is complete. 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 completeTime(String completeTime) {
this.completeTime = completeTime;
return this;
}
/**
* <p>The time when the job started to run. 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 job result.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The ID of the job.</p>
*
* <strong>example:</strong>
* <p>bdbc266af6894*****943a70176d92e9</p>
*/
public Builder jobId(String jobId) {
this.jobId = jobId;
return this;
}
/**
* <p>The ID of the video.</p>
*
* <strong>example:</strong>
* <p>fe028d09441d*****d1afffb138cd7e</p>
*/
public Builder mediaId(String mediaId) {
this.mediaId = mediaId;
return this;
}
/**
* <p>The error message. This parameter is returned if the value of Status is fail.</p>
*
* <strong>example:</strong>
* <p>OK</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The status of the job. Valid values:</p>
* <ul>
* <li><strong>success</strong>: The job is successful.</li>
* <li><strong>fail</strong>: The job failed.</li>
* <li><strong>init</strong>: The job is being initialized.</li>
* <li><strong>Processing</strong>: The job is in progress.</li>
* </ul>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The type of the job. The value is AIMediaAudit.</p>
*
* <strong>example:</strong>
* <p>AIMediaAudit</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public MediaAuditJob build() {
return new MediaAuditJob(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/GetAITemplateRequest.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 GetAITemplateRequest} extends {@link RequestModel}
*
* <p>GetAITemplateRequest</p>
*/
public class GetAITemplateRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TemplateId")
@com.aliyun.core.annotation.Validation(required = true)
private String templateId;
private GetAITemplateRequest(Builder builder) {
super(builder);
this.templateId = builder.templateId;
}
public static Builder builder() {
return new Builder();
}
public static GetAITemplateRequest 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<GetAITemplateRequest, Builder> {
private String templateId;
private Builder() {
super();
}
private Builder(GetAITemplateRequest request) {
super(request);
this.templateId = request.templateId;
}
/**
* <p>The ID of the AI template. You can use one of the following methods to obtain the ID:</p>
* <ul>
* <li>Call the <a href="https://help.aliyun.com/document_detail/102930.html">AddAITemplate</a> operation to add an AI template if no AI template exists. The value of TemplateId in the response is the ID of the AI template.</li>
* <li>Call the <a href="https://help.aliyun.com/document_detail/102936.html">ListAITemplate</a> operation if the template already exists. The value of TemplateId in the response is the ID of the AI template.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1706a0063dd733f6a823ef32e0a5****</p>
*/
public Builder templateId(String templateId) {
this.putQueryParameter("TemplateId", templateId);
this.templateId = templateId;
return this;
}
@Override
public GetAITemplateRequest build() {
return new GetAITemplateRequest(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/GetAITemplateResponse.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 GetAITemplateResponse} extends {@link TeaModel}
*
* <p>GetAITemplateResponse</p>
*/
public class GetAITemplateResponse 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 GetAITemplateResponseBody body;
private GetAITemplateResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAITemplateResponse 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 GetAITemplateResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAITemplateResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAITemplateResponseBody body);
@Override
GetAITemplateResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAITemplateResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAITemplateResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAITemplateResponse 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(GetAITemplateResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAITemplateResponse build() {
return new GetAITemplateResponse(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/GetAITemplateResponseBody.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 GetAITemplateResponseBody} extends {@link TeaModel}
*
* <p>GetAITemplateResponseBody</p>
*/
public class GetAITemplateResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TemplateInfo")
private TemplateInfo templateInfo;
private GetAITemplateResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.templateInfo = builder.templateInfo;
}
public static Builder builder() {
return new Builder();
}
public static GetAITemplateResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return templateInfo
*/
public TemplateInfo getTemplateInfo() {
return this.templateInfo;
}
public static final class Builder {
private String requestId;
private TemplateInfo templateInfo;
private Builder() {
}
private Builder(GetAITemplateResponseBody model) {
this.requestId = model.requestId;
this.templateInfo = model.templateInfo;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>080DA371-8AC0-4CD4-4476-33E64282****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information about the AI template.</p>
*/
public Builder templateInfo(TemplateInfo templateInfo) {
this.templateInfo = templateInfo;
return this;
}
public GetAITemplateResponseBody build() {
return new GetAITemplateResponseBody(this);
}
}
/**
*
* {@link GetAITemplateResponseBody} extends {@link TeaModel}
*
* <p>GetAITemplateResponseBody</p>
*/
public static class TemplateInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("IsDefault")
private String isDefault;
@com.aliyun.core.annotation.NameInMap("ModifyTime")
private String modifyTime;
@com.aliyun.core.annotation.NameInMap("Source")
private String source;
@com.aliyun.core.annotation.NameInMap("TemplateConfig")
private String templateConfig;
@com.aliyun.core.annotation.NameInMap("TemplateId")
private String templateId;
@com.aliyun.core.annotation.NameInMap("TemplateName")
private String templateName;
@com.aliyun.core.annotation.NameInMap("TemplateType")
private String templateType;
private TemplateInfo(Builder builder) {
this.creationTime = builder.creationTime;
this.isDefault = builder.isDefault;
this.modifyTime = builder.modifyTime;
this.source = builder.source;
this.templateConfig = builder.templateConfig;
this.templateId = builder.templateId;
this.templateName = builder.templateName;
this.templateType = builder.templateType;
}
public static Builder builder() {
return new Builder();
}
public static TemplateInfo create() {
return builder().build();
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return isDefault
*/
public String getIsDefault() {
return this.isDefault;
}
/**
* @return modifyTime
*/
public String getModifyTime() {
return this.modifyTime;
}
/**
* @return source
*/
public String getSource() {
return this.source;
}
/**
* @return templateConfig
*/
public String getTemplateConfig() {
return this.templateConfig;
}
/**
* @return templateId
*/
public String getTemplateId() {
return this.templateId;
}
/**
* @return templateName
*/
public String getTemplateName() {
return this.templateName;
}
/**
* @return templateType
*/
public String getTemplateType() {
return this.templateType;
}
public static final class Builder {
private String creationTime;
private String isDefault;
private String modifyTime;
private String source;
private String templateConfig;
private String templateId;
private String templateName;
private String templateType;
private Builder() {
}
private Builder(TemplateInfo model) {
this.creationTime = model.creationTime;
this.isDefault = model.isDefault;
this.modifyTime = model.modifyTime;
this.source = model.source;
this.templateConfig = model.templateConfig;
this.templateId = model.templateId;
this.templateName = model.templateName;
this.templateType = model.templateType;
}
/**
* <p>The time when the AI 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>2020-07-08T06:50:45Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>Indicates whether the template is the default AI template. 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 time when the AI template was 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>2020-07-08T06:58:45Z</p>
*/
public Builder modifyTime(String modifyTime) {
this.modifyTime = modifyTime;
return this;
}
/**
* <p>The source of the AI template. Valid values:</p>
* <ul>
* <li><strong>System</strong></li>
* <li><strong>Custom</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Custom</p>
*/
public Builder source(String source) {
this.source = source;
return this;
}
/**
* <p>The detailed configurations of the AI template. The value is a JSON string. For more information, see <a href="~~89863#title-vd3-499-o36~~">AITemplateConfig</a>.</p>
*
* <strong>example:</strong>
* <p>{"AuditRange":["text-title","video"],"AuditContent":["screen"],"AuditItem":["terrorism","porn"],"AuditAutoBlock":"yes"}</p>
*/
public Builder templateConfig(String templateConfig) {
this.templateConfig = templateConfig;
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;
}
/**
* <p>The name of the AI template.</p>
*
* <strong>example:</strong>
* <p>DemoAITemplate</p>
*/
public Builder templateName(String 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>
*
* <strong>example:</strong>
* <p>AIMediaAudit</p>
*/
public Builder templateType(String templateType) {
this.templateType = templateType;
return this;
}
public TemplateInfo build() {
return new TemplateInfo(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/GetAIVideoTagResultRequest.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 GetAIVideoTagResultRequest} extends {@link RequestModel}
*
* <p>GetAIVideoTagResultRequest</p>
*/
public class GetAIVideoTagResultRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MediaId")
@com.aliyun.core.annotation.Validation(required = true)
private String mediaId;
@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;
private GetAIVideoTagResultRequest(Builder builder) {
super(builder);
this.mediaId = builder.mediaId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static GetAIVideoTagResultRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return mediaId
*/
public String getMediaId() {
return this.mediaId;
}
/**
* @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;
}
public static final class Builder extends Request.Builder<GetAIVideoTagResultRequest, Builder> {
private String mediaId;
private String ownerAccount;
private String ownerId;
private String resourceOwnerAccount;
private String resourceOwnerId;
private Builder() {
super();
}
private Builder(GetAIVideoTagResultRequest request) {
super(request);
this.mediaId = request.mediaId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The ID of the media file. 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</a> console. In the left-side navigation pane, choose <strong>Media Files</strong> > <strong>Audio/Video</strong>. On the Video and Audio page, view the ID of the audio or video file. 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 <a href="https://help.aliyun.com/document_detail/55407.html">CreateUploadVideo</a> operation that you call to upload media files.</li>
* <li>Obtain the value of VideoId from the response to the <a href="https://help.aliyun.com/document_detail/86044.html">SearchMedia</a> operation after you upload media files.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>595d020bad37421f37433451720****</p>
*/
public Builder mediaId(String mediaId) {
this.putQueryParameter("MediaId", mediaId);
this.mediaId = mediaId;
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;
}
@Override
public GetAIVideoTagResultRequest build() {
return new GetAIVideoTagResultRequest(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/GetAIVideoTagResultResponse.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 GetAIVideoTagResultResponse} extends {@link TeaModel}
*
* <p>GetAIVideoTagResultResponse</p>
*/
public class GetAIVideoTagResultResponse 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 GetAIVideoTagResultResponseBody body;
private GetAIVideoTagResultResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAIVideoTagResultResponse 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 GetAIVideoTagResultResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAIVideoTagResultResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAIVideoTagResultResponseBody body);
@Override
GetAIVideoTagResultResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAIVideoTagResultResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAIVideoTagResultResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAIVideoTagResultResponse 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(GetAIVideoTagResultResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAIVideoTagResultResponse build() {
return new GetAIVideoTagResultResponse(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/GetAIVideoTagResultResponseBody.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 GetAIVideoTagResultResponseBody} extends {@link TeaModel}
*
* <p>GetAIVideoTagResultResponseBody</p>
*/
public class GetAIVideoTagResultResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("VideoTagResult")
private VideoTagResult videoTagResult;
private GetAIVideoTagResultResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.videoTagResult = builder.videoTagResult;
}
public static Builder builder() {
return new Builder();
}
public static GetAIVideoTagResultResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return videoTagResult
*/
public VideoTagResult getVideoTagResult() {
return this.videoTagResult;
}
public static final class Builder {
private String requestId;
private VideoTagResult videoTagResult;
private Builder() {
}
private Builder(GetAIVideoTagResultResponseBody model) {
this.requestId = model.requestId;
this.videoTagResult = model.videoTagResult;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>8829B4DB-AFD9-4FF6-12965DBFFA14****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The returned result.</p>
*/
public Builder videoTagResult(VideoTagResult videoTagResult) {
this.videoTagResult = videoTagResult;
return this;
}
public GetAIVideoTagResultResponseBody build() {
return new GetAIVideoTagResultResponseBody(this);
}
}
/**
*
* {@link GetAIVideoTagResultResponseBody} extends {@link TeaModel}
*
* <p>GetAIVideoTagResultResponseBody</p>
*/
public static class Category extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Tag")
private String tag;
private Category(Builder builder) {
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static Category create() {
return builder().build();
}
/**
* @return tag
*/
public String getTag() {
return this.tag;
}
public static final class Builder {
private String tag;
private Builder() {
}
private Builder(Category model) {
this.tag = model.tag;
}
/**
* <p>The tag string.</p>
*
* <strong>example:</strong>
* <p>Retouching</p>
*/
public Builder tag(String tag) {
this.tag = tag;
return this;
}
public Category build() {
return new Category(this);
}
}
}
/**
*
* {@link GetAIVideoTagResultResponseBody} extends {@link TeaModel}
*
* <p>GetAIVideoTagResultResponseBody</p>
*/
public static class Keyword extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Tag")
private String tag;
@com.aliyun.core.annotation.NameInMap("Times")
private java.util.List<String> times;
private Keyword(Builder builder) {
this.tag = builder.tag;
this.times = builder.times;
}
public static Builder builder() {
return new Builder();
}
public static Keyword create() {
return builder().build();
}
/**
* @return tag
*/
public String getTag() {
return this.tag;
}
/**
* @return times
*/
public java.util.List<String> getTimes() {
return this.times;
}
public static final class Builder {
private String tag;
private java.util.List<String> times;
private Builder() {
}
private Builder(Keyword model) {
this.tag = model.tag;
this.times = model.times;
}
/**
* <p>The tag string.</p>
*
* <strong>example:</strong>
* <p>Cushion</p>
*/
public Builder tag(String tag) {
this.tag = tag;
return this;
}
/**
* <p>The points in time when the tags are displayed. Unit: milliseconds.</p>
*/
public Builder times(java.util.List<String> times) {
this.times = times;
return this;
}
public Keyword build() {
return new Keyword(this);
}
}
}
/**
*
* {@link GetAIVideoTagResultResponseBody} extends {@link TeaModel}
*
* <p>GetAIVideoTagResultResponseBody</p>
*/
public static class Location extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Tag")
private String tag;
@com.aliyun.core.annotation.NameInMap("Times")
private java.util.List<String> times;
private Location(Builder builder) {
this.tag = builder.tag;
this.times = builder.times;
}
public static Builder builder() {
return new Builder();
}
public static Location create() {
return builder().build();
}
/**
* @return tag
*/
public String getTag() {
return this.tag;
}
/**
* @return times
*/
public java.util.List<String> getTimes() {
return this.times;
}
public static final class Builder {
private String tag;
private java.util.List<String> times;
private Builder() {
}
private Builder(Location model) {
this.tag = model.tag;
this.times = model.times;
}
/**
* <p>The tag string.</p>
*
* <strong>example:</strong>
* <p>Asia</p>
*/
public Builder tag(String tag) {
this.tag = tag;
return this;
}
/**
* <p>The points in time when the tags are displayed. Unit: milliseconds.</p>
*/
public Builder times(java.util.List<String> times) {
this.times = times;
return this;
}
public Location build() {
return new Location(this);
}
}
}
/**
*
* {@link GetAIVideoTagResultResponseBody} extends {@link TeaModel}
*
* <p>GetAIVideoTagResultResponseBody</p>
*/
public static class Person extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FaceUrl")
private String faceUrl;
@com.aliyun.core.annotation.NameInMap("Tag")
private String tag;
@com.aliyun.core.annotation.NameInMap("Times")
private java.util.List<String> times;
private Person(Builder builder) {
this.faceUrl = builder.faceUrl;
this.tag = builder.tag;
this.times = builder.times;
}
public static Builder builder() {
return new Builder();
}
public static Person create() {
return builder().build();
}
/**
* @return faceUrl
*/
public String getFaceUrl() {
return this.faceUrl;
}
/**
* @return tag
*/
public String getTag() {
return this.tag;
}
/**
* @return times
*/
public java.util.List<String> getTimes() {
return this.times;
}
public static final class Builder {
private String faceUrl;
private String tag;
private java.util.List<String> times;
private Builder() {
}
private Builder(Person model) {
this.faceUrl = model.faceUrl;
this.tag = model.tag;
this.times = model.times;
}
/**
* <p>The URL of the profile photo.</p>
* <blockquote>
* <p>This parameter is returned only when a figure tag was used.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p><a href="http://example.com/aivideotag/8829B4DB-AFD9-4F*****F6-12965DBFFA14/Index_****.jpg">http://example.com/aivideotag/8829B4DB-AFD9-4F*****F6-12965DBFFA14/Index_****.jpg</a></p>
*/
public Builder faceUrl(String faceUrl) {
this.faceUrl = faceUrl;
return this;
}
/**
* <p>The tag string.</p>
*
* <strong>example:</strong>
* <p>John</p>
*/
public Builder tag(String tag) {
this.tag = tag;
return this;
}
/**
* <p>The points in time when the tags are displayed. Unit: milliseconds.</p>
*/
public Builder times(java.util.List<String> times) {
this.times = times;
return this;
}
public Person build() {
return new Person(this);
}
}
}
/**
*
* {@link GetAIVideoTagResultResponseBody} extends {@link TeaModel}
*
* <p>GetAIVideoTagResultResponseBody</p>
*/
public static class Time extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Tag")
private String tag;
@com.aliyun.core.annotation.NameInMap("Times")
private java.util.List<String> times;
private Time(Builder builder) {
this.tag = builder.tag;
this.times = builder.times;
}
public static Builder builder() {
return new Builder();
}
public static Time create() {
return builder().build();
}
/**
* @return tag
*/
public String getTag() {
return this.tag;
}
/**
* @return times
*/
public java.util.List<String> getTimes() {
return this.times;
}
public static final class Builder {
private String tag;
private java.util.List<String> times;
private Builder() {
}
private Builder(Time model) {
this.tag = model.tag;
this.times = model.times;
}
/**
* <p>The tag string.</p>
*
* <strong>example:</strong>
* <p>Milliseconds</p>
*/
public Builder tag(String tag) {
this.tag = tag;
return this;
}
/**
* <p>The points in time when the tags are displayed. Unit: milliseconds.</p>
*/
public Builder times(java.util.List<String> times) {
this.times = times;
return this;
}
public Time build() {
return new Time(this);
}
}
}
/**
*
* {@link GetAIVideoTagResultResponseBody} extends {@link TeaModel}
*
* <p>GetAIVideoTagResultResponseBody</p>
*/
public static class VideoTagResult extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Category")
private java.util.List<Category> category;
@com.aliyun.core.annotation.NameInMap("Keyword")
private java.util.List<Keyword> keyword;
@com.aliyun.core.annotation.NameInMap("Location")
private java.util.List<Location> location;
@com.aliyun.core.annotation.NameInMap("Person")
private java.util.List<Person> person;
@com.aliyun.core.annotation.NameInMap("Time")
private java.util.List<Time> time;
private VideoTagResult(Builder builder) {
this.category = builder.category;
this.keyword = builder.keyword;
this.location = builder.location;
this.person = builder.person;
this.time = builder.time;
}
public static Builder builder() {
return new Builder();
}
public static VideoTagResult create() {
return builder().build();
}
/**
* @return category
*/
public java.util.List<Category> getCategory() {
return this.category;
}
/**
* @return keyword
*/
public java.util.List<Keyword> getKeyword() {
return this.keyword;
}
/**
* @return location
*/
public java.util.List<Location> getLocation() {
return this.location;
}
/**
* @return person
*/
public java.util.List<Person> getPerson() {
return this.person;
}
/**
* @return time
*/
public java.util.List<Time> getTime() {
return this.time;
}
public static final class Builder {
private java.util.List<Category> category;
private java.util.List<Keyword> keyword;
private java.util.List<Location> location;
private java.util.List<Person> person;
private java.util.List<Time> time;
private Builder() {
}
private Builder(VideoTagResult model) {
this.category = model.category;
this.keyword = model.keyword;
this.location = model.location;
this.person = model.person;
this.time = model.time;
}
/**
* <p>The video categories.</p>
*/
public Builder category(java.util.List<Category> category) {
this.category = category;
return this;
}
/**
* <p>The keyword tags.</p>
*/
public Builder keyword(java.util.List<Keyword> keyword) {
this.keyword = keyword;
return this;
}
/**
* <p>The location tags.</p>
*/
public Builder location(java.util.List<Location> location) {
this.location = location;
return this;
}
/**
* <p>The figure tags.</p>
*/
public Builder person(java.util.List<Person> person) {
this.person = person;
return this;
}
/**
* <p>The time tags.</p>
*/
public Builder time(java.util.List<Time> time) {
this.time = time;
return this;
}
public VideoTagResult build() {
return new VideoTagResult(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/GetAppInfosRequest.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 GetAppInfosRequest} extends {@link RequestModel}
*
* <p>GetAppInfosRequest</p>
*/
public class GetAppInfosRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppIds")
@com.aliyun.core.annotation.Validation(required = true)
private String appIds;
private GetAppInfosRequest(Builder builder) {
super(builder);
this.appIds = builder.appIds;
}
public static Builder builder() {
return new Builder();
}
public static GetAppInfosRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appIds
*/
public String getAppIds() {
return this.appIds;
}
public static final class Builder extends Request.Builder<GetAppInfosRequest, Builder> {
private String appIds;
private Builder() {
super();
}
private Builder(GetAppInfosRequest request) {
super(request);
this.appIds = request.appIds;
}
/**
* <p>The IDs of applications. You can obtain application IDs from the response to the <a href="https://help.aliyun.com/document_detail/113266.html">CreateAppInfo</a> or <a href="https://help.aliyun.com/document_detail/114000.html">ListAppInfo</a> operation.</p>
* <ul>
* <li>You can specify a maximum of 10 application IDs.</li>
* <li>Separate application IDs with commas (,).</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>app-****</p>
*/
public Builder appIds(String appIds) {
this.putQueryParameter("AppIds", appIds);
this.appIds = appIds;
return this;
}
@Override
public GetAppInfosRequest build() {
return new GetAppInfosRequest(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/GetAppInfosResponse.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 GetAppInfosResponse} extends {@link TeaModel}
*
* <p>GetAppInfosResponse</p>
*/
public class GetAppInfosResponse 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 GetAppInfosResponseBody body;
private GetAppInfosResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAppInfosResponse 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 GetAppInfosResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAppInfosResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAppInfosResponseBody body);
@Override
GetAppInfosResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAppInfosResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAppInfosResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAppInfosResponse 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(GetAppInfosResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAppInfosResponse build() {
return new GetAppInfosResponse(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/GetAppInfosResponseBody.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 GetAppInfosResponseBody} extends {@link TeaModel}
*
* <p>GetAppInfosResponseBody</p>
*/
public class GetAppInfosResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppInfoList")
private java.util.List<AppInfoList> appInfoList;
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("NonExistAppIds")
private java.util.List<String> nonExistAppIds;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetAppInfosResponseBody(Builder builder) {
this.appInfoList = builder.appInfoList;
this.code = builder.code;
this.nonExistAppIds = builder.nonExistAppIds;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetAppInfosResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appInfoList
*/
public java.util.List<AppInfoList> getAppInfoList() {
return this.appInfoList;
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return nonExistAppIds
*/
public java.util.List<String> getNonExistAppIds() {
return this.nonExistAppIds;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<AppInfoList> appInfoList;
private String code;
private java.util.List<String> nonExistAppIds;
private String requestId;
private Builder() {
}
private Builder(GetAppInfosResponseBody model) {
this.appInfoList = model.appInfoList;
this.code = model.code;
this.nonExistAppIds = model.nonExistAppIds;
this.requestId = model.requestId;
}
/**
* <p>The details of applications.</p>
*/
public Builder appInfoList(java.util.List<AppInfoList> appInfoList) {
this.appInfoList = appInfoList;
return this;
}
/**
* <p>The HTTP status code that is returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The IDs of applications that do not exist.</p>
*/
public Builder nonExistAppIds(java.util.List<String> nonExistAppIds) {
this.nonExistAppIds = nonExistAppIds;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>25818875-5F78-4A13-4DC4-D7393642****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetAppInfosResponseBody build() {
return new GetAppInfosResponseBody(this);
}
}
/**
*
* {@link GetAppInfosResponseBody} extends {@link TeaModel}
*
* <p>GetAppInfosResponseBody</p>
*/
public static class AppInfoList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("AppName")
private String appName;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("ModificationTime")
private String modificationTime;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private AppInfoList(Builder builder) {
this.appId = builder.appId;
this.appName = builder.appName;
this.creationTime = builder.creationTime;
this.description = builder.description;
this.modificationTime = builder.modificationTime;
this.resourceGroupId = builder.resourceGroupId;
this.status = builder.status;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static AppInfoList create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return modificationTime
*/
public String getModificationTime() {
return this.modificationTime;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private String appId;
private String appName;
private String creationTime;
private String description;
private String modificationTime;
private String resourceGroupId;
private String status;
private String type;
private Builder() {
}
private Builder(AppInfoList model) {
this.appId = model.appId;
this.appName = model.appName;
this.creationTime = model.creationTime;
this.description = model.description;
this.modificationTime = model.modificationTime;
this.resourceGroupId = model.resourceGroupId;
this.status = model.status;
this.type = model.type;
}
/**
* <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 name of the application.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder appName(String appName) {
this.appName = appName;
return this;
}
/**
* <p>The time when the application was created. The time is 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>2019-03-01T08:00:00Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The description of the application.</p>
*
* <strong>example:</strong>
* <p>my first app.</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The last time when the application was modified. The time is 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>2019-03-01T09:00:00Z</p>
*/
public Builder modificationTime(String modificationTime) {
this.modificationTime = modificationTime;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-aekzko7fsuj****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The status of the application. Valid values:</p>
* <ul>
* <li><strong>Normal</strong></li>
* <li><strong>Disable</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The type of the application. Valid values:</p>
* <ul>
* <li><strong>System</strong></li>
* <li><strong>Custom</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>System</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public AppInfoList build() {
return new AppInfoList(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/GetAttachedMediaInfoRequest.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 GetAttachedMediaInfoRequest} extends {@link RequestModel}
*
* <p>GetAttachedMediaInfoRequest</p>
*/
public class GetAttachedMediaInfoRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AuthTimeout")
private Long authTimeout;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MediaIds")
@com.aliyun.core.annotation.Validation(required = true)
private String mediaIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OutputType")
private String outputType;
private GetAttachedMediaInfoRequest(Builder builder) {
super(builder);
this.authTimeout = builder.authTimeout;
this.mediaIds = builder.mediaIds;
this.outputType = builder.outputType;
}
public static Builder builder() {
return new Builder();
}
public static GetAttachedMediaInfoRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return authTimeout
*/
public Long getAuthTimeout() {
return this.authTimeout;
}
/**
* @return mediaIds
*/
public String getMediaIds() {
return this.mediaIds;
}
/**
* @return outputType
*/
public String getOutputType() {
return this.outputType;
}
public static final class Builder extends Request.Builder<GetAttachedMediaInfoRequest, Builder> {
private Long authTimeout;
private String mediaIds;
private String outputType;
private Builder() {
super();
}
private Builder(GetAttachedMediaInfoRequest request) {
super(request);
this.authTimeout = request.authTimeout;
this.mediaIds = request.mediaIds;
this.outputType = request.outputType;
}
/**
* <p>The validity period of the URL. Unit: seconds.</p>
* <ul>
* <li><p>If you set the OutputType parameter to <strong>cdn</strong>:</p>
* <ul>
* <li>The URL of the auxiliary media asset has a validity period only if URL signing is enabled. Otherwise, the URL of the auxiliary media asset is permanently valid.</li>
* <li>Minimum value: <strong>1</strong>.</li>
* <li>Maximum value: unlimited.</li>
* <li>Default value: If you do not set this parameter, the default validity period that is specified in URL signing is used.</li>
* </ul>
* </li>
* <li><p>If you set the OutputType parameter to <strong>oss</strong>:</p>
* <ul>
* <li>The URL of the auxiliary media asset has a validity period only if the permissions on the Object Storage Service (OSS) bucket are private. Otherwise, the URL of the auxiliary media asset is permanently valid.</li>
* <li>Minimum value: <strong>1</strong>.</li>
* <li>The maximum value for a media asset stored in the VOD bucket is <strong>2592000</strong> (30 days) and the maximum value for a media asset stored in an OSS bucket is <strong>129600</strong> (36 hours). The maximum value is limited to reduce security risks of the origin.</li>
* <li>Default value: If you do not set this parameter, the default value <strong>3600</strong> is used.</li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>3600</p>
*/
public Builder authTimeout(Long authTimeout) {
this.putQueryParameter("AuthTimeout", authTimeout);
this.authTimeout = authTimeout;
return this;
}
/**
* <p>The ID of the auxiliary media asset.</p>
* <ul>
* <li>Separate multiple IDs with commas (,). You can specify up to 20 IDs.</li>
* <li>You can obtain the ID from the response to the <a href="~~CreateUploadAttachedMedia~~">CreateUploadAttachedMedia</a> operation that you call to obtain the upload URL and credential.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>eb1861d2c9a842340e989dd56****,0222e203cf80f9c22870a4d2c****</p>
*/
public Builder mediaIds(String mediaIds) {
this.putQueryParameter("MediaIds", mediaIds);
this.mediaIds = mediaIds;
return this;
}
/**
* <p>The type of the media asset URL. Valid values:</p>
* <ul>
* <li><strong>oss</strong></li>
* <li><strong>cdn</strong> (default)</li>
* </ul>
*
* <strong>example:</strong>
* <p>oss</p>
*/
public Builder outputType(String outputType) {
this.putQueryParameter("OutputType", outputType);
this.outputType = outputType;
return this;
}
@Override
public GetAttachedMediaInfoRequest build() {
return new GetAttachedMediaInfoRequest(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/GetAttachedMediaInfoResponse.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 GetAttachedMediaInfoResponse} extends {@link TeaModel}
*
* <p>GetAttachedMediaInfoResponse</p>
*/
public class GetAttachedMediaInfoResponse 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 GetAttachedMediaInfoResponseBody body;
private GetAttachedMediaInfoResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAttachedMediaInfoResponse 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 GetAttachedMediaInfoResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAttachedMediaInfoResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAttachedMediaInfoResponseBody body);
@Override
GetAttachedMediaInfoResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAttachedMediaInfoResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAttachedMediaInfoResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAttachedMediaInfoResponse 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(GetAttachedMediaInfoResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAttachedMediaInfoResponse build() {
return new GetAttachedMediaInfoResponse(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/GetAttachedMediaInfoResponseBody.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 GetAttachedMediaInfoResponseBody} extends {@link TeaModel}
*
* <p>GetAttachedMediaInfoResponseBody</p>
*/
public class GetAttachedMediaInfoResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AttachedMediaList")
private java.util.List<AttachedMediaList> attachedMediaList;
@com.aliyun.core.annotation.NameInMap("NonExistMediaIds")
private java.util.List<String> nonExistMediaIds;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetAttachedMediaInfoResponseBody(Builder builder) {
this.attachedMediaList = builder.attachedMediaList;
this.nonExistMediaIds = builder.nonExistMediaIds;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetAttachedMediaInfoResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return attachedMediaList
*/
public java.util.List<AttachedMediaList> getAttachedMediaList() {
return this.attachedMediaList;
}
/**
* @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<AttachedMediaList> attachedMediaList;
private java.util.List<String> nonExistMediaIds;
private String requestId;
private Builder() {
}
private Builder(GetAttachedMediaInfoResponseBody model) {
this.attachedMediaList = model.attachedMediaList;
this.nonExistMediaIds = model.nonExistMediaIds;
this.requestId = model.requestId;
}
/**
* <p>The information about the media assets.</p>
*/
public Builder attachedMediaList(java.util.List<AttachedMediaList> attachedMediaList) {
this.attachedMediaList = attachedMediaList;
return this;
}
/**
* <p>The IDs of the auxiliary media assets that do not exist.</p>
*/
public Builder nonExistMediaIds(java.util.List<String> nonExistMediaIds) {
this.nonExistMediaIds = nonExistMediaIds;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>221BCB57-B217-42BF-619BD13378F9****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetAttachedMediaInfoResponseBody build() {
return new GetAttachedMediaInfoResponseBody(this);
}
}
/**
*
* {@link GetAttachedMediaInfoResponseBody} extends {@link TeaModel}
*
* <p>GetAttachedMediaInfoResponseBody</p>
*/
public static class Categories 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;
private Categories(Builder builder) {
this.cateId = builder.cateId;
this.cateName = builder.cateName;
this.level = builder.level;
this.parentId = builder.parentId;
}
public static Builder builder() {
return new Builder();
}
public static Categories 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;
}
public static final class Builder {
private Long cateId;
private String cateName;
private Long level;
private Long parentId;
private Builder() {
}
private Builder(Categories model) {
this.cateId = model.cateId;
this.cateName = model.cateName;
this.level = model.level;
this.parentId = model.parentId;
}
/**
* <p>The ID of the category.</p>
*
* <strong>example:</strong>
* <p>1000224338</p>
*/
public Builder cateId(Long cateId) {
this.cateId = cateId;
return this;
}
/**
* <p>The name of the category.</p>
*
* <strong>example:</strong>
* <p>category test</p>
*/
public Builder cateName(String cateName) {
this.cateName = cateName;
return this;
}
/**
* <p>The level of the category.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder level(Long level) {
this.level = level;
return this;
}
/**
* <p>The ID of the parent category.</p>
*
* <strong>example:</strong>
* <p>1000224336</p>
*/
public Builder parentId(Long parentId) {
this.parentId = parentId;
return this;
}
public Categories build() {
return new Categories(this);
}
}
}
/**
*
* {@link GetAttachedMediaInfoResponseBody} extends {@link TeaModel}
*
* <p>GetAttachedMediaInfoResponseBody</p>
*/
public static class AttachedMediaList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("Categories")
private java.util.List<Categories> categories;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("MediaId")
private String mediaId;
@com.aliyun.core.annotation.NameInMap("ModificationTime")
private String modificationTime;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("StorageLocation")
private String storageLocation;
@com.aliyun.core.annotation.NameInMap("Tags")
private String tags;
@com.aliyun.core.annotation.NameInMap("Title")
private String title;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("URL")
private String URL;
private AttachedMediaList(Builder builder) {
this.appId = builder.appId;
this.categories = builder.categories;
this.creationTime = builder.creationTime;
this.description = builder.description;
this.mediaId = builder.mediaId;
this.modificationTime = builder.modificationTime;
this.status = builder.status;
this.storageLocation = builder.storageLocation;
this.tags = builder.tags;
this.title = builder.title;
this.type = builder.type;
this.URL = builder.URL;
}
public static Builder builder() {
return new Builder();
}
public static AttachedMediaList create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return categories
*/
public java.util.List<Categories> getCategories() {
return this.categories;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return mediaId
*/
public String getMediaId() {
return this.mediaId;
}
/**
* @return modificationTime
*/
public String getModificationTime() {
return this.modificationTime;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @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 type
*/
public String getType() {
return this.type;
}
/**
* @return URL
*/
public String getURL() {
return this.URL;
}
public static final class Builder {
private String appId;
private java.util.List<Categories> categories;
private String creationTime;
private String description;
private String mediaId;
private String modificationTime;
private String status;
private String storageLocation;
private String tags;
private String title;
private String type;
private String URL;
private Builder() {
}
private Builder(AttachedMediaList model) {
this.appId = model.appId;
this.categories = model.categories;
this.creationTime = model.creationTime;
this.description = model.description;
this.mediaId = model.mediaId;
this.modificationTime = model.modificationTime;
this.status = model.status;
this.storageLocation = model.storageLocation;
this.tags = model.tags;
this.title = model.title;
this.type = model.type;
this.URL = model.URL;
}
/**
* <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 categories.</p>
*/
public Builder categories(java.util.List<Categories> categories) {
this.categories = categories;
return this;
}
/**
* <p>The time when the auxiliary media asset 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>2019-01-01T10:00:00Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The description of the auxiliary media asset.</p>
* <blockquote>
* <p> This parameter is returned only when a description is specified for the auxiliary media asset.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>description test</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The ID of the auxiliary media asset.</p>
*
* <strong>example:</strong>
* <p>0222e203cf80f9c22870a4d2c****</p>
*/
public Builder mediaId(String mediaId) {
this.mediaId = mediaId;
return this;
}
/**
* <p>The time when the auxiliary media asset was last updated. 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>2020-05-31T11:42:20Z</p>
*/
public Builder modificationTime(String modificationTime) {
this.modificationTime = modificationTime;
return this;
}
/**
* <p>The status of the auxiliary media asset. Valid values:</p>
* <ul>
* <li><strong>Uploading</strong></li>
* <li><strong>Normal</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 storage address of the auxiliary media asset.</p>
*
* <strong>example:</strong>
* <p>outin-bfefbb9*****c7426.oss-cn-shanghai.aliyuncs.com</p>
*/
public Builder storageLocation(String storageLocation) {
this.storageLocation = storageLocation;
return this;
}
/**
* <p>The tags of the auxiliary media asset.</p>
* <blockquote>
* <p> This parameter is returned only when tags are specified for the auxiliary media asset.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>tag1,tag2</p>
*/
public Builder tags(String tags) {
this.tags = tags;
return this;
}
/**
* <p>The title of the auxiliary media asset.</p>
*
* <strong>example:</strong>
* <p>subtitle test</p>
*/
public Builder title(String title) {
this.title = title;
return this;
}
/**
* <p>The type of the auxiliary media asset.</p>
* <ul>
* <li><strong>watermark</strong></li>
* <li><strong>subtitle</strong></li>
* <li><strong>material</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>subtitle</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The URL of the auxiliary media asset.</p>
* <blockquote>
* <p> If a CDN domain name is specified, a CDN URL is returned. Otherwise, an OSS URL is returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p><a href="https://al*****.cn/subtitle/9843C2*****4E186F19B6.vtt?auth_key=159099f60e0b7fd59">https://al*****.cn/subtitle/9843C2*****4E186F19B6.vtt?auth_key=159099f60e0b7fd59</a>****</p>
*/
public Builder URL(String URL) {
this.URL = URL;
return this;
}
public AttachedMediaList build() {
return new AttachedMediaList(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/GetAuditHistoryRequest.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 GetAuditHistoryRequest} extends {@link RequestModel}
*
* <p>GetAuditHistoryRequest</p>
*/
public class GetAuditHistoryRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNo")
private Long pageNo;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Long pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SortBy")
private String sortBy;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VideoId")
@com.aliyun.core.annotation.Validation(required = true)
private String videoId;
private GetAuditHistoryRequest(Builder builder) {
super(builder);
this.pageNo = builder.pageNo;
this.pageSize = builder.pageSize;
this.sortBy = builder.sortBy;
this.videoId = builder.videoId;
}
public static Builder builder() {
return new Builder();
}
public static GetAuditHistoryRequest 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 sortBy
*/
public String getSortBy() {
return this.sortBy;
}
/**
* @return videoId
*/
public String getVideoId() {
return this.videoId;
}
public static final class Builder extends Request.Builder<GetAuditHistoryRequest, Builder> {
private Long pageNo;
private Long pageSize;
private String sortBy;
private String videoId;
private Builder() {
super();
}
private Builder(GetAuditHistoryRequest request) {
super(request);
this.pageNo = request.pageNo;
this.pageSize = request.pageSize;
this.sortBy = request.sortBy;
this.videoId = request.videoId;
}
/**
* <p>The number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNo(Long pageNo) {
this.putQueryParameter("PageNo", pageNo);
this.pageNo = pageNo;
return this;
}
/**
* <p>The number of entries to return on each page. Default value: <strong>10</strong>. Maximum value: <strong>100</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Long pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The sorting rule of the results. Valid values:</p>
* <ul>
* <li><strong>CreationTime:Desc</strong>: sorts the results based on the creation time in descending order. This is the default value.</li>
* <li><strong>CreationTime:Asc</strong>: sorts the results based on the creation time in ascending order.</li>
* </ul>
*
* <strong>example:</strong>
* <p>CreationTime:Desc</p>
*/
public Builder sortBy(String sortBy) {
this.putQueryParameter("SortBy", sortBy);
this.sortBy = sortBy;
return this;
}
/**
* <p>The ID of the video.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>93ab850b4f6f44*****6e91d24d81d4</p>
*/
public Builder videoId(String videoId) {
this.putQueryParameter("VideoId", videoId);
this.videoId = videoId;
return this;
}
@Override
public GetAuditHistoryRequest build() {
return new GetAuditHistoryRequest(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/GetAuditHistoryResponse.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 GetAuditHistoryResponse} extends {@link TeaModel}
*
* <p>GetAuditHistoryResponse</p>
*/
public class GetAuditHistoryResponse 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 GetAuditHistoryResponseBody body;
private GetAuditHistoryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetAuditHistoryResponse 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 GetAuditHistoryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetAuditHistoryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetAuditHistoryResponseBody body);
@Override
GetAuditHistoryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetAuditHistoryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetAuditHistoryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetAuditHistoryResponse 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(GetAuditHistoryResponseBody body) {
this.body = body;
return this;
}
@Override
public GetAuditHistoryResponse build() {
return new GetAuditHistoryResponse(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/GetAuditHistoryResponseBody.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 GetAuditHistoryResponseBody} extends {@link TeaModel}
*
* <p>GetAuditHistoryResponseBody</p>
*/
public class GetAuditHistoryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Histories")
private java.util.List<Histories> histories;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Total")
private Long total;
private GetAuditHistoryResponseBody(Builder builder) {
this.histories = builder.histories;
this.requestId = builder.requestId;
this.status = builder.status;
this.total = builder.total;
}
public static Builder builder() {
return new Builder();
}
public static GetAuditHistoryResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return histories
*/
public java.util.List<Histories> getHistories() {
return this.histories;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return total
*/
public Long getTotal() {
return this.total;
}
public static final class Builder {
private java.util.List<Histories> histories;
private String requestId;
private String status;
private Long total;
private Builder() {
}
private Builder(GetAuditHistoryResponseBody model) {
this.histories = model.histories;
this.requestId = model.requestId;
this.status = model.status;
this.total = model.total;
}
/**
* <p>The review records.</p>
*/
public Builder histories(java.util.List<Histories> histories) {
this.histories = histories;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>04F0F334-1335-43*****D7-6C044FE73368</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The manual review result. Valid values:</p>
* <ul>
* <li><strong>Normal</strong>: The video can be played.</li>
* <li><strong>Blocked</strong>: The video is blocked.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The total number of review records.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder total(Long total) {
this.total = total;
return this;
}
public GetAuditHistoryResponseBody build() {
return new GetAuditHistoryResponseBody(this);
}
}
/**
*
* {@link GetAuditHistoryResponseBody} extends {@link TeaModel}
*
* <p>GetAuditHistoryResponseBody</p>
*/
public static class Histories extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Auditor")
private String auditor;
@com.aliyun.core.annotation.NameInMap("Comment")
private String comment;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("Reason")
private String reason;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private Histories(Builder builder) {
this.auditor = builder.auditor;
this.comment = builder.comment;
this.creationTime = builder.creationTime;
this.reason = builder.reason;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static Histories create() {
return builder().build();
}
/**
* @return auditor
*/
public String getAuditor() {
return this.auditor;
}
/**
* @return comment
*/
public String getComment() {
return this.comment;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return reason
*/
public String getReason() {
return this.reason;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String auditor;
private String comment;
private String creationTime;
private String reason;
private String status;
private Builder() {
}
private Builder(Histories model) {
this.auditor = model.auditor;
this.comment = model.comment;
this.creationTime = model.creationTime;
this.reason = model.reason;
this.status = model.status;
}
/**
* <p>The reviewer.</p>
*
* <strong>example:</strong>
* <p>auditor</p>
*/
public Builder auditor(String auditor) {
this.auditor = auditor;
return this;
}
/**
* <p>The review comments, which are provided by the reviewer.</p>
*
* <strong>example:</strong>
* <p>Contains nudity</p>
*/
public Builder comment(String comment) {
this.comment = comment;
return this;
}
/**
* <p>The time when the review record 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 reason why the video failed the review. If the video failed the review, specify the reason.</p>
*
* <strong>example:</strong>
* <p>Pornographic video</p>
*/
public Builder reason(String reason) {
this.reason = reason;
return this;
}
/**
* <p>The manual review result. Valid values:</p>
* <ul>
* <li><strong>Normal</strong>: The video can be played.</li>
* <li><strong>Blocked</strong>: The video is blocked.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Blocked</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public Histories build() {
return new Histories(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/GetCategoriesRequest.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 GetCategoriesRequest} extends {@link RequestModel}
*
* <p>GetCategoriesRequest</p>
*/
public class GetCategoriesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CateId")
private Long cateId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNo")
private Long pageNo;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Long pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SortBy")
private String sortBy;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private GetCategoriesRequest(Builder builder) {
super(builder);
this.cateId = builder.cateId;
this.pageNo = builder.pageNo;
this.pageSize = builder.pageSize;
this.sortBy = builder.sortBy;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static GetCategoriesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return cateId
*/
public Long getCateId() {
return this.cateId;
}
/**
* @return pageNo
*/
public Long getPageNo() {
return this.pageNo;
}
/**
* @return pageSize
*/
public Long getPageSize() {
return this.pageSize;
}
/**
* @return sortBy
*/
public String getSortBy() {
return this.sortBy;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder extends Request.Builder<GetCategoriesRequest, Builder> {
private Long cateId;
private Long pageNo;
private Long pageSize;
private String sortBy;
private String type;
private Builder() {
super();
}
private Builder(GetCategoriesRequest request) {
super(request);
this.cateId = request.cateId;
this.pageNo = request.pageNo;
this.pageSize = request.pageSize;
this.sortBy = request.sortBy;
this.type = request.type;
}
/**
* <p>The ID of the category. If you specify this parameter, the system queries the category based on the ID. You can specify only one category ID. 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>. Choose <strong>Configuration Management</strong> > <strong>Media Management</strong> > <strong>Categories</strong>. On the Audio and Video / Image Category or Short Video Material Category tab, view the category ID.</li>
* <li>Obtain the category ID from the response to the <a href="~~AddCategory~~">AddCategory</a> operation.</li>
* </ul>
*
* <strong>example:</strong>
* <p>49339****</p>
*/
public Builder cateId(Long cateId) {
this.putQueryParameter("CateId", cateId);
this.cateId = cateId;
return this;
}
/**
* <p>The number of the page where the subcategories to be returned are listed. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNo(Long pageNo) {
this.putQueryParameter("PageNo", pageNo);
this.pageNo = pageNo;
return this;
}
/**
* <p>The number of entries to return on each page of the subcategory list. Default value: <strong>10</strong>. Maximum value: <strong>100</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Long pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The sorting method of the results. Valid values:</p>
* <ul>
* <li><strong>CreationTime:Desc</strong> (default): The results are sorted in reverse chronological order based on the creation time.</li>
* <li><strong>CreationTime:Asc</strong>: The results are sorted in chronological order based on the creation time.</li>
* </ul>
*
* <strong>example:</strong>
* <p>CreationTime:Desc</p>
*/
public Builder sortBy(String sortBy) {
this.putQueryParameter("SortBy", sortBy);
this.sortBy = sortBy;
return this;
}
/**
* <p>The type of the category. If you specify this parameter, the system queries the category based on the type. 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 GetCategoriesRequest build() {
return new GetCategoriesRequest(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/GetCategoriesResponse.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 GetCategoriesResponse} extends {@link TeaModel}
*
* <p>GetCategoriesResponse</p>
*/
public class GetCategoriesResponse 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 GetCategoriesResponseBody body;
private GetCategoriesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetCategoriesResponse 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 GetCategoriesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetCategoriesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetCategoriesResponseBody body);
@Override
GetCategoriesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetCategoriesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetCategoriesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetCategoriesResponse 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(GetCategoriesResponseBody body) {
this.body = body;
return this;
}
@Override
public GetCategoriesResponse build() {
return new GetCategoriesResponse(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/GetCategoriesResponseBody.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 GetCategoriesResponseBody} extends {@link TeaModel}
*
* <p>GetCategoriesResponseBody</p>
*/
public class GetCategoriesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Category")
private Category category;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SubCategories")
private SubCategories subCategories;
@com.aliyun.core.annotation.NameInMap("SubTotal")
private Long subTotal;
private GetCategoriesResponseBody(Builder builder) {
this.category = builder.category;
this.requestId = builder.requestId;
this.subCategories = builder.subCategories;
this.subTotal = builder.subTotal;
}
public static Builder builder() {
return new Builder();
}
public static GetCategoriesResponseBody 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;
}
/**
* @return subCategories
*/
public SubCategories getSubCategories() {
return this.subCategories;
}
/**
* @return subTotal
*/
public Long getSubTotal() {
return this.subTotal;
}
public static final class Builder {
private Category category;
private String requestId;
private SubCategories subCategories;
private Long subTotal;
private Builder() {
}
private Builder(GetCategoriesResponseBody model) {
this.category = model.category;
this.requestId = model.requestId;
this.subCategories = model.subCategories;
this.subTotal = model.subTotal;
}
/**
* <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;
}
/**
* <p>The details of the subcategory.</p>
*/
public Builder subCategories(SubCategories subCategories) {
this.subCategories = subCategories;
return this;
}
/**
* <p>The total number of subcategories.</p>
*
* <strong>example:</strong>
* <p>3795</p>
*/
public Builder subTotal(Long subTotal) {
this.subTotal = subTotal;
return this;
}
public GetCategoriesResponseBody build() {
return new GetCategoriesResponseBody(this);
}
}
/**
*
* {@link GetCategoriesResponseBody} extends {@link TeaModel}
*
* <p>GetCategoriesResponseBody</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.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder cateId(Long cateId) {
this.cateId = cateId;
return this;
}
/**
* <p>The name of the category.</p>
*
* <strong>example:</strong>
* <p>film</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>2</strong>: level 3 category</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</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);
}
}
}
/**
*
* {@link GetCategoriesResponseBody} extends {@link TeaModel}
*
* <p>GetCategoriesResponseBody</p>
*/
public static class SubCategoriesCategory 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("SubTotal")
private Long subTotal;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private SubCategoriesCategory(Builder builder) {
this.cateId = builder.cateId;
this.cateName = builder.cateName;
this.level = builder.level;
this.parentId = builder.parentId;
this.subTotal = builder.subTotal;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static SubCategoriesCategory 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 subTotal
*/
public Long getSubTotal() {
return this.subTotal;
}
/**
* @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 Long subTotal;
private String type;
private Builder() {
}
private Builder(SubCategoriesCategory model) {
this.cateId = model.cateId;
this.cateName = model.cateName;
this.level = model.level;
this.parentId = model.parentId;
this.subTotal = model.subTotal;
this.type = model.type;
}
/**
* <p>The ID of the category.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder cateId(Long cateId) {
this.cateId = cateId;
return this;
}
/**
* <p>The name of the category.</p>
*
* <strong>example:</strong>
* <p>film</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>2</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>10020****</p>
*/
public Builder parentId(Long parentId) {
this.parentId = parentId;
return this;
}
/**
* <p>The total number of subcategories.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder subTotal(Long subTotal) {
this.subTotal = subTotal;
return this;
}
/**
* <p>The type of the subcategory. 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 SubCategoriesCategory build() {
return new SubCategoriesCategory(this);
}
}
}
/**
*
* {@link GetCategoriesResponseBody} extends {@link TeaModel}
*
* <p>GetCategoriesResponseBody</p>
*/
public static class SubCategories extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Category")
private java.util.List<SubCategoriesCategory> category;
private SubCategories(Builder builder) {
this.category = builder.category;
}
public static Builder builder() {
return new Builder();
}
public static SubCategories create() {
return builder().build();
}
/**
* @return category
*/
public java.util.List<SubCategoriesCategory> getCategory() {
return this.category;
}
public static final class Builder {
private java.util.List<SubCategoriesCategory> category;
private Builder() {
}
private Builder(SubCategories model) {
this.category = model.category;
}
/**
* <p>The information about the category.</p>
*/
public Builder category(java.util.List<SubCategoriesCategory> category) {
this.category = category;
return this;
}
public SubCategories build() {
return new SubCategories(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/GetDailyPlayRegionStatisRequest.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 GetDailyPlayRegionStatisRequest} extends {@link RequestModel}
*
* <p>GetDailyPlayRegionStatisRequest</p>
*/
public class GetDailyPlayRegionStatisRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Date")
@com.aliyun.core.annotation.Validation(required = true)
private String date;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MediaRegion")
@com.aliyun.core.annotation.Validation(required = true)
private String mediaRegion;
private GetDailyPlayRegionStatisRequest(Builder builder) {
super(builder);
this.date = builder.date;
this.mediaRegion = builder.mediaRegion;
}
public static Builder builder() {
return new Builder();
}
public static GetDailyPlayRegionStatisRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return date
*/
public String getDate() {
return this.date;
}
/**
* @return mediaRegion
*/
public String getMediaRegion() {
return this.mediaRegion;
}
public static final class Builder extends Request.Builder<GetDailyPlayRegionStatisRequest, Builder> {
private String date;
private String mediaRegion;
private Builder() {
super();
}
private Builder(GetDailyPlayRegionStatisRequest request) {
super(request);
this.date = request.date;
this.mediaRegion = request.mediaRegion;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2025-03-20</p>
*/
public Builder date(String date) {
this.putQueryParameter("Date", date);
this.date = date;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-beijing</p>
*/
public Builder mediaRegion(String mediaRegion) {
this.putQueryParameter("MediaRegion", mediaRegion);
this.mediaRegion = mediaRegion;
return this;
}
@Override
public GetDailyPlayRegionStatisRequest build() {
return new GetDailyPlayRegionStatisRequest(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/GetDailyPlayRegionStatisResponse.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 GetDailyPlayRegionStatisResponse} extends {@link TeaModel}
*
* <p>GetDailyPlayRegionStatisResponse</p>
*/
public class GetDailyPlayRegionStatisResponse 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 GetDailyPlayRegionStatisResponseBody body;
private GetDailyPlayRegionStatisResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetDailyPlayRegionStatisResponse 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 GetDailyPlayRegionStatisResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetDailyPlayRegionStatisResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetDailyPlayRegionStatisResponseBody body);
@Override
GetDailyPlayRegionStatisResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetDailyPlayRegionStatisResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetDailyPlayRegionStatisResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetDailyPlayRegionStatisResponse 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(GetDailyPlayRegionStatisResponseBody body) {
this.body = body;
return this;
}
@Override
public GetDailyPlayRegionStatisResponse build() {
return new GetDailyPlayRegionStatisResponse(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/GetDailyPlayRegionStatisResponseBody.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 GetDailyPlayRegionStatisResponseBody} extends {@link TeaModel}
*
* <p>GetDailyPlayRegionStatisResponseBody</p>
*/
public class GetDailyPlayRegionStatisResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DailyPlayRegionStatisList")
private java.util.List<DailyPlayRegionStatisList> dailyPlayRegionStatisList;
@com.aliyun.core.annotation.NameInMap("EmptyDates")
private java.util.List<String> emptyDates;
@com.aliyun.core.annotation.NameInMap("FailDates")
private java.util.List<String> failDates;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetDailyPlayRegionStatisResponseBody(Builder builder) {
this.dailyPlayRegionStatisList = builder.dailyPlayRegionStatisList;
this.emptyDates = builder.emptyDates;
this.failDates = builder.failDates;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetDailyPlayRegionStatisResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dailyPlayRegionStatisList
*/
public java.util.List<DailyPlayRegionStatisList> getDailyPlayRegionStatisList() {
return this.dailyPlayRegionStatisList;
}
/**
* @return emptyDates
*/
public java.util.List<String> getEmptyDates() {
return this.emptyDates;
}
/**
* @return failDates
*/
public java.util.List<String> getFailDates() {
return this.failDates;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<DailyPlayRegionStatisList> dailyPlayRegionStatisList;
private java.util.List<String> emptyDates;
private java.util.List<String> failDates;
private String requestId;
private Builder() {
}
private Builder(GetDailyPlayRegionStatisResponseBody model) {
this.dailyPlayRegionStatisList = model.dailyPlayRegionStatisList;
this.emptyDates = model.emptyDates;
this.failDates = model.failDates;
this.requestId = model.requestId;
}
/**
* DailyPlayRegionStatisList.
*/
public Builder dailyPlayRegionStatisList(java.util.List<DailyPlayRegionStatisList> dailyPlayRegionStatisList) {
this.dailyPlayRegionStatisList = dailyPlayRegionStatisList;
return this;
}
/**
* EmptyDates.
*/
public Builder emptyDates(java.util.List<String> emptyDates) {
this.emptyDates = emptyDates;
return this;
}
/**
* FailDates.
*/
public Builder failDates(java.util.List<String> failDates) {
this.failDates = failDates;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetDailyPlayRegionStatisResponseBody build() {
return new GetDailyPlayRegionStatisResponseBody(this);
}
}
/**
*
* {@link GetDailyPlayRegionStatisResponseBody} extends {@link TeaModel}
*
* <p>GetDailyPlayRegionStatisResponseBody</p>
*/
public static class DailyPlayRegionStatisList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Date")
private String date;
@com.aliyun.core.annotation.NameInMap("FileUrl")
private String fileUrl;
private DailyPlayRegionStatisList(Builder builder) {
this.date = builder.date;
this.fileUrl = builder.fileUrl;
}
public static Builder builder() {
return new Builder();
}
public static DailyPlayRegionStatisList create() {
return builder().build();
}
/**
* @return date
*/
public String getDate() {
return this.date;
}
/**
* @return fileUrl
*/
public String getFileUrl() {
return this.fileUrl;
}
public static final class Builder {
private String date;
private String fileUrl;
private Builder() {
}
private Builder(DailyPlayRegionStatisList model) {
this.date = model.date;
this.fileUrl = model.fileUrl;
}
/**
* Date.
*/
public Builder date(String date) {
this.date = date;
return this;
}
/**
* FileUrl.
*/
public Builder fileUrl(String fileUrl) {
this.fileUrl = fileUrl;
return this;
}
public DailyPlayRegionStatisList build() {
return new DailyPlayRegionStatisList(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/GetDefaultAITemplateRequest.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 GetDefaultAITemplateRequest} extends {@link RequestModel}
*
* <p>GetDefaultAITemplateRequest</p>
*/
public class GetDefaultAITemplateRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TemplateType")
@com.aliyun.core.annotation.Validation(required = true)
private String templateType;
private GetDefaultAITemplateRequest(Builder builder) {
super(builder);
this.templateType = builder.templateType;
}
public static Builder builder() {
return new Builder();
}
public static GetDefaultAITemplateRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return templateType
*/
public String getTemplateType() {
return this.templateType;
}
public static final class Builder extends Request.Builder<GetDefaultAITemplateRequest, Builder> {
private String templateType;
private Builder() {
super();
}
private Builder(GetDefaultAITemplateRequest request) {
super(request);
this.templateType = request.templateType;
}
/**
* <p>The type of the AI template. Set the value to <strong>AIMediaAudit</strong>, which specifies the automated review.</p>
* <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 GetDefaultAITemplateRequest build() {
return new GetDefaultAITemplateRequest(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/GetDefaultAITemplateResponse.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 GetDefaultAITemplateResponse} extends {@link TeaModel}
*
* <p>GetDefaultAITemplateResponse</p>
*/
public class GetDefaultAITemplateResponse 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 GetDefaultAITemplateResponseBody body;
private GetDefaultAITemplateResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetDefaultAITemplateResponse 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 GetDefaultAITemplateResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetDefaultAITemplateResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetDefaultAITemplateResponseBody body);
@Override
GetDefaultAITemplateResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetDefaultAITemplateResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetDefaultAITemplateResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetDefaultAITemplateResponse 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(GetDefaultAITemplateResponseBody body) {
this.body = body;
return this;
}
@Override
public GetDefaultAITemplateResponse build() {
return new GetDefaultAITemplateResponse(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/GetDefaultAITemplateResponseBody.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 GetDefaultAITemplateResponseBody} extends {@link TeaModel}
*
* <p>GetDefaultAITemplateResponseBody</p>
*/
public class GetDefaultAITemplateResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TemplateInfo")
private TemplateInfo templateInfo;
private GetDefaultAITemplateResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.templateInfo = builder.templateInfo;
}
public static Builder builder() {
return new Builder();
}
public static GetDefaultAITemplateResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return templateInfo
*/
public TemplateInfo getTemplateInfo() {
return this.templateInfo;
}
public static final class Builder {
private String requestId;
private TemplateInfo templateInfo;
private Builder() {
}
private Builder(GetDefaultAITemplateResponseBody model) {
this.requestId = model.requestId;
this.templateInfo = model.templateInfo;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>A017F1DE-3DC3-4441-6755-37E81113****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information about the AI template.</p>
*/
public Builder templateInfo(TemplateInfo templateInfo) {
this.templateInfo = templateInfo;
return this;
}
public GetDefaultAITemplateResponseBody build() {
return new GetDefaultAITemplateResponseBody(this);
}
}
/**
*
* {@link GetDefaultAITemplateResponseBody} extends {@link TeaModel}
*
* <p>GetDefaultAITemplateResponseBody</p>
*/
public static class TemplateInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("IsDefault")
private String isDefault;
@com.aliyun.core.annotation.NameInMap("ModifyTime")
private String modifyTime;
@com.aliyun.core.annotation.NameInMap("Source")
private String source;
@com.aliyun.core.annotation.NameInMap("TemplateConfig")
private String templateConfig;
@com.aliyun.core.annotation.NameInMap("TemplateId")
private String templateId;
@com.aliyun.core.annotation.NameInMap("TemplateName")
private String templateName;
@com.aliyun.core.annotation.NameInMap("TemplateType")
private String templateType;
private TemplateInfo(Builder builder) {
this.creationTime = builder.creationTime;
this.isDefault = builder.isDefault;
this.modifyTime = builder.modifyTime;
this.source = builder.source;
this.templateConfig = builder.templateConfig;
this.templateId = builder.templateId;
this.templateName = builder.templateName;
this.templateType = builder.templateType;
}
public static Builder builder() {
return new Builder();
}
public static TemplateInfo create() {
return builder().build();
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return isDefault
*/
public String getIsDefault() {
return this.isDefault;
}
/**
* @return modifyTime
*/
public String getModifyTime() {
return this.modifyTime;
}
/**
* @return source
*/
public String getSource() {
return this.source;
}
/**
* @return templateConfig
*/
public String getTemplateConfig() {
return this.templateConfig;
}
/**
* @return templateId
*/
public String getTemplateId() {
return this.templateId;
}
/**
* @return templateName
*/
public String getTemplateName() {
return this.templateName;
}
/**
* @return templateType
*/
public String getTemplateType() {
return this.templateType;
}
public static final class Builder {
private String creationTime;
private String isDefault;
private String modifyTime;
private String source;
private String templateConfig;
private String templateId;
private String templateName;
private String templateType;
private Builder() {
}
private Builder(TemplateInfo model) {
this.creationTime = model.creationTime;
this.isDefault = model.isDefault;
this.modifyTime = model.modifyTime;
this.source = model.source;
this.templateConfig = model.templateConfig;
this.templateId = model.templateId;
this.templateName = model.templateName;
this.templateType = model.templateType;
}
/**
* <p>The time when the AI 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>2020-07-08T06:50:45Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>Indicates whether the template is the default AI template. Valid values:</p>
* <ul>
* <li><strong>Default</strong></li>
* <li><strong>NotDefault</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Default</p>
*/
public Builder isDefault(String isDefault) {
this.isDefault = isDefault;
return this;
}
/**
* <p>The time when the AI template was 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>2020-07-08T06:58:45Z</p>
*/
public Builder modifyTime(String modifyTime) {
this.modifyTime = modifyTime;
return this;
}
/**
* <p>The source of the AI template. Valid values:</p>
* <ul>
* <li><strong>System</strong></li>
* <li><strong>Custom</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Custom</p>
*/
public Builder source(String source) {
this.source = source;
return this;
}
/**
* <p>The detailed configurations of the AI template. The value is a JSON string. For more information, see <a href="~~89863#title-vd3-499-o36~~">AITemplateConfig</a>.</p>
*
* <strong>example:</strong>
* <p>{"AuditRange":["text-title","video"],"AuditContent":["screen"],"AuditItem":["terrorism","porn"],"AuditAutoBlock":"yes"}</p>
*/
public Builder templateConfig(String templateConfig) {
this.templateConfig = templateConfig;
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;
}
/**
* <p>The name of the AI template.</p>
*
* <strong>example:</strong>
* <p>DemoAITemplate</p>
*/
public Builder templateName(String templateName) {
this.templateName = templateName;
return this;
}
/**
* <p>The type of the AI template. The value is <strong>AIMediaAudit</strong>, which indicates automated review.</p>
*
* <strong>example:</strong>
* <p>AIMediaAudit</p>
*/
public Builder templateType(String templateType) {
this.templateType = templateType;
return this;
}
public TemplateInfo build() {
return new TemplateInfo(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/GetDigitalWatermarkExtractResultRequest.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 GetDigitalWatermarkExtractResultRequest} extends {@link RequestModel}
*
* <p>GetDigitalWatermarkExtractResultRequest</p>
*/
public class GetDigitalWatermarkExtractResultRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ExtractType")
@com.aliyun.core.annotation.Validation(required = true)
private String extractType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("JobId")
private String jobId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MediaId")
@com.aliyun.core.annotation.Validation(required = true)
private String mediaId;
@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;
private GetDigitalWatermarkExtractResultRequest(Builder builder) {
super(builder);
this.extractType = builder.extractType;
this.jobId = builder.jobId;
this.mediaId = builder.mediaId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static GetDigitalWatermarkExtractResultRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return extractType
*/
public String getExtractType() {
return this.extractType;
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
/**
* @return mediaId
*/
public String getMediaId() {
return this.mediaId;
}
/**
* @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;
}
public static final class Builder extends Request.Builder<GetDigitalWatermarkExtractResultRequest, Builder> {
private String extractType;
private String jobId;
private String mediaId;
private String ownerAccount;
private String ownerId;
private String resourceOwnerAccount;
private String resourceOwnerId;
private Builder() {
super();
}
private Builder(GetDigitalWatermarkExtractResultRequest request) {
super(request);
this.extractType = request.extractType;
this.jobId = request.jobId;
this.mediaId = request.mediaId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The type of the watermark. Valid values:</p>
* <ul>
* <li><strong>TraceMark</strong>: user-tracing watermark</li>
* <li><strong>CopyrightMark</strong>: copyright watermark</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>TraceMark</p>
*/
public Builder extractType(String extractType) {
this.putQueryParameter("ExtractType", extractType);
this.extractType = extractType;
return this;
}
/**
* <p>The ID of the watermark extraction job.</p>
* <ul>
* <li>You can obtain the ID from the response to the <a href="~~SubmitDigitalWatermarkExtractJob~~">SubmitDigitalWatermarkExtractJob</a> operation.</li>
* <li>If you specify this parameter, the result of the specified watermark extraction job is returned. If you leave this parameter empty, the results of all watermark extraction jobs submitted for the video are returned.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2bf4390af9e5491c09cc720ad****</p>
*/
public Builder jobId(String jobId) {
this.putQueryParameter("JobId", jobId);
this.jobId = jobId;
return this;
}
/**
* <p>The ID of the video from which you want to query the watermark content. You can specify only one ID. 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>Media Files</strong> > <strong>Audio/Video</strong> to view the video ID.</li>
* <li>Obtain the VideoId from the response to the <a href="~~SearchMedia~~">SearchMedia</a> operation.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>93ab850b4f6f54b6e91d24d81d4****</p>
*/
public Builder mediaId(String mediaId) {
this.putQueryParameter("MediaId", mediaId);
this.mediaId = mediaId;
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;
}
@Override
public GetDigitalWatermarkExtractResultRequest build() {
return new GetDigitalWatermarkExtractResultRequest(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/GetDigitalWatermarkExtractResultResponse.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 GetDigitalWatermarkExtractResultResponse} extends {@link TeaModel}
*
* <p>GetDigitalWatermarkExtractResultResponse</p>
*/
public class GetDigitalWatermarkExtractResultResponse 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 GetDigitalWatermarkExtractResultResponseBody body;
private GetDigitalWatermarkExtractResultResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetDigitalWatermarkExtractResultResponse 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 GetDigitalWatermarkExtractResultResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetDigitalWatermarkExtractResultResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetDigitalWatermarkExtractResultResponseBody body);
@Override
GetDigitalWatermarkExtractResultResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetDigitalWatermarkExtractResultResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetDigitalWatermarkExtractResultResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetDigitalWatermarkExtractResultResponse 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(GetDigitalWatermarkExtractResultResponseBody body) {
this.body = body;
return this;
}
@Override
public GetDigitalWatermarkExtractResultResponse build() {
return new GetDigitalWatermarkExtractResultResponse(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/GetDigitalWatermarkExtractResultResponseBody.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 GetDigitalWatermarkExtractResultResponseBody} extends {@link TeaModel}
*
* <p>GetDigitalWatermarkExtractResultResponseBody</p>
*/
public class GetDigitalWatermarkExtractResultResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AiExtractResultList")
private java.util.List<AiExtractResultList> aiExtractResultList;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetDigitalWatermarkExtractResultResponseBody(Builder builder) {
this.aiExtractResultList = builder.aiExtractResultList;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetDigitalWatermarkExtractResultResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return aiExtractResultList
*/
public java.util.List<AiExtractResultList> getAiExtractResultList() {
return this.aiExtractResultList;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<AiExtractResultList> aiExtractResultList;
private String requestId;
private Builder() {
}
private Builder(GetDigitalWatermarkExtractResultResponseBody model) {
this.aiExtractResultList = model.aiExtractResultList;
this.requestId = model.requestId;
}
/**
* <p>The details of the watermark extraction job.</p>
*/
public Builder aiExtractResultList(java.util.List<AiExtractResultList> aiExtractResultList) {
this.aiExtractResultList = aiExtractResultList;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>42E0554B-80F4-4921-****-ACFB22CAAAD0</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetDigitalWatermarkExtractResultResponseBody build() {
return new GetDigitalWatermarkExtractResultResponseBody(this);
}
}
/**
*
* {@link GetDigitalWatermarkExtractResultResponseBody} extends {@link TeaModel}
*
* <p>GetDigitalWatermarkExtractResultResponseBody</p>
*/
public static class AiExtractResultList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("ErrorMessage")
private String errorMessage;
@com.aliyun.core.annotation.NameInMap("JobId")
private String jobId;
@com.aliyun.core.annotation.NameInMap("ModifyTime")
private String modifyTime;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("WaterMarkText")
private String waterMarkText;
private AiExtractResultList(Builder builder) {
this.createTime = builder.createTime;
this.errorMessage = builder.errorMessage;
this.jobId = builder.jobId;
this.modifyTime = builder.modifyTime;
this.status = builder.status;
this.waterMarkText = builder.waterMarkText;
}
public static Builder builder() {
return new Builder();
}
public static AiExtractResultList create() {
return builder().build();
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return errorMessage
*/
public String getErrorMessage() {
return this.errorMessage;
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
/**
* @return modifyTime
*/
public String getModifyTime() {
return this.modifyTime;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return waterMarkText
*/
public String getWaterMarkText() {
return this.waterMarkText;
}
public static final class Builder {
private String createTime;
private String errorMessage;
private String jobId;
private String modifyTime;
private String status;
private String waterMarkText;
private Builder() {
}
private Builder(AiExtractResultList model) {
this.createTime = model.createTime;
this.errorMessage = model.errorMessage;
this.jobId = model.jobId;
this.modifyTime = model.modifyTime;
this.status = model.status;
this.waterMarkText = model.waterMarkText;
}
/**
* <p>The time when the watermark extraction job was created.</p>
*
* <strong>example:</strong>
* <p>2023-09-16T02:49:04Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The error message.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder errorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
/**
* <p>The ID of the watermark extraction job.</p>
*
* <strong>example:</strong>
* <p>3af004763bcf459698860f4ede20****</p>
*/
public Builder jobId(String jobId) {
this.jobId = jobId;
return this;
}
/**
* <p>The time when the watermark extraction job was last updated.</p>
*
* <strong>example:</strong>
* <p>2023-09-17T06:20:45Z</p>
*/
public Builder modifyTime(String modifyTime) {
this.modifyTime = modifyTime;
return this;
}
/**
* <p>The status of the watermark extraction job. Valid values:</p>
* <ul>
* <li><strong>Success</strong></li>
* <li><strong>Failed</strong></li>
* <li><strong>Processing</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Success</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The extracted watermark content.</p>
*
* <strong>example:</strong>
* <p>test mark</p>
*/
public Builder waterMarkText(String waterMarkText) {
this.waterMarkText = waterMarkText;
return this;
}
public AiExtractResultList build() {
return new AiExtractResultList(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/GetEditingProjectMaterialsRequest.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 GetEditingProjectMaterialsRequest} extends {@link RequestModel}
*
* <p>GetEditingProjectMaterialsRequest</p>
*/
public class GetEditingProjectMaterialsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MaterialType")
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;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private GetEditingProjectMaterialsRequest(Builder builder) {
super(builder);
this.materialType = builder.materialType;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.projectId = builder.projectId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static GetEditingProjectMaterialsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @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;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder extends Request.Builder<GetEditingProjectMaterialsRequest, Builder> {
private String materialType;
private String ownerAccount;
private String ownerId;
private String projectId;
private String resourceOwnerAccount;
private String resourceOwnerId;
private String type;
private Builder() {
super();
}
private Builder(GetEditingProjectMaterialsRequest request) {
super(request);
this.materialType = request.materialType;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.projectId = request.projectId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.type = request.type;
}
/**
* <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.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. You can use one of the following methods to obtain the ID of the online editing project:</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>Production Center</strong> > <strong>Video Editing</strong> to obtain the ID of the specified online editing project.</li>
* <li>Call the <strong>AddEditingProject</strong> operation. The value of the response parameter ProjectId is the ID of the specified online editing project.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1982361011093374****</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;
}
/**
* <p>The type of the material. Valid values:</p>
* <ul>
* <li><strong>video</strong></li>
* <li><strong>audio</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>video</p>
*/
public Builder type(String type) {
this.putQueryParameter("Type", type);
this.type = type;
return this;
}
@Override
public GetEditingProjectMaterialsRequest build() {
return new GetEditingProjectMaterialsRequest(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/GetEditingProjectMaterialsResponse.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 GetEditingProjectMaterialsResponse} extends {@link TeaModel}
*
* <p>GetEditingProjectMaterialsResponse</p>
*/
public class GetEditingProjectMaterialsResponse 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 GetEditingProjectMaterialsResponseBody body;
private GetEditingProjectMaterialsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetEditingProjectMaterialsResponse 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 GetEditingProjectMaterialsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetEditingProjectMaterialsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetEditingProjectMaterialsResponseBody body);
@Override
GetEditingProjectMaterialsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetEditingProjectMaterialsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetEditingProjectMaterialsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetEditingProjectMaterialsResponse 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(GetEditingProjectMaterialsResponseBody body) {
this.body = body;
return this;
}
@Override
public GetEditingProjectMaterialsResponse build() {
return new GetEditingProjectMaterialsResponse(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/GetEditingProjectMaterialsResponseBody.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 GetEditingProjectMaterialsResponseBody} extends {@link TeaModel}
*
* <p>GetEditingProjectMaterialsResponseBody</p>
*/
public class GetEditingProjectMaterialsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MaterialList")
private MaterialList materialList;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetEditingProjectMaterialsResponseBody(Builder builder) {
this.materialList = builder.materialList;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetEditingProjectMaterialsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return materialList
*/
public MaterialList getMaterialList() {
return this.materialList;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private MaterialList materialList;
private String requestId;
private Builder() {
}
private Builder(GetEditingProjectMaterialsResponseBody model) {
this.materialList = model.materialList;
this.requestId = model.requestId;
}
/**
* <p>The materials.</p>
*/
public Builder materialList(MaterialList materialList) {
this.materialList = materialList;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>746FFA07-8BBB-46B1-3E94E3B2915E****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetEditingProjectMaterialsResponseBody build() {
return new GetEditingProjectMaterialsResponseBody(this);
}
}
/**
*
* {@link GetEditingProjectMaterialsResponseBody} extends {@link TeaModel}
*
* <p>GetEditingProjectMaterialsResponseBody</p>
*/
public static class Snapshots extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Snapshot")
private java.util.List<String> snapshot;
private Snapshots(Builder builder) {
this.snapshot = builder.snapshot;
}
public static Builder builder() {
return new Builder();
}
public static Snapshots create() {
return builder().build();
}
/**
* @return snapshot
*/
public java.util.List<String> getSnapshot() {
return this.snapshot;
}
public static final class Builder {
private java.util.List<String> snapshot;
private Builder() {
}
private Builder(Snapshots model) {
this.snapshot = model.snapshot;
}
/**
* Snapshot.
*/
public Builder snapshot(java.util.List<String> snapshot) {
this.snapshot = snapshot;
return this;
}
public Snapshots build() {
return new Snapshots(this);
}
}
}
/**
*
* {@link GetEditingProjectMaterialsResponseBody} extends {@link TeaModel}
*
* <p>GetEditingProjectMaterialsResponseBody</p>
*/
public static class Sprites extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Sprite")
private java.util.List<String> sprite;
private Sprites(Builder builder) {
this.sprite = builder.sprite;
}
public static Builder builder() {
return new Builder();
}
public static Sprites create() {
return builder().build();
}
/**
* @return sprite
*/
public java.util.List<String> getSprite() {
return this.sprite;
}
public static final class Builder {
private java.util.List<String> sprite;
private Builder() {
}
private Builder(Sprites model) {
this.sprite = model.sprite;
}
/**
* Sprite.
*/
public Builder sprite(java.util.List<String> sprite) {
this.sprite = sprite;
return this;
}
public Sprites build() {
return new Sprites(this);
}
}
}
/**
*
* {@link GetEditingProjectMaterialsResponseBody} extends {@link TeaModel}
*
* <p>GetEditingProjectMaterialsResponseBody</p>
*/
public static class Material 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("CreationTime")
private String creationTime;
@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("ModifiedTime")
private String modifiedTime;
@com.aliyun.core.annotation.NameInMap("Size")
private Long size;
@com.aliyun.core.annotation.NameInMap("Snapshots")
private Snapshots snapshots;
@com.aliyun.core.annotation.NameInMap("Source")
private String source;
@com.aliyun.core.annotation.NameInMap("SpriteConfig")
private String spriteConfig;
@com.aliyun.core.annotation.NameInMap("Sprites")
private Sprites 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 Material(Builder builder) {
this.cateId = builder.cateId;
this.cateName = builder.cateName;
this.coverURL = builder.coverURL;
this.creationTime = builder.creationTime;
this.description = builder.description;
this.duration = builder.duration;
this.materialId = builder.materialId;
this.materialType = builder.materialType;
this.modifiedTime = builder.modifiedTime;
this.size = builder.size;
this.snapshots = builder.snapshots;
this.source = builder.source;
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 Material 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 creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @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 modifiedTime
*/
public String getModifiedTime() {
return this.modifiedTime;
}
/**
* @return size
*/
public Long getSize() {
return this.size;
}
/**
* @return snapshots
*/
public Snapshots getSnapshots() {
return this.snapshots;
}
/**
* @return source
*/
public String getSource() {
return this.source;
}
/**
* @return spriteConfig
*/
public String getSpriteConfig() {
return this.spriteConfig;
}
/**
* @return sprites
*/
public Sprites 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 creationTime;
private String description;
private Float duration;
private String materialId;
private String materialType;
private String modifiedTime;
private Long size;
private Snapshots snapshots;
private String source;
private String spriteConfig;
private Sprites sprites;
private String status;
private String tags;
private String title;
private Builder() {
}
private Builder(Material model) {
this.cateId = model.cateId;
this.cateName = model.cateName;
this.coverURL = model.coverURL;
this.creationTime = model.creationTime;
this.description = model.description;
this.duration = model.duration;
this.materialId = model.materialId;
this.materialType = model.materialType;
this.modifiedTime = model.modifiedTime;
this.size = model.size;
this.snapshots = model.snapshots;
this.source = model.source;
this.spriteConfig = model.spriteConfig;
this.sprites = model.sprites;
this.status = model.status;
this.tags = model.tags;
this.title = model.title;
}
/**
* <p>The category ID of the material.</p>
*
* <strong>example:</strong>
* <p>100005****</p>
*/
public Builder cateId(Integer cateId) {
this.cateId = cateId;
return this;
}
/**
* <p>The category name of the material.</p>
*
* <strong>example:</strong>
* <p>test1</p>
*/
public Builder cateName(String cateName) {
this.cateName = cateName;
return this;
}
/**
* <p>The thumbnail URL of the material.</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</em>T<em>HH:mm:ss</em>Z format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2017-10-19 10:48:17</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The description of the material.</p>
*
* <strong>example:</strong>
* <p>test2</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The duration of the material. The value is rounded to four decimal places. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>15.16</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</em>T<em>HH:mm:ss</em>Z format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2017-10-19 10:48:17</p>
*/
public Builder modifiedTime(String modifiedTime) {
this.modifiedTime = modifiedTime;
return this;
}
/**
* <p>The size of the mezzanine file. Unit: byte.</p>
*
* <strong>example:</strong>
* <p>1682694</p>
*/
public Builder size(Long size) {
this.size = size;
return this;
}
/**
* <p>The URLs of material snapshots. The value is an array.</p>
*/
public Builder snapshots(Snapshots snapshots) {
this.snapshots = snapshots;
return this;
}
/**
* <p>The source of the sprite.</p>
*
* <strong>example:</strong>
* <p>xxx</p>
*/
public Builder source(String source) {
this.source = source;
return this;
}
/**
* <p>The configuration of the sprite.</p>
*
* <strong>example:</strong>
* <p>xxx</p>
*/
public Builder spriteConfig(String spriteConfig) {
this.spriteConfig = spriteConfig;
return this;
}
/**
* <p>The URLs of material sprites. The value is an array.</p>
*/
public Builder sprites(Sprites sprites) {
this.sprites = sprites;
return this;
}
/**
* <p>The status of the material. Valid values:</p>
* <ul>
* <li><strong>Normal</strong>: The material is in draft.</li>
* <li><strong>Producing</strong>: The material is being produced.</li>
* <li><strong>Produced</strong>: The material was produced.</li>
* <li><strong>ProduceFailed</strong>: The material failed to be produced.</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>editing test</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 Material build() {
return new Material(this);
}
}
}
/**
*
* {@link GetEditingProjectMaterialsResponseBody} extends {@link TeaModel}
*
* <p>GetEditingProjectMaterialsResponseBody</p>
*/
public static class MaterialList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Material")
private java.util.List<Material> material;
private MaterialList(Builder builder) {
this.material = builder.material;
}
public static Builder builder() {
return new Builder();
}
public static MaterialList create() {
return builder().build();
}
/**
* @return material
*/
public java.util.List<Material> getMaterial() {
return this.material;
}
public static final class Builder {
private java.util.List<Material> material;
private Builder() {
}
private Builder(MaterialList model) {
this.material = model.material;
}
/**
* Material.
*/
public Builder material(java.util.List<Material> material) {
this.material = material;
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/GetEditingProjectRequest.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 GetEditingProjectRequest} extends {@link RequestModel}
*
* <p>GetEditingProjectRequest</p>
*/
public class GetEditingProjectRequest extends Request {
@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 GetEditingProjectRequest(Builder builder) {
super(builder);
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 GetEditingProjectRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @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<GetEditingProjectRequest, Builder> {
private String ownerAccount;
private String ownerId;
private String projectId;
private String resourceOwnerAccount;
private String resourceOwnerId;
private Builder() {
super();
}
private Builder(GetEditingProjectRequest request) {
super(request);
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.projectId = request.projectId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* 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>fb2101bf24b27*****54cb318787dc</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 GetEditingProjectRequest build() {
return new GetEditingProjectRequest(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/GetEditingProjectResponse.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 GetEditingProjectResponse} extends {@link TeaModel}
*
* <p>GetEditingProjectResponse</p>
*/
public class GetEditingProjectResponse 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 GetEditingProjectResponseBody body;
private GetEditingProjectResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetEditingProjectResponse 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 GetEditingProjectResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetEditingProjectResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetEditingProjectResponseBody body);
@Override
GetEditingProjectResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetEditingProjectResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetEditingProjectResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetEditingProjectResponse 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(GetEditingProjectResponseBody body) {
this.body = body;
return this;
}
@Override
public GetEditingProjectResponse build() {
return new GetEditingProjectResponse(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/GetEditingProjectResponseBody.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 GetEditingProjectResponseBody} extends {@link TeaModel}
*
* <p>GetEditingProjectResponseBody</p>
*/
public class GetEditingProjectResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Project")
private Project project;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetEditingProjectResponseBody(Builder builder) {
this.project = builder.project;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetEditingProjectResponseBody 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(GetEditingProjectResponseBody model) {
this.project = model.project;
this.requestId = model.requestId;
}
/**
* <p>The information about the online editing project.</p>
*/
public Builder project(Project project) {
this.project = project;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>63E8B7C7-4812-46*****AD-0FA56029AC86</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetEditingProjectResponseBody build() {
return new GetEditingProjectResponseBody(this);
}
}
/**
*
* {@link GetEditingProjectResponseBody} extends {@link TeaModel}
*
* <p>GetEditingProjectResponseBody</p>
*/
public static class Project extends TeaModel {
@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("ModifiedTime")
private String modifiedTime;
@com.aliyun.core.annotation.NameInMap("ProjectId")
private String projectId;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("StorageLocation")
private String storageLocation;
@com.aliyun.core.annotation.NameInMap("Timeline")
private String timeline;
@com.aliyun.core.annotation.NameInMap("Title")
private String title;
private Project(Builder builder) {
this.coverURL = builder.coverURL;
this.creationTime = builder.creationTime;
this.description = builder.description;
this.modifiedTime = builder.modifiedTime;
this.projectId = builder.projectId;
this.regionId = builder.regionId;
this.status = builder.status;
this.storageLocation = builder.storageLocation;
this.timeline = builder.timeline;
this.title = builder.title;
}
public static Builder builder() {
return new Builder();
}
public static Project create() {
return builder().build();
}
/**
* @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 modifiedTime
*/
public String getModifiedTime() {
return this.modifiedTime;
}
/**
* @return projectId
*/
public String getProjectId() {
return this.projectId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return storageLocation
*/
public String getStorageLocation() {
return this.storageLocation;
}
/**
* @return timeline
*/
public String getTimeline() {
return this.timeline;
}
/**
* @return title
*/
public String getTitle() {
return this.title;
}
public static final class Builder {
private String coverURL;
private String creationTime;
private String description;
private String modifiedTime;
private String projectId;
private String regionId;
private String status;
private String storageLocation;
private String timeline;
private String title;
private Builder() {
}
private Builder(Project model) {
this.coverURL = model.coverURL;
this.creationTime = model.creationTime;
this.description = model.description;
this.modifiedTime = model.modifiedTime;
this.projectId = model.projectId;
this.regionId = model.regionId;
this.status = model.status;
this.storageLocation = model.storageLocation;
this.timeline = model.timeline;
this.title = model.title;
}
/**
* <p>The thumbnail URL of the online editing project.</p>
*
* <strong>example:</strong>
* <p>https://<strong><strong>.com/6AB4D0E1E1C74468883516C2349</strong></strong>.png</p>
*/
public Builder coverURL(String coverURL) {
this.coverURL = coverURL;
return this;
}
/**
* <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-10-23T13:33:40Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The description of the online editing project.</p>
*
* <strong>example:</strong>
* <p>testdescription</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The last time when the online editing project was 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-10-23T14:27:26Z</p>
*/
public Builder modifiedTime(String modifiedTime) {
this.modifiedTime = modifiedTime;
return this;
}
/**
* <p>The ID of the online editing project.</p>
*
* <strong>example:</strong>
* <p>fb2101bf24b27*****54cb318787dc</p>
*/
public Builder projectId(String projectId) {
this.projectId = projectId;
return this;
}
/**
* <p>The region where the online editing project was created.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The status of the online editing project. Separate multiple states with commas (,). By default, all online editing projects were queried. Valid values:</p>
* <ul>
* <li><strong>Normal</strong>: indicates that the online editing project is in draft.</li>
* <li><strong>Producing</strong>: indicates that the video is being produced.</li>
* <li><strong>Produced</strong>: indicates that the video was produced.</li>
* <li><strong>ProduceFailed</strong>: indicates that 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 path of the Object Storage Service (OSS) bucket where the online editing project is stored.</p>
* <blockquote>
* <p>To view the path of the OSS bucket, log on to the <a href="https://vod.console.aliyun.com/?spm=a2c4g.11186623.2.15.6948257eaZ4m54#/vod/settings/censored">ApsaraVideo VOD console</a>, and choose <strong>Configuration Management</strong> > <strong>Media Management</strong> > <strong>Storage</strong>. On the Storage page, you can view the path of the OSS bucket.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>location_s</p>
*/
public Builder storageLocation(String storageLocation) {
this.storageLocation = storageLocation;
return this;
}
/**
* <p>The timeline of the online editing project.</p>
*
* <strong>example:</strong>
* <p>{"TimelineIn":0,"TimelineOut":9.42}</p>
*/
public Builder timeline(String timeline) {
this.timeline = timeline;
return this;
}
/**
* <p>The title of the online editing project.</p>
*
* <strong>example:</strong>
* <p>video_1508736815000</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/GetImageInfoRequest.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 GetImageInfoRequest} extends {@link RequestModel}
*
* <p>GetImageInfoRequest</p>
*/
public class GetImageInfoRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AuthTimeout")
private Long authTimeout;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ImageId")
@com.aliyun.core.annotation.Validation(required = true)
private String imageId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OutputType")
private String outputType;
private GetImageInfoRequest(Builder builder) {
super(builder);
this.authTimeout = builder.authTimeout;
this.imageId = builder.imageId;
this.outputType = builder.outputType;
}
public static Builder builder() {
return new Builder();
}
public static GetImageInfoRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return authTimeout
*/
public Long getAuthTimeout() {
return this.authTimeout;
}
/**
* @return imageId
*/
public String getImageId() {
return this.imageId;
}
/**
* @return outputType
*/
public String getOutputType() {
return this.outputType;
}
public static final class Builder extends Request.Builder<GetImageInfoRequest, Builder> {
private Long authTimeout;
private String imageId;
private String outputType;
private Builder() {
super();
}
private Builder(GetImageInfoRequest request) {
super(request);
this.authTimeout = request.authTimeout;
this.imageId = request.imageId;
this.outputType = request.outputType;
}
/**
* <p>The time when the image URL expires. Unit: seconds.</p>
* <ul>
* <li><p>If you set OutputType to cdn:</p>
* <ul>
* <li>This parameter takes effect only if URL authentication is enabled. Otherwise, the image URL does not expire.</li>
* <li>Minimum value: 1.</li>
* <li>Maximum value: unlimited.</li>
* <li>Default value: If you leave this parameter empty, the default validity period that is specified in URL signing is used.</li>
* </ul>
* </li>
* <li><p>If you set OutputType to oss:</p>
* <ul>
* <li>This parameter takes effect only when the ACL of the Object Storage Service (OSS) bucket is private. Otherwise, the image URL does not expire.</li>
* <li>Minimum value: 1.</li>
* <li>If you store the image in the VOD bucket, the maximum value of this parameter is <strong>2592000</strong> (30 days). If you store the image in an OSS bucket, the maximum value of this parameter is <strong>129600</strong> (36 hours). The maximum value is limited to reduce security risks of the origin.</li>
* <li>Default value: 3600.</li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>3600</p>
*/
public Builder authTimeout(Long authTimeout) {
this.putQueryParameter("AuthTimeout", authTimeout);
this.authTimeout = authTimeout;
return this;
}
/**
* <p>The ID of the image. 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 Media Files > Image. On the Image page, view the image ID.</li>
* <li>Obtain the image ID from the response to the <a href="~~CreateUploadImage~~">CreateUploadImage</a> operation that you call to obtain the upload URL and credential.</li>
* <li>Obtain the image ID from the response to the <a href="~~SearchMedia~~">SearchMedia</a> operation that you call to query the image.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>3e34733b40b9a96ccf5c1ff6f69****</p>
*/
public Builder imageId(String imageId) {
this.putQueryParameter("ImageId", imageId);
this.imageId = imageId;
return this;
}
/**
* <p>The type of the output image URL. Valid values:</p>
* <ul>
* <li>oss: OSS URL</li>
* <li>cdn: CDN URL</li>
* </ul>
*
* <strong>example:</strong>
* <p>cdn</p>
*/
public Builder outputType(String outputType) {
this.putQueryParameter("OutputType", outputType);
this.outputType = outputType;
return this;
}
@Override
public GetImageInfoRequest build() {
return new GetImageInfoRequest(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/GetImageInfoResponse.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 GetImageInfoResponse} extends {@link TeaModel}
*
* <p>GetImageInfoResponse</p>
*/
public class GetImageInfoResponse 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 GetImageInfoResponseBody body;
private GetImageInfoResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetImageInfoResponse 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 GetImageInfoResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetImageInfoResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetImageInfoResponseBody body);
@Override
GetImageInfoResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetImageInfoResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetImageInfoResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetImageInfoResponse 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(GetImageInfoResponseBody body) {
this.body = body;
return this;
}
@Override
public GetImageInfoResponse build() {
return new GetImageInfoResponse(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/GetImageInfoResponseBody.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 GetImageInfoResponseBody} extends {@link TeaModel}
*
* <p>GetImageInfoResponseBody</p>
*/
public class GetImageInfoResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ImageInfo")
private ImageInfo imageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetImageInfoResponseBody(Builder builder) {
this.imageInfo = builder.imageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetImageInfoResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return imageInfo
*/
public ImageInfo getImageInfo() {
return this.imageInfo;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private ImageInfo imageInfo;
private String requestId;
private Builder() {
}
private Builder(GetImageInfoResponseBody model) {
this.imageInfo = model.imageInfo;
this.requestId = model.requestId;
}
/**
* <p>The information about the image.</p>
*/
public Builder imageInfo(ImageInfo imageInfo) {
this.imageInfo = imageInfo;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>AB99D4DF-FAFA-49DC-9C548C1E261E****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetImageInfoResponseBody build() {
return new GetImageInfoResponseBody(this);
}
}
/**
*
* {@link GetImageInfoResponseBody} extends {@link TeaModel}
*
* <p>GetImageInfoResponseBody</p>
*/
public static class Mezzanine extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FileSize")
private String fileSize;
@com.aliyun.core.annotation.NameInMap("FileURL")
private String fileURL;
@com.aliyun.core.annotation.NameInMap("Height")
private Integer height;
@com.aliyun.core.annotation.NameInMap("OriginalFileName")
private String originalFileName;
@com.aliyun.core.annotation.NameInMap("Width")
private Integer width;
private Mezzanine(Builder builder) {
this.fileSize = builder.fileSize;
this.fileURL = builder.fileURL;
this.height = builder.height;
this.originalFileName = builder.originalFileName;
this.width = builder.width;
}
public static Builder builder() {
return new Builder();
}
public static Mezzanine create() {
return builder().build();
}
/**
* @return fileSize
*/
public String getFileSize() {
return this.fileSize;
}
/**
* @return fileURL
*/
public String getFileURL() {
return this.fileURL;
}
/**
* @return height
*/
public Integer getHeight() {
return this.height;
}
/**
* @return originalFileName
*/
public String getOriginalFileName() {
return this.originalFileName;
}
/**
* @return width
*/
public Integer getWidth() {
return this.width;
}
public static final class Builder {
private String fileSize;
private String fileURL;
private Integer height;
private String originalFileName;
private Integer width;
private Builder() {
}
private Builder(Mezzanine model) {
this.fileSize = model.fileSize;
this.fileURL = model.fileURL;
this.height = model.height;
this.originalFileName = model.originalFileName;
this.width = model.width;
}
/**
* <p>The size of the image. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>8932</p>
*/
public Builder fileSize(String fileSize) {
this.fileSize = fileSize;
return this;
}
/**
* <p>The OSS URL of the image file.</p>
*
* <strong>example:</strong>
* <p><a href="https://outin-bfefbb*****163e1c7426.oss-cn-XXXXXXXX.aliyuncs.com/image/default/5E84CD536*****D4DAD.png?Expires=1590982353&OSSAccessKeyId=*****&Signature=ALPET74o*****c%3D">https://outin-bfefbb*****163e1c7426.oss-cn-XXXXXXXX.aliyuncs.com/image/default/5E84CD536*****D4DAD.png?Expires=1590982353&OSSAccessKeyId=*****&Signature=ALPET74o*****c%3D</a></p>
*/
public Builder fileURL(String fileURL) {
this.fileURL = fileURL;
return this;
}
/**
* <p>The height of the image. Unit: pixels.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder height(Integer height) {
this.height = height;
return this;
}
/**
* <p>The URL of the source file.</p>
*
* <strong>example:</strong>
* <p>****.gif</p>
*/
public Builder originalFileName(String originalFileName) {
this.originalFileName = originalFileName;
return this;
}
/**
* <p>The width of the image. Unit: pixels.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder width(Integer width) {
this.width = width;
return this;
}
public Mezzanine build() {
return new Mezzanine(this);
}
}
}
/**
*
* {@link GetImageInfoResponseBody} extends {@link TeaModel}
*
* <p>GetImageInfoResponseBody</p>
*/
public static class ImageInfo 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("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("ImageId")
private String imageId;
@com.aliyun.core.annotation.NameInMap("ImageType")
private String imageType;
@com.aliyun.core.annotation.NameInMap("Mezzanine")
private Mezzanine mezzanine;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("StorageLocation")
private String storageLocation;
@com.aliyun.core.annotation.NameInMap("Tags")
private String tags;
@com.aliyun.core.annotation.NameInMap("Title")
private String title;
@com.aliyun.core.annotation.NameInMap("URL")
private String URL;
private ImageInfo(Builder builder) {
this.appId = builder.appId;
this.cateId = builder.cateId;
this.cateName = builder.cateName;
this.creationTime = builder.creationTime;
this.description = builder.description;
this.imageId = builder.imageId;
this.imageType = builder.imageType;
this.mezzanine = builder.mezzanine;
this.status = builder.status;
this.storageLocation = builder.storageLocation;
this.tags = builder.tags;
this.title = builder.title;
this.URL = builder.URL;
}
public static Builder builder() {
return new Builder();
}
public static ImageInfo 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 creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return imageId
*/
public String getImageId() {
return this.imageId;
}
/**
* @return imageType
*/
public String getImageType() {
return this.imageType;
}
/**
* @return mezzanine
*/
public Mezzanine getMezzanine() {
return this.mezzanine;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @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 URL
*/
public String getURL() {
return this.URL;
}
public static final class Builder {
private String appId;
private Long cateId;
private String cateName;
private String creationTime;
private String description;
private String imageId;
private String imageType;
private Mezzanine mezzanine;
private String status;
private String storageLocation;
private String tags;
private String title;
private String URL;
private Builder() {
}
private Builder(ImageInfo model) {
this.appId = model.appId;
this.cateId = model.cateId;
this.cateName = model.cateName;
this.creationTime = model.creationTime;
this.description = model.description;
this.imageId = model.imageId;
this.imageType = model.imageType;
this.mezzanine = model.mezzanine;
this.status = model.status;
this.storageLocation = model.storageLocation;
this.tags = model.tags;
this.title = model.title;
this.URL = model.URL;
}
/**
* <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>254766071</p>
*/
public Builder cateId(Long cateId) {
this.cateId = cateId;
return this;
}
/**
* <p>The name of the category.</p>
*
* <strong>example:</strong>
* <p>test name</p>
*/
public Builder cateName(String cateName) {
this.cateName = cateName;
return this;
}
/**
* <p>The time when the image 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-21T02:37:23Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The description of the image.</p>
*
* <strong>example:</strong>
* <p>test description</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The ID of the image.</p>
*
* <strong>example:</strong>
* <p>bbc65bba53f9*****ed90de118a7849</p>
*/
public Builder imageId(String imageId) {
this.imageId = imageId;
return this;
}
/**
* <p>The type of the image. Valid values:</p>
* <ul>
* <li><strong>CoverSnapshot</strong>: thumbnail snapshot.</li>
* <li><strong>NormalSnapshot</strong>: normal snapshot.</li>
* <li><strong>SpriteSnapshot</strong>: sprite snapshot.</li>
* <li><strong>SpriteOriginSnapshot</strong>: sprite source snapshot.</li>
* <li><strong>All</strong>: images of all the preceding types. Multiple types other than All can return for this parameter. Multiple types are separated by commas (,).</li>
* </ul>
*
* <strong>example:</strong>
* <p>NormalSnapshot</p>
*/
public Builder imageType(String imageType) {
this.imageType = imageType;
return this;
}
/**
* <p>The source information about the image.</p>
*/
public Builder mezzanine(Mezzanine mezzanine) {
this.mezzanine = mezzanine;
return this;
}
/**
* <p>The status of the image. Valid values:</p>
* <ul>
* <li><strong>Uploading</strong>: The image is being uploaded. This is the initial status.</li>
* <li><strong>Normal</strong>: The image is uploaded.</li>
* <li><strong>UploadFail</strong>: The image fails to be uploaded.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Uploading</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The bucket in which the image is stored.</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 image. Multiple tags are separated by commas (,).</p>
*
* <strong>example:</strong>
* <p>tag1,tag2,tag3</p>
*/
public Builder tags(String tags) {
this.tags = tags;
return this;
}
/**
* <p>The title of the image.</p>
*
* <strong>example:</strong>
* <p>this is a sample</p>
*/
public Builder title(String title) {
this.title = title;
return this;
}
/**
* <p>The image URL. If a domain name for CDN is specified, a CDN URL is returned. Otherwise, an OSS URL is returned.</p>
*
* <strong>example:</strong>
* <p><a href="http://example.aliyundoc.com/image/default/****.gif?auth_key=">http://example.aliyundoc.com/image/default/****.gif?auth_key=</a>****</p>
*/
public Builder URL(String URL) {
this.URL = URL;
return this;
}
public ImageInfo build() {
return new ImageInfo(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/GetImageInfosRequest.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 GetImageInfosRequest} extends {@link RequestModel}
*
* <p>GetImageInfosRequest</p>
*/
public class GetImageInfosRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AuthTimeout")
private Long authTimeout;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ImageIds")
@com.aliyun.core.annotation.Validation(required = true)
private String imageIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OutputType")
private String outputType;
private GetImageInfosRequest(Builder builder) {
super(builder);
this.authTimeout = builder.authTimeout;
this.imageIds = builder.imageIds;
this.outputType = builder.outputType;
}
public static Builder builder() {
return new Builder();
}
public static GetImageInfosRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return authTimeout
*/
public Long getAuthTimeout() {
return this.authTimeout;
}
/**
* @return imageIds
*/
public String getImageIds() {
return this.imageIds;
}
/**
* @return outputType
*/
public String getOutputType() {
return this.outputType;
}
public static final class Builder extends Request.Builder<GetImageInfosRequest, Builder> {
private Long authTimeout;
private String imageIds;
private String outputType;
private Builder() {
super();
}
private Builder(GetImageInfosRequest request) {
super(request);
this.authTimeout = request.authTimeout;
this.imageIds = request.imageIds;
this.outputType = request.outputType;
}
/**
* <p>The time when the image URL expires. Unit: seconds.</p>
* <ul>
* <li><p>If the OutputType parameter is set to cdn:</p>
* <ul>
* <li>This parameter takes effect only if URL authentication is enabled. Otherwise, the image URL does not expire.</li>
* <li>Minimum value: 1.</li>
* <li>Maximum value: unlimited.</li>
* <li>Default value: The default validity period that is specified in URL authentication is used.</li>
* </ul>
* </li>
* <li><p>If the OutputType parameter is set to oss:</p>
* <ul>
* <li>This parameter takes effect only when the ACL of the Object Storage Service (OSS) bucket is private. Otherwise, the image URL does not expire.</li>
* <li>Minimum value: 1.</li>
* <li>If you store the image in the VOD bucket, the maximum value of this parameter is <strong>2592000</strong> (30 days). If you store the image in an OSS bucket, the maximum value of this parameter is <strong>129600</strong> (36 hours). The maximum value is limited to reduce security risks of the origin.</li>
* <li>Default value: 3600.</li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>3600</p>
*/
public Builder authTimeout(Long authTimeout) {
this.putQueryParameter("AuthTimeout", authTimeout);
this.authTimeout = authTimeout;
return this;
}
/**
* <p>The image IDs. Separate multiple IDs with commas (,). You can specify up to 20 image 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> and choose <strong>Media Files > Images</strong> in the left-side navigation pane.</li>
* <li>Obtain the value of ImageId from the response to the CreateUploadImage operation that you call to obtain the upload URL and credential.</li>
* <li>Obtain the value of ImageId from the response to the <a href="~~SearchMedia~~">SearchMedia</a> operation after you upload images.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>bbc65bba53fed90de118a7849****,594228cdd14b4d069fc17a8c4a****</p>
*/
public Builder imageIds(String imageIds) {
this.putQueryParameter("ImageIds", imageIds);
this.imageIds = imageIds;
return this;
}
/**
* <p>The type of the output image URL. Valid values:</p>
* <ul>
* <li>oss: OSS URL</li>
* <li>cdn: CDN URL</li>
* </ul>
*
* <strong>example:</strong>
* <p>cdn</p>
*/
public Builder outputType(String outputType) {
this.putQueryParameter("OutputType", outputType);
this.outputType = outputType;
return this;
}
@Override
public GetImageInfosRequest build() {
return new GetImageInfosRequest(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/GetImageInfosResponse.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 GetImageInfosResponse} extends {@link TeaModel}
*
* <p>GetImageInfosResponse</p>
*/
public class GetImageInfosResponse 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 GetImageInfosResponseBody body;
private GetImageInfosResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetImageInfosResponse 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 GetImageInfosResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetImageInfosResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetImageInfosResponseBody body);
@Override
GetImageInfosResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetImageInfosResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetImageInfosResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetImageInfosResponse 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(GetImageInfosResponseBody body) {
this.body = body;
return this;
}
@Override
public GetImageInfosResponse build() {
return new GetImageInfosResponse(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/GetImageInfosResponseBody.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 GetImageInfosResponseBody} extends {@link TeaModel}
*
* <p>GetImageInfosResponseBody</p>
*/
public class GetImageInfosResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ImageInfo")
private java.util.List<ImageInfo> imageInfo;
@com.aliyun.core.annotation.NameInMap("NonExistImageIds")
private java.util.List<String> nonExistImageIds;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetImageInfosResponseBody(Builder builder) {
this.imageInfo = builder.imageInfo;
this.nonExistImageIds = builder.nonExistImageIds;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetImageInfosResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return imageInfo
*/
public java.util.List<ImageInfo> getImageInfo() {
return this.imageInfo;
}
/**
* @return nonExistImageIds
*/
public java.util.List<String> getNonExistImageIds() {
return this.nonExistImageIds;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<ImageInfo> imageInfo;
private java.util.List<String> nonExistImageIds;
private String requestId;
private Builder() {
}
private Builder(GetImageInfosResponseBody model) {
this.imageInfo = model.imageInfo;
this.nonExistImageIds = model.nonExistImageIds;
this.requestId = model.requestId;
}
/**
* <p>The image information.</p>
*/
public Builder imageInfo(java.util.List<ImageInfo> imageInfo) {
this.imageInfo = imageInfo;
return this;
}
/**
* <p>The IDs of the images that do not exist.</p>
*/
public Builder nonExistImageIds(java.util.List<String> nonExistImageIds) {
this.nonExistImageIds = nonExistImageIds;
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 GetImageInfosResponseBody build() {
return new GetImageInfosResponseBody(this);
}
}
/**
*
* {@link GetImageInfosResponseBody} extends {@link TeaModel}
*
* <p>GetImageInfosResponseBody</p>
*/
public static class Mezzanine extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FileSize")
private String fileSize;
@com.aliyun.core.annotation.NameInMap("FileURL")
private String fileURL;
@com.aliyun.core.annotation.NameInMap("Height")
private Integer height;
@com.aliyun.core.annotation.NameInMap("OriginalFileName")
private String originalFileName;
@com.aliyun.core.annotation.NameInMap("Width")
private Integer width;
private Mezzanine(Builder builder) {
this.fileSize = builder.fileSize;
this.fileURL = builder.fileURL;
this.height = builder.height;
this.originalFileName = builder.originalFileName;
this.width = builder.width;
}
public static Builder builder() {
return new Builder();
}
public static Mezzanine create() {
return builder().build();
}
/**
* @return fileSize
*/
public String getFileSize() {
return this.fileSize;
}
/**
* @return fileURL
*/
public String getFileURL() {
return this.fileURL;
}
/**
* @return height
*/
public Integer getHeight() {
return this.height;
}
/**
* @return originalFileName
*/
public String getOriginalFileName() {
return this.originalFileName;
}
/**
* @return width
*/
public Integer getWidth() {
return this.width;
}
public static final class Builder {
private String fileSize;
private String fileURL;
private Integer height;
private String originalFileName;
private Integer width;
private Builder() {
}
private Builder(Mezzanine model) {
this.fileSize = model.fileSize;
this.fileURL = model.fileURL;
this.height = model.height;
this.originalFileName = model.originalFileName;
this.width = model.width;
}
/**
* <p>The size of the file to be uploaded. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>8932</p>
*/
public Builder fileSize(String fileSize) {
this.fileSize = fileSize;
return this;
}
/**
* <p>The OSS URL of the image file.</p>
*
* <strong>example:</strong>
* <p><a href="https://outin-bfefbb*****163e1c7426.oss-cn-XXXXXXXX.aliyuncs.com/image/default/5E84CD536*****D4DAD.png?Expires=1590982353&OSSAccessKeyId=*****&Signature=ALPET74o*****c%3D">https://outin-bfefbb*****163e1c7426.oss-cn-XXXXXXXX.aliyuncs.com/image/default/5E84CD536*****D4DAD.png?Expires=1590982353&OSSAccessKeyId=*****&Signature=ALPET74o*****c%3D</a></p>
*/
public Builder fileURL(String fileURL) {
this.fileURL = fileURL;
return this;
}
/**
* <p>The height of the image. Unit: pixels.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder height(Integer height) {
this.height = height;
return this;
}
/**
* <p>The URL of the source file.</p>
*
* <strong>example:</strong>
* <p>****.gif</p>
*/
public Builder originalFileName(String originalFileName) {
this.originalFileName = originalFileName;
return this;
}
/**
* <p>The width of the image. Unit: pixels.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder width(Integer width) {
this.width = width;
return this;
}
public Mezzanine build() {
return new Mezzanine(this);
}
}
}
/**
*
* {@link GetImageInfosResponseBody} extends {@link TeaModel}
*
* <p>GetImageInfosResponseBody</p>
*/
public static class ImageInfo 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("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("ImageId")
private String imageId;
@com.aliyun.core.annotation.NameInMap("ImageType")
private String imageType;
@com.aliyun.core.annotation.NameInMap("Mezzanine")
private Mezzanine mezzanine;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("StorageLocation")
private String storageLocation;
@com.aliyun.core.annotation.NameInMap("Tags")
private String tags;
@com.aliyun.core.annotation.NameInMap("Title")
private String title;
@com.aliyun.core.annotation.NameInMap("URL")
private String URL;
private ImageInfo(Builder builder) {
this.appId = builder.appId;
this.cateId = builder.cateId;
this.cateName = builder.cateName;
this.creationTime = builder.creationTime;
this.description = builder.description;
this.imageId = builder.imageId;
this.imageType = builder.imageType;
this.mezzanine = builder.mezzanine;
this.status = builder.status;
this.storageLocation = builder.storageLocation;
this.tags = builder.tags;
this.title = builder.title;
this.URL = builder.URL;
}
public static Builder builder() {
return new Builder();
}
public static ImageInfo 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 creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return imageId
*/
public String getImageId() {
return this.imageId;
}
/**
* @return imageType
*/
public String getImageType() {
return this.imageType;
}
/**
* @return mezzanine
*/
public Mezzanine getMezzanine() {
return this.mezzanine;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @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 URL
*/
public String getURL() {
return this.URL;
}
public static final class Builder {
private String appId;
private Long cateId;
private String cateName;
private String creationTime;
private String description;
private String imageId;
private String imageType;
private Mezzanine mezzanine;
private String status;
private String storageLocation;
private String tags;
private String title;
private String URL;
private Builder() {
}
private Builder(ImageInfo model) {
this.appId = model.appId;
this.cateId = model.cateId;
this.cateName = model.cateName;
this.creationTime = model.creationTime;
this.description = model.description;
this.imageId = model.imageId;
this.imageType = model.imageType;
this.mezzanine = model.mezzanine;
this.status = model.status;
this.storageLocation = model.storageLocation;
this.tags = model.tags;
this.title = model.title;
this.URL = model.URL;
}
/**
* <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>254766071</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 time when the image 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-21T02:37:23Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The description of the image.</p>
*
* <strong>example:</strong>
* <p>Test description</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The ID of the image.</p>
*
* <strong>example:</strong>
* <p>bbc65bba53f9*****ed90de118a7849</p>
*/
public Builder imageId(String imageId) {
this.imageId = imageId;
return this;
}
/**
* <p>The type of the image. Valid values:</p>
* <ul>
* <li><strong>default</strong>: regular images</li>
* <li><strong>cover</strong>: video thumbnail</li>
* </ul>
*
* <strong>example:</strong>
* <p>NormalSnapshot</p>
*/
public Builder imageType(String imageType) {
this.imageType = imageType;
return this;
}
/**
* <p>The source information about the image.</p>
*/
public Builder mezzanine(Mezzanine mezzanine) {
this.mezzanine = mezzanine;
return this;
}
/**
* <p>The status of the image file. Valid values:</p>
* <ul>
* <li><strong>Uploading</strong>: The image is being uploaded. This is the initial status.</li>
* <li><strong>Normal</strong>: The image is uploaded.</li>
* <li><strong>UploadFail</strong>: The image fails to be uploaded.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Uploading</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The bucket in which the image is stored.</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 image. Multiple tags are separated by commas (,).</p>
*
* <strong>example:</strong>
* <p>tag1,tag2,tag3</p>
*/
public Builder tags(String tags) {
this.tags = tags;
return this;
}
/**
* <p>The title of the image.</p>
*
* <strong>example:</strong>
* <p>this is a sample</p>
*/
public Builder title(String title) {
this.title = title;
return this;
}
/**
* <p>The image URL. If a domain name for CDN is specified, a CDN URL is returned. Otherwise, an OSS URL is returned.</p>
*
* <strong>example:</strong>
* <p><a href="http://example.aliyundoc.com/image/default/****.gif?auth_key=">http://example.aliyundoc.com/image/default/****.gif?auth_key=</a>****</p>
*/
public Builder URL(String URL) {
this.URL = URL;
return this;
}
public ImageInfo build() {
return new ImageInfo(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/GetJobDetailRequest.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 GetJobDetailRequest} extends {@link RequestModel}
*
* <p>GetJobDetailRequest</p>
*/
public class GetJobDetailRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("JobId")
@com.aliyun.core.annotation.Validation(required = true)
private String jobId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("JobType")
@com.aliyun.core.annotation.Validation(required = true)
private String jobType;
private GetJobDetailRequest(Builder builder) {
super(builder);
this.jobId = builder.jobId;
this.jobType = builder.jobType;
}
public static Builder builder() {
return new Builder();
}
public static GetJobDetailRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
/**
* @return jobType
*/
public String getJobType() {
return this.jobType;
}
public static final class Builder extends Request.Builder<GetJobDetailRequest, Builder> {
private String jobId;
private String jobType;
private Builder() {
super();
}
private Builder(GetJobDetailRequest request) {
super(request);
this.jobId = request.jobId;
this.jobType = request.jobType;
}
/**
* <p>The ID of the task.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>5c9dff***************59d50a967f5</p>
*/
public Builder jobId(String jobId) {
this.putQueryParameter("JobId", jobId);
this.jobId = jobId;
return this;
}
/**
* <p>The task type. Valid values:</p>
* <ul>
* <li>transcode</li>
* <li>snapshot</li>
* <li>ai</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>transcode</p>
*/
public Builder jobType(String jobType) {
this.putQueryParameter("JobType", jobType);
this.jobType = jobType;
return this;
}
@Override
public GetJobDetailRequest build() {
return new GetJobDetailRequest(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/GetJobDetailResponse.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 GetJobDetailResponse} extends {@link TeaModel}
*
* <p>GetJobDetailResponse</p>
*/
public class GetJobDetailResponse 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 GetJobDetailResponseBody body;
private GetJobDetailResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetJobDetailResponse 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 GetJobDetailResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetJobDetailResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetJobDetailResponseBody body);
@Override
GetJobDetailResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetJobDetailResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetJobDetailResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetJobDetailResponse 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(GetJobDetailResponseBody body) {
this.body = body;
return this;
}
@Override
public GetJobDetailResponse build() {
return new GetJobDetailResponse(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/GetJobDetailResponseBody.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 GetJobDetailResponseBody} extends {@link TeaModel}
*
* <p>GetJobDetailResponseBody</p>
*/
public class GetJobDetailResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AIJobDetail")
private AIJobDetail AIJobDetail;
@com.aliyun.core.annotation.NameInMap("JobType")
private String jobType;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SnapshotJobDetail")
private SnapshotJobDetail snapshotJobDetail;
@com.aliyun.core.annotation.NameInMap("TranscodeJobDetail")
private TranscodeJobDetail transcodeJobDetail;
@com.aliyun.core.annotation.NameInMap("WorkflowTaskDetail")
private WorkflowTaskDetail workflowTaskDetail;
private GetJobDetailResponseBody(Builder builder) {
this.AIJobDetail = builder.AIJobDetail;
this.jobType = builder.jobType;
this.requestId = builder.requestId;
this.snapshotJobDetail = builder.snapshotJobDetail;
this.transcodeJobDetail = builder.transcodeJobDetail;
this.workflowTaskDetail = builder.workflowTaskDetail;
}
public static Builder builder() {
return new Builder();
}
public static GetJobDetailResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return AIJobDetail
*/
public AIJobDetail getAIJobDetail() {
return this.AIJobDetail;
}
/**
* @return jobType
*/
public String getJobType() {
return this.jobType;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return snapshotJobDetail
*/
public SnapshotJobDetail getSnapshotJobDetail() {
return this.snapshotJobDetail;
}
/**
* @return transcodeJobDetail
*/
public TranscodeJobDetail getTranscodeJobDetail() {
return this.transcodeJobDetail;
}
/**
* @return workflowTaskDetail
*/
public WorkflowTaskDetail getWorkflowTaskDetail() {
return this.workflowTaskDetail;
}
public static final class Builder {
private AIJobDetail AIJobDetail;
private String jobType;
private String requestId;
private SnapshotJobDetail snapshotJobDetail;
private TranscodeJobDetail transcodeJobDetail;
private WorkflowTaskDetail workflowTaskDetail;
private Builder() {
}
private Builder(GetJobDetailResponseBody model) {
this.AIJobDetail = model.AIJobDetail;
this.jobType = model.jobType;
this.requestId = model.requestId;
this.snapshotJobDetail = model.snapshotJobDetail;
this.transcodeJobDetail = model.transcodeJobDetail;
this.workflowTaskDetail = model.workflowTaskDetail;
}
/**
* <p>The details of the AI task. This parameter takes effect only when the TaskType parameter is set to AI.</p>
*/
public Builder AIJobDetail(AIJobDetail AIJobDetail) {
this.AIJobDetail = AIJobDetail;
return this;
}
/**
* <p>The type of the task. Valid values:</p>
*
* <strong>example:</strong>
* <p>transcode</p>
*/
public Builder jobType(String jobType) {
this.jobType = jobType;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>6708D849-F109-1A6C-AC91-************</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The details of the snapshot task. This parameter takes effect only when the jobType parameter is set to Snapshot.</p>
*/
public Builder snapshotJobDetail(SnapshotJobDetail snapshotJobDetail) {
this.snapshotJobDetail = snapshotJobDetail;
return this;
}
/**
* <p>The details of the transcoding task. This parameter takes effect only when the jobType parameter is set to Transcode.</p>
*/
public Builder transcodeJobDetail(TranscodeJobDetail transcodeJobDetail) {
this.transcodeJobDetail = transcodeJobDetail;
return this;
}
/**
* WorkflowTaskDetail.
*/
public Builder workflowTaskDetail(WorkflowTaskDetail workflowTaskDetail) {
this.workflowTaskDetail = workflowTaskDetail;
return this;
}
public GetJobDetailResponseBody build() {
return new GetJobDetailResponseBody(this);
}
}
/**
*
* {@link GetJobDetailResponseBody} extends {@link TeaModel}
*
* <p>GetJobDetailResponseBody</p>
*/
public static class AIJobDetail extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CompleteTime")
private String completeTime;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("JobId")
private String jobId;
@com.aliyun.core.annotation.NameInMap("JobType")
private String jobType;
@com.aliyun.core.annotation.NameInMap("MediaId")
private String mediaId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("TemplateConfig")
private String templateConfig;
@com.aliyun.core.annotation.NameInMap("Trigger")
private String trigger;
@com.aliyun.core.annotation.NameInMap("UserId")
private Long userId;
private AIJobDetail(Builder builder) {
this.completeTime = builder.completeTime;
this.createTime = builder.createTime;
this.jobId = builder.jobId;
this.jobType = builder.jobType;
this.mediaId = builder.mediaId;
this.status = builder.status;
this.templateConfig = builder.templateConfig;
this.trigger = builder.trigger;
this.userId = builder.userId;
}
public static Builder builder() {
return new Builder();
}
public static AIJobDetail create() {
return builder().build();
}
/**
* @return completeTime
*/
public String getCompleteTime() {
return this.completeTime;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
/**
* @return jobType
*/
public String getJobType() {
return this.jobType;
}
/**
* @return mediaId
*/
public String getMediaId() {
return this.mediaId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return templateConfig
*/
public String getTemplateConfig() {
return this.templateConfig;
}
/**
* @return trigger
*/
public String getTrigger() {
return this.trigger;
}
/**
* @return userId
*/
public Long getUserId() {
return this.userId;
}
public static final class Builder {
private String completeTime;
private String createTime;
private String jobId;
private String jobType;
private String mediaId;
private String status;
private String templateConfig;
private String trigger;
private Long userId;
private Builder() {
}
private Builder(AIJobDetail model) {
this.completeTime = model.completeTime;
this.createTime = model.createTime;
this.jobId = model.jobId;
this.jobType = model.jobType;
this.mediaId = model.mediaId;
this.status = model.status;
this.templateConfig = model.templateConfig;
this.trigger = model.trigger;
this.userId = model.userId;
}
/**
* <p>The end time of the task.</p>
*
* <strong>example:</strong>
* <p>2024-10-14T07:39:46Z</p>
*/
public Builder completeTime(String completeTime) {
this.completeTime = completeTime;
return this;
}
/**
* <p>The time when the task 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>2024-10-14T07:39:25Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The ID of the task.</p>
*
* <strong>example:</strong>
* <p>5c9dff751ba**********59d50a967f5</p>
*/
public Builder jobId(String jobId) {
this.jobId = jobId;
return this;
}
/**
* <p>The type of the AI task.</p>
*
* <strong>example:</strong>
* <p>AIVideoCensor</p>
*/
public Builder jobType(String jobType) {
this.jobType = jobType;
return this;
}
/**
* <p>The ID of the media asset.</p>
*
* <strong>example:</strong>
* <p>30e5d7**********bd900764de7c0102</p>
*/
public Builder mediaId(String mediaId) {
this.mediaId = mediaId;
return this;
}
/**
* <p>The status of the task. Valid values:</p>
* <ul>
* <li>reserved</li>
* <li>init</li>
* <li>success</li>
* <li>fail</li>
* <li>processing</li>
* <li>analysing</li>
* </ul>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The template configuration.</p>
*
* <strong>example:</strong>
* <p>{"AuditRange":["video","image-cover","text-title"],"AuditContent":["screen"],"AuditItem":["terrorism","porn"],"AuditAutoBlock":"no"}</p>
*/
public Builder templateConfig(String templateConfig) {
this.templateConfig = templateConfig;
return this;
}
/**
* <p>The trigger mode. Valid values:</p>
* <ul>
* <li>Auto</li>
* <li>Manual</li>
* </ul>
*
* <strong>example:</strong>
* <p>Auto</p>
*/
public Builder trigger(String trigger) {
this.trigger = trigger;
return this;
}
/**
* <p>The ID of the user who submitted the task.</p>
*
* <strong>example:</strong>
* <p>139109*****84930</p>
*/
public Builder userId(Long userId) {
this.userId = userId;
return this;
}
public AIJobDetail build() {
return new AIJobDetail(this);
}
}
}
/**
*
* {@link GetJobDetailResponseBody} extends {@link TeaModel}
*
* <p>GetJobDetailResponseBody</p>
*/
public static class SnapshotJobDetail extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CompleteTime")
private String completeTime;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("JobId")
private String jobId;
@com.aliyun.core.annotation.NameInMap("NormalConfig")
private String normalConfig;
@com.aliyun.core.annotation.NameInMap("SpriteConfig")
private String spriteConfig;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Trigger")
private String trigger;
@com.aliyun.core.annotation.NameInMap("UserId")
private Long userId;
@com.aliyun.core.annotation.NameInMap("VideoId")
private String videoId;
private SnapshotJobDetail(Builder builder) {
this.completeTime = builder.completeTime;
this.createTime = builder.createTime;
this.jobId = builder.jobId;
this.normalConfig = builder.normalConfig;
this.spriteConfig = builder.spriteConfig;
this.status = builder.status;
this.trigger = builder.trigger;
this.userId = builder.userId;
this.videoId = builder.videoId;
}
public static Builder builder() {
return new Builder();
}
public static SnapshotJobDetail create() {
return builder().build();
}
/**
* @return completeTime
*/
public String getCompleteTime() {
return this.completeTime;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
/**
* @return normalConfig
*/
public String getNormalConfig() {
return this.normalConfig;
}
/**
* @return spriteConfig
*/
public String getSpriteConfig() {
return this.spriteConfig;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return trigger
*/
public String getTrigger() {
return this.trigger;
}
/**
* @return userId
*/
public Long getUserId() {
return this.userId;
}
/**
* @return videoId
*/
public String getVideoId() {
return this.videoId;
}
public static final class Builder {
private String completeTime;
private String createTime;
private String jobId;
private String normalConfig;
private String spriteConfig;
private String status;
private String trigger;
private Long userId;
private String videoId;
private Builder() {
}
private Builder(SnapshotJobDetail model) {
this.completeTime = model.completeTime;
this.createTime = model.createTime;
this.jobId = model.jobId;
this.normalConfig = model.normalConfig;
this.spriteConfig = model.spriteConfig;
this.status = model.status;
this.trigger = model.trigger;
this.userId = model.userId;
this.videoId = model.videoId;
}
/**
* <p>The time when the task was complete.</p>
*
* <strong>example:</strong>
* <p>2024-10-14T07:39:45Z</p>
*/
public Builder completeTime(String completeTime) {
this.completeTime = completeTime;
return this;
}
/**
* <p>The time when the task 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>2024-10-14T07:39:25Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The ID of the task.</p>
*
* <strong>example:</strong>
* <p>63df12s0**********4hdq249t82kr91</p>
*/
public Builder jobId(String jobId) {
this.jobId = jobId;
return this;
}
/**
* <p>Configuration of normal snapshots.</p>
*
* <strong>example:</strong>
* <p>{"inl":0,"num":32,"tm":5,"wd":"352","ft":"normal","hg":"640"}</p>
*/
public Builder normalConfig(String normalConfig) {
this.normalConfig = normalConfig;
return this;
}
/**
* <p>The sprite configuration.</p>
*
* <strong>example:</strong>
* <p>{"pad":"0","lines":"10","mgin":"0","cols":"10","ikcp":"false","hg":"68"}</p>
*/
public Builder spriteConfig(String spriteConfig) {
this.spriteConfig = spriteConfig;
return this;
}
/**
* <p>The status of the task. Valid values:</p>
* <ul>
* <li>Processing</li>
* <li>Fail</li>
* <li>Success</li>
* </ul>
*
* <strong>example:</strong>
* <p>Success</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The trigger mode. Valid values:</p>
* <ul>
* <li>Auto</li>
* <li>Manual</li>
* </ul>
*
* <strong>example:</strong>
* <p>Auto</p>
*/
public Builder trigger(String trigger) {
this.trigger = trigger;
return this;
}
/**
* <p>The ID of the user who submitted the task.</p>
*
* <strong>example:</strong>
* <p>139109*****84930</p>
*/
public Builder userId(Long userId) {
this.userId = userId;
return this;
}
/**
* <p>The ID of the media asset.</p>
*
* <strong>example:</strong>
* <p>30e5d7**********bd900764de7c0102</p>
*/
public Builder videoId(String videoId) {
this.videoId = videoId;
return this;
}
public SnapshotJobDetail build() {
return new SnapshotJobDetail(this);
}
}
}
/**
*
* {@link GetJobDetailResponseBody} extends {@link TeaModel}
*
* <p>GetJobDetailResponseBody</p>
*/
public static class TranscodeJobDetail extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CompleteTime")
private String completeTime;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("Definition")
private String definition;
@com.aliyun.core.annotation.NameInMap("JobId")
private String jobId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("TemplateId")
private String templateId;
@com.aliyun.core.annotation.NameInMap("UserId")
private Long userId;
@com.aliyun.core.annotation.NameInMap("VideoId")
private String videoId;
private TranscodeJobDetail(Builder builder) {
this.completeTime = builder.completeTime;
this.createTime = builder.createTime;
this.definition = builder.definition;
this.jobId = builder.jobId;
this.status = builder.status;
this.templateId = builder.templateId;
this.userId = builder.userId;
this.videoId = builder.videoId;
}
public static Builder builder() {
return new Builder();
}
public static TranscodeJobDetail create() {
return builder().build();
}
/**
* @return completeTime
*/
public String getCompleteTime() {
return this.completeTime;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return definition
*/
public String getDefinition() {
return this.definition;
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return templateId
*/
public String getTemplateId() {
return this.templateId;
}
/**
* @return userId
*/
public Long getUserId() {
return this.userId;
}
/**
* @return videoId
*/
public String getVideoId() {
return this.videoId;
}
public static final class Builder {
private String completeTime;
private String createTime;
private String definition;
private String jobId;
private String status;
private String templateId;
private Long userId;
private String videoId;
private Builder() {
}
private Builder(TranscodeJobDetail model) {
this.completeTime = model.completeTime;
this.createTime = model.createTime;
this.definition = model.definition;
this.jobId = model.jobId;
this.status = model.status;
this.templateId = model.templateId;
this.userId = model.userId;
this.videoId = model.videoId;
}
/**
* <p>The time when the task was complete.</p>
*
* <strong>example:</strong>
* <p>2024-10-14T07:39:34Z</p>
*/
public Builder completeTime(String completeTime) {
this.completeTime = completeTime;
return this;
}
/**
* <p>The time when the task 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>2024-10-14T07:39:25Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The definition.</p>
*
* <strong>example:</strong>
* <p>HD</p>
*/
public Builder definition(String definition) {
this.definition = definition;
return this;
}
/**
* <p>The ID of the task.</p>
*
* <strong>example:</strong>
* <p>2dc1634e**********3f1d22d1a0174e</p>
*/
public Builder jobId(String jobId) {
this.jobId = jobId;
return this;
}
/**
* <p>The status of the task. Valid values:</p>
* <ul>
* <li>Submitted</li>
* <li>Transcoding</li>
* <li>TranscodeSuccess</li>
* <li>TranscodeFail</li>
* <li>TranscodeCancelled</li>
* </ul>
*
* <strong>example:</strong>
* <p>TranscodeSuccess</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The ID of the template.</p>
*
* <strong>example:</strong>
* <p>dbfaaec9e**********bf0b81219244c</p>
*/
public Builder templateId(String templateId) {
this.templateId = templateId;
return this;
}
/**
* <p>The ID of the user who submitted the task.</p>
*
* <strong>example:</strong>
* <p>139109*****84930</p>
*/
public Builder userId(Long userId) {
this.userId = userId;
return this;
}
/**
* <p>The ID of the media asset.</p>
*
* <strong>example:</strong>
* <p>30e5d7**********bd900764de7c0102</p>
*/
public Builder videoId(String videoId) {
this.videoId = videoId;
return this;
}
public TranscodeJobDetail build() {
return new TranscodeJobDetail(this);
}
}
}
/**
*
* {@link GetJobDetailResponseBody} extends {@link TeaModel}
*
* <p>GetJobDetailResponseBody</p>
*/
public static class Workflow extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("ModifiedTime")
private String modifiedTime;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("WorkflowId")
private String workflowId;
private Workflow(Builder builder) {
this.appId = builder.appId;
this.createTime = builder.createTime;
this.modifiedTime = builder.modifiedTime;
this.name = builder.name;
this.status = builder.status;
this.type = builder.type;
this.workflowId = builder.workflowId;
}
public static Builder builder() {
return new Builder();
}
public static Workflow create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return modifiedTime
*/
public String getModifiedTime() {
return this.modifiedTime;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return workflowId
*/
public String getWorkflowId() {
return this.workflowId;
}
public static final class Builder {
private String appId;
private String createTime;
private String modifiedTime;
private String name;
private String status;
private String type;
private String workflowId;
private Builder() {
}
private Builder(Workflow model) {
this.appId = model.appId;
this.createTime = model.createTime;
this.modifiedTime = model.modifiedTime;
this.name = model.name;
this.status = model.status;
this.type = model.type;
this.workflowId = model.workflowId;
}
/**
* AppId.
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* <p>The time when the task 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>2024-10-14T07:39:25Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* ModifiedTime.
*/
public Builder modifiedTime(String modifiedTime) {
this.modifiedTime = modifiedTime;
return this;
}
/**
* Name.
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The status of the task. Valid values:</p>
* <ul>
* <li>Submitted</li>
* <li>Transcoding</li>
* <li>TranscodeSuccess</li>
* <li>TranscodeFail</li>
* <li>TranscodeCancelled</li>
* </ul>
*
* <strong>example:</strong>
* <p>TranscodeSuccess</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* Type.
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* WorkflowId.
*/
public Builder workflowId(String workflowId) {
this.workflowId = workflowId;
return this;
}
public Workflow build() {
return new Workflow(this);
}
}
}
/**
*
* {@link GetJobDetailResponseBody} extends {@link TeaModel}
*
* <p>GetJobDetailResponseBody</p>
*/
public static class WorkflowTaskDetail extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ActivityResults")
private String activityResults;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("FinishTime")
private String finishTime;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("TaskId")
private String taskId;
@com.aliyun.core.annotation.NameInMap("TaskInput")
private String taskInput;
@com.aliyun.core.annotation.NameInMap("UserData")
private String userData;
@com.aliyun.core.annotation.NameInMap("Workflow")
private Workflow workflow;
private WorkflowTaskDetail(Builder builder) {
this.activityResults = builder.activityResults;
this.createTime = builder.createTime;
this.finishTime = builder.finishTime;
this.status = builder.status;
this.taskId = builder.taskId;
this.taskInput = builder.taskInput;
this.userData = builder.userData;
this.workflow = builder.workflow;
}
public static Builder builder() {
return new Builder();
}
public static WorkflowTaskDetail create() {
return builder().build();
}
/**
* @return activityResults
*/
public String getActivityResults() {
return this.activityResults;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return finishTime
*/
public String getFinishTime() {
return this.finishTime;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return taskId
*/
public String getTaskId() {
return this.taskId;
}
/**
* @return taskInput
*/
public String getTaskInput() {
return this.taskInput;
}
/**
* @return userData
*/
public String getUserData() {
return this.userData;
}
/**
* @return workflow
*/
public Workflow getWorkflow() {
return this.workflow;
}
public static final class Builder {
private String activityResults;
private String createTime;
private String finishTime;
private String status;
private String taskId;
private String taskInput;
private String userData;
private Workflow workflow;
private Builder() {
}
private Builder(WorkflowTaskDetail model) {
this.activityResults = model.activityResults;
this.createTime = model.createTime;
this.finishTime = model.finishTime;
this.status = model.status;
this.taskId = model.taskId;
this.taskInput = model.taskInput;
this.userData = model.userData;
this.workflow = model.workflow;
}
/**
* ActivityResults.
*/
public Builder activityResults(String activityResults) {
this.activityResults = activityResults;
return this;
}
/**
* <p>The time when the task 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>2024-10-14T07:39:25Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* FinishTime.
*/
public Builder finishTime(String finishTime) {
this.finishTime = finishTime;
return this;
}
/**
* <p>The status of the task. Valid values:</p>
* <ul>
* <li>Submitted</li>
* <li>Transcoding</li>
* <li>TranscodeSuccess</li>
* <li>TranscodeFail</li>
* <li>TranscodeCancelled</li>
* </ul>
*
* <strong>example:</strong>
* <p>TranscodeSuccess</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* TaskId.
*/
public Builder taskId(String taskId) {
this.taskId = taskId;
return this;
}
/**
* TaskInput.
*/
public Builder taskInput(String taskInput) {
this.taskInput = taskInput;
return this;
}
/**
* UserData.
*/
public Builder userData(String userData) {
this.userData = userData;
return this;
}
/**
* Workflow.
*/
public Builder workflow(Workflow workflow) {
this.workflow = workflow;
return this;
}
public WorkflowTaskDetail build() {
return new WorkflowTaskDetail(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/GetMediaAuditAudioResultDetailRequest.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 GetMediaAuditAudioResultDetailRequest} extends {@link RequestModel}
*
* <p>GetMediaAuditAudioResultDetailRequest</p>
*/
public class GetMediaAuditAudioResultDetailRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MediaId")
@com.aliyun.core.annotation.Validation(required = true)
private String mediaId;
@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("PageNo")
private Integer pageNo;
@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 GetMediaAuditAudioResultDetailRequest(Builder builder) {
super(builder);
this.mediaId = builder.mediaId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNo = builder.pageNo;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static GetMediaAuditAudioResultDetailRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return mediaId
*/
public String getMediaId() {
return this.mediaId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public String getOwnerId() {
return this.ownerId;
}
/**
* @return pageNo
*/
public Integer getPageNo() {
return this.pageNo;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public String getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<GetMediaAuditAudioResultDetailRequest, Builder> {
private String mediaId;
private String ownerAccount;
private String ownerId;
private Integer pageNo;
private String resourceOwnerAccount;
private String resourceOwnerId;
private Builder() {
super();
}
private Builder(GetMediaAuditAudioResultDetailRequest request) {
super(request);
this.mediaId = request.mediaId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNo = request.pageNo;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The ID of the video. You can query the video ID by using the ApsaraVideo VOD console or calling the <a href="https://help.aliyun.com/document_detail/86044.html">SearchMedia</a> operation.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>93ab850b4f6f*****54b6e91d24d81d4</p>
*/
public Builder mediaId(String mediaId) {
this.putQueryParameter("MediaId", mediaId);
this.mediaId = mediaId;
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 number of the page to return. This parameter is optional. If you do not specify this parameter, all results are returned without pagination.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNo(Integer pageNo) {
this.putQueryParameter("PageNo", pageNo);
this.pageNo = pageNo;
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 GetMediaAuditAudioResultDetailRequest build() {
return new GetMediaAuditAudioResultDetailRequest(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/GetMediaAuditAudioResultDetailResponse.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 GetMediaAuditAudioResultDetailResponse} extends {@link TeaModel}
*
* <p>GetMediaAuditAudioResultDetailResponse</p>
*/
public class GetMediaAuditAudioResultDetailResponse 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 GetMediaAuditAudioResultDetailResponseBody body;
private GetMediaAuditAudioResultDetailResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetMediaAuditAudioResultDetailResponse 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 GetMediaAuditAudioResultDetailResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetMediaAuditAudioResultDetailResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetMediaAuditAudioResultDetailResponseBody body);
@Override
GetMediaAuditAudioResultDetailResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetMediaAuditAudioResultDetailResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetMediaAuditAudioResultDetailResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetMediaAuditAudioResultDetailResponse 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(GetMediaAuditAudioResultDetailResponseBody body) {
this.body = body;
return this;
}
@Override
public GetMediaAuditAudioResultDetailResponse build() {
return new GetMediaAuditAudioResultDetailResponse(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/GetMediaAuditAudioResultDetailResponseBody.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 GetMediaAuditAudioResultDetailResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditAudioResultDetailResponseBody</p>
*/
public class GetMediaAuditAudioResultDetailResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MediaAuditAudioResultDetail")
private MediaAuditAudioResultDetail mediaAuditAudioResultDetail;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetMediaAuditAudioResultDetailResponseBody(Builder builder) {
this.mediaAuditAudioResultDetail = builder.mediaAuditAudioResultDetail;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetMediaAuditAudioResultDetailResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return mediaAuditAudioResultDetail
*/
public MediaAuditAudioResultDetail getMediaAuditAudioResultDetail() {
return this.mediaAuditAudioResultDetail;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private MediaAuditAudioResultDetail mediaAuditAudioResultDetail;
private String requestId;
private Builder() {
}
private Builder(GetMediaAuditAudioResultDetailResponseBody model) {
this.mediaAuditAudioResultDetail = model.mediaAuditAudioResultDetail;
this.requestId = model.requestId;
}
/**
* <p>Details of review results.</p>
*/
public Builder mediaAuditAudioResultDetail(MediaAuditAudioResultDetail mediaAuditAudioResultDetail) {
this.mediaAuditAudioResultDetail = mediaAuditAudioResultDetail;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>CB7D7232-1AB2-40FE-B8D3-****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetMediaAuditAudioResultDetailResponseBody build() {
return new GetMediaAuditAudioResultDetailResponseBody(this);
}
}
/**
*
* {@link GetMediaAuditAudioResultDetailResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditAudioResultDetailResponseBody</p>
*/
public static class List extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EndTime")
private Long endTime;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
@com.aliyun.core.annotation.NameInMap("Text")
private String text;
private List(Builder builder) {
this.endTime = builder.endTime;
this.label = builder.label;
this.startTime = builder.startTime;
this.text = builder.text;
}
public static Builder builder() {
return new Builder();
}
public static List create() {
return builder().build();
}
/**
* @return endTime
*/
public Long getEndTime() {
return this.endTime;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
/**
* @return text
*/
public String getText() {
return this.text;
}
public static final class Builder {
private Long endTime;
private String label;
private Long startTime;
private String text;
private Builder() {
}
private Builder(List model) {
this.endTime = model.endTime;
this.label = model.label;
this.startTime = model.startTime;
this.text = model.text;
}
/**
* <p>The end time of the audio that failed the review. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder endTime(Long endTime) {
this.endTime = endTime;
return this;
}
/**
* <p>The review results. Valid values:</p>
* <ul>
* <li><strong>spam</strong></li>
* <li><strong>ad</strong></li>
* <li><strong>abuse</strong></li>
* <li><strong>flood</strong></li>
* <li><strong>contraband</strong></li>
* <li><strong>meaningless</strong></li>
* <li><strong>normal</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>abuse</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The start time of the audio that failed the review. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>8</p>
*/
public Builder startTime(Long startTime) {
this.startTime = startTime;
return this;
}
/**
* <p>The text that corresponds to the audio.</p>
*
* <strong>example:</strong>
* <p>beauty</p>
*/
public Builder text(String text) {
this.text = text;
return this;
}
public List build() {
return new List(this);
}
}
}
/**
*
* {@link GetMediaAuditAudioResultDetailResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditAudioResultDetailResponseBody</p>
*/
public static class MediaAuditAudioResultDetail extends TeaModel {
@com.aliyun.core.annotation.NameInMap("List")
private java.util.List<List> list;
@com.aliyun.core.annotation.NameInMap("PageTotal")
private Integer pageTotal;
@com.aliyun.core.annotation.NameInMap("Total")
private Integer total;
private MediaAuditAudioResultDetail(Builder builder) {
this.list = builder.list;
this.pageTotal = builder.pageTotal;
this.total = builder.total;
}
public static Builder builder() {
return new Builder();
}
public static MediaAuditAudioResultDetail create() {
return builder().build();
}
/**
* @return list
*/
public java.util.List<List> getList() {
return this.list;
}
/**
* @return pageTotal
*/
public Integer getPageTotal() {
return this.pageTotal;
}
/**
* @return total
*/
public Integer getTotal() {
return this.total;
}
public static final class Builder {
private java.util.List<List> list;
private Integer pageTotal;
private Integer total;
private Builder() {
}
private Builder(MediaAuditAudioResultDetail model) {
this.list = model.list;
this.pageTotal = model.pageTotal;
this.total = model.total;
}
/**
* <p>The list of results.</p>
*/
public Builder list(java.util.List<List> list) {
this.list = list;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageTotal(Integer pageTotal) {
this.pageTotal = pageTotal;
return this;
}
/**
* <p>The total number of pages returned.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder total(Integer total) {
this.total = total;
return this;
}
public MediaAuditAudioResultDetail build() {
return new MediaAuditAudioResultDetail(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/GetMediaAuditResultDetailRequest.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 GetMediaAuditResultDetailRequest} extends {@link RequestModel}
*
* <p>GetMediaAuditResultDetailRequest</p>
*/
public class GetMediaAuditResultDetailRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MediaId")
@com.aliyun.core.annotation.Validation(required = true)
private String mediaId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNo")
@com.aliyun.core.annotation.Validation(required = true)
private Integer pageNo;
private GetMediaAuditResultDetailRequest(Builder builder) {
super(builder);
this.mediaId = builder.mediaId;
this.pageNo = builder.pageNo;
}
public static Builder builder() {
return new Builder();
}
public static GetMediaAuditResultDetailRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return mediaId
*/
public String getMediaId() {
return this.mediaId;
}
/**
* @return pageNo
*/
public Integer getPageNo() {
return this.pageNo;
}
public static final class Builder extends Request.Builder<GetMediaAuditResultDetailRequest, Builder> {
private String mediaId;
private Integer pageNo;
private Builder() {
super();
}
private Builder(GetMediaAuditResultDetailRequest request) {
super(request);
this.mediaId = request.mediaId;
this.pageNo = request.pageNo;
}
/**
* <p>The ID of the video.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>93ab850b4f6f*****54b6e91d24d81d4</p>
*/
public Builder mediaId(String mediaId) {
this.putQueryParameter("MediaId", mediaId);
this.mediaId = mediaId;
return this;
}
/**
* <p>The page number. The default value is <strong>1</strong>. A maximum of <strong>20</strong> records can be returned on each page.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNo(Integer pageNo) {
this.putQueryParameter("PageNo", pageNo);
this.pageNo = pageNo;
return this;
}
@Override
public GetMediaAuditResultDetailRequest build() {
return new GetMediaAuditResultDetailRequest(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/GetMediaAuditResultDetailResponse.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 GetMediaAuditResultDetailResponse} extends {@link TeaModel}
*
* <p>GetMediaAuditResultDetailResponse</p>
*/
public class GetMediaAuditResultDetailResponse 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 GetMediaAuditResultDetailResponseBody body;
private GetMediaAuditResultDetailResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetMediaAuditResultDetailResponse 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 GetMediaAuditResultDetailResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetMediaAuditResultDetailResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetMediaAuditResultDetailResponseBody body);
@Override
GetMediaAuditResultDetailResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetMediaAuditResultDetailResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetMediaAuditResultDetailResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetMediaAuditResultDetailResponse 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(GetMediaAuditResultDetailResponseBody body) {
this.body = body;
return this;
}
@Override
public GetMediaAuditResultDetailResponse build() {
return new GetMediaAuditResultDetailResponse(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/GetMediaAuditResultDetailResponseBody.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 GetMediaAuditResultDetailResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultDetailResponseBody</p>
*/
public class GetMediaAuditResultDetailResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MediaAuditResultDetail")
private MediaAuditResultDetail mediaAuditResultDetail;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetMediaAuditResultDetailResponseBody(Builder builder) {
this.mediaAuditResultDetail = builder.mediaAuditResultDetail;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetMediaAuditResultDetailResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return mediaAuditResultDetail
*/
public MediaAuditResultDetail getMediaAuditResultDetail() {
return this.mediaAuditResultDetail;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private MediaAuditResultDetail mediaAuditResultDetail;
private String requestId;
private Builder() {
}
private Builder(GetMediaAuditResultDetailResponseBody model) {
this.mediaAuditResultDetail = model.mediaAuditResultDetail;
this.requestId = model.requestId;
}
/**
* <p>Details about review results.</p>
*/
public Builder mediaAuditResultDetail(MediaAuditResultDetail mediaAuditResultDetail) {
this.mediaAuditResultDetail = mediaAuditResultDetail;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>6438BD76-D523-46FC-956F-****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetMediaAuditResultDetailResponseBody build() {
return new GetMediaAuditResultDetailResponseBody(this);
}
}
/**
*
* {@link GetMediaAuditResultDetailResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultDetailResponseBody</p>
*/
public static class List extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AdLabel")
private String adLabel;
@com.aliyun.core.annotation.NameInMap("AdScore")
private String adScore;
@com.aliyun.core.annotation.NameInMap("LiveLabel")
private String liveLabel;
@com.aliyun.core.annotation.NameInMap("LiveScore")
private String liveScore;
@com.aliyun.core.annotation.NameInMap("LogoLabel")
private String logoLabel;
@com.aliyun.core.annotation.NameInMap("LogoScore")
private String logoScore;
@com.aliyun.core.annotation.NameInMap("PornLabel")
private String pornLabel;
@com.aliyun.core.annotation.NameInMap("PornScore")
private String pornScore;
@com.aliyun.core.annotation.NameInMap("TerrorismLabel")
private String terrorismLabel;
@com.aliyun.core.annotation.NameInMap("TerrorismScore")
private String terrorismScore;
@com.aliyun.core.annotation.NameInMap("Timestamp")
private String timestamp;
@com.aliyun.core.annotation.NameInMap("Url")
private String url;
private List(Builder builder) {
this.adLabel = builder.adLabel;
this.adScore = builder.adScore;
this.liveLabel = builder.liveLabel;
this.liveScore = builder.liveScore;
this.logoLabel = builder.logoLabel;
this.logoScore = builder.logoScore;
this.pornLabel = builder.pornLabel;
this.pornScore = builder.pornScore;
this.terrorismLabel = builder.terrorismLabel;
this.terrorismScore = builder.terrorismScore;
this.timestamp = builder.timestamp;
this.url = builder.url;
}
public static Builder builder() {
return new Builder();
}
public static List create() {
return builder().build();
}
/**
* @return adLabel
*/
public String getAdLabel() {
return this.adLabel;
}
/**
* @return adScore
*/
public String getAdScore() {
return this.adScore;
}
/**
* @return liveLabel
*/
public String getLiveLabel() {
return this.liveLabel;
}
/**
* @return liveScore
*/
public String getLiveScore() {
return this.liveScore;
}
/**
* @return logoLabel
*/
public String getLogoLabel() {
return this.logoLabel;
}
/**
* @return logoScore
*/
public String getLogoScore() {
return this.logoScore;
}
/**
* @return pornLabel
*/
public String getPornLabel() {
return this.pornLabel;
}
/**
* @return pornScore
*/
public String getPornScore() {
return this.pornScore;
}
/**
* @return terrorismLabel
*/
public String getTerrorismLabel() {
return this.terrorismLabel;
}
/**
* @return terrorismScore
*/
public String getTerrorismScore() {
return this.terrorismScore;
}
/**
* @return timestamp
*/
public String getTimestamp() {
return this.timestamp;
}
/**
* @return url
*/
public String getUrl() {
return this.url;
}
public static final class Builder {
private String adLabel;
private String adScore;
private String liveLabel;
private String liveScore;
private String logoLabel;
private String logoScore;
private String pornLabel;
private String pornScore;
private String terrorismLabel;
private String terrorismScore;
private String timestamp;
private String url;
private Builder() {
}
private Builder(List model) {
this.adLabel = model.adLabel;
this.adScore = model.adScore;
this.liveLabel = model.liveLabel;
this.liveScore = model.liveScore;
this.logoLabel = model.logoLabel;
this.logoScore = model.logoScore;
this.pornLabel = model.pornLabel;
this.pornScore = model.pornScore;
this.terrorismLabel = model.terrorismLabel;
this.terrorismScore = model.terrorismScore;
this.timestamp = model.timestamp;
this.url = model.url;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>normal</strong>: normal content.</li>
* <li><strong>ad</strong>: other ads.</li>
* <li><strong>politics</strong>: political content in text.</li>
* <li><strong>porn</strong>: pornographic content in text.</li>
* <li><strong>abuse</strong>: verbal abuse in text.</li>
* <li><strong>terrorism</strong>: terrorist content in text.</li>
* <li><strong>contraband</strong>: prohibited content in text.</li>
* <li><strong>spam</strong>: spam content in text.</li>
* <li><strong>npx</strong>: illegal ad</li>
* <li><strong>qrcode</strong>: QR code.</li>
* <li><strong>programCode</strong>: mini program code.</li>
* </ul>
*
* <strong>example:</strong>
* <p>normal</p>
*/
public Builder adLabel(String adLabel) {
this.adLabel = adLabel;
return this;
}
/**
* <p>The score of the video snapshot in the ad review result. Valid values: <code>[0,100]</code>. The value is rounded down to 10 decimal places. The score is representative of the confidence.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder adScore(String adScore) {
this.adScore = adScore;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>normal</strong>: normal content.</li>
* <li><strong>meaningless</strong>: meaningless content, such as a black or white screen.</li>
* <li><strong>PIP</strong>: picture-in-picture.</li>
* <li><strong>smoking</strong>: smoking.</li>
* <li><strong>drivelive</strong>: live broadcasting in a running vehicle.</li>
* </ul>
*
* <strong>example:</strong>
* <p>normal</p>
*/
public Builder liveLabel(String liveLabel) {
this.liveLabel = liveLabel;
return this;
}
/**
* <p>The score of the video snapshot in the undesirable content review result. Valid values: <code>[0,100]</code>. The value is rounded down to 10 decimal places. The score is representative of the confidence.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder liveScore(String liveScore) {
this.liveScore = liveScore;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>normal</strong>: normal content.</li>
* <li><strong>TV</strong>: controlled TV station logo.</li>
* <li><strong>trademark</strong>: trademark.</li>
* </ul>
*
* <strong>example:</strong>
* <p>normal</p>
*/
public Builder logoLabel(String logoLabel) {
this.logoLabel = logoLabel;
return this;
}
/**
* <p>The score of the video snapshot in the logo review result. Valid values: <code>[0,100]</code>. The value is rounded down to 10 decimal places. The score is representative of the confidence.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder logoScore(String logoScore) {
this.logoScore = logoScore;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>normal</strong></li>
* <li><strong>porn</strong></li>
* <li><strong>sexy</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>normal</p>
*/
public Builder pornLabel(String pornLabel) {
this.pornLabel = pornLabel;
return this;
}
/**
* <p>The score of the video snapshot in the pornographic content review result. Valid values: <code>[0,100]</code>. The value is rounded down to 10 decimal places. The score is representative of the confidence.</p>
*
* <strong>example:</strong>
* <p>100.00</p>
*/
public Builder pornScore(String pornScore) {
this.pornScore = pornScore;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>normal</strong></li>
* <li><strong>bloody</strong></li>
* <li><strong>explosion</strong></li>
* <li><strong>outfit</strong></li>
* <li><strong>logo</strong></li>
* <li><strong>weapon</strong></li>
* <li><strong>politics</strong></li>
* <li><strong>violence</strong></li>
* <li><strong>crowd</strong></li>
* <li><strong>parade</strong></li>
* <li><strong>carcrash</strong></li>
* <li><strong>flag</strong></li>
* <li><strong>location</strong></li>
* <li><strong>others</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>normal</p>
*/
public Builder terrorismLabel(String terrorismLabel) {
this.terrorismLabel = terrorismLabel;
return this;
}
/**
* <p>The score of the video snapshot in the terrorist content review result. Valid values: <code>[0,100]</code>. The value is rounded down to 10 decimal places. The score is representative of the confidence.</p>
*
* <strong>example:</strong>
* <p>100.00</p>
*/
public Builder terrorismScore(String terrorismScore) {
this.terrorismScore = terrorismScore;
return this;
}
/**
* <p>The timestamp of the snapshot in the video. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>3005</p>
*/
public Builder timestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
/**
* <p>The URL of the video snapshot.</p>
*
* <strong>example:</strong>
* <p><a href="http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg">http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg</a></p>
*/
public Builder url(String url) {
this.url = url;
return this;
}
public List build() {
return new List(this);
}
}
}
/**
*
* {@link GetMediaAuditResultDetailResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultDetailResponseBody</p>
*/
public static class MediaAuditResultDetail extends TeaModel {
@com.aliyun.core.annotation.NameInMap("List")
private java.util.List<List> list;
@com.aliyun.core.annotation.NameInMap("Total")
private Integer total;
private MediaAuditResultDetail(Builder builder) {
this.list = builder.list;
this.total = builder.total;
}
public static Builder builder() {
return new Builder();
}
public static MediaAuditResultDetail create() {
return builder().build();
}
/**
* @return list
*/
public java.util.List<List> getList() {
return this.list;
}
/**
* @return total
*/
public Integer getTotal() {
return this.total;
}
public static final class Builder {
private java.util.List<List> list;
private Integer total;
private Builder() {
}
private Builder(MediaAuditResultDetail model) {
this.list = model.list;
this.total = model.total;
}
/**
* <p>The review results returned.</p>
*/
public Builder list(java.util.List<List> list) {
this.list = list;
return this;
}
/**
* <p>The total number of snapshots returned.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder total(Integer total) {
this.total = total;
return this;
}
public MediaAuditResultDetail build() {
return new MediaAuditResultDetail(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/GetMediaAuditResultRequest.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 GetMediaAuditResultRequest} extends {@link RequestModel}
*
* <p>GetMediaAuditResultRequest</p>
*/
public class GetMediaAuditResultRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MediaId")
@com.aliyun.core.annotation.Validation(required = true)
private String mediaId;
private GetMediaAuditResultRequest(Builder builder) {
super(builder);
this.mediaId = builder.mediaId;
}
public static Builder builder() {
return new Builder();
}
public static GetMediaAuditResultRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return mediaId
*/
public String getMediaId() {
return this.mediaId;
}
public static final class Builder extends Request.Builder<GetMediaAuditResultRequest, Builder> {
private String mediaId;
private Builder() {
super();
}
private Builder(GetMediaAuditResultRequest request) {
super(request);
this.mediaId = request.mediaId;
}
/**
* <p>The ID of the video or image.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>93ab850b4f6f*****54b6e91d24d81d4</p>
*/
public Builder mediaId(String mediaId) {
this.putQueryParameter("MediaId", mediaId);
this.mediaId = mediaId;
return this;
}
@Override
public GetMediaAuditResultRequest build() {
return new GetMediaAuditResultRequest(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/GetMediaAuditResultResponse.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 GetMediaAuditResultResponse} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponse</p>
*/
public class GetMediaAuditResultResponse 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 GetMediaAuditResultResponseBody body;
private GetMediaAuditResultResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetMediaAuditResultResponse 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 GetMediaAuditResultResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetMediaAuditResultResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetMediaAuditResultResponseBody body);
@Override
GetMediaAuditResultResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetMediaAuditResultResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetMediaAuditResultResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetMediaAuditResultResponse 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(GetMediaAuditResultResponseBody body) {
this.body = body;
return this;
}
@Override
public GetMediaAuditResultResponse build() {
return new GetMediaAuditResultResponse(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/GetMediaAuditResultResponseBody.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 GetMediaAuditResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponseBody</p>
*/
public class GetMediaAuditResultResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MediaAuditResult")
private MediaAuditResult mediaAuditResult;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetMediaAuditResultResponseBody(Builder builder) {
this.mediaAuditResult = builder.mediaAuditResult;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetMediaAuditResultResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return mediaAuditResult
*/
public MediaAuditResult getMediaAuditResult() {
return this.mediaAuditResult;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private MediaAuditResult mediaAuditResult;
private String requestId;
private Builder() {
}
private Builder(GetMediaAuditResultResponseBody model) {
this.mediaAuditResult = model.mediaAuditResult;
this.requestId = model.requestId;
}
/**
* <p>The review results.</p>
*/
public Builder mediaAuditResult(MediaAuditResult mediaAuditResult) {
this.mediaAuditResult = mediaAuditResult;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>CB7D7232-1AB2-40FE-B8D5-****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetMediaAuditResultResponseBody build() {
return new GetMediaAuditResultResponseBody(this);
}
}
/**
*
* {@link GetMediaAuditResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponseBody</p>
*/
public static class AudioResult extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Scene")
private String scene;
@com.aliyun.core.annotation.NameInMap("Score")
private String score;
@com.aliyun.core.annotation.NameInMap("Suggestion")
private String suggestion;
private AudioResult(Builder builder) {
this.label = builder.label;
this.scene = builder.scene;
this.score = builder.score;
this.suggestion = builder.suggestion;
}
public static Builder builder() {
return new Builder();
}
public static AudioResult create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return scene
*/
public String getScene() {
return this.scene;
}
/**
* @return score
*/
public String getScore() {
return this.score;
}
/**
* @return suggestion
*/
public String getSuggestion() {
return this.suggestion;
}
public static final class Builder {
private String label;
private String scene;
private String score;
private String suggestion;
private Builder() {
}
private Builder(AudioResult model) {
this.label = model.label;
this.scene = model.scene;
this.score = model.score;
this.suggestion = model.suggestion;
}
/**
* <p>The category of the review result.</p>
* <ul>
* <li><strong>normal</strong></li>
* <li><strong>spam</strong></li>
* <li><strong>ad</strong></li>
* <li><strong>politics</strong></li>
* <li><strong>terrorism</strong></li>
* <li><strong>abuse</strong></li>
* <li><strong>porn</strong></li>
* <li><strong>flood</strong></li>
* <li><strong>contraband</strong></li>
* <li><strong>meaningless</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>normal</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The review scenario. The value is <strong>antispam</strong>.</p>
*
* <strong>example:</strong>
* <p>antispam</p>
*/
public Builder scene(String scene) {
this.scene = scene;
return this;
}
/**
* <p>The score.</p>
*
* <strong>example:</strong>
* <p>99.91</p>
*/
public Builder score(String score) {
this.score = score;
return this;
}
/**
* <p>The recommendation for review results. Valid values:</p>
* <ul>
* <li><strong>block</strong></li>
* <li><strong>review</strong></li>
* <li><strong>pass</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>pass</p>
*/
public Builder suggestion(String suggestion) {
this.suggestion = suggestion;
return this;
}
public AudioResult build() {
return new AudioResult(this);
}
}
}
/**
*
* {@link GetMediaAuditResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponseBody</p>
*/
public static class Result extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Scene")
private String scene;
@com.aliyun.core.annotation.NameInMap("Score")
private String score;
@com.aliyun.core.annotation.NameInMap("Suggestion")
private String suggestion;
private Result(Builder builder) {
this.label = builder.label;
this.scene = builder.scene;
this.score = builder.score;
this.suggestion = builder.suggestion;
}
public static Builder builder() {
return new Builder();
}
public static Result create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return scene
*/
public String getScene() {
return this.scene;
}
/**
* @return score
*/
public String getScore() {
return this.score;
}
/**
* @return suggestion
*/
public String getSuggestion() {
return this.suggestion;
}
public static final class Builder {
private String label;
private String scene;
private String score;
private String suggestion;
private Builder() {
}
private Builder(Result model) {
this.label = model.label;
this.scene = model.scene;
this.score = model.score;
this.suggestion = model.suggestion;
}
/**
* <p>The category of the review result.</p>
* <p>Valid values if scene is <strong>porn</strong>:</p>
* <ul>
* <li><strong>porn</strong></li>
* <li><strong>sexy</strong></li>
* <li><strong>normal</strong></li>
* </ul>
* <p>Valid values if scene is <strong>terrorism</strong>:</p>
* <ul>
* <li><strong>normal</strong></li>
* <li><strong>bloody</strong></li>
* <li><strong>explosion</strong></li>
* <li><strong>outfit</strong></li>
* <li><strong>logo</strong></li>
* <li><strong>weapon</strong></li>
* <li><strong>politics</strong></li>
* <li><strong>violence</strong></li>
* <li><strong>crowd</strong></li>
* <li><strong>parade</strong></li>
* <li><strong>carcrash</strong></li>
* <li><strong>flag</strong></li>
* <li><strong>location</strong></li>
* <li><strong>others</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>porn</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The review scenario. Valid values:</p>
* <ul>
* <li><strong>terrorism</strong></li>
* <li><strong>porn</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>porn</p>
*/
public Builder scene(String scene) {
this.scene = scene;
return this;
}
/**
* <p>The score of the image of the category that is indicated by Label.</p>
*
* <strong>example:</strong>
* <p>100.00000</p>
*/
public Builder score(String score) {
this.score = score;
return this;
}
/**
* <p>The recommendation for review results. Valid values:</p>
* <ul>
* <li><strong>block</strong></li>
* <li><strong>review</strong></li>
* <li><strong>pass</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>pass</p>
*/
public Builder suggestion(String suggestion) {
this.suggestion = suggestion;
return this;
}
public Result build() {
return new Result(this);
}
}
}
/**
*
* {@link GetMediaAuditResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponseBody</p>
*/
public static class ImageResult extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Result")
private java.util.List<Result> result;
@com.aliyun.core.annotation.NameInMap("Suggestion")
private String suggestion;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("Url")
private String url;
private ImageResult(Builder builder) {
this.label = builder.label;
this.result = builder.result;
this.suggestion = builder.suggestion;
this.type = builder.type;
this.url = builder.url;
}
public static Builder builder() {
return new Builder();
}
public static ImageResult create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return result
*/
public java.util.List<Result> getResult() {
return this.result;
}
/**
* @return suggestion
*/
public String getSuggestion() {
return this.suggestion;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return url
*/
public String getUrl() {
return this.url;
}
public static final class Builder {
private String label;
private java.util.List<Result> result;
private String suggestion;
private String type;
private String url;
private Builder() {
}
private Builder(ImageResult model) {
this.label = model.label;
this.result = model.result;
this.suggestion = model.suggestion;
this.type = model.type;
this.url = model.url;
}
/**
* <p>The category of the review result. Separate multiple values with commas (,). Valid values:</p>
* <ul>
* <li><strong>porn</strong></li>
* <li><strong>terrorism</strong></li>
* <li><strong>normal</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>porn</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>Details of image review results.</p>
*/
public Builder result(java.util.List<Result> result) {
this.result = result;
return this;
}
/**
* <p>The recommendation for review results. Valid values:</p>
* <ul>
* <li><strong>block</strong></li>
* <li><strong>review</strong></li>
* <li><strong>pass</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>pass</p>
*/
public Builder suggestion(String suggestion) {
this.suggestion = suggestion;
return this;
}
/**
* <p>The type of the image. The value is <strong>cover</strong>.</p>
*
* <strong>example:</strong>
* <p>cover</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The URL of the image.</p>
*
* <strong>example:</strong>
* <p><a href="http://www.test.com/****.jpg">http://www.test.com/****.jpg</a></p>
*/
public Builder url(String url) {
this.url = url;
return this;
}
public ImageResult build() {
return new ImageResult(this);
}
}
}
/**
*
* {@link GetMediaAuditResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponseBody</p>
*/
public static class TextResult extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Content")
private String content;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Scene")
private String scene;
@com.aliyun.core.annotation.NameInMap("Score")
private String score;
@com.aliyun.core.annotation.NameInMap("Suggestion")
private String suggestion;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private TextResult(Builder builder) {
this.content = builder.content;
this.label = builder.label;
this.scene = builder.scene;
this.score = builder.score;
this.suggestion = builder.suggestion;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static TextResult create() {
return builder().build();
}
/**
* @return content
*/
public String getContent() {
return this.content;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return scene
*/
public String getScene() {
return this.scene;
}
/**
* @return score
*/
public String getScore() {
return this.score;
}
/**
* @return suggestion
*/
public String getSuggestion() {
return this.suggestion;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private String content;
private String label;
private String scene;
private String score;
private String suggestion;
private String type;
private Builder() {
}
private Builder(TextResult model) {
this.content = model.content;
this.label = model.label;
this.scene = model.scene;
this.score = model.score;
this.suggestion = model.suggestion;
this.type = model.type;
}
/**
* <p>The text content for review.</p>
*
* <strong>example:</strong>
* <p>hot line 123****</p>
*/
public Builder content(String content) {
this.content = content;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>spam</strong></li>
* <li><strong>ad</strong></li>
* <li><strong>abuse</strong></li>
* <li><strong>flood</strong></li>
* <li><strong>contraband</strong></li>
* <li><strong>meaningless</strong></li>
* <li><strong>normal</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>ad</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The review scenario. The value is <strong>antispam</strong>.</p>
*
* <strong>example:</strong>
* <p>antispam</p>
*/
public Builder scene(String scene) {
this.scene = scene;
return this;
}
/**
* <p>The score of the image of the category that is indicated by Label.</p>
*
* <strong>example:</strong>
* <p>100.00000</p>
*/
public Builder score(String score) {
this.score = score;
return this;
}
/**
* <p>The recommendation for review results. Valid values:</p>
* <ul>
* <li><strong>block</strong></li>
* <li><strong>review</strong></li>
* <li><strong>pass</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>pass</p>
*/
public Builder suggestion(String suggestion) {
this.suggestion = suggestion;
return this;
}
/**
* <p>The type of the text. The value is <strong>title</strong>.</p>
*
* <strong>example:</strong>
* <p>title</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public TextResult build() {
return new TextResult(this);
}
}
}
/**
*
* {@link GetMediaAuditResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponseBody</p>
*/
public static class CounterList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
private CounterList(Builder builder) {
this.count = builder.count;
this.label = builder.label;
}
public static Builder builder() {
return new Builder();
}
public static CounterList create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
public static final class Builder {
private Integer count;
private String label;
private Builder() {
}
private Builder(CounterList model) {
this.count = model.count;
this.label = model.label;
}
/**
* <p>The number of frames.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>ad</strong></li>
* <li><strong>normal</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>ad</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
public CounterList build() {
return new CounterList(this);
}
}
}
/**
*
* {@link GetMediaAuditResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponseBody</p>
*/
public static class TopList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Score")
private String score;
@com.aliyun.core.annotation.NameInMap("Timestamp")
private String timestamp;
@com.aliyun.core.annotation.NameInMap("Url")
private String url;
private TopList(Builder builder) {
this.label = builder.label;
this.score = builder.score;
this.timestamp = builder.timestamp;
this.url = builder.url;
}
public static Builder builder() {
return new Builder();
}
public static TopList create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return score
*/
public String getScore() {
return this.score;
}
/**
* @return timestamp
*/
public String getTimestamp() {
return this.timestamp;
}
/**
* @return url
*/
public String getUrl() {
return this.url;
}
public static final class Builder {
private String label;
private String score;
private String timestamp;
private String url;
private Builder() {
}
private Builder(TopList model) {
this.label = model.label;
this.score = model.score;
this.timestamp = model.timestamp;
this.url = model.url;
}
/**
* <p>The category of the review result. </p>
* <ul>
* <li><strong>ad</strong></li>
* <li><strong>normal</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>ad</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The score of the image of the category that is indicated by Label.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder score(String score) {
this.score = score;
return this;
}
/**
* <p>The position in the video. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder timestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
/**
* <p>The URL of the image.</p>
*
* <strong>example:</strong>
* <p><a href="http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg">http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg</a></p>
*/
public Builder url(String url) {
this.url = url;
return this;
}
public TopList build() {
return new TopList(this);
}
}
}
/**
*
* {@link GetMediaAuditResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponseBody</p>
*/
public static class AdResult extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AverageScore")
private String averageScore;
@com.aliyun.core.annotation.NameInMap("CounterList")
private java.util.List<CounterList> counterList;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("MaxScore")
private String maxScore;
@com.aliyun.core.annotation.NameInMap("Suggestion")
private String suggestion;
@com.aliyun.core.annotation.NameInMap("TopList")
private java.util.List<TopList> topList;
private AdResult(Builder builder) {
this.averageScore = builder.averageScore;
this.counterList = builder.counterList;
this.label = builder.label;
this.maxScore = builder.maxScore;
this.suggestion = builder.suggestion;
this.topList = builder.topList;
}
public static Builder builder() {
return new Builder();
}
public static AdResult create() {
return builder().build();
}
/**
* @return averageScore
*/
public String getAverageScore() {
return this.averageScore;
}
/**
* @return counterList
*/
public java.util.List<CounterList> getCounterList() {
return this.counterList;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return maxScore
*/
public String getMaxScore() {
return this.maxScore;
}
/**
* @return suggestion
*/
public String getSuggestion() {
return this.suggestion;
}
/**
* @return topList
*/
public java.util.List<TopList> getTopList() {
return this.topList;
}
public static final class Builder {
private String averageScore;
private java.util.List<CounterList> counterList;
private String label;
private String maxScore;
private String suggestion;
private java.util.List<TopList> topList;
private Builder() {
}
private Builder(AdResult model) {
this.averageScore = model.averageScore;
this.counterList = model.counterList;
this.label = model.label;
this.maxScore = model.maxScore;
this.suggestion = model.suggestion;
this.topList = model.topList;
}
/**
* <p>The average score of the review results.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder averageScore(String averageScore) {
this.averageScore = averageScore;
return this;
}
/**
* <p>The statistics about tag frames.</p>
*/
public Builder counterList(java.util.List<CounterList> counterList) {
this.counterList = counterList;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>ad</strong></li>
* <li><strong>normal</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>ad</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The highest review score.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder maxScore(String maxScore) {
this.maxScore = maxScore;
return this;
}
/**
* <p>The recommendation for review results. Valid values:</p>
* <ul>
* <li><strong>block</strong></li>
* <li><strong>review</strong></li>
* <li><strong>pass</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>block</p>
*/
public Builder suggestion(String suggestion) {
this.suggestion = suggestion;
return this;
}
/**
* <p>The information about the image with the highest score of the category that is indicated by Label.</p>
*/
public Builder topList(java.util.List<TopList> topList) {
this.topList = topList;
return this;
}
public AdResult build() {
return new AdResult(this);
}
}
}
/**
*
* {@link GetMediaAuditResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponseBody</p>
*/
public static class LiveResultCounterList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
private LiveResultCounterList(Builder builder) {
this.count = builder.count;
this.label = builder.label;
}
public static Builder builder() {
return new Builder();
}
public static LiveResultCounterList create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
public static final class Builder {
private Integer count;
private String label;
private Builder() {
}
private Builder(LiveResultCounterList model) {
this.count = model.count;
this.label = model.label;
}
/**
* <p>The number of frames.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>live</strong>: The content contains undesirable scenes.</li>
* <li><strong>normal</strong>: normal content.</li>
* </ul>
*
* <strong>example:</strong>
* <p>live</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
public LiveResultCounterList build() {
return new LiveResultCounterList(this);
}
}
}
/**
*
* {@link GetMediaAuditResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponseBody</p>
*/
public static class LiveResultTopList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Score")
private String score;
@com.aliyun.core.annotation.NameInMap("Timestamp")
private String timestamp;
@com.aliyun.core.annotation.NameInMap("Url")
private String url;
private LiveResultTopList(Builder builder) {
this.label = builder.label;
this.score = builder.score;
this.timestamp = builder.timestamp;
this.url = builder.url;
}
public static Builder builder() {
return new Builder();
}
public static LiveResultTopList create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return score
*/
public String getScore() {
return this.score;
}
/**
* @return timestamp
*/
public String getTimestamp() {
return this.timestamp;
}
/**
* @return url
*/
public String getUrl() {
return this.url;
}
public static final class Builder {
private String label;
private String score;
private String timestamp;
private String url;
private Builder() {
}
private Builder(LiveResultTopList model) {
this.label = model.label;
this.score = model.score;
this.timestamp = model.timestamp;
this.url = model.url;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>live</strong>: The content contains undesirable scenes.</li>
* <li><strong>normal</strong>: normal content.</li>
* </ul>
*
* <strong>example:</strong>
* <p>normal</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The score of the image of the category that is indicated by Label.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder score(String score) {
this.score = score;
return this;
}
/**
* <p>The position in the video. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder timestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
/**
* <p>The URL of the image.</p>
*
* <strong>example:</strong>
* <p><a href="http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg">http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg</a></p>
*/
public Builder url(String url) {
this.url = url;
return this;
}
public LiveResultTopList build() {
return new LiveResultTopList(this);
}
}
}
/**
*
* {@link GetMediaAuditResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponseBody</p>
*/
public static class LiveResult extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AverageScore")
private String averageScore;
@com.aliyun.core.annotation.NameInMap("CounterList")
private java.util.List<LiveResultCounterList> counterList;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("MaxScore")
private String maxScore;
@com.aliyun.core.annotation.NameInMap("Suggestion")
private String suggestion;
@com.aliyun.core.annotation.NameInMap("TopList")
private java.util.List<LiveResultTopList> topList;
private LiveResult(Builder builder) {
this.averageScore = builder.averageScore;
this.counterList = builder.counterList;
this.label = builder.label;
this.maxScore = builder.maxScore;
this.suggestion = builder.suggestion;
this.topList = builder.topList;
}
public static Builder builder() {
return new Builder();
}
public static LiveResult create() {
return builder().build();
}
/**
* @return averageScore
*/
public String getAverageScore() {
return this.averageScore;
}
/**
* @return counterList
*/
public java.util.List<LiveResultCounterList> getCounterList() {
return this.counterList;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return maxScore
*/
public String getMaxScore() {
return this.maxScore;
}
/**
* @return suggestion
*/
public String getSuggestion() {
return this.suggestion;
}
/**
* @return topList
*/
public java.util.List<LiveResultTopList> getTopList() {
return this.topList;
}
public static final class Builder {
private String averageScore;
private java.util.List<LiveResultCounterList> counterList;
private String label;
private String maxScore;
private String suggestion;
private java.util.List<LiveResultTopList> topList;
private Builder() {
}
private Builder(LiveResult model) {
this.averageScore = model.averageScore;
this.counterList = model.counterList;
this.label = model.label;
this.maxScore = model.maxScore;
this.suggestion = model.suggestion;
this.topList = model.topList;
}
/**
* <p>The average score of the review results.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder averageScore(String averageScore) {
this.averageScore = averageScore;
return this;
}
/**
* <p>The statistics about tag frames.</p>
*/
public Builder counterList(java.util.List<LiveResultCounterList> counterList) {
this.counterList = counterList;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>live</strong>: The content contains undesirable scenes.</li>
* <li><strong>normal</strong>: normal content.</li>
* </ul>
*
* <strong>example:</strong>
* <p>live</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The highest review score.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder maxScore(String maxScore) {
this.maxScore = maxScore;
return this;
}
/**
* <p>The recommendation for review results. Valid values:</p>
* <ul>
* <li><strong>block</strong></li>
* <li><strong>review</strong></li>
* <li><strong>pass</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>block</p>
*/
public Builder suggestion(String suggestion) {
this.suggestion = suggestion;
return this;
}
/**
* <p>The information about the image with the highest score of the category that is indicated by Label.</p>
*/
public Builder topList(java.util.List<LiveResultTopList> topList) {
this.topList = topList;
return this;
}
public LiveResult build() {
return new LiveResult(this);
}
}
}
/**
*
* {@link GetMediaAuditResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponseBody</p>
*/
public static class LogoResultCounterList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
private LogoResultCounterList(Builder builder) {
this.count = builder.count;
this.label = builder.label;
}
public static Builder builder() {
return new Builder();
}
public static LogoResultCounterList create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
public static final class Builder {
private Integer count;
private String label;
private Builder() {
}
private Builder(LogoResultCounterList model) {
this.count = model.count;
this.label = model.label;
}
/**
* <p>The number of frames.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>logo</strong></li>
* <li><strong>normal</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>logo</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
public LogoResultCounterList build() {
return new LogoResultCounterList(this);
}
}
}
/**
*
* {@link GetMediaAuditResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponseBody</p>
*/
public static class LogoResultTopList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Score")
private String score;
@com.aliyun.core.annotation.NameInMap("Timestamp")
private String timestamp;
@com.aliyun.core.annotation.NameInMap("Url")
private String url;
private LogoResultTopList(Builder builder) {
this.label = builder.label;
this.score = builder.score;
this.timestamp = builder.timestamp;
this.url = builder.url;
}
public static Builder builder() {
return new Builder();
}
public static LogoResultTopList create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return score
*/
public String getScore() {
return this.score;
}
/**
* @return timestamp
*/
public String getTimestamp() {
return this.timestamp;
}
/**
* @return url
*/
public String getUrl() {
return this.url;
}
public static final class Builder {
private String label;
private String score;
private String timestamp;
private String url;
private Builder() {
}
private Builder(LogoResultTopList model) {
this.label = model.label;
this.score = model.score;
this.timestamp = model.timestamp;
this.url = model.url;
}
/**
* <p>The category of the review result.</p>
* <ul>
* <li><strong>logo</strong></li>
* <li><strong>normal</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>logo</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The score of the image of the category that is indicated by Label.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder score(String score) {
this.score = score;
return this;
}
/**
* <p>The position in the video. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>16</p>
*/
public Builder timestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
/**
* <p>The URL of the image.</p>
*
* <strong>example:</strong>
* <p><a href="http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg">http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg</a></p>
*/
public Builder url(String url) {
this.url = url;
return this;
}
public LogoResultTopList build() {
return new LogoResultTopList(this);
}
}
}
/**
*
* {@link GetMediaAuditResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponseBody</p>
*/
public static class LogoResult extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AverageScore")
private String averageScore;
@com.aliyun.core.annotation.NameInMap("CounterList")
private java.util.List<LogoResultCounterList> counterList;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("MaxScore")
private String maxScore;
@com.aliyun.core.annotation.NameInMap("Suggestion")
private String suggestion;
@com.aliyun.core.annotation.NameInMap("TopList")
private java.util.List<LogoResultTopList> topList;
private LogoResult(Builder builder) {
this.averageScore = builder.averageScore;
this.counterList = builder.counterList;
this.label = builder.label;
this.maxScore = builder.maxScore;
this.suggestion = builder.suggestion;
this.topList = builder.topList;
}
public static Builder builder() {
return new Builder();
}
public static LogoResult create() {
return builder().build();
}
/**
* @return averageScore
*/
public String getAverageScore() {
return this.averageScore;
}
/**
* @return counterList
*/
public java.util.List<LogoResultCounterList> getCounterList() {
return this.counterList;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return maxScore
*/
public String getMaxScore() {
return this.maxScore;
}
/**
* @return suggestion
*/
public String getSuggestion() {
return this.suggestion;
}
/**
* @return topList
*/
public java.util.List<LogoResultTopList> getTopList() {
return this.topList;
}
public static final class Builder {
private String averageScore;
private java.util.List<LogoResultCounterList> counterList;
private String label;
private String maxScore;
private String suggestion;
private java.util.List<LogoResultTopList> topList;
private Builder() {
}
private Builder(LogoResult model) {
this.averageScore = model.averageScore;
this.counterList = model.counterList;
this.label = model.label;
this.maxScore = model.maxScore;
this.suggestion = model.suggestion;
this.topList = model.topList;
}
/**
* <p>The average score of the review results.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder averageScore(String averageScore) {
this.averageScore = averageScore;
return this;
}
/**
* <p>The statistics about tag frames.</p>
*/
public Builder counterList(java.util.List<LogoResultCounterList> counterList) {
this.counterList = counterList;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>logo</strong></li>
* <li><strong>normal</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>logo</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The highest review score.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder maxScore(String maxScore) {
this.maxScore = maxScore;
return this;
}
/**
* <p>The recommendation for review results. Valid values:</p>
* <ul>
* <li><strong>block</strong></li>
* <li><strong>review</strong></li>
* <li><strong>pass</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>block</p>
*/
public Builder suggestion(String suggestion) {
this.suggestion = suggestion;
return this;
}
/**
* <p>The information about the image with the highest score of the category that is indicated by Label.</p>
*/
public Builder topList(java.util.List<LogoResultTopList> topList) {
this.topList = topList;
return this;
}
public LogoResult build() {
return new LogoResult(this);
}
}
}
/**
*
* {@link GetMediaAuditResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponseBody</p>
*/
public static class PornResultCounterList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
private PornResultCounterList(Builder builder) {
this.count = builder.count;
this.label = builder.label;
}
public static Builder builder() {
return new Builder();
}
public static PornResultCounterList create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
public static final class Builder {
private Integer count;
private String label;
private Builder() {
}
private Builder(PornResultCounterList model) {
this.count = model.count;
this.label = model.label;
}
/**
* <p>The number of frames.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>porn</strong></li>
* <li><strong>sexy</strong></li>
* <li><strong>normal</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>porn</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
public PornResultCounterList build() {
return new PornResultCounterList(this);
}
}
}
/**
*
* {@link GetMediaAuditResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponseBody</p>
*/
public static class PornResultTopList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Score")
private String score;
@com.aliyun.core.annotation.NameInMap("Timestamp")
private String timestamp;
@com.aliyun.core.annotation.NameInMap("Url")
private String url;
private PornResultTopList(Builder builder) {
this.label = builder.label;
this.score = builder.score;
this.timestamp = builder.timestamp;
this.url = builder.url;
}
public static Builder builder() {
return new Builder();
}
public static PornResultTopList create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return score
*/
public String getScore() {
return this.score;
}
/**
* @return timestamp
*/
public String getTimestamp() {
return this.timestamp;
}
/**
* @return url
*/
public String getUrl() {
return this.url;
}
public static final class Builder {
private String label;
private String score;
private String timestamp;
private String url;
private Builder() {
}
private Builder(PornResultTopList model) {
this.label = model.label;
this.score = model.score;
this.timestamp = model.timestamp;
this.url = model.url;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>porn</strong></li>
* <li><strong>sexy</strong></li>
* <li><strong>normal</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>porn</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The score of the image of the category that is indicated by Label.</p>
*
* <strong>example:</strong>
* <p>100.0000</p>
*/
public Builder score(String score) {
this.score = score;
return this;
}
/**
* <p>The position in the video. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>3005</p>
*/
public Builder timestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
/**
* <p>The URL of the image.</p>
*
* <strong>example:</strong>
* <p><a href="http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg">http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg</a></p>
*/
public Builder url(String url) {
this.url = url;
return this;
}
public PornResultTopList build() {
return new PornResultTopList(this);
}
}
}
/**
*
* {@link GetMediaAuditResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponseBody</p>
*/
public static class PornResult extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AverageScore")
private String averageScore;
@com.aliyun.core.annotation.NameInMap("CounterList")
private java.util.List<PornResultCounterList> counterList;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("MaxScore")
private String maxScore;
@com.aliyun.core.annotation.NameInMap("Suggestion")
private String suggestion;
@com.aliyun.core.annotation.NameInMap("TopList")
private java.util.List<PornResultTopList> topList;
private PornResult(Builder builder) {
this.averageScore = builder.averageScore;
this.counterList = builder.counterList;
this.label = builder.label;
this.maxScore = builder.maxScore;
this.suggestion = builder.suggestion;
this.topList = builder.topList;
}
public static Builder builder() {
return new Builder();
}
public static PornResult create() {
return builder().build();
}
/**
* @return averageScore
*/
public String getAverageScore() {
return this.averageScore;
}
/**
* @return counterList
*/
public java.util.List<PornResultCounterList> getCounterList() {
return this.counterList;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return maxScore
*/
public String getMaxScore() {
return this.maxScore;
}
/**
* @return suggestion
*/
public String getSuggestion() {
return this.suggestion;
}
/**
* @return topList
*/
public java.util.List<PornResultTopList> getTopList() {
return this.topList;
}
public static final class Builder {
private String averageScore;
private java.util.List<PornResultCounterList> counterList;
private String label;
private String maxScore;
private String suggestion;
private java.util.List<PornResultTopList> topList;
private Builder() {
}
private Builder(PornResult model) {
this.averageScore = model.averageScore;
this.counterList = model.counterList;
this.label = model.label;
this.maxScore = model.maxScore;
this.suggestion = model.suggestion;
this.topList = model.topList;
}
/**
* <p>The average score of the review results.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder averageScore(String averageScore) {
this.averageScore = averageScore;
return this;
}
/**
* <p>The statistics about tag frames.</p>
*/
public Builder counterList(java.util.List<PornResultCounterList> counterList) {
this.counterList = counterList;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>porn</strong></li>
* <li><strong>sexy</strong></li>
* <li><strong>normal</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>porn</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The highest review score.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder maxScore(String maxScore) {
this.maxScore = maxScore;
return this;
}
/**
* <p>The recommendation for review results.</p>
*
* <strong>example:</strong>
* <p>pass</p>
*/
public Builder suggestion(String suggestion) {
this.suggestion = suggestion;
return this;
}
/**
* <p>The information about the image with the highest score of the category that is indicated by Label.</p>
*/
public Builder topList(java.util.List<PornResultTopList> topList) {
this.topList = topList;
return this;
}
public PornResult build() {
return new PornResult(this);
}
}
}
/**
*
* {@link GetMediaAuditResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponseBody</p>
*/
public static class TerrorismResultCounterList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
private TerrorismResultCounterList(Builder builder) {
this.count = builder.count;
this.label = builder.label;
}
public static Builder builder() {
return new Builder();
}
public static TerrorismResultCounterList create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
public static final class Builder {
private Integer count;
private String label;
private Builder() {
}
private Builder(TerrorismResultCounterList model) {
this.count = model.count;
this.label = model.label;
}
/**
* <p>The number of frames.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>normal</strong></li>
* <li><strong>bloody</strong></li>
* <li><strong>explosion</strong></li>
* <li><strong>outfit</strong></li>
* <li><strong>logo</strong></li>
* <li><strong>weapon</strong></li>
* <li><strong>politics</strong></li>
* <li><strong>violence</strong></li>
* <li><strong>crowd</strong></li>
* <li><strong>parade</strong></li>
* <li><strong>carcrash</strong></li>
* <li><strong>flag</strong></li>
* <li><strong>location</strong></li>
* <li><strong>others</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>outfit</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
public TerrorismResultCounterList build() {
return new TerrorismResultCounterList(this);
}
}
}
/**
*
* {@link GetMediaAuditResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponseBody</p>
*/
public static class TerrorismResultTopList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Score")
private String score;
@com.aliyun.core.annotation.NameInMap("Timestamp")
private String timestamp;
@com.aliyun.core.annotation.NameInMap("Url")
private String url;
private TerrorismResultTopList(Builder builder) {
this.label = builder.label;
this.score = builder.score;
this.timestamp = builder.timestamp;
this.url = builder.url;
}
public static Builder builder() {
return new Builder();
}
public static TerrorismResultTopList create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return score
*/
public String getScore() {
return this.score;
}
/**
* @return timestamp
*/
public String getTimestamp() {
return this.timestamp;
}
/**
* @return url
*/
public String getUrl() {
return this.url;
}
public static final class Builder {
private String label;
private String score;
private String timestamp;
private String url;
private Builder() {
}
private Builder(TerrorismResultTopList model) {
this.label = model.label;
this.score = model.score;
this.timestamp = model.timestamp;
this.url = model.url;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>normal</strong></li>
* <li><strong>bloody</strong></li>
* <li><strong>explosion</strong></li>
* <li><strong>outfit</strong></li>
* <li><strong>logo</strong></li>
* <li><strong>weapon</strong></li>
* <li><strong>politics</strong></li>
* <li><strong>violence</strong></li>
* <li><strong>crowd</strong></li>
* <li><strong>parade</strong></li>
* <li><strong>carcrash</strong></li>
* <li><strong>flag</strong></li>
* <li><strong>location</strong></li>
* <li><strong>others</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>normal</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The score of the image of the category that is indicated by Label.</p>
*
* <strong>example:</strong>
* <p>100.000</p>
*/
public Builder score(String score) {
this.score = score;
return this;
}
/**
* <p>The position in the video. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>3005</p>
*/
public Builder timestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
/**
* <p>The URL of the image.</p>
*
* <strong>example:</strong>
* <p><a href="http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg">http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg</a></p>
*/
public Builder url(String url) {
this.url = url;
return this;
}
public TerrorismResultTopList build() {
return new TerrorismResultTopList(this);
}
}
}
/**
*
* {@link GetMediaAuditResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponseBody</p>
*/
public static class TerrorismResult extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AverageScore")
private String averageScore;
@com.aliyun.core.annotation.NameInMap("CounterList")
private java.util.List<TerrorismResultCounterList> counterList;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("MaxScore")
private String maxScore;
@com.aliyun.core.annotation.NameInMap("Suggestion")
private String suggestion;
@com.aliyun.core.annotation.NameInMap("TopList")
private java.util.List<TerrorismResultTopList> topList;
private TerrorismResult(Builder builder) {
this.averageScore = builder.averageScore;
this.counterList = builder.counterList;
this.label = builder.label;
this.maxScore = builder.maxScore;
this.suggestion = builder.suggestion;
this.topList = builder.topList;
}
public static Builder builder() {
return new Builder();
}
public static TerrorismResult create() {
return builder().build();
}
/**
* @return averageScore
*/
public String getAverageScore() {
return this.averageScore;
}
/**
* @return counterList
*/
public java.util.List<TerrorismResultCounterList> getCounterList() {
return this.counterList;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return maxScore
*/
public String getMaxScore() {
return this.maxScore;
}
/**
* @return suggestion
*/
public String getSuggestion() {
return this.suggestion;
}
/**
* @return topList
*/
public java.util.List<TerrorismResultTopList> getTopList() {
return this.topList;
}
public static final class Builder {
private String averageScore;
private java.util.List<TerrorismResultCounterList> counterList;
private String label;
private String maxScore;
private String suggestion;
private java.util.List<TerrorismResultTopList> topList;
private Builder() {
}
private Builder(TerrorismResult model) {
this.averageScore = model.averageScore;
this.counterList = model.counterList;
this.label = model.label;
this.maxScore = model.maxScore;
this.suggestion = model.suggestion;
this.topList = model.topList;
}
/**
* <p>The average score of the review results.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder averageScore(String averageScore) {
this.averageScore = averageScore;
return this;
}
/**
* <p>The statistics about tag frames.</p>
*/
public Builder counterList(java.util.List<TerrorismResultCounterList> counterList) {
this.counterList = counterList;
return this;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>normal</strong></li>
* <li><strong>bloody</strong></li>
* <li><strong>explosion</strong></li>
* <li><strong>outfit</strong></li>
* <li><strong>logo</strong></li>
* <li><strong>weapon</strong></li>
* <li><strong>politics</strong></li>
* <li><strong>violence</strong></li>
* <li><strong>crowd</strong></li>
* <li><strong>parade</strong></li>
* <li><strong>carcrash</strong></li>
* <li><strong>flag</strong></li>
* <li><strong>location</strong></li>
* <li><strong>others</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>normal</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The highest review score.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder maxScore(String maxScore) {
this.maxScore = maxScore;
return this;
}
/**
* <p>The recommendation for review results. Valid values:</p>
* <ul>
* <li><strong>block</strong></li>
* <li><strong>review</strong></li>
* <li><strong>pass</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>pass</p>
*/
public Builder suggestion(String suggestion) {
this.suggestion = suggestion;
return this;
}
/**
* <p>The information about the image with the highest score of the category that is indicated by Label.</p>
*/
public Builder topList(java.util.List<TerrorismResultTopList> topList) {
this.topList = topList;
return this;
}
public TerrorismResult build() {
return new TerrorismResult(this);
}
}
}
/**
*
* {@link GetMediaAuditResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponseBody</p>
*/
public static class VideoResult extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AdResult")
private AdResult adResult;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("LiveResult")
private LiveResult liveResult;
@com.aliyun.core.annotation.NameInMap("LogoResult")
private LogoResult logoResult;
@com.aliyun.core.annotation.NameInMap("PornResult")
private PornResult pornResult;
@com.aliyun.core.annotation.NameInMap("Suggestion")
private String suggestion;
@com.aliyun.core.annotation.NameInMap("TerrorismResult")
private TerrorismResult terrorismResult;
private VideoResult(Builder builder) {
this.adResult = builder.adResult;
this.label = builder.label;
this.liveResult = builder.liveResult;
this.logoResult = builder.logoResult;
this.pornResult = builder.pornResult;
this.suggestion = builder.suggestion;
this.terrorismResult = builder.terrorismResult;
}
public static Builder builder() {
return new Builder();
}
public static VideoResult create() {
return builder().build();
}
/**
* @return adResult
*/
public AdResult getAdResult() {
return this.adResult;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return liveResult
*/
public LiveResult getLiveResult() {
return this.liveResult;
}
/**
* @return logoResult
*/
public LogoResult getLogoResult() {
return this.logoResult;
}
/**
* @return pornResult
*/
public PornResult getPornResult() {
return this.pornResult;
}
/**
* @return suggestion
*/
public String getSuggestion() {
return this.suggestion;
}
/**
* @return terrorismResult
*/
public TerrorismResult getTerrorismResult() {
return this.terrorismResult;
}
public static final class Builder {
private AdResult adResult;
private String label;
private LiveResult liveResult;
private LogoResult logoResult;
private PornResult pornResult;
private String suggestion;
private TerrorismResult terrorismResult;
private Builder() {
}
private Builder(VideoResult model) {
this.adResult = model.adResult;
this.label = model.label;
this.liveResult = model.liveResult;
this.logoResult = model.logoResult;
this.pornResult = model.pornResult;
this.suggestion = model.suggestion;
this.terrorismResult = model.terrorismResult;
}
/**
* <p>The results of ad review.</p>
*/
public Builder adResult(AdResult adResult) {
this.adResult = adResult;
return this;
}
/**
* <p>The category of the review result. Separate multiple values with commas (,). Valid values: </p>
* <ul>
* <li><strong>porn</strong></li>
* <li><strong>terrorism</strong></li>
* <li><strong>normal</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>porn</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The results of undesired content review.</p>
*/
public Builder liveResult(LiveResult liveResult) {
this.liveResult = liveResult;
return this;
}
/**
* <p>The results of logo review.</p>
*/
public Builder logoResult(LogoResult logoResult) {
this.logoResult = logoResult;
return this;
}
/**
* <p>The results of pornographic content review.</p>
*/
public Builder pornResult(PornResult pornResult) {
this.pornResult = pornResult;
return this;
}
/**
* <p>The recommendation for review results. Valid values:</p>
* <ul>
* <li><strong>block</strong></li>
* <li><strong>review</strong></li>
* <li><strong>pass</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>pass</p>
*/
public Builder suggestion(String suggestion) {
this.suggestion = suggestion;
return this;
}
/**
* <p>The results of terrorist content review.</p>
*/
public Builder terrorismResult(TerrorismResult terrorismResult) {
this.terrorismResult = terrorismResult;
return this;
}
public VideoResult build() {
return new VideoResult(this);
}
}
}
/**
*
* {@link GetMediaAuditResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultResponseBody</p>
*/
public static class MediaAuditResult extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AbnormalModules")
private String abnormalModules;
@com.aliyun.core.annotation.NameInMap("AudioResult")
private java.util.List<AudioResult> audioResult;
@com.aliyun.core.annotation.NameInMap("ImageResult")
private java.util.List<ImageResult> imageResult;
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Suggestion")
private String suggestion;
@com.aliyun.core.annotation.NameInMap("TextResult")
private java.util.List<TextResult> textResult;
@com.aliyun.core.annotation.NameInMap("VideoResult")
private VideoResult videoResult;
private MediaAuditResult(Builder builder) {
this.abnormalModules = builder.abnormalModules;
this.audioResult = builder.audioResult;
this.imageResult = builder.imageResult;
this.label = builder.label;
this.suggestion = builder.suggestion;
this.textResult = builder.textResult;
this.videoResult = builder.videoResult;
}
public static Builder builder() {
return new Builder();
}
public static MediaAuditResult create() {
return builder().build();
}
/**
* @return abnormalModules
*/
public String getAbnormalModules() {
return this.abnormalModules;
}
/**
* @return audioResult
*/
public java.util.List<AudioResult> getAudioResult() {
return this.audioResult;
}
/**
* @return imageResult
*/
public java.util.List<ImageResult> getImageResult() {
return this.imageResult;
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return suggestion
*/
public String getSuggestion() {
return this.suggestion;
}
/**
* @return textResult
*/
public java.util.List<TextResult> getTextResult() {
return this.textResult;
}
/**
* @return videoResult
*/
public VideoResult getVideoResult() {
return this.videoResult;
}
public static final class Builder {
private String abnormalModules;
private java.util.List<AudioResult> audioResult;
private java.util.List<ImageResult> imageResult;
private String label;
private String suggestion;
private java.util.List<TextResult> textResult;
private VideoResult videoResult;
private Builder() {
}
private Builder(MediaAuditResult model) {
this.abnormalModules = model.abnormalModules;
this.audioResult = model.audioResult;
this.imageResult = model.imageResult;
this.label = model.label;
this.suggestion = model.suggestion;
this.textResult = model.textResult;
this.videoResult = model.videoResult;
}
/**
* <p>The content that violates the regulations. Separate multiple values with commas (,). Valid values:</p>
* <ul>
* <li><strong>video</strong></li>
* <li><strong>image-cover</strong></li>
* <li><strong>text-title</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>video</p>
*/
public Builder abnormalModules(String abnormalModules) {
this.abnormalModules = abnormalModules;
return this;
}
/**
* <p>The results of audio review.</p>
*/
public Builder audioResult(java.util.List<AudioResult> audioResult) {
this.audioResult = audioResult;
return this;
}
/**
* <p>The results of image review.</p>
*/
public Builder imageResult(java.util.List<ImageResult> imageResult) {
this.imageResult = imageResult;
return this;
}
/**
* <p>The category of the review result. Separate multiple values with commas (,). Valid values:</p>
* <ul>
* <li><strong>porn</strong></li>
* <li><strong>terrorism</strong></li>
* <li><strong>normal</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>porn</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The recommendation for review results. Valid values:</p>
* <ul>
* <li><strong>block</strong></li>
* <li><strong>review</strong></li>
* <li><strong>pass</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>pass</p>
*/
public Builder suggestion(String suggestion) {
this.suggestion = suggestion;
return this;
}
/**
* <p>The results of text review.</p>
*/
public Builder textResult(java.util.List<TextResult> textResult) {
this.textResult = textResult;
return this;
}
/**
* <p>The results of video review.</p>
*/
public Builder videoResult(VideoResult videoResult) {
this.videoResult = videoResult;
return this;
}
public MediaAuditResult build() {
return new MediaAuditResult(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/GetMediaAuditResultTimelineRequest.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 GetMediaAuditResultTimelineRequest} extends {@link RequestModel}
*
* <p>GetMediaAuditResultTimelineRequest</p>
*/
public class GetMediaAuditResultTimelineRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MediaId")
@com.aliyun.core.annotation.Validation(required = true)
private String mediaId;
private GetMediaAuditResultTimelineRequest(Builder builder) {
super(builder);
this.mediaId = builder.mediaId;
}
public static Builder builder() {
return new Builder();
}
public static GetMediaAuditResultTimelineRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return mediaId
*/
public String getMediaId() {
return this.mediaId;
}
public static final class Builder extends Request.Builder<GetMediaAuditResultTimelineRequest, Builder> {
private String mediaId;
private Builder() {
super();
}
private Builder(GetMediaAuditResultTimelineRequest request) {
super(request);
this.mediaId = request.mediaId;
}
/**
* <p>The ID of the video.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>93ab850b4f6f*****54b6e91d24d81d4</p>
*/
public Builder mediaId(String mediaId) {
this.putQueryParameter("MediaId", mediaId);
this.mediaId = mediaId;
return this;
}
@Override
public GetMediaAuditResultTimelineRequest build() {
return new GetMediaAuditResultTimelineRequest(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/GetMediaAuditResultTimelineResponse.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 GetMediaAuditResultTimelineResponse} extends {@link TeaModel}
*
* <p>GetMediaAuditResultTimelineResponse</p>
*/
public class GetMediaAuditResultTimelineResponse 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 GetMediaAuditResultTimelineResponseBody body;
private GetMediaAuditResultTimelineResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetMediaAuditResultTimelineResponse 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 GetMediaAuditResultTimelineResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetMediaAuditResultTimelineResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetMediaAuditResultTimelineResponseBody body);
@Override
GetMediaAuditResultTimelineResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetMediaAuditResultTimelineResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetMediaAuditResultTimelineResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetMediaAuditResultTimelineResponse 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(GetMediaAuditResultTimelineResponseBody body) {
this.body = body;
return this;
}
@Override
public GetMediaAuditResultTimelineResponse build() {
return new GetMediaAuditResultTimelineResponse(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/GetMediaAuditResultTimelineResponseBody.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 GetMediaAuditResultTimelineResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultTimelineResponseBody</p>
*/
public class GetMediaAuditResultTimelineResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MediaAuditResultTimeline")
private MediaAuditResultTimeline mediaAuditResultTimeline;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetMediaAuditResultTimelineResponseBody(Builder builder) {
this.mediaAuditResultTimeline = builder.mediaAuditResultTimeline;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetMediaAuditResultTimelineResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return mediaAuditResultTimeline
*/
public MediaAuditResultTimeline getMediaAuditResultTimeline() {
return this.mediaAuditResultTimeline;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private MediaAuditResultTimeline mediaAuditResultTimeline;
private String requestId;
private Builder() {
}
private Builder(GetMediaAuditResultTimelineResponseBody model) {
this.mediaAuditResultTimeline = model.mediaAuditResultTimeline;
this.requestId = model.requestId;
}
/**
* <p>The collection of review result timelines.</p>
*/
public Builder mediaAuditResultTimeline(MediaAuditResultTimeline mediaAuditResultTimeline) {
this.mediaAuditResultTimeline = mediaAuditResultTimeline;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>6438BD76-D523-46FC-956F-****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetMediaAuditResultTimelineResponseBody build() {
return new GetMediaAuditResultTimelineResponseBody(this);
}
}
/**
*
* {@link GetMediaAuditResultTimelineResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultTimelineResponseBody</p>
*/
public static class Ad extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Score")
private String score;
@com.aliyun.core.annotation.NameInMap("Timestamp")
private String timestamp;
private Ad(Builder builder) {
this.label = builder.label;
this.score = builder.score;
this.timestamp = builder.timestamp;
}
public static Builder builder() {
return new Builder();
}
public static Ad create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return score
*/
public String getScore() {
return this.score;
}
/**
* @return timestamp
*/
public String getTimestamp() {
return this.timestamp;
}
public static final class Builder {
private String label;
private String score;
private String timestamp;
private Builder() {
}
private Builder(Ad model) {
this.label = model.label;
this.score = model.score;
this.timestamp = model.timestamp;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>normal</strong>: normal content.</li>
* <li><strong>ad</strong>: other ads.</li>
* <li><strong>politics</strong>: political content in text.</li>
* <li><strong>porn</strong>: pornographic content in text.</li>
* <li><strong>abuse</strong>: abuse in text.</li>
* <li><strong>terrorism</strong>: terrorist content in text.</li>
* <li><strong>contraband</strong>: prohibited content in text.</li>
* <li><strong>spam</strong>: spam content.</li>
* <li><strong>npx</strong>: illegal ad.</li>
* <li><strong>qrcode</strong>: QR code.</li>
* <li><strong>programCode</strong>: mini program code.</li>
* </ul>
*
* <strong>example:</strong>
* <p>ad</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The score of the video snapshot in the ad review result. Valid values: <code>[0,100]</code>. The value is rounded down to 10 decimal places. The score is representative of the confidence.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder score(String score) {
this.score = score;
return this;
}
/**
* <p>The timestamp of the snapshot in the video. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder timestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
public Ad build() {
return new Ad(this);
}
}
}
/**
*
* {@link GetMediaAuditResultTimelineResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultTimelineResponseBody</p>
*/
public static class Live extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Score")
private String score;
@com.aliyun.core.annotation.NameInMap("Timestamp")
private String timestamp;
private Live(Builder builder) {
this.label = builder.label;
this.score = builder.score;
this.timestamp = builder.timestamp;
}
public static Builder builder() {
return new Builder();
}
public static Live create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return score
*/
public String getScore() {
return this.score;
}
/**
* @return timestamp
*/
public String getTimestamp() {
return this.timestamp;
}
public static final class Builder {
private String label;
private String score;
private String timestamp;
private Builder() {
}
private Builder(Live model) {
this.label = model.label;
this.score = model.score;
this.timestamp = model.timestamp;
}
/**
* <p>The categories of undesired content review results. Valid values:</p>
* <ul>
* <li><strong>normal</strong>: normal content.</li>
* <li><strong>meaningless</strong>: meaningless content, such as a black or white screen.</li>
* <li><strong>PIP</strong>: picture-in-picture.</li>
* <li><strong>smoking</strong>: smoking.</li>
* <li><strong>drivelive</strong>: live broadcasting in a running vehicle.</li>
* </ul>
*
* <strong>example:</strong>
* <p>pip</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The score of the video snapshot in the undesirable content review result. Valid values: <code>[0,100]</code>. The value is rounded down to 10 decimal places. The score is representative of the confidence.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder score(String score) {
this.score = score;
return this;
}
/**
* <p>The timestamp of the snapshot in the video. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder timestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
public Live build() {
return new Live(this);
}
}
}
/**
*
* {@link GetMediaAuditResultTimelineResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultTimelineResponseBody</p>
*/
public static class Logo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Score")
private String score;
@com.aliyun.core.annotation.NameInMap("Timestamp")
private String timestamp;
private Logo(Builder builder) {
this.label = builder.label;
this.score = builder.score;
this.timestamp = builder.timestamp;
}
public static Builder builder() {
return new Builder();
}
public static Logo create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return score
*/
public String getScore() {
return this.score;
}
/**
* @return timestamp
*/
public String getTimestamp() {
return this.timestamp;
}
public static final class Builder {
private String label;
private String score;
private String timestamp;
private Builder() {
}
private Builder(Logo model) {
this.label = model.label;
this.score = model.score;
this.timestamp = model.timestamp;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>normal</strong>: normal content.</li>
* <li><strong>TV</strong>: controlled TV station logo.</li>
* <li><strong>trademark</strong>: trademark.</li>
* </ul>
*
* <strong>example:</strong>
* <p>logo</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The score of the video snapshot in the logo review result. Valid values: <code>[0,100]</code>. The value is rounded down to 10 decimal places. The score is representative of the confidence.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder score(String score) {
this.score = score;
return this;
}
/**
* <p>The timestamp of the snapshot in the video. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>13</p>
*/
public Builder timestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
public Logo build() {
return new Logo(this);
}
}
}
/**
*
* {@link GetMediaAuditResultTimelineResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultTimelineResponseBody</p>
*/
public static class Porn extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Score")
private String score;
@com.aliyun.core.annotation.NameInMap("Timestamp")
private String timestamp;
private Porn(Builder builder) {
this.label = builder.label;
this.score = builder.score;
this.timestamp = builder.timestamp;
}
public static Builder builder() {
return new Builder();
}
public static Porn create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return score
*/
public String getScore() {
return this.score;
}
/**
* @return timestamp
*/
public String getTimestamp() {
return this.timestamp;
}
public static final class Builder {
private String label;
private String score;
private String timestamp;
private Builder() {
}
private Builder(Porn model) {
this.label = model.label;
this.score = model.score;
this.timestamp = model.timestamp;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>porn</strong></li>
* <li><strong>sexy</strong></li>
* <li><strong>normal</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>porn</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The score of the video snapshot in the pornographic content review result. Valid values: <code>[0,100]</code>. The value is rounded down to 10 decimal places. The score is representative of the confidence.</p>
*
* <strong>example:</strong>
* <p>100.00</p>
*/
public Builder score(String score) {
this.score = score;
return this;
}
/**
* <p>The timestamp of the snapshot in the video. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>3005</p>
*/
public Builder timestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
public Porn build() {
return new Porn(this);
}
}
}
/**
*
* {@link GetMediaAuditResultTimelineResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultTimelineResponseBody</p>
*/
public static class Terrorism extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Label")
private String label;
@com.aliyun.core.annotation.NameInMap("Score")
private String score;
@com.aliyun.core.annotation.NameInMap("Timestamp")
private String timestamp;
private Terrorism(Builder builder) {
this.label = builder.label;
this.score = builder.score;
this.timestamp = builder.timestamp;
}
public static Builder builder() {
return new Builder();
}
public static Terrorism create() {
return builder().build();
}
/**
* @return label
*/
public String getLabel() {
return this.label;
}
/**
* @return score
*/
public String getScore() {
return this.score;
}
/**
* @return timestamp
*/
public String getTimestamp() {
return this.timestamp;
}
public static final class Builder {
private String label;
private String score;
private String timestamp;
private Builder() {
}
private Builder(Terrorism model) {
this.label = model.label;
this.score = model.score;
this.timestamp = model.timestamp;
}
/**
* <p>The category of the review result. Valid values:</p>
* <ul>
* <li><strong>normal</strong></li>
* <li><strong>bloody</strong></li>
* <li><strong>explosion</strong></li>
* <li><strong>outfit</strong></li>
* <li><strong>logo</strong></li>
* <li><strong>weapon</strong></li>
* <li><strong>politics</strong></li>
* <li><strong>violence</strong></li>
* <li><strong>crowd</strong></li>
* <li><strong>parade</strong></li>
* <li><strong>carcrash</strong></li>
* <li><strong>flag</strong></li>
* <li><strong>location</strong></li>
* <li><strong>others</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>normal</p>
*/
public Builder label(String label) {
this.label = label;
return this;
}
/**
* <p>The score of the video snapshot in the terrorist content review result. Valid values: <code>[0,100]</code>. The value is rounded down to 10 decimal places. The score is representative of the confidence.</p>
*
* <strong>example:</strong>
* <p>100.00</p>
*/
public Builder score(String score) {
this.score = score;
return this;
}
/**
* <p>The timestamp of the snapshot in the video. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>3005</p>
*/
public Builder timestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
public Terrorism build() {
return new Terrorism(this);
}
}
}
/**
*
* {@link GetMediaAuditResultTimelineResponseBody} extends {@link TeaModel}
*
* <p>GetMediaAuditResultTimelineResponseBody</p>
*/
public static class MediaAuditResultTimeline extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ad")
private java.util.List<Ad> ad;
@com.aliyun.core.annotation.NameInMap("Live")
private java.util.List<Live> live;
@com.aliyun.core.annotation.NameInMap("Logo")
private java.util.List<Logo> logo;
@com.aliyun.core.annotation.NameInMap("Porn")
private java.util.List<Porn> porn;
@com.aliyun.core.annotation.NameInMap("Terrorism")
private java.util.List<Terrorism> terrorism;
private MediaAuditResultTimeline(Builder builder) {
this.ad = builder.ad;
this.live = builder.live;
this.logo = builder.logo;
this.porn = builder.porn;
this.terrorism = builder.terrorism;
}
public static Builder builder() {
return new Builder();
}
public static MediaAuditResultTimeline create() {
return builder().build();
}
/**
* @return ad
*/
public java.util.List<Ad> getAd() {
return this.ad;
}
/**
* @return live
*/
public java.util.List<Live> getLive() {
return this.live;
}
/**
* @return logo
*/
public java.util.List<Logo> getLogo() {
return this.logo;
}
/**
* @return porn
*/
public java.util.List<Porn> getPorn() {
return this.porn;
}
/**
* @return terrorism
*/
public java.util.List<Terrorism> getTerrorism() {
return this.terrorism;
}
public static final class Builder {
private java.util.List<Ad> ad;
private java.util.List<Live> live;
private java.util.List<Logo> logo;
private java.util.List<Porn> porn;
private java.util.List<Terrorism> terrorism;
private Builder() {
}
private Builder(MediaAuditResultTimeline model) {
this.ad = model.ad;
this.live = model.live;
this.logo = model.logo;
this.porn = model.porn;
this.terrorism = model.terrorism;
}
/**
* <p>The collection of ad timelines.</p>
*/
public Builder ad(java.util.List<Ad> ad) {
this.ad = ad;
return this;
}
/**
* <p>The collection of undesirable content timelines.</p>
*/
public Builder live(java.util.List<Live> live) {
this.live = live;
return this;
}
/**
* <p>The collection of logo timelines.</p>
*/
public Builder logo(java.util.List<Logo> logo) {
this.logo = logo;
return this;
}
/**
* <p>The collection of pornographic content timelines.</p>
*/
public Builder porn(java.util.List<Porn> porn) {
this.porn = porn;
return this;
}
/**
* <p>The collection of terrorist content timelines.</p>
*/
public Builder terrorism(java.util.List<Terrorism> terrorism) {
this.terrorism = terrorism;
return this;
}
public MediaAuditResultTimeline build() {
return new MediaAuditResultTimeline(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/GetMediaDNAResultRequest.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 GetMediaDNAResultRequest} extends {@link RequestModel}
*
* <p>GetMediaDNAResultRequest</p>
*/
public class GetMediaDNAResultRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MediaId")
@com.aliyun.core.annotation.Validation(required = true)
private String mediaId;
@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;
private GetMediaDNAResultRequest(Builder builder) {
super(builder);
this.mediaId = builder.mediaId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static GetMediaDNAResultRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return mediaId
*/
public String getMediaId() {
return this.mediaId;
}
/**
* @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;
}
public static final class Builder extends Request.Builder<GetMediaDNAResultRequest, Builder> {
private String mediaId;
private String ownerAccount;
private String ownerId;
private String resourceOwnerAccount;
private String resourceOwnerId;
private Builder() {
super();
}
private Builder(GetMediaDNAResultRequest request) {
super(request);
this.mediaId = request.mediaId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The ID of the video.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>88c6ca184c0e*****a5b665e2a126797</p>
*/
public Builder mediaId(String mediaId) {
this.putQueryParameter("MediaId", mediaId);
this.mediaId = mediaId;
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;
}
@Override
public GetMediaDNAResultRequest build() {
return new GetMediaDNAResultRequest(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/GetMediaDNAResultResponse.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 GetMediaDNAResultResponse} extends {@link TeaModel}
*
* <p>GetMediaDNAResultResponse</p>
*/
public class GetMediaDNAResultResponse 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 GetMediaDNAResultResponseBody body;
private GetMediaDNAResultResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetMediaDNAResultResponse 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 GetMediaDNAResultResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetMediaDNAResultResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetMediaDNAResultResponseBody body);
@Override
GetMediaDNAResultResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetMediaDNAResultResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetMediaDNAResultResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetMediaDNAResultResponse 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(GetMediaDNAResultResponseBody body) {
this.body = body;
return this;
}
@Override
public GetMediaDNAResultResponse build() {
return new GetMediaDNAResultResponse(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/GetMediaDNAResultResponseBody.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 GetMediaDNAResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaDNAResultResponseBody</p>
*/
public class GetMediaDNAResultResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DNAResult")
private DNAResult DNAResult;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetMediaDNAResultResponseBody(Builder builder) {
this.DNAResult = builder.DNAResult;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetMediaDNAResultResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DNAResult
*/
public DNAResult getDNAResult() {
return this.DNAResult;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private DNAResult DNAResult;
private String requestId;
private Builder() {
}
private Builder(GetMediaDNAResultResponseBody model) {
this.DNAResult = model.DNAResult;
this.requestId = model.requestId;
}
/**
* <p>The media fingerprinting results.</p>
*/
public Builder DNAResult(DNAResult DNAResult) {
this.DNAResult = DNAResult;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>63FC4896-E956-4B*****7D-134FF1BC597A</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetMediaDNAResultResponseBody build() {
return new GetMediaDNAResultResponseBody(this);
}
}
/**
*
* {@link GetMediaDNAResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaDNAResultResponseBody</p>
*/
public static class Duplication extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Duration")
private String duration;
@com.aliyun.core.annotation.NameInMap("Start")
private String start;
private Duplication(Builder builder) {
this.duration = builder.duration;
this.start = builder.start;
}
public static Builder builder() {
return new Builder();
}
public static Duplication create() {
return builder().build();
}
/**
* @return duration
*/
public String getDuration() {
return this.duration;
}
/**
* @return start
*/
public String getStart() {
return this.start;
}
public static final class Builder {
private String duration;
private String start;
private Builder() {
}
private Builder(Duplication model) {
this.duration = model.duration;
this.start = model.start;
}
/**
* <p>The duration of the video. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>12.0</p>
*/
public Builder duration(String duration) {
this.duration = duration;
return this;
}
/**
* <p>The start time of the video. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>2.0</p>
*/
public Builder start(String start) {
this.start = start;
return this;
}
public Duplication build() {
return new Duplication(this);
}
}
}
/**
*
* {@link GetMediaDNAResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaDNAResultResponseBody</p>
*/
public static class Input extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Duration")
private String duration;
@com.aliyun.core.annotation.NameInMap("Start")
private String start;
private Input(Builder builder) {
this.duration = builder.duration;
this.start = builder.start;
}
public static Builder builder() {
return new Builder();
}
public static Input create() {
return builder().build();
}
/**
* @return duration
*/
public String getDuration() {
return this.duration;
}
/**
* @return start
*/
public String getStart() {
return this.start;
}
public static final class Builder {
private String duration;
private String start;
private Builder() {
}
private Builder(Input model) {
this.duration = model.duration;
this.start = model.start;
}
/**
* <p>The duration of the video. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>12.0</p>
*/
public Builder duration(String duration) {
this.duration = duration;
return this;
}
/**
* <p>The start time of the video. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>2.0</p>
*/
public Builder start(String start) {
this.start = start;
return this;
}
public Input build() {
return new Input(this);
}
}
}
/**
*
* {@link GetMediaDNAResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaDNAResultResponseBody</p>
*/
public static class Detail extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Duplication")
private Duplication duplication;
@com.aliyun.core.annotation.NameInMap("Input")
private Input input;
private Detail(Builder builder) {
this.duplication = builder.duplication;
this.input = builder.input;
}
public static Builder builder() {
return new Builder();
}
public static Detail create() {
return builder().build();
}
/**
* @return duplication
*/
public Duplication getDuplication() {
return this.duplication;
}
/**
* @return input
*/
public Input getInput() {
return this.input;
}
public static final class Builder {
private Duplication duplication;
private Input input;
private Builder() {
}
private Builder(Detail model) {
this.duplication = model.duplication;
this.input = model.input;
}
/**
* <p>The start time and duration of the matched video.</p>
*/
public Builder duplication(Duplication duplication) {
this.duplication = duplication;
return this;
}
/**
* <p>The start time and duration of the input video.</p>
*/
public Builder input(Input input) {
this.input = input;
return this;
}
public Detail build() {
return new Detail(this);
}
}
}
/**
*
* {@link GetMediaDNAResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaDNAResultResponseBody</p>
*/
public static class VideoDNA extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Detail")
private java.util.List<Detail> detail;
@com.aliyun.core.annotation.NameInMap("PrimaryKey")
private String primaryKey;
@com.aliyun.core.annotation.NameInMap("Similarity")
private String similarity;
private VideoDNA(Builder builder) {
this.detail = builder.detail;
this.primaryKey = builder.primaryKey;
this.similarity = builder.similarity;
}
public static Builder builder() {
return new Builder();
}
public static VideoDNA create() {
return builder().build();
}
/**
* @return detail
*/
public java.util.List<Detail> getDetail() {
return this.detail;
}
/**
* @return primaryKey
*/
public String getPrimaryKey() {
return this.primaryKey;
}
/**
* @return similarity
*/
public String getSimilarity() {
return this.similarity;
}
public static final class Builder {
private java.util.List<Detail> detail;
private String primaryKey;
private String similarity;
private Builder() {
}
private Builder(VideoDNA model) {
this.detail = model.detail;
this.primaryKey = model.primaryKey;
this.similarity = model.similarity;
}
/**
* <p>The details of the matched video. Information such as the location and duration of the video is returned.</p>
*/
public Builder detail(java.util.List<Detail> detail) {
this.detail = detail;
return this;
}
/**
* <p>The ID of the video that has a similar fingerprint.</p>
*
* <strong>example:</strong>
* <p>6ad8987da46f4b*****490ce2873745</p>
*/
public Builder primaryKey(String primaryKey) {
this.primaryKey = primaryKey;
return this;
}
/**
* <p>The similarity between the fingerprints of the input video and the matched video. 1 indicates that the fingerprints of the two videos are the same.</p>
*
* <strong>example:</strong>
* <p>0.98</p>
*/
public Builder similarity(String similarity) {
this.similarity = similarity;
return this;
}
public VideoDNA build() {
return new VideoDNA(this);
}
}
}
/**
*
* {@link GetMediaDNAResultResponseBody} extends {@link TeaModel}
*
* <p>GetMediaDNAResultResponseBody</p>
*/
public static class DNAResult extends TeaModel {
@com.aliyun.core.annotation.NameInMap("VideoDNA")
private java.util.List<VideoDNA> videoDNA;
private DNAResult(Builder builder) {
this.videoDNA = builder.videoDNA;
}
public static Builder builder() {
return new Builder();
}
public static DNAResult create() {
return builder().build();
}
/**
* @return videoDNA
*/
public java.util.List<VideoDNA> getVideoDNA() {
return this.videoDNA;
}
public static final class Builder {
private java.util.List<VideoDNA> videoDNA;
private Builder() {
}
private Builder(DNAResult model) {
this.videoDNA = model.videoDNA;
}
/**
* <p>The video fingerprint recognition result.</p>
*/
public Builder videoDNA(java.util.List<VideoDNA> videoDNA) {
this.videoDNA = videoDNA;
return this;
}
public DNAResult build() {
return new DNAResult(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/GetMediaRefreshJobsRequest.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 GetMediaRefreshJobsRequest} extends {@link RequestModel}
*
* <p>GetMediaRefreshJobsRequest</p>
*/
public class GetMediaRefreshJobsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MediaId")
private String mediaId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MediaRefreshJobId")
@com.aliyun.core.annotation.Validation(required = true)
private String mediaRefreshJobId;
private GetMediaRefreshJobsRequest(Builder builder) {
super(builder);
this.mediaId = builder.mediaId;
this.mediaRefreshJobId = builder.mediaRefreshJobId;
}
public static Builder builder() {
return new Builder();
}
public static GetMediaRefreshJobsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return mediaId
*/
public String getMediaId() {
return this.mediaId;
}
/**
* @return mediaRefreshJobId
*/
public String getMediaRefreshJobId() {
return this.mediaRefreshJobId;
}
public static final class Builder extends Request.Builder<GetMediaRefreshJobsRequest, Builder> {
private String mediaId;
private String mediaRefreshJobId;
private Builder() {
super();
}
private Builder(GetMediaRefreshJobsRequest request) {
super(request);
this.mediaId = request.mediaId;
this.mediaRefreshJobId = request.mediaRefreshJobId;
}
/**
* <p>The ID of the media file. It is the value of the <code>MediaIds</code> parameter that you specify when you call the <a href="~~RefreshMediaPlayUrls~~">RefreshMediaPlayUrls</a> operation. You can specify only one media ID.</p>
* <p>If you leave this parameter empty, information about all media files in the refresh or prefetch job specified by <code>MediaRefreshJobId</code> is returned. If you set this parameter, only the information about the specified media file is returned.``</p>
*
* <strong>example:</strong>
* <p>ca3a8f6e4957b658067095869****</p>
*/
public Builder mediaId(String mediaId) {
this.putQueryParameter("MediaId", mediaId);
this.mediaId = mediaId;
return this;
}
/**
* <p>The ID of the refresh or prefetch job. It is the value of the MediaRefreshJobId parameter that is returned from the call to the <a href="~~RefreshMediaPlayUrls~~">RefreshMediaPlayUrls</a> operation.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>41d465e31957****</p>
*/
public Builder mediaRefreshJobId(String mediaRefreshJobId) {
this.putQueryParameter("MediaRefreshJobId", mediaRefreshJobId);
this.mediaRefreshJobId = mediaRefreshJobId;
return this;
}
@Override
public GetMediaRefreshJobsRequest build() {
return new GetMediaRefreshJobsRequest(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/GetMediaRefreshJobsResponse.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 GetMediaRefreshJobsResponse} extends {@link TeaModel}
*
* <p>GetMediaRefreshJobsResponse</p>
*/
public class GetMediaRefreshJobsResponse 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 GetMediaRefreshJobsResponseBody body;
private GetMediaRefreshJobsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetMediaRefreshJobsResponse 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 GetMediaRefreshJobsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetMediaRefreshJobsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetMediaRefreshJobsResponseBody body);
@Override
GetMediaRefreshJobsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetMediaRefreshJobsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetMediaRefreshJobsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetMediaRefreshJobsResponse 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(GetMediaRefreshJobsResponseBody body) {
this.body = body;
return this;
}
@Override
public GetMediaRefreshJobsResponse build() {
return new GetMediaRefreshJobsResponse(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/GetMediaRefreshJobsResponseBody.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 GetMediaRefreshJobsResponseBody} extends {@link TeaModel}
*
* <p>GetMediaRefreshJobsResponseBody</p>
*/
public class GetMediaRefreshJobsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MediaRefreshJobs")
private java.util.List<MediaRefreshJobs> mediaRefreshJobs;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetMediaRefreshJobsResponseBody(Builder builder) {
this.mediaRefreshJobs = builder.mediaRefreshJobs;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetMediaRefreshJobsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return mediaRefreshJobs
*/
public java.util.List<MediaRefreshJobs> getMediaRefreshJobs() {
return this.mediaRefreshJobs;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<MediaRefreshJobs> mediaRefreshJobs;
private String requestId;
private Builder() {
}
private Builder(GetMediaRefreshJobsResponseBody model) {
this.mediaRefreshJobs = model.mediaRefreshJobs;
this.requestId = model.requestId;
}
/**
* <p>The media refresh or prefetch jobs.</p>
*/
public Builder mediaRefreshJobs(java.util.List<MediaRefreshJobs> mediaRefreshJobs) {
this.mediaRefreshJobs = mediaRefreshJobs;
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 GetMediaRefreshJobsResponseBody build() {
return new GetMediaRefreshJobsResponseBody(this);
}
}
/**
*
* {@link GetMediaRefreshJobsResponseBody} extends {@link TeaModel}
*
* <p>GetMediaRefreshJobsResponseBody</p>
*/
public static class MediaRefreshJobs 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("FilterPolicy")
private String filterPolicy;
@com.aliyun.core.annotation.NameInMap("GmtCreate")
private String gmtCreate;
@com.aliyun.core.annotation.NameInMap("GmtModified")
private String gmtModified;
@com.aliyun.core.annotation.NameInMap("MediaId")
private String mediaId;
@com.aliyun.core.annotation.NameInMap("MediaRefreshJobId")
private String mediaRefreshJobId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("SuccessPlayUrls")
private String successPlayUrls;
@com.aliyun.core.annotation.NameInMap("TaskIds")
private String taskIds;
@com.aliyun.core.annotation.NameInMap("TaskType")
private String taskType;
@com.aliyun.core.annotation.NameInMap("UserData")
private String userData;
private MediaRefreshJobs(Builder builder) {
this.errorCode = builder.errorCode;
this.errorMessage = builder.errorMessage;
this.filterPolicy = builder.filterPolicy;
this.gmtCreate = builder.gmtCreate;
this.gmtModified = builder.gmtModified;
this.mediaId = builder.mediaId;
this.mediaRefreshJobId = builder.mediaRefreshJobId;
this.status = builder.status;
this.successPlayUrls = builder.successPlayUrls;
this.taskIds = builder.taskIds;
this.taskType = builder.taskType;
this.userData = builder.userData;
}
public static Builder builder() {
return new Builder();
}
public static MediaRefreshJobs create() {
return builder().build();
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return errorMessage
*/
public String getErrorMessage() {
return this.errorMessage;
}
/**
* @return filterPolicy
*/
public String getFilterPolicy() {
return this.filterPolicy;
}
/**
* @return gmtCreate
*/
public String getGmtCreate() {
return this.gmtCreate;
}
/**
* @return gmtModified
*/
public String getGmtModified() {
return this.gmtModified;
}
/**
* @return mediaId
*/
public String getMediaId() {
return this.mediaId;
}
/**
* @return mediaRefreshJobId
*/
public String getMediaRefreshJobId() {
return this.mediaRefreshJobId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return successPlayUrls
*/
public String getSuccessPlayUrls() {
return this.successPlayUrls;
}
/**
* @return taskIds
*/
public String getTaskIds() {
return this.taskIds;
}
/**
* @return taskType
*/
public String getTaskType() {
return this.taskType;
}
/**
* @return userData
*/
public String getUserData() {
return this.userData;
}
public static final class Builder {
private String errorCode;
private String errorMessage;
private String filterPolicy;
private String gmtCreate;
private String gmtModified;
private String mediaId;
private String mediaRefreshJobId;
private String status;
private String successPlayUrls;
private String taskIds;
private String taskType;
private String userData;
private Builder() {
}
private Builder(MediaRefreshJobs model) {
this.errorCode = model.errorCode;
this.errorMessage = model.errorMessage;
this.filterPolicy = model.filterPolicy;
this.gmtCreate = model.gmtCreate;
this.gmtModified = model.gmtModified;
this.mediaId = model.mediaId;
this.mediaRefreshJobId = model.mediaRefreshJobId;
this.status = model.status;
this.successPlayUrls = model.successPlayUrls;
this.taskIds = model.taskIds;
this.taskType = model.taskType;
this.userData = model.userData;
}
/**
* <p>The error code. This parameter is returned if the refresh or prefetch task fails.</p>
*
* <strong>example:</strong>
* <p>PreloadQueueFull</p>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The error message. This parameter is returned if the refresh or prefetch task fails.</p>
*
* <strong>example:</strong>
* <p>Preload queue is full, please try again later!</p>
*/
public Builder errorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
/**
* <p>The filtering conditions for stream playback. The value is a JSON string. This parameter is used as a request parameter of the <a href="~~RefreshMediaPlayUrls~~">RefreshMediaPlayUrls</a> operation.</p>
*
* <strong>example:</strong>
* <p>{"Formats":"mp4,m3u8", "Definitions":"HD,SD", " StreamType":"video", "ResultType":"Single", " SliceFlag":false, "SliceCount": 3}</p>
*/
public Builder filterPolicy(String filterPolicy) {
this.filterPolicy = filterPolicy;
return this;
}
/**
* <p>The time when the task was created.</p>
*
* <strong>example:</strong>
* <p>2022-05-20T08:23:22Z</p>
*/
public Builder gmtCreate(String gmtCreate) {
this.gmtCreate = gmtCreate;
return this;
}
/**
* <p>The time when the task was modified.</p>
*
* <strong>example:</strong>
* <p>2022-05-21T08:23:22Z</p>
*/
public Builder gmtModified(String gmtModified) {
this.gmtModified = gmtModified;
return this;
}
/**
* <p>The ID of the media file.</p>
*
* <strong>example:</strong>
* <p>ca3a8f6e4957b658067095869****</p>
*/
public Builder mediaId(String mediaId) {
this.mediaId = mediaId;
return this;
}
/**
* <p>The ID of the job.</p>
*
* <strong>example:</strong>
* <p>41d465e31957****</p>
*/
public Builder mediaRefreshJobId(String mediaRefreshJobId) {
this.mediaRefreshJobId = mediaRefreshJobId;
return this;
}
/**
* <p>The status of the job. Valid values:</p>
* <ul>
* <li><strong>success</strong></li>
* <li><strong>fail</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The playback URLs that were refreshed or prefetched.</p>
*
* <strong>example:</strong>
* <p><a href="https://shenzhen.****.aliyuncdn.com/74401a4f546007bf845cd8840****.m3u8,https://shenzhen.****.aliyuncdn.com/24041e7d13582d86604d8****.m3u8">https://shenzhen.****.aliyuncdn.com/74401a4f546007bf845cd8840****.m3u8,https://shenzhen.****.aliyuncdn.com/24041e7d13582d86604d8****.m3u8</a></p>
*/
public Builder successPlayUrls(String successPlayUrls) {
this.successPlayUrls = successPlayUrls;
return this;
}
/**
* <p>The IDs of the refresh or prefetch tasks for the playback URLs of media files. Only one URL can be refreshed or prefetched in a task. This value is used in the <a href="~~DescribeVodRefreshTasks~~">DescribeVodRefreshTasks</a> operation, which queries the status of refresh or prefetch tasks for playback URLs of media files.</p>
*
* <strong>example:</strong>
* <p>70422****,9524****</p>
*/
public Builder taskIds(String taskIds) {
this.taskIds = taskIds;
return this;
}
/**
* <p>The type of the job. Valid values:</p>
* <ul>
* <li><strong>Refresh</strong></li>
* <li><strong>Preload</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Preload</p>
*/
public Builder taskType(String taskType) {
this.taskType = taskType;
return this;
}
/**
* <p>The user data that you passed when you submit a refresh or prefetch task.</p>
*
* <strong>example:</strong>
* <p>{"MessageCallback":{"CallbackURL":"<a href="http://example.aliyundoc.com%22%7D">http://example.aliyundoc.com"}</a>, "Extend":{"localId":"xxx","test":"www"}}</p>
*/
public Builder userData(String userData) {
this.userData = userData;
return this;
}
public MediaRefreshJobs build() {
return new MediaRefreshJobs(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/GetMessageCallbackRequest.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 GetMessageCallbackRequest} extends {@link RequestModel}
*
* <p>GetMessageCallbackRequest</p>
*/
public class GetMessageCallbackRequest 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("OwnerAccount")
private String ownerAccount;
private GetMessageCallbackRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.ownerAccount = builder.ownerAccount;
}
public static Builder builder() {
return new Builder();
}
public static GetMessageCallbackRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
public static final class Builder extends Request.Builder<GetMessageCallbackRequest, Builder> {
private String appId;
private String ownerAccount;
private Builder() {
super();
}
private Builder(GetMessageCallbackRequest request) {
super(request);
this.appId = request.appId;
this.ownerAccount = request.ownerAccount;
}
/**
* <p>The ID of the application. If you do not set this parameter, the default value <strong>app-1000000</strong> is used.</p>
*
* <strong>example:</strong>
* <p>app-1000000</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
@Override
public GetMessageCallbackRequest build() {
return new GetMessageCallbackRequest(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/GetMessageCallbackResponse.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 GetMessageCallbackResponse} extends {@link TeaModel}
*
* <p>GetMessageCallbackResponse</p>
*/
public class GetMessageCallbackResponse 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 GetMessageCallbackResponseBody body;
private GetMessageCallbackResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetMessageCallbackResponse 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 GetMessageCallbackResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetMessageCallbackResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetMessageCallbackResponseBody body);
@Override
GetMessageCallbackResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetMessageCallbackResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetMessageCallbackResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetMessageCallbackResponse 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(GetMessageCallbackResponseBody body) {
this.body = body;
return this;
}
@Override
public GetMessageCallbackResponse build() {
return new GetMessageCallbackResponse(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/GetMessageCallbackResponseBody.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 GetMessageCallbackResponseBody} extends {@link TeaModel}
*
* <p>GetMessageCallbackResponseBody</p>
*/
public class GetMessageCallbackResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MessageCallback")
private MessageCallback messageCallback;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetMessageCallbackResponseBody(Builder builder) {
this.messageCallback = builder.messageCallback;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetMessageCallbackResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return messageCallback
*/
public MessageCallback getMessageCallback() {
return this.messageCallback;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private MessageCallback messageCallback;
private String requestId;
private Builder() {
}
private Builder(GetMessageCallbackResponseBody model) {
this.messageCallback = model.messageCallback;
this.requestId = model.requestId;
}
/**
* <p>The configuration of the event notification.</p>
*/
public Builder messageCallback(MessageCallback messageCallback) {
this.messageCallback = messageCallback;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>272A222A-F7F7-4A3E-****-F531574F1234</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetMessageCallbackResponseBody build() {
return new GetMessageCallbackResponseBody(this);
}
}
/**
*
* {@link GetMessageCallbackResponseBody} extends {@link TeaModel}
*
* <p>GetMessageCallbackResponseBody</p>
*/
public static class MessageCallback extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("AuthKey")
private String authKey;
@com.aliyun.core.annotation.NameInMap("AuthSwitch")
private String authSwitch;
@com.aliyun.core.annotation.NameInMap("CallbackType")
private String callbackType;
@com.aliyun.core.annotation.NameInMap("CallbackURL")
private String callbackURL;
@com.aliyun.core.annotation.NameInMap("EventTypeList")
private String eventTypeList;
@com.aliyun.core.annotation.NameInMap("MnsEndpoint")
private String mnsEndpoint;
@com.aliyun.core.annotation.NameInMap("MnsQueueName")
private String mnsQueueName;
private MessageCallback(Builder builder) {
this.appId = builder.appId;
this.authKey = builder.authKey;
this.authSwitch = builder.authSwitch;
this.callbackType = builder.callbackType;
this.callbackURL = builder.callbackURL;
this.eventTypeList = builder.eventTypeList;
this.mnsEndpoint = builder.mnsEndpoint;
this.mnsQueueName = builder.mnsQueueName;
}
public static Builder builder() {
return new Builder();
}
public static MessageCallback create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return authKey
*/
public String getAuthKey() {
return this.authKey;
}
/**
* @return authSwitch
*/
public String getAuthSwitch() {
return this.authSwitch;
}
/**
* @return callbackType
*/
public String getCallbackType() {
return this.callbackType;
}
/**
* @return callbackURL
*/
public String getCallbackURL() {
return this.callbackURL;
}
/**
* @return eventTypeList
*/
public String getEventTypeList() {
return this.eventTypeList;
}
/**
* @return mnsEndpoint
*/
public String getMnsEndpoint() {
return this.mnsEndpoint;
}
/**
* @return mnsQueueName
*/
public String getMnsQueueName() {
return this.mnsQueueName;
}
public static final class Builder {
private String appId;
private String authKey;
private String authSwitch;
private String callbackType;
private String callbackURL;
private String eventTypeList;
private String mnsEndpoint;
private String mnsQueueName;
private Builder() {
}
private Builder(MessageCallback model) {
this.appId = model.appId;
this.authKey = model.authKey;
this.authSwitch = model.authSwitch;
this.callbackType = model.callbackType;
this.callbackURL = model.callbackURL;
this.eventTypeList = model.eventTypeList;
this.mnsEndpoint = model.mnsEndpoint;
this.mnsQueueName = model.mnsQueueName;
}
/**
* <p>The ID of the application.</p>
*
* <strong>example:</strong>
* <p>app-1000000</p>
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* <p>The cryptographic key. This parameter is returned only for HTTP callbacks.</p>
*
* <strong>example:</strong>
* <p>12345678abc</p>
*/
public Builder authKey(String authKey) {
this.authKey = authKey;
return this;
}
/**
* <p>Indicates whether callback authentication is enabled. This parameter is returned only for HTTP callbacks. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder authSwitch(String authSwitch) {
this.authSwitch = authSwitch;
return this;
}
/**
* <p>The callback method. Valid values:</p>
* <ul>
* <li><strong>HTTP</strong></li>
* <li><strong>MNS</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>HTTP</p>
*/
public Builder callbackType(String callbackType) {
this.callbackType = callbackType;
return this;
}
/**
* <p>The callback URL. This parameter is returned only for HTTP callbacks.</p>
*
* <strong>example:</strong>
* <p><a href="http://test.com/test">http://test.com/test</a></p>
*/
public Builder callbackURL(String callbackURL) {
this.callbackURL = callbackURL;
return this;
}
/**
* <p>The type of the callback event.</p>
*
* <strong>example:</strong>
* <p>FileUploadComplete,StreamTranscodeComplete,TranscodeComplete,SnapshotComplete,AIComplete,AddLiveRecordVideoComplete,CreateAuditComplete,UploadByURLComplete,ProduceMediaComplete,LiveRecordVideoComposeStart,ImageUploadComplete,VideoAnalysisComplete</p>
*/
public Builder eventTypeList(String eventTypeList) {
this.eventTypeList = eventTypeList;
return this;
}
/**
* <p>The public endpoint of MNS. This parameter is returned only for MNS callbacks.</p>
*
* <strong>example:</strong>
* <p><a href="http://1234567.mns.cn-shanghai-internal.aliyuncs.com/">http://1234567.mns.cn-shanghai-internal.aliyuncs.com/</a></p>
*/
public Builder mnsEndpoint(String mnsEndpoint) {
this.mnsEndpoint = mnsEndpoint;
return this;
}
/**
* <p>The name of the Message Service (MNS) queue. This parameter is returned only for MNS callbacks.</p>
*
* <strong>example:</strong>
* <p>vodcallback</p>
*/
public Builder mnsQueueName(String mnsQueueName) {
this.mnsQueueName = mnsQueueName;
return this;
}
public MessageCallback build() {
return new MessageCallback(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/GetMezzanineInfoRequest.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 GetMezzanineInfoRequest} extends {@link RequestModel}
*
* <p>GetMezzanineInfoRequest</p>
*/
public class GetMezzanineInfoRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AdditionType")
private String additionType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AuthTimeout")
private Long authTimeout;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OutputType")
private String outputType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VideoId")
@com.aliyun.core.annotation.Validation(required = true)
private String videoId;
private GetMezzanineInfoRequest(Builder builder) {
super(builder);
this.additionType = builder.additionType;
this.authTimeout = builder.authTimeout;
this.outputType = builder.outputType;
this.videoId = builder.videoId;
}
public static Builder builder() {
return new Builder();
}
public static GetMezzanineInfoRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return additionType
*/
public String getAdditionType() {
return this.additionType;
}
/**
* @return authTimeout
*/
public Long getAuthTimeout() {
return this.authTimeout;
}
/**
* @return outputType
*/
public String getOutputType() {
return this.outputType;
}
/**
* @return videoId
*/
public String getVideoId() {
return this.videoId;
}
public static final class Builder extends Request.Builder<GetMezzanineInfoRequest, Builder> {
private String additionType;
private Long authTimeout;
private String outputType;
private String videoId;
private Builder() {
super();
}
private Builder(GetMezzanineInfoRequest request) {
super(request);
this.additionType = request.additionType;
this.authTimeout = request.authTimeout;
this.outputType = request.outputType;
this.videoId = request.videoId;
}
/**
* <p>The type of additional information. Separate multiple values with commas (,). By default, only the basic information is returned. Valid values:</p>
* <ul>
* <li><strong>video</strong>: video stream information</li>
* <li><strong>audio</strong>: audio stream information</li>
* </ul>
*
* <strong>example:</strong>
* <p>video</p>
*/
public Builder additionType(String additionType) {
this.putQueryParameter("AdditionType", additionType);
this.additionType = additionType;
return this;
}
/**
* <p>The validity period of the mezzanine file URL. Unit: seconds. Default value: <strong>1800</strong>. Minimum value: <strong>1</strong>.</p>
* <ul>
* <li><p>If the OutputType parameter is set to <strong>cdn</strong>:</p>
* <ul>
* <li>The mezzanine file URL has a validity period only if URL signing is enabled. Otherwise, the mezzanine file URL is permanently valid.</li>
* <li>Minimum value: <strong>1</strong>.</li>
* <li>Maximum Value: unlimited.</li>
* <li>Default value: If you do not set this parameter, the default validity period that is specified in URL signing is used.</li>
* </ul>
* </li>
* </ul>
* <!---->
*
* <ul>
* <li><p>If the OutputType parameter is set to <strong>oss</strong>:</p>
* <ul>
* <li>The mezzanine file URL has a validity period only if the permissions on the Object Storage Service (OSS) bucket are private. Otherwise, the mezzanine file URL is permanently valid.</li>
* <li>Minimum value: <strong>1</strong>.</li>
* <li>Maximum value: <strong>2592000</strong> (30 days). The maximum value is limited to reduce security risks of the origin.</li>
* <li>Default value: If you do not set this parameter, the default value is <strong>3600</strong>.</li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>3600</p>
*/
public Builder authTimeout(Long authTimeout) {
this.putQueryParameter("AuthTimeout", authTimeout);
this.authTimeout = authTimeout;
return this;
}
/**
* <p>The type of the mezzanine file URL. Valid values:</p>
* <ul>
* <li><strong>oss</strong>: OSS URL</li>
* <li><strong>cdn</strong> (default): Content Delivery Network (CDN) URL</li>
* </ul>
* <blockquote>
* <p>If the mezzanine file is stored in a bucket of the in type, only an OSS URL is returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>oss</p>
*/
public Builder outputType(String outputType) {
this.putQueryParameter("OutputType", outputType);
this.outputType = outputType;
return this;
}
/**
* <p>The ID of the video.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1f1a6fc03ca04814031b8a6559e****</p>
*/
public Builder videoId(String videoId) {
this.putQueryParameter("VideoId", videoId);
this.videoId = videoId;
return this;
}
@Override
public GetMezzanineInfoRequest build() {
return new GetMezzanineInfoRequest(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/GetMezzanineInfoResponse.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 GetMezzanineInfoResponse} extends {@link TeaModel}
*
* <p>GetMezzanineInfoResponse</p>
*/
public class GetMezzanineInfoResponse 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 GetMezzanineInfoResponseBody body;
private GetMezzanineInfoResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetMezzanineInfoResponse 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 GetMezzanineInfoResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetMezzanineInfoResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetMezzanineInfoResponseBody body);
@Override
GetMezzanineInfoResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetMezzanineInfoResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetMezzanineInfoResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetMezzanineInfoResponse 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(GetMezzanineInfoResponseBody body) {
this.body = body;
return this;
}
@Override
public GetMezzanineInfoResponse build() {
return new GetMezzanineInfoResponse(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/GetMezzanineInfoResponseBody.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 GetMezzanineInfoResponseBody} extends {@link TeaModel}
*
* <p>GetMezzanineInfoResponseBody</p>
*/
public class GetMezzanineInfoResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Mezzanine")
private Mezzanine mezzanine;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetMezzanineInfoResponseBody(Builder builder) {
this.mezzanine = builder.mezzanine;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetMezzanineInfoResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return mezzanine
*/
public Mezzanine getMezzanine() {
return this.mezzanine;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Mezzanine mezzanine;
private String requestId;
private Builder() {
}
private Builder(GetMezzanineInfoResponseBody model) {
this.mezzanine = model.mezzanine;
this.requestId = model.requestId;
}
/**
* <p>The information about the source file.</p>
*/
public Builder mezzanine(Mezzanine mezzanine) {
this.mezzanine = mezzanine;
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 GetMezzanineInfoResponseBody build() {
return new GetMezzanineInfoResponseBody(this);
}
}
/**
*
* {@link GetMezzanineInfoResponseBody} extends {@link TeaModel}
*
* <p>GetMezzanineInfoResponseBody</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 sound 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 channels.</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 codec time base.</p>
*
* <strong>example:</strong>
* <p>1/44100</p>
*/
public Builder codecTimeBase(String codecTimeBase) {
this.codecTimeBase = codecTimeBase;
return this;
}
/**
* <p>The duration of the audio file.</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 of the audio stream.</p>
*
* <strong>example:</strong>
* <p>44100</p>
*/
public Builder sampleRate(String sampleRate) {
this.sampleRate = sampleRate;
return this;
}
/**
* <p>The beginning of the time range during which the data was queried. 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 startTime(String startTime) {
this.startTime = startTime;
return this;
}
/**
* <p>The time base of the audio stream.</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 GetMezzanineInfoResponseBody} extends {@link TeaModel}
*
* <p>GetMezzanineInfoResponseBody</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. 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 codec time base.</p>
*
* <strong>example:</strong>
* <p>1/60</p>
*/
public Builder codecTimeBase(String codecTimeBase) {
this.codecTimeBase = codecTimeBase;
return this;
}
/**
* <p>The display aspect ratio (DAR) of the video stream.</p>
*
* <strong>example:</strong>
* <p>0:1</p>
*/
public Builder dar(String dar) {
this.dar = dar;
return this;
}
/**
* <p>The duration of the audio file.</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 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 indicates 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.</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: <strong>[0,360)</strong>.</p>
*
* <strong>example:</strong>
* <p>90</p>
*/
public Builder rotate(String rotate) {
this.rotate = rotate;
return this;
}
/**
* <p>The sample aspect ratio (SAR) of the video stream.</p>
*
* <strong>example:</strong>
* <p>0:1</p>
*/
public Builder sar(String sar) {
this.sar = sar;
return this;
}
/**
* <p>The beginning of the time range during which the data was queried. 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 startTime(String startTime) {
this.startTime = startTime;
return this;
}
/**
* <p>The time base of the audio stream.</p>
*
* <strong>example:</strong>
* <p>0.000000</p>
*/
public Builder timebase(String timebase) {
this.timebase = timebase;
return this;
}
/**
* <p>The width of the video in pixels.</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 GetMezzanineInfoResponseBody} extends {@link TeaModel}
*
* <p>GetMezzanineInfoResponseBody</p>
*/
public static class Mezzanine 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("OutputType")
private String outputType;
@com.aliyun.core.annotation.NameInMap("PreprocessStatus")
private String preprocessStatus;
@com.aliyun.core.annotation.NameInMap("RestoreExpiration")
private String restoreExpiration;
@com.aliyun.core.annotation.NameInMap("RestoreStatus")
private String restoreStatus;
@com.aliyun.core.annotation.NameInMap("Size")
private Long size;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("StorageClass")
private String storageClass;
@com.aliyun.core.annotation.NameInMap("VideoId")
private String videoId;
@com.aliyun.core.annotation.NameInMap("VideoStreamList")
private java.util.List<VideoStreamList> videoStreamList;
@com.aliyun.core.annotation.NameInMap("Width")
private Long width;
private Mezzanine(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.outputType = builder.outputType;
this.preprocessStatus = builder.preprocessStatus;
this.restoreExpiration = builder.restoreExpiration;
this.restoreStatus = builder.restoreStatus;
this.size = builder.size;
this.status = builder.status;
this.storageClass = builder.storageClass;
this.videoId = builder.videoId;
this.videoStreamList = builder.videoStreamList;
this.width = builder.width;
}
public static Builder builder() {
return new Builder();
}
public static Mezzanine 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 outputType
*/
public String getOutputType() {
return this.outputType;
}
/**
* @return preprocessStatus
*/
public String getPreprocessStatus() {
return this.preprocessStatus;
}
/**
* @return restoreExpiration
*/
public String getRestoreExpiration() {
return this.restoreExpiration;
}
/**
* @return restoreStatus
*/
public String getRestoreStatus() {
return this.restoreStatus;
}
/**
* @return size
*/
public Long getSize() {
return this.size;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return storageClass
*/
public String getStorageClass() {
return this.storageClass;
}
/**
* @return videoId
*/
public String getVideoId() {
return this.videoId;
}
/**
* @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 outputType;
private String preprocessStatus;
private String restoreExpiration;
private String restoreStatus;
private Long size;
private String status;
private String storageClass;
private String videoId;
private java.util.List<VideoStreamList> videoStreamList;
private Long width;
private Builder() {
}
private Builder(Mezzanine 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.outputType = model.outputType;
this.preprocessStatus = model.preprocessStatus;
this.restoreExpiration = model.restoreExpiration;
this.restoreStatus = model.restoreStatus;
this.size = model.size;
this.status = model.status;
this.storageClass = model.storageClass;
this.videoId = model.videoId;
this.videoStreamList = model.videoStreamList;
this.width = model.width;
}
/**
* <p>The codec time base.</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 file 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-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 URL of the 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. Unit: frames per second.</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: pixel.</p>
*
* <strong>example:</strong>
* <p>540</p>
*/
public Builder height(Long height) {
this.height = height;
return this;
}
/**
* <p>The type of the mezzanine file URL. Valid values:</p>
* <ul>
* <li><strong>oss</strong>: OSS URL</li>
* <li><strong>cdn</strong> (default): CDN URL</li>
* </ul>
* <blockquote>
* <p>If you specify an OSS URL for the video stream, the video stream must be in the MP4 format.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>oss</p>
*/
public Builder outputType(String outputType) {
this.outputType = outputType;
return this;
}
/**
* <p>The preprocess status od the media.</p>
*
* <strong>example:</strong>
* <p>UnPreprocess</p>
*/
public Builder preprocessStatus(String preprocessStatus) {
this.preprocessStatus = preprocessStatus;
return this;
}
/**
* <p>The period of time in which the object 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 audio or video file. 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 size of the file. Unit: byte.</p>
*
* <strong>example:</strong>
* <p>4096477</p>
*/
public Builder size(Long size) {
this.size = size;
return this;
}
/**
* <p>The status 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 fails 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 storage class of the audio file. Valid values:</p>
* <ul>
* <li><strong>Standard</strong>: All media resources are stored as Standard objects.</li>
* <li><strong>IA</strong>: All media resources are stored as IA objects.</li>
* <li><strong>Archive</strong>: All media resources are stored as Archive objects.</li>
* <li><strong>ColdArchive</strong>: All media resources 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 files are Cold Archive objects.</li>
* <li><strong>Changing</strong>: The storage class of the audio file is being changed.</li>
* <li><strong>SourceChanging</strong>: The storage class of the source file is being changed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Standard</p>
*/
public Builder storageClass(String storageClass) {
this.storageClass = storageClass;
return this;
}
/**
* <p>The ID of the video.</p>
*
* <strong>example:</strong>
* <p>1f1a6fc03ca04814031b8a6559e****</p>
*/
public Builder videoId(String videoId) {
this.videoId = videoId;
return this;
}
/**
* <p>The HDR type of the video stream.</p>
*/
public Builder videoStreamList(java.util.List<VideoStreamList> videoStreamList) {
this.videoStreamList = videoStreamList;
return this;
}
/**
* <p>The width of the file. Unit: pixel.</p>
*
* <strong>example:</strong>
* <p>960</p>
*/
public Builder width(Long width) {
this.width = width;
return this;
}
public Mezzanine build() {
return new Mezzanine(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/GetPlayInfoRequest.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 GetPlayInfoRequest} extends {@link RequestModel}
*
* <p>GetPlayInfoRequest</p>
*/
public class GetPlayInfoRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AdditionType")
private String additionType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AuthTimeout")
private Long authTimeout;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Definition")
private String definition;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DigitalWatermarkType")
private String digitalWatermarkType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Formats")
private String formats;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OutputType")
private String outputType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PlayConfig")
private String playConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ReAuthInfo")
private String reAuthInfo;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResultType")
private String resultType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StreamType")
private String streamType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Trace")
private String trace;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VideoId")
@com.aliyun.core.annotation.Validation(required = true)
private String videoId;
private GetPlayInfoRequest(Builder builder) {
super(builder);
this.additionType = builder.additionType;
this.authTimeout = builder.authTimeout;
this.definition = builder.definition;
this.digitalWatermarkType = builder.digitalWatermarkType;
this.formats = builder.formats;
this.outputType = builder.outputType;
this.playConfig = builder.playConfig;
this.reAuthInfo = builder.reAuthInfo;
this.resultType = builder.resultType;
this.streamType = builder.streamType;
this.trace = builder.trace;
this.videoId = builder.videoId;
}
public static Builder builder() {
return new Builder();
}
public static GetPlayInfoRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return additionType
*/
public String getAdditionType() {
return this.additionType;
}
/**
* @return authTimeout
*/
public Long getAuthTimeout() {
return this.authTimeout;
}
/**
* @return definition
*/
public String getDefinition() {
return this.definition;
}
/**
* @return digitalWatermarkType
*/
public String getDigitalWatermarkType() {
return this.digitalWatermarkType;
}
/**
* @return formats
*/
public String getFormats() {
return this.formats;
}
/**
* @return outputType
*/
public String getOutputType() {
return this.outputType;
}
/**
* @return playConfig
*/
public String getPlayConfig() {
return this.playConfig;
}
/**
* @return reAuthInfo
*/
public String getReAuthInfo() {
return this.reAuthInfo;
}
/**
* @return resultType
*/
public String getResultType() {
return this.resultType;
}
/**
* @return streamType
*/
public String getStreamType() {
return this.streamType;
}
/**
* @return trace
*/
public String getTrace() {
return this.trace;
}
/**
* @return videoId
*/
public String getVideoId() {
return this.videoId;
}
public static final class Builder extends Request.Builder<GetPlayInfoRequest, Builder> {
private String additionType;
private Long authTimeout;
private String definition;
private String digitalWatermarkType;
private String formats;
private String outputType;
private String playConfig;
private String reAuthInfo;
private String resultType;
private String streamType;
private String trace;
private String videoId;
private Builder() {
super();
}
private Builder(GetPlayInfoRequest request) {
super(request);
this.additionType = request.additionType;
this.authTimeout = request.authTimeout;
this.definition = request.definition;
this.digitalWatermarkType = request.digitalWatermarkType;
this.formats = request.formats;
this.outputType = request.outputType;
this.playConfig = request.playConfig;
this.reAuthInfo = request.reAuthInfo;
this.resultType = request.resultType;
this.streamType = request.streamType;
this.trace = request.trace;
this.videoId = request.videoId;
}
/**
* <p>The URL of the masked live comment data. Value: <strong>danmu</strong>.</p>
* <blockquote>
* <p> This parameter takes effect only when the <code>outputType</code> parameter is set to <code>cdn</code>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>danmu</p>
*/
public Builder additionType(String additionType) {
this.putQueryParameter("AdditionType", additionType);
this.additionType = additionType;
return this;
}
/**
* <p>The validity period of the playback URL. Unit: seconds.</p>
* <ul>
* <li><p>If you set OutputType to <strong>cdn</strong>:</p>
* <ul>
* <li>The playback URL has a validity period only if URL signing is enabled. Otherwise, the playback URL is permanently valid. For more information about how to enable and configure URL signing, see <a href="https://help.aliyun.com/document_detail/86090.html">URL signing</a>.</li>
* <li>Minimum value: <strong>1</strong>.</li>
* <li>Maximum value: unlimited.</li>
* <li>Default value: The default validity period that is specified in URL signing is used.</li>
* </ul>
* </li>
* <li><p>If you set OutputType to <strong>oss</strong>:</p>
* <ul>
* <li>This parameter takes effect only when the ACL of the Object Storage Service (OSS) bucket is private. Otherwise, the playback URL does not expire.</li>
* <li>Minimum value: <strong>1</strong>.</li>
* <li>Maximum value: If the media file is stored in the VOD bucket, the maximum validity period is <strong>2592000</strong> (30 days). If the media file is stored in an OSS bucket, the maximum validity period is <strong>129600</strong> (36 hours). This limit is imposed to reduce security risks of the origin server. If you require a longer validity period, set OutputType to <strong>cdn</strong> and configure URL signing to specify a longer validity period.</li>
* <li>Default value: <strong>3600</strong>.</li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>1800</p>
*/
public Builder authTimeout(Long authTimeout) {
this.putQueryParameter("AuthTimeout", authTimeout);
this.authTimeout = authTimeout;
return this;
}
/**
* <p>The quality of the video stream. Separate multiple qualities with commas (,). 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>
* <blockquote>
* <ul>
* <li>By default, ApsaraVideo VOD returns video streams in all the preceding qualities.</li>
* <li>However, video streams for adaptive bitrate streaming are returned only if the PackageSetting parameter is specified in the transcoding template. For more information, see the <a href="~~52839#title-4fk-cg8-gzx~~">PackageSetting parameter in the TranscodeTemplate table</a>.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>LD</p>
*/
public Builder definition(String definition) {
this.putQueryParameter("Definition", definition);
this.definition = definition;
return this;
}
/**
* <p>The type of the digital watermark. Valid values:</p>
* <ul>
* <li>TraceMark: tracing watermark</li>
* <li>CopyrightMark: copyright watermark</li>
* </ul>
*
* <strong>example:</strong>
* <p>TraceMark</p>
*/
public Builder digitalWatermarkType(String digitalWatermarkType) {
this.putQueryParameter("DigitalWatermarkType", digitalWatermarkType);
this.digitalWatermarkType = digitalWatermarkType;
return this;
}
/**
* <p>The format of the media stream. Separate multiple formats with commas (,). Valid values:</p>
* <ul>
* <li><strong>mp4</strong></li>
* <li><strong>m3u8</strong></li>
* <li><strong>mp3</strong></li>
* <li><strong>flv</strong></li>
* <li><strong>mpd</strong></li>
* </ul>
* <blockquote>
* <ul>
* <li>By default, ApsaraVideo VOD returns video streams in all the preceding formats.</li>
* <li>However, video streams in the MPD format are returned only if the <code>dash</code> container format is specified in the transcoding template. For more information, see the <a href="~~52839#title-7rr-3hj-gy5~~">Container parameter in the TranscodeTemplate table</a>.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>mp4,m3u8</p>
*/
public Builder formats(String formats) {
this.putQueryParameter("Formats", formats);
this.formats = formats;
return this;
}
/**
* <p>The type of the output URL. Default value: oss. Valid values:</p>
* <ul>
* <li><strong>oss</strong></li>
* <li><strong>cdn</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>cdn</p>
*/
public Builder outputType(String outputType) {
this.putQueryParameter("OutputType", outputType);
this.outputType = outputType;
return this;
}
/**
* <p>The custom playback configuration. The value must be a JSON string. You can specify a domain name for playback. For more information, see <a href="~~86952#section-9g7-s9b-v7z~~">PlayConfig</a>.</p>
* <blockquote>
* <ul>
* <li>If you do not set the PlayConfig parameter or the <code>PlayDomain</code> parameter that is nested under the PlayConfig parameter, the default domain name specified in ApsaraVideo VOD is used in this operation. If no default domain name is specified, the domain names are queried in reverse chronological order based on the time when the domain names were last modified. To prevent domain name issues, we recommend that you perform the following steps to specify the default playback domain name: 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>. Find the domain name that you want to configure and click <strong>Manage</strong> in the Actions column. On the page that appears, set the default playback domain name in the <strong>Origin Domain Name</strong> section.</li>
* <li>If you set the <code>EncryptType</code> parameter nested under the PlayConfig parameter to <code>AliyunVoDEncryption</code>, the playback URLs of videos encrypted by using Alibaba Cloud proprietary cryptography are not automatically returned to ensure video security. To return playback URLs of videos encrypted by using Alibaba Cloud proprietary cryptography, you must set the <code>ResultType</code> parameter to <code>Multiple</code>.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>{"PlayDomain":"vod.test_domain","XForwardedFor":"yqCD7Fp1uqChoVj/sl/p5Q==","PreviewTime":"20","MtsHlsUriToken":"yqCD7Fp1uqChoVjslp5Q"}</p>
*/
public Builder playConfig(String playConfig) {
this.putQueryParameter("PlayConfig", playConfig);
this.playConfig = playConfig;
return this;
}
/**
* <p>The CDN reauthentication configuration. The value must be a JSON string. If CDN reauthentication is enabled, you can use this parameter to specify the <code>UID</code> and <code>rand</code> fields for URL authentication. For more information, see <a href="https://help.aliyun.com/document_detail/2249352.html">URL authentication</a>.</p>
*
* <strong>example:</strong>
* <p>{"uid":"12345","rand":"abckljd"}</p>
*/
public Builder reAuthInfo(String reAuthInfo) {
this.putQueryParameter("ReAuthInfo", reAuthInfo);
this.reAuthInfo = reAuthInfo;
return this;
}
/**
* <p>The type of the data to return. Default value: Single. Valid values:</p>
* <ul>
* <li><strong>Single</strong>: Only one latest transcoded stream is returned for each quality and format.</li>
* <li><strong>Multiple</strong>: All transcoded streams are returned for each quality and format.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Single</p>
*/
public Builder resultType(String resultType) {
this.putQueryParameter("ResultType", resultType);
this.resultType = resultType;
return this;
}
/**
* <p>The type of the media stream. Separate multiple types with commas (,). Valid values:</p>
* <ul>
* <li><strong>video</strong></li>
* <li><strong>audio</strong></li>
* </ul>
* <p>By default, video and audio streams are returned.</p>
*
* <strong>example:</strong>
* <p>video</p>
*/
public Builder streamType(String streamType) {
this.putQueryParameter("StreamType", streamType);
this.streamType = streamType;
return this;
}
/**
* <p>The custom digital watermark.</p>
* <ul>
* <li>If you set <code>DigitalWatermarkType</code> to <code>TraceMark</code>, specify this parameter to configure the video tracing watermark and return the video stream that contains the watermark. The value can be up to 1,024 characters in length and can contain letters and digits.</li>
* <li>If you set <code>DigitalWatermarkType</code> to <code>CopyrightMark</code>, specify the <strong>watermark text</strong> that you created for the watermark template for this parameter.`` You can specify this parameter to query and return the video stream that contains the specified watermark text.</li>
* </ul>
*
* <strong>example:</strong>
* <p>test mark</p>
*/
public Builder trace(String trace) {
this.putQueryParameter("Trace", trace);
this.trace = trace;
return this;
}
/**
* <p>The ID of the media file. You can specify only one ID. 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>Media Files</strong> > <strong>Audio/Video</strong>. On the page that appears, view the media ID.</li>
* <li>Obtain the value of the VideoId parameter in the response to the <a href="https://help.aliyun.com/document_detail/55407.html">CreateUploadVideo</a> operation that you called to upload the audio or video file.</li>
* <li>Obtain the value of VideoId by calling the <a href="https://help.aliyun.com/document_detail/86044.html">SearchMedia</a> operation. This method is applicable to files that have been uploaded.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>93ab850b4f654b6e91d24d81d44****</p>
*/
public Builder videoId(String videoId) {
this.putQueryParameter("VideoId", videoId);
this.videoId = videoId;
return this;
}
@Override
public GetPlayInfoRequest build() {
return new GetPlayInfoRequest(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/GetPlayInfoResponse.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 GetPlayInfoResponse} extends {@link TeaModel}
*
* <p>GetPlayInfoResponse</p>
*/
public class GetPlayInfoResponse 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 GetPlayInfoResponseBody body;
private GetPlayInfoResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetPlayInfoResponse 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 GetPlayInfoResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetPlayInfoResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetPlayInfoResponseBody body);
@Override
GetPlayInfoResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetPlayInfoResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetPlayInfoResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetPlayInfoResponse 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(GetPlayInfoResponseBody body) {
this.body = body;
return this;
}
@Override
public GetPlayInfoResponse build() {
return new GetPlayInfoResponse(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/GetPlayInfoResponseBody.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 GetPlayInfoResponseBody} extends {@link TeaModel}
*
* <p>GetPlayInfoResponseBody</p>
*/
public class GetPlayInfoResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PlayInfoList")
private PlayInfoList playInfoList;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("VideoBase")
private VideoBase videoBase;
private GetPlayInfoResponseBody(Builder builder) {
this.playInfoList = builder.playInfoList;
this.requestId = builder.requestId;
this.videoBase = builder.videoBase;
}
public static Builder builder() {
return new Builder();
}
public static GetPlayInfoResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return playInfoList
*/
public PlayInfoList getPlayInfoList() {
return this.playInfoList;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return videoBase
*/
public VideoBase getVideoBase() {
return this.videoBase;
}
public static final class Builder {
private PlayInfoList playInfoList;
private String requestId;
private VideoBase videoBase;
private Builder() {
}
private Builder(GetPlayInfoResponseBody model) {
this.playInfoList = model.playInfoList;
this.requestId = model.requestId;
this.videoBase = model.videoBase;
}
/**
* <p>The information about the audio or video stream.</p>
*/
public Builder playInfoList(PlayInfoList playInfoList) {
this.playInfoList = playInfoList;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>F552E596-967D-5500-842F-17E6364****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The basic information about the audio or video file.</p>
*/
public Builder videoBase(VideoBase videoBase) {
this.videoBase = videoBase;
return this;
}
public GetPlayInfoResponseBody build() {
return new GetPlayInfoResponseBody(this);
}
}
/**
*
* {@link GetPlayInfoResponseBody} extends {@link TeaModel}
*
* <p>GetPlayInfoResponseBody</p>
*/
public static class PlayInfo 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("WatermarkId")
private String watermarkId;
@com.aliyun.core.annotation.NameInMap("Width")
private Long width;
private PlayInfo(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.watermarkId = builder.watermarkId;
this.width = builder.width;
}
public static Builder builder() {
return new Builder();
}
public static PlayInfo 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 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 watermarkId;
private Long width;
private Builder() {
}
private Builder(PlayInfo 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.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 encoding type. The possible values are:</p>
* <ul>
* <li><p>H264</p>
* </li>
* <li><p>H265</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>H264</p>
*/
public Builder codecName(String codecName) {
this.codecName = codecName;
return this;
}
/**
* <p>The time when the audio or video stream was created. The time is 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>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 is 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.</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 time when the audio or video file was last updated. The time is 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>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 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 PlayInfo build() {
return new PlayInfo(this);
}
}
}
/**
*
* {@link GetPlayInfoResponseBody} extends {@link TeaModel}
*
* <p>GetPlayInfoResponseBody</p>
*/
public static class PlayInfoList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PlayInfo")
private java.util.List<PlayInfo> playInfo;
private PlayInfoList(Builder builder) {
this.playInfo = builder.playInfo;
}
public static Builder builder() {
return new Builder();
}
public static PlayInfoList create() {
return builder().build();
}
/**
* @return playInfo
*/
public java.util.List<PlayInfo> getPlayInfo() {
return this.playInfo;
}
public static final class Builder {
private java.util.List<PlayInfo> playInfo;
private Builder() {
}
private Builder(PlayInfoList model) {
this.playInfo = model.playInfo;
}
/**
* PlayInfo.
*/
public Builder playInfo(java.util.List<PlayInfo> playInfo) {
this.playInfo = playInfo;
return this;
}
public PlayInfoList build() {
return new PlayInfoList(this);
}
}
}
/**
*
* {@link GetPlayInfoResponseBody} extends {@link TeaModel}
*
* <p>GetPlayInfoResponseBody</p>
*/
public static class VideoBase extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CoverURL")
private String coverURL;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("DanMuURL")
private String danMuURL;
@com.aliyun.core.annotation.NameInMap("Duration")
private String duration;
@com.aliyun.core.annotation.NameInMap("MediaType")
private String mediaType;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("StorageClass")
private String storageClass;
@com.aliyun.core.annotation.NameInMap("Title")
private String title;
@com.aliyun.core.annotation.NameInMap("VideoId")
private String videoId;
private VideoBase(Builder builder) {
this.coverURL = builder.coverURL;
this.creationTime = builder.creationTime;
this.danMuURL = builder.danMuURL;
this.duration = builder.duration;
this.mediaType = builder.mediaType;
this.status = builder.status;
this.storageClass = builder.storageClass;
this.title = builder.title;
this.videoId = builder.videoId;
}
public static Builder builder() {
return new Builder();
}
public static VideoBase create() {
return builder().build();
}
/**
* @return coverURL
*/
public String getCoverURL() {
return this.coverURL;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return danMuURL
*/
public String getDanMuURL() {
return this.danMuURL;
}
/**
* @return duration
*/
public String getDuration() {
return this.duration;
}
/**
* @return mediaType
*/
public String getMediaType() {
return this.mediaType;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return storageClass
*/
public String getStorageClass() {
return this.storageClass;
}
/**
* @return title
*/
public String getTitle() {
return this.title;
}
/**
* @return videoId
*/
public String getVideoId() {
return this.videoId;
}
public static final class Builder {
private String coverURL;
private String creationTime;
private String danMuURL;
private String duration;
private String mediaType;
private String status;
private String storageClass;
private String title;
private String videoId;
private Builder() {
}
private Builder(VideoBase model) {
this.coverURL = model.coverURL;
this.creationTime = model.creationTime;
this.danMuURL = model.danMuURL;
this.duration = model.duration;
this.mediaType = model.mediaType;
this.status = model.status;
this.storageClass = model.storageClass;
this.title = model.title;
this.videoId = model.videoId;
}
/**
* <p>The thumbnail URL of the audio or video file.</p>
*
* <strong>example:</strong>
* <p><a href="http://example.aliyundoc.com/sample.jpg?auth_key=2333232-atb">http://example.aliyundoc.com/sample.jpg?auth_key=2333232-atb</a>****</p>
*/
public Builder coverURL(String coverURL) {
this.coverURL = coverURL;
return this;
}
/**
* <p>The time when the audio or video file 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-06-26T06:38:48Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The URL of the masked live comment data.</p>
*
* <strong>example:</strong>
* <p><a href="http://example.aliyundoc.com/****?auth_key=abdf2123-6783232">http://example.aliyundoc.com/****?auth_key=abdf2123-6783232</a>****</p>
*/
public Builder danMuURL(String danMuURL) {
this.danMuURL = danMuURL;
return this;
}
/**
* <p>The duration of the audio or video file. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>3.1667</p>
*/
public Builder duration(String duration) {
this.duration = duration;
return this;
}
/**
* <p>The type of the media file. Valid values:</p>
* <ul>
* <li><strong>video</strong></li>
* <li><strong>audio</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>video</p>
*/
public Builder mediaType(String mediaType) {
this.mediaType = mediaType;
return this;
}
/**
* <p>The status of the media file. For more information about the value range and description, see the <a href="~~52839#title-vqg-8cz-7p8~~">Status</a> table.</p>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The storage class of the audio file. Valid values:</p>
* <ul>
* <li><strong>Standard</strong>: All media resources are stored as Standard objects.</li>
* <li><strong>IA</strong>: All media resources are stored as IA objects.</li>
* <li><strong>Archive</strong>: All media resources are stored as Archive objects.</li>
* <li><strong>ColdArchive</strong>: All media resources 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 video file is being changed.</li>
* <li><strong>SourceChanging</strong>: The storage class of the source file is being changed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Standard</p>
*/
public Builder storageClass(String storageClass) {
this.storageClass = storageClass;
return this;
}
/**
* <p>The title of the audio or video file.</p>
*
* <strong>example:</strong>
* <p>ApsaraVideo VOD</p>
*/
public Builder title(String title) {
this.title = title;
return this;
}
/**
* <p>The ID of the media file.</p>
*
* <strong>example:</strong>
* <p>93ab850b4f654b6e91d24d81d44****</p>
*/
public Builder videoId(String videoId) {
this.videoId = videoId;
return this;
}
public VideoBase build() {
return new VideoBase(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/GetTranscodeSummaryRequest.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 GetTranscodeSummaryRequest} extends {@link RequestModel}
*
* <p>GetTranscodeSummaryRequest</p>
*/
public class GetTranscodeSummaryRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VideoIds")
@com.aliyun.core.annotation.Validation(required = true)
private String videoIds;
private GetTranscodeSummaryRequest(Builder builder) {
super(builder);
this.videoIds = builder.videoIds;
}
public static Builder builder() {
return new Builder();
}
public static GetTranscodeSummaryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return videoIds
*/
public String getVideoIds() {
return this.videoIds;
}
public static final class Builder extends Request.Builder<GetTranscodeSummaryRequest, Builder> {
private String videoIds;
private Builder() {
super();
}
private Builder(GetTranscodeSummaryRequest request) {
super(request);
this.videoIds = request.videoIds;
}
/**
* <p>The ID of the audio or video file. You can specify up to 10 IDs. Separate the IDs with commas (,). You can use one of the following methods to obtain the ID:</p>
* <ul>
* <li>After you upload a video in the <a href="https://vod.console.aliyun.com">ApsaraVideo VOD console</a>, you can log on to the ApsaraVideo VOD console and choose <strong>Media Files</strong> > <strong>Audio/Video</strong> to view the ID of the video.</li>
* <li>Obtain the value of VideoId from the response to the <a href="https://help.aliyun.com/document_detail/55407.html">CreateUploadVideo</a> operation that you call to obtain the upload URL and credential.</li>
* <li>Obtain the value of VideoId by calling the <a href="https://help.aliyun.com/document_detail/86044.html">SearchMedia</a> operation. This method is applicable to files that have been uploaded.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>"d4860fcc6ae9fed52e8938244****,e1db68cc586644b83e562bcd94****,hhhhhhh"</p>
*/
public Builder videoIds(String videoIds) {
this.putQueryParameter("VideoIds", videoIds);
this.videoIds = videoIds;
return this;
}
@Override
public GetTranscodeSummaryRequest build() {
return new GetTranscodeSummaryRequest(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/GetTranscodeSummaryResponse.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 GetTranscodeSummaryResponse} extends {@link TeaModel}
*
* <p>GetTranscodeSummaryResponse</p>
*/
public class GetTranscodeSummaryResponse 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 GetTranscodeSummaryResponseBody body;
private GetTranscodeSummaryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetTranscodeSummaryResponse 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 GetTranscodeSummaryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetTranscodeSummaryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetTranscodeSummaryResponseBody body);
@Override
GetTranscodeSummaryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetTranscodeSummaryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetTranscodeSummaryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetTranscodeSummaryResponse 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(GetTranscodeSummaryResponseBody body) {
this.body = body;
return this;
}
@Override
public GetTranscodeSummaryResponse build() {
return new GetTranscodeSummaryResponse(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/GetTranscodeSummaryResponseBody.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 GetTranscodeSummaryResponseBody} extends {@link TeaModel}
*
* <p>GetTranscodeSummaryResponseBody</p>
*/
public class GetTranscodeSummaryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NonExistVideoIds")
private java.util.List<String> nonExistVideoIds;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TranscodeSummaryList")
private java.util.List<TranscodeSummaryList> transcodeSummaryList;
private GetTranscodeSummaryResponseBody(Builder builder) {
this.nonExistVideoIds = builder.nonExistVideoIds;
this.requestId = builder.requestId;
this.transcodeSummaryList = builder.transcodeSummaryList;
}
public static Builder builder() {
return new Builder();
}
public static GetTranscodeSummaryResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return nonExistVideoIds
*/
public java.util.List<String> getNonExistVideoIds() {
return this.nonExistVideoIds;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return transcodeSummaryList
*/
public java.util.List<TranscodeSummaryList> getTranscodeSummaryList() {
return this.transcodeSummaryList;
}
public static final class Builder {
private java.util.List<String> nonExistVideoIds;
private String requestId;
private java.util.List<TranscodeSummaryList> transcodeSummaryList;
private Builder() {
}
private Builder(GetTranscodeSummaryResponseBody model) {
this.nonExistVideoIds = model.nonExistVideoIds;
this.requestId = model.requestId;
this.transcodeSummaryList = model.transcodeSummaryList;
}
/**
* <p>The IDs of the audio or video files that do not exist.</p>
*/
public Builder nonExistVideoIds(java.util.List<String> nonExistVideoIds) {
this.nonExistVideoIds = nonExistVideoIds;
return this;
}
/**
* <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 transcoding summary of the file.</p>
*/
public Builder transcodeSummaryList(java.util.List<TranscodeSummaryList> transcodeSummaryList) {
this.transcodeSummaryList = transcodeSummaryList;
return this;
}
public GetTranscodeSummaryResponseBody build() {
return new GetTranscodeSummaryResponseBody(this);
}
}
/**
*
* {@link GetTranscodeSummaryResponseBody} extends {@link TeaModel}
*
* <p>GetTranscodeSummaryResponseBody</p>
*/
public static class TranscodeJobInfoSummaryList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Bitrate")
private String bitrate;
@com.aliyun.core.annotation.NameInMap("CompleteTime")
private String completeTime;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("Duration")
private String duration;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("ErrorMessage")
private String errorMessage;
@com.aliyun.core.annotation.NameInMap("Filesize")
private Long filesize;
@com.aliyun.core.annotation.NameInMap("Format")
private String format;
@com.aliyun.core.annotation.NameInMap("Fps")
private String fps;
@com.aliyun.core.annotation.NameInMap("Height")
private String height;
@com.aliyun.core.annotation.NameInMap("TranscodeJobStatus")
private String transcodeJobStatus;
@com.aliyun.core.annotation.NameInMap("TranscodeProgress")
private Long transcodeProgress;
@com.aliyun.core.annotation.NameInMap("TranscodeTemplateId")
private String transcodeTemplateId;
@com.aliyun.core.annotation.NameInMap("WatermarkIdList")
private java.util.List<String> watermarkIdList;
@com.aliyun.core.annotation.NameInMap("Width")
private String width;
private TranscodeJobInfoSummaryList(Builder builder) {
this.bitrate = builder.bitrate;
this.completeTime = builder.completeTime;
this.creationTime = builder.creationTime;
this.duration = builder.duration;
this.errorCode = builder.errorCode;
this.errorMessage = builder.errorMessage;
this.filesize = builder.filesize;
this.format = builder.format;
this.fps = builder.fps;
this.height = builder.height;
this.transcodeJobStatus = builder.transcodeJobStatus;
this.transcodeProgress = builder.transcodeProgress;
this.transcodeTemplateId = builder.transcodeTemplateId;
this.watermarkIdList = builder.watermarkIdList;
this.width = builder.width;
}
public static Builder builder() {
return new Builder();
}
public static TranscodeJobInfoSummaryList create() {
return builder().build();
}
/**
* @return bitrate
*/
public String getBitrate() {
return this.bitrate;
}
/**
* @return completeTime
*/
public String getCompleteTime() {
return this.completeTime;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return duration
*/
public String getDuration() {
return this.duration;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return errorMessage
*/
public String getErrorMessage() {
return this.errorMessage;
}
/**
* @return filesize
*/
public Long getFilesize() {
return this.filesize;
}
/**
* @return format
*/
public String getFormat() {
return this.format;
}
/**
* @return fps
*/
public String getFps() {
return this.fps;
}
/**
* @return height
*/
public String getHeight() {
return this.height;
}
/**
* @return transcodeJobStatus
*/
public String getTranscodeJobStatus() {
return this.transcodeJobStatus;
}
/**
* @return transcodeProgress
*/
public Long getTranscodeProgress() {
return this.transcodeProgress;
}
/**
* @return transcodeTemplateId
*/
public String getTranscodeTemplateId() {
return this.transcodeTemplateId;
}
/**
* @return watermarkIdList
*/
public java.util.List<String> getWatermarkIdList() {
return this.watermarkIdList;
}
/**
* @return width
*/
public String getWidth() {
return this.width;
}
public static final class Builder {
private String bitrate;
private String completeTime;
private String creationTime;
private String duration;
private String errorCode;
private String errorMessage;
private Long filesize;
private String format;
private String fps;
private String height;
private String transcodeJobStatus;
private Long transcodeProgress;
private String transcodeTemplateId;
private java.util.List<String> watermarkIdList;
private String width;
private Builder() {
}
private Builder(TranscodeJobInfoSummaryList model) {
this.bitrate = model.bitrate;
this.completeTime = model.completeTime;
this.creationTime = model.creationTime;
this.duration = model.duration;
this.errorCode = model.errorCode;
this.errorMessage = model.errorMessage;
this.filesize = model.filesize;
this.format = model.format;
this.fps = model.fps;
this.height = model.height;
this.transcodeJobStatus = model.transcodeJobStatus;
this.transcodeProgress = model.transcodeProgress;
this.transcodeTemplateId = model.transcodeTemplateId;
this.watermarkIdList = model.watermarkIdList;
this.width = model.width;
}
/**
* <p>The average bitrate of the output video. Unit: Kbit/s.</p>
*
* <strong>example:</strong>
* <p>749</p>
*/
public Builder bitrate(String bitrate) {
this.bitrate = bitrate;
return this;
}
/**
* <p>The time when the transcoding job was complete. The time is 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>2019-02-27T03:40:51Z</p>
*/
public Builder completeTime(String completeTime) {
this.completeTime = completeTime;
return this;
}
/**
* <p>The time when the transcoding job was created. The time is 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>2019-02-27T03:34:46Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The duration of the output video. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder duration(String duration) {
this.duration = duration;
return this;
}
/**
* <p>The error code returned when the transcoding job failed.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The error message returned when the transcoding job failed.</p>
*
* <strong>example:</strong>
* <p>ErrorMessage</p>
*/
public Builder errorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
/**
* <p>The size of the output video. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>1144259</p>
*/
public Builder filesize(Long filesize) {
this.filesize = filesize;
return this;
}
/**
* <p>The container format of the output video.</p>
*
* <strong>example:</strong>
* <p>mp4</p>
*/
public Builder format(String format) {
this.format = format;
return this;
}
/**
* <p>The frame rate of the output video. Unit: frames per second.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder fps(String fps) {
this.fps = fps;
return this;
}
/**
* <p>The height of the output video. Unit: pixels.</p>
*
* <strong>example:</strong>
* <p>960</p>
*/
public Builder height(String height) {
this.height = height;
return this;
}
/**
* <p>The status of the transcoding job. Valid values:</p>
* <ul>
* <li><strong>Transcoding</strong>: Transcoding is in process.</li>
* <li><strong>TranscodeSuccess</strong>: The job was successful.</li>
* <li><strong>TranscodeFail</strong>: The job failed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Transcoding</p>
*/
public Builder transcodeJobStatus(String transcodeJobStatus) {
this.transcodeJobStatus = transcodeJobStatus;
return this;
}
/**
* <p>The transcoding progress. Valid values: <code>[0,100]</code>.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder transcodeProgress(Long transcodeProgress) {
this.transcodeProgress = transcodeProgress;
return this;
}
/**
* <p>The ID of the transcoding template.</p>
*
* <strong>example:</strong>
* <p>57496724ae2*****0968d6e08acc8f6</p>
*/
public Builder transcodeTemplateId(String transcodeTemplateId) {
this.transcodeTemplateId = transcodeTemplateId;
return this;
}
/**
* <p>The IDs of the watermarks that are applied to the output video.</p>
*/
public Builder watermarkIdList(java.util.List<String> watermarkIdList) {
this.watermarkIdList = watermarkIdList;
return this;
}
/**
* <p>The width of the output video. Unit: pixels.</p>
*
* <strong>example:</strong>
* <p>544</p>
*/
public Builder width(String width) {
this.width = width;
return this;
}
public TranscodeJobInfoSummaryList build() {
return new TranscodeJobInfoSummaryList(this);
}
}
}
/**
*
* {@link GetTranscodeSummaryResponseBody} extends {@link TeaModel}
*
* <p>GetTranscodeSummaryResponseBody</p>
*/
public static class TranscodeSummaryList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CompleteTime")
private String completeTime;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("TranscodeJobInfoSummaryList")
private java.util.List<TranscodeJobInfoSummaryList> transcodeJobInfoSummaryList;
@com.aliyun.core.annotation.NameInMap("TranscodeStatus")
private String transcodeStatus;
@com.aliyun.core.annotation.NameInMap("TranscodeTemplateGroupId")
private String transcodeTemplateGroupId;
@com.aliyun.core.annotation.NameInMap("VideoId")
private String videoId;
private TranscodeSummaryList(Builder builder) {
this.completeTime = builder.completeTime;
this.creationTime = builder.creationTime;
this.transcodeJobInfoSummaryList = builder.transcodeJobInfoSummaryList;
this.transcodeStatus = builder.transcodeStatus;
this.transcodeTemplateGroupId = builder.transcodeTemplateGroupId;
this.videoId = builder.videoId;
}
public static Builder builder() {
return new Builder();
}
public static TranscodeSummaryList create() {
return builder().build();
}
/**
* @return completeTime
*/
public String getCompleteTime() {
return this.completeTime;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return transcodeJobInfoSummaryList
*/
public java.util.List<TranscodeJobInfoSummaryList> getTranscodeJobInfoSummaryList() {
return this.transcodeJobInfoSummaryList;
}
/**
* @return transcodeStatus
*/
public String getTranscodeStatus() {
return this.transcodeStatus;
}
/**
* @return transcodeTemplateGroupId
*/
public String getTranscodeTemplateGroupId() {
return this.transcodeTemplateGroupId;
}
/**
* @return videoId
*/
public String getVideoId() {
return this.videoId;
}
public static final class Builder {
private String completeTime;
private String creationTime;
private java.util.List<TranscodeJobInfoSummaryList> transcodeJobInfoSummaryList;
private String transcodeStatus;
private String transcodeTemplateGroupId;
private String videoId;
private Builder() {
}
private Builder(TranscodeSummaryList model) {
this.completeTime = model.completeTime;
this.creationTime = model.creationTime;
this.transcodeJobInfoSummaryList = model.transcodeJobInfoSummaryList;
this.transcodeStatus = model.transcodeStatus;
this.transcodeTemplateGroupId = model.transcodeTemplateGroupId;
this.videoId = model.videoId;
}
/**
* <p>The time when the transcoding task was complete. The time is 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>2019-01-23T12:40:12Z</p>
*/
public Builder completeTime(String completeTime) {
this.completeTime = completeTime;
return this;
}
/**
* <p>The time when the transcoding task was created. The time is 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>2019-01-23T12:35:12Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The summaries of transcoding jobs.</p>
*/
public Builder transcodeJobInfoSummaryList(java.util.List<TranscodeJobInfoSummaryList> transcodeJobInfoSummaryList) {
this.transcodeJobInfoSummaryList = transcodeJobInfoSummaryList;
return this;
}
/**
* <p>The status of the transcoding task. Valid values:</p>
* <ul>
* <li><strong>Processing</strong>: Transcoding is in process.</li>
* <li><strong>Partial</strong>: Some transcoding jobs were complete.</li>
* <li><strong>CompleteAllSucc</strong>: All transcoding jobs were successful.</li>
* <li><strong>CompleteAllFail</strong>: All transcoding jobs failed. If an exception occurs in the source file, no transcoding job is initiated and the transcoding task fails.</li>
* <li><strong>CompletePartialSucc</strong>: All transcoding jobs were complete but only some were successful.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Processing</p>
*/
public Builder transcodeStatus(String transcodeStatus) {
this.transcodeStatus = transcodeStatus;
return this;
}
/**
* <p>The ID of the transcoding template group.</p>
*
* <strong>example:</strong>
* <p>44f9e406bbb*****736a9abe876ecc0</p>
*/
public Builder transcodeTemplateGroupId(String transcodeTemplateGroupId) {
this.transcodeTemplateGroupId = transcodeTemplateGroupId;
return this;
}
/**
* <p>The ID of the audio or video file.</p>
*
* <strong>example:</strong>
* <p>e1db68cc586644b83e562bcd94****</p>
*/
public Builder videoId(String videoId) {
this.videoId = videoId;
return this;
}
public TranscodeSummaryList build() {
return new TranscodeSummaryList(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/GetTranscodeTaskRequest.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 GetTranscodeTaskRequest} extends {@link RequestModel}
*
* <p>GetTranscodeTaskRequest</p>
*/
public class GetTranscodeTaskRequest 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("TranscodeTaskId")
private String transcodeTaskId;
private GetTranscodeTaskRequest(Builder builder) {
super(builder);
this.jobIds = builder.jobIds;
this.transcodeTaskId = builder.transcodeTaskId;
}
public static Builder builder() {
return new Builder();
}
public static GetTranscodeTaskRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return jobIds
*/
public String getJobIds() {
return this.jobIds;
}
/**
* @return transcodeTaskId
*/
public String getTranscodeTaskId() {
return this.transcodeTaskId;
}
public static final class Builder extends Request.Builder<GetTranscodeTaskRequest, Builder> {
private String jobIds;
private String transcodeTaskId;
private Builder() {
super();
}
private Builder(GetTranscodeTaskRequest request) {
super(request);
this.jobIds = request.jobIds;
this.transcodeTaskId = request.transcodeTaskId;
}
/**
* <p>Transcoding job ID. Supports up to 10 IDs, and multiple IDs should be separated by a comma (,). You can obtain this value in the following ways:</p>
* <p>When initiating a transcoding task through the <a href="https://help.aliyun.com/document_detail/454920.html">SubmitTranscodeJobs</a> interface, it is the value of the returned parameter JobId.</p>
*
* <strong>example:</strong>
* <p>86c1925fba0****,7afb201e7fa****,2cc4997378****</p>
*/
public Builder jobIds(String jobIds) {
this.putQueryParameter("JobIds", jobIds);
this.jobIds = jobIds;
return this;
}
/**
* <p>The ID of the transcoding task. You can use one of the following methods to obtain the ID:</p>
* <ul>
* <li>Obtain the value of TranscodeTaskId from the response to the <a href="https://help.aliyun.com/document_detail/68570.html">SubmitTranscodeJobs</a> operation.</li>
* <li>Obtain the value of TranscodeTaskId from the response to the <a href="https://help.aliyun.com/document_detail/109120.html">ListTranscodeTask</a> operation.</li>
* </ul>
*
* <strong>example:</strong>
* <p>b1b65ab107e14*****3dbb900f6c1fe0</p>
*/
public Builder transcodeTaskId(String transcodeTaskId) {
this.putQueryParameter("TranscodeTaskId", transcodeTaskId);
this.transcodeTaskId = transcodeTaskId;
return this;
}
@Override
public GetTranscodeTaskRequest build() {
return new GetTranscodeTaskRequest(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/GetTranscodeTaskResponse.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 GetTranscodeTaskResponse} extends {@link TeaModel}
*
* <p>GetTranscodeTaskResponse</p>
*/
public class GetTranscodeTaskResponse 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 GetTranscodeTaskResponseBody body;
private GetTranscodeTaskResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetTranscodeTaskResponse 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 GetTranscodeTaskResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetTranscodeTaskResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetTranscodeTaskResponseBody body);
@Override
GetTranscodeTaskResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetTranscodeTaskResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetTranscodeTaskResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetTranscodeTaskResponse 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(GetTranscodeTaskResponseBody body) {
this.body = body;
return this;
}
@Override
public GetTranscodeTaskResponse build() {
return new GetTranscodeTaskResponse(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/GetTranscodeTaskResponseBody.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 GetTranscodeTaskResponseBody} extends {@link TeaModel}
*
* <p>GetTranscodeTaskResponseBody</p>
*/
public class GetTranscodeTaskResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NonExistJobIds")
private java.util.List<String> nonExistJobIds;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TranscodeJobInfoList")
private java.util.List<TranscodeJobInfoList> transcodeJobInfoList;
@com.aliyun.core.annotation.NameInMap("TranscodeTask")
private TranscodeTask transcodeTask;
private GetTranscodeTaskResponseBody(Builder builder) {
this.nonExistJobIds = builder.nonExistJobIds;
this.requestId = builder.requestId;
this.transcodeJobInfoList = builder.transcodeJobInfoList;
this.transcodeTask = builder.transcodeTask;
}
public static Builder builder() {
return new Builder();
}
public static GetTranscodeTaskResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return nonExistJobIds
*/
public java.util.List<String> getNonExistJobIds() {
return this.nonExistJobIds;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return transcodeJobInfoList
*/
public java.util.List<TranscodeJobInfoList> getTranscodeJobInfoList() {
return this.transcodeJobInfoList;
}
/**
* @return transcodeTask
*/
public TranscodeTask getTranscodeTask() {
return this.transcodeTask;
}
public static final class Builder {
private java.util.List<String> nonExistJobIds;
private String requestId;
private java.util.List<TranscodeJobInfoList> transcodeJobInfoList;
private TranscodeTask transcodeTask;
private Builder() {
}
private Builder(GetTranscodeTaskResponseBody model) {
this.nonExistJobIds = model.nonExistJobIds;
this.requestId = model.requestId;
this.transcodeJobInfoList = model.transcodeJobInfoList;
this.transcodeTask = model.transcodeTask;
}
/**
* <p>The nonexistent job ID.</p>
*/
public Builder nonExistJobIds(java.util.List<String> nonExistJobIds) {
this.nonExistJobIds = nonExistJobIds;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>F4C6D5BE-BF13-45*****6C-516EA8906DCD</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>List of transcode job information.</p>
*/
public Builder transcodeJobInfoList(java.util.List<TranscodeJobInfoList> transcodeJobInfoList) {
this.transcodeJobInfoList = transcodeJobInfoList;
return this;
}
/**
* <p>Details about transcoding tasks.</p>
*/
public Builder transcodeTask(TranscodeTask transcodeTask) {
this.transcodeTask = transcodeTask;
return this;
}
public GetTranscodeTaskResponseBody build() {
return new GetTranscodeTaskResponseBody(this);
}
}
/**
*
* {@link GetTranscodeTaskResponseBody} extends {@link TeaModel}
*
* <p>GetTranscodeTaskResponseBody</p>
*/
public static class OutputFile extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AudioStreamList")
private String audioStreamList;
@com.aliyun.core.annotation.NameInMap("Bitrate")
private String bitrate;
@com.aliyun.core.annotation.NameInMap("Duration")
private String duration;
@com.aliyun.core.annotation.NameInMap("Encryption")
private String encryption;
@com.aliyun.core.annotation.NameInMap("Filesize")
private Long filesize;
@com.aliyun.core.annotation.NameInMap("Format")
private String format;
@com.aliyun.core.annotation.NameInMap("Fps")
private String fps;
@com.aliyun.core.annotation.NameInMap("Height")
private String height;
@com.aliyun.core.annotation.NameInMap("OutputFileUrl")
private String outputFileUrl;
@com.aliyun.core.annotation.NameInMap("SubtitleStreamList")
private String subtitleStreamList;
@com.aliyun.core.annotation.NameInMap("VideoStreamList")
private String videoStreamList;
@com.aliyun.core.annotation.NameInMap("WatermarkIdList")
private java.util.List<String> watermarkIdList;
@com.aliyun.core.annotation.NameInMap("Width")
private String width;
private OutputFile(Builder builder) {
this.audioStreamList = builder.audioStreamList;
this.bitrate = builder.bitrate;
this.duration = builder.duration;
this.encryption = builder.encryption;
this.filesize = builder.filesize;
this.format = builder.format;
this.fps = builder.fps;
this.height = builder.height;
this.outputFileUrl = builder.outputFileUrl;
this.subtitleStreamList = builder.subtitleStreamList;
this.videoStreamList = builder.videoStreamList;
this.watermarkIdList = builder.watermarkIdList;
this.width = builder.width;
}
public static Builder builder() {
return new Builder();
}
public static OutputFile create() {
return builder().build();
}
/**
* @return audioStreamList
*/
public String getAudioStreamList() {
return this.audioStreamList;
}
/**
* @return bitrate
*/
public String getBitrate() {
return this.bitrate;
}
/**
* @return duration
*/
public String getDuration() {
return this.duration;
}
/**
* @return encryption
*/
public String getEncryption() {
return this.encryption;
}
/**
* @return filesize
*/
public Long getFilesize() {
return this.filesize;
}
/**
* @return format
*/
public String getFormat() {
return this.format;
}
/**
* @return fps
*/
public String getFps() {
return this.fps;
}
/**
* @return height
*/
public String getHeight() {
return this.height;
}
/**
* @return outputFileUrl
*/
public String getOutputFileUrl() {
return this.outputFileUrl;
}
/**
* @return subtitleStreamList
*/
public String getSubtitleStreamList() {
return this.subtitleStreamList;
}
/**
* @return videoStreamList
*/
public String getVideoStreamList() {
return this.videoStreamList;
}
/**
* @return watermarkIdList
*/
public java.util.List<String> getWatermarkIdList() {
return this.watermarkIdList;
}
/**
* @return width
*/
public String getWidth() {
return this.width;
}
public static final class Builder {
private String audioStreamList;
private String bitrate;
private String duration;
private String encryption;
private Long filesize;
private String format;
private String fps;
private String height;
private String outputFileUrl;
private String subtitleStreamList;
private String videoStreamList;
private java.util.List<String> watermarkIdList;
private String width;
private Builder() {
}
private Builder(OutputFile model) {
this.audioStreamList = model.audioStreamList;
this.bitrate = model.bitrate;
this.duration = model.duration;
this.encryption = model.encryption;
this.filesize = model.filesize;
this.format = model.format;
this.fps = model.fps;
this.height = model.height;
this.outputFileUrl = model.outputFileUrl;
this.subtitleStreamList = model.subtitleStreamList;
this.videoStreamList = model.videoStreamList;
this.watermarkIdList = model.watermarkIdList;
this.width = model.width;
}
/**
* <p>List of audio streams.</p>
*
* <strong>example:</strong>
* <p>"AudioStreamList": "[{"Bitrate":"64.533","ChannelLayout":"stereo","Channels":"2","CodecLongName":"AAC (Advanced Audio Coding)","CodecName":"aac","CodecTag":"0x6134706d","CodecTagString":"mp4a","CodecTimeBase":"1/44100","Duration":"12.615533","Index":"1","Lang":"und","SampleFmt":"fltp","Samplerate":"44100","StartTime":"-0.046440","Timebase":"1/44100"}]</p>
*/
public Builder audioStreamList(String audioStreamList) {
this.audioStreamList = audioStreamList;
return this;
}
/**
* <p>Average bitrate of the transcoded output file. Unit: Kbps.</p>
*
* <strong>example:</strong>
* <p>964</p>
*/
public Builder bitrate(String bitrate) {
this.bitrate = bitrate;
return this;
}
/**
* <p>Duration of the transcoded output file. Unit: seconds (s).</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder duration(String duration) {
this.duration = duration;
return this;
}
/**
* <p>Encryption configuration used for the transcoded output file. Values:</p>
* <ul>
* <li>AliyunVoDEncryption: Alibaba Cloud Video Encryption (private encryption).</li>
* <li>HLSEncryption: HLS standard encryption.</li>
* </ul>
*
* <strong>example:</strong>
* <p>{"EncryptType":"AliyunVoDEncryption"}</p>
*/
public Builder encryption(String encryption) {
this.encryption = encryption;
return this;
}
/**
* <p>Size of the transcoded output file. Unit: bytes (B).</p>
*
* <strong>example:</strong>
* <p>851076</p>
*/
public Builder filesize(Long filesize) {
this.filesize = filesize;
return this;
}
/**
* <p>Container format of the transcoded output file.</p>
*
* <strong>example:</strong>
* <p>m3u8</p>
*/
public Builder format(String format) {
this.format = format;
return this;
}
/**
* <p>Frame rate of the transcoded output file. Unit: frames per second (fps).</p>
*
* <strong>example:</strong>
* <p>25</p>
*/
public Builder fps(String fps) {
this.fps = fps;
return this;
}
/**
* <p>Height of the video frame in the transcoded output file. Unit: pixels (px).</p>
*
* <strong>example:</strong>
* <p>360</p>
*/
public Builder height(String height) {
this.height = height;
return this;
}
/**
* <p>OSS address of the transcoded output file.</p>
*
* <strong>example:</strong>
* <p><a href="http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/883f5d*****f20aaa352f/c3be4f073*****7d5193ec8-%7BDestMd5%7D-od-S00000001-200000.mp4">http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/883f5d*****f20aaa352f/c3be4f073*****7d5193ec8-{DestMd5}-od-S00000001-200000.mp4</a></p>
*/
public Builder outputFileUrl(String outputFileUrl) {
this.outputFileUrl = outputFileUrl;
return this;
}
/**
* <p>List of subtitle streams.</p>
*
* <strong>example:</strong>
* <p>[]</p>
*/
public Builder subtitleStreamList(String subtitleStreamList) {
this.subtitleStreamList = subtitleStreamList;
return this;
}
/**
* <p>List of video streams.</p>
*
* <strong>example:</strong>
* <p>[{"AvgFPS":"30.0","Bitrate":"933.814","CodecLongName":"H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10","CodecName":"h264","CodecTag":"0x31637661","CodecTagString":"avc1","CodecTimeBase":"1/60","Dar":"9:16","Duration":"12.033333","Fps":"30.0","HasBFrames":"2","Height":"360","Index":"0","Lang":"und","Level":"30","PixFmt":"yuv420p","Profile":"High","Sar":"81:256","StartTime":"0.000000","Timebase":"1/15360","Width":"640"}]</p>
*/
public Builder videoStreamList(String videoStreamList) {
this.videoStreamList = videoStreamList;
return this;
}
/**
* <p>List of watermarks used for transcoding.</p>
*/
public Builder watermarkIdList(java.util.List<String> watermarkIdList) {
this.watermarkIdList = watermarkIdList;
return this;
}
/**
* <p>Width of the video frame in the transcoded output file. Unit: pixels (px).</p>
*
* <strong>example:</strong>
* <p>640</p>
*/
public Builder width(String width) {
this.width = width;
return this;
}
public OutputFile build() {
return new OutputFile(this);
}
}
}
/**
*
* {@link GetTranscodeTaskResponseBody} extends {@link TeaModel}
*
* <p>GetTranscodeTaskResponseBody</p>
*/
public static class TranscodeJobInfoList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CompleteTime")
private String completeTime;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("Definition")
private String definition;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("ErrorMessage")
private String errorMessage;
@com.aliyun.core.annotation.NameInMap("InputFileUrl")
private String inputFileUrl;
@com.aliyun.core.annotation.NameInMap("OutputFile")
private OutputFile outputFile;
@com.aliyun.core.annotation.NameInMap("Priority")
private String priority;
@com.aliyun.core.annotation.NameInMap("TranscodeJobId")
private String transcodeJobId;
@com.aliyun.core.annotation.NameInMap("TranscodeJobStatus")
private String transcodeJobStatus;
@com.aliyun.core.annotation.NameInMap("TranscodeProgress")
private Long transcodeProgress;
@com.aliyun.core.annotation.NameInMap("TranscodeTemplateId")
private String transcodeTemplateId;
private TranscodeJobInfoList(Builder builder) {
this.completeTime = builder.completeTime;
this.creationTime = builder.creationTime;
this.definition = builder.definition;
this.errorCode = builder.errorCode;
this.errorMessage = builder.errorMessage;
this.inputFileUrl = builder.inputFileUrl;
this.outputFile = builder.outputFile;
this.priority = builder.priority;
this.transcodeJobId = builder.transcodeJobId;
this.transcodeJobStatus = builder.transcodeJobStatus;
this.transcodeProgress = builder.transcodeProgress;
this.transcodeTemplateId = builder.transcodeTemplateId;
}
public static Builder builder() {
return new Builder();
}
public static TranscodeJobInfoList create() {
return builder().build();
}
/**
* @return completeTime
*/
public String getCompleteTime() {
return this.completeTime;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return definition
*/
public String getDefinition() {
return this.definition;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return errorMessage
*/
public String getErrorMessage() {
return this.errorMessage;
}
/**
* @return inputFileUrl
*/
public String getInputFileUrl() {
return this.inputFileUrl;
}
/**
* @return outputFile
*/
public OutputFile getOutputFile() {
return this.outputFile;
}
/**
* @return priority
*/
public String getPriority() {
return this.priority;
}
/**
* @return transcodeJobId
*/
public String getTranscodeJobId() {
return this.transcodeJobId;
}
/**
* @return transcodeJobStatus
*/
public String getTranscodeJobStatus() {
return this.transcodeJobStatus;
}
/**
* @return transcodeProgress
*/
public Long getTranscodeProgress() {
return this.transcodeProgress;
}
/**
* @return transcodeTemplateId
*/
public String getTranscodeTemplateId() {
return this.transcodeTemplateId;
}
public static final class Builder {
private String completeTime;
private String creationTime;
private String definition;
private String errorCode;
private String errorMessage;
private String inputFileUrl;
private OutputFile outputFile;
private String priority;
private String transcodeJobId;
private String transcodeJobStatus;
private Long transcodeProgress;
private String transcodeTemplateId;
private Builder() {
}
private Builder(TranscodeJobInfoList model) {
this.completeTime = model.completeTime;
this.creationTime = model.creationTime;
this.definition = model.definition;
this.errorCode = model.errorCode;
this.errorMessage = model.errorMessage;
this.inputFileUrl = model.inputFileUrl;
this.outputFile = model.outputFile;
this.priority = model.priority;
this.transcodeJobId = model.transcodeJobId;
this.transcodeJobStatus = model.transcodeJobStatus;
this.transcodeProgress = model.transcodeProgress;
this.transcodeTemplateId = model.transcodeTemplateId;
}
/**
* <p>The complete time of the transcoding job. The format is yyyy-MM-dd"T"HH:mm:ssZ (UTC time).</p>
*
* <strong>example:</strong>
* <p>2019-02-26T08:30:16Z</p>
*/
public Builder completeTime(String completeTime) {
this.completeTime = completeTime;
return this;
}
/**
* <p>The creation time of the transcoding job. The format is yyyy-MM-dd"T"HH:mm:ssZ (UTC time).</p>
*
* <strong>example:</strong>
* <p>2019-02-26T08:27:16Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The clarity and audio quality types are defined as follows:</p>
* <ul>
* <li>SD: Standard Definition.</li>
* <li>HD: High Definition.</li>
* <li>FHD: Full High Definition.</li>
* <li>OD: Original Definition.</li>
* <li>2K: 2K.</li>
* <li>4K: 4K.</li>
* <li>SQ: Standard Audio Quality.</li>
* <li>HQ: High Audio Quality.</li>
* <li>AUTO: Adaptive Bitrate. This is only available when the transcoding template is configured with packaging settings. Please refer to <a href="https://api.aliyun-inc.com/~~52839~~?spm=openapi-amp.newDocPublishment.0.0.65b0281fNUFIXC">the Transcoding Template Configuration - Package Setting</a> for more details.</li>
* </ul>
* <blockquote>
* <p>This value represents the clarity label configured in the transcoding template and does not indicate the actual resolution range of the transcoded output file.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>LD</p>
*/
public Builder definition(String definition) {
this.definition = definition;
return this;
}
/**
* <p>The error code.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The error message returned.</p>
*
* <strong>example:</strong>
* <p>ErrorMessage</p>
*/
public Builder errorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
/**
* <p>The OSS address of the source file for transcoding.</p>
*
* <strong>example:</strong>
* <p><a href="http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/customerTrans/5b95e568f8e*****47f38e/31f1184c-*****b2a2-f94-c213f.wmv">http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/customerTrans/5b95e568f8e*****47f38e/31f1184c-*****b2a2-f94-c213f.wmv</a></p>
*/
public Builder inputFileUrl(String inputFileUrl) {
this.inputFileUrl = inputFileUrl;
return this;
}
/**
* <p>Information about the transcoded output files.</p>
*/
public Builder outputFile(OutputFile outputFile) {
this.outputFile = outputFile;
return this;
}
/**
* <p>The priority of the transcoding task.</p>
*
* <strong>example:</strong>
* <p>6</p>
*/
public Builder priority(String priority) {
this.priority = priority;
return this;
}
/**
* <p>The ID of the transcode job.</p>
*
* <strong>example:</strong>
* <p>38f0e513c88*****85515f9d50be188</p>
*/
public Builder transcodeJobId(String transcodeJobId) {
this.transcodeJobId = transcodeJobId;
return this;
}
/**
* <p>The status of the transcoding job:</p>
* <p>Transcoding: Transcoding in progress.
* TranscodeSuccess: Transcoding successful.
* TranscodeFail: Transcoding failed.</p>
*
* <strong>example:</strong>
* <p>Transcoding</p>
*/
public Builder transcodeJobStatus(String transcodeJobStatus) {
this.transcodeJobStatus = transcodeJobStatus;
return this;
}
/**
* <p>The processing progress of the transcoding job. The value range is [0, 100].</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder transcodeProgress(Long transcodeProgress) {
this.transcodeProgress = transcodeProgress;
return this;
}
/**
* <p>The ID of the template used for the transcode job.</p>
*
* <strong>example:</strong>
* <p>174b0534fea3*****b51c8f0ad1374</p>
*/
public Builder transcodeTemplateId(String transcodeTemplateId) {
this.transcodeTemplateId = transcodeTemplateId;
return this;
}
public TranscodeJobInfoList build() {
return new TranscodeJobInfoList(this);
}
}
}
/**
*
* {@link GetTranscodeTaskResponseBody} extends {@link TeaModel}
*
* <p>GetTranscodeTaskResponseBody</p>
*/
public static class TranscodeJobInfoListOutputFile extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AudioStreamList")
private String audioStreamList;
@com.aliyun.core.annotation.NameInMap("Bitrate")
private String bitrate;
@com.aliyun.core.annotation.NameInMap("Duration")
private String duration;
@com.aliyun.core.annotation.NameInMap("Encryption")
private String encryption;
@com.aliyun.core.annotation.NameInMap("Filesize")
private Long filesize;
@com.aliyun.core.annotation.NameInMap("Format")
private String format;
@com.aliyun.core.annotation.NameInMap("Fps")
private String fps;
@com.aliyun.core.annotation.NameInMap("Height")
private String height;
@com.aliyun.core.annotation.NameInMap("OutputFileUrl")
private String outputFileUrl;
@com.aliyun.core.annotation.NameInMap("SubtitleStreamList")
private String subtitleStreamList;
@com.aliyun.core.annotation.NameInMap("VideoStreamList")
private String videoStreamList;
@com.aliyun.core.annotation.NameInMap("WatermarkIdList")
private java.util.List<String> watermarkIdList;
@com.aliyun.core.annotation.NameInMap("Width")
private String width;
private TranscodeJobInfoListOutputFile(Builder builder) {
this.audioStreamList = builder.audioStreamList;
this.bitrate = builder.bitrate;
this.duration = builder.duration;
this.encryption = builder.encryption;
this.filesize = builder.filesize;
this.format = builder.format;
this.fps = builder.fps;
this.height = builder.height;
this.outputFileUrl = builder.outputFileUrl;
this.subtitleStreamList = builder.subtitleStreamList;
this.videoStreamList = builder.videoStreamList;
this.watermarkIdList = builder.watermarkIdList;
this.width = builder.width;
}
public static Builder builder() {
return new Builder();
}
public static TranscodeJobInfoListOutputFile create() {
return builder().build();
}
/**
* @return audioStreamList
*/
public String getAudioStreamList() {
return this.audioStreamList;
}
/**
* @return bitrate
*/
public String getBitrate() {
return this.bitrate;
}
/**
* @return duration
*/
public String getDuration() {
return this.duration;
}
/**
* @return encryption
*/
public String getEncryption() {
return this.encryption;
}
/**
* @return filesize
*/
public Long getFilesize() {
return this.filesize;
}
/**
* @return format
*/
public String getFormat() {
return this.format;
}
/**
* @return fps
*/
public String getFps() {
return this.fps;
}
/**
* @return height
*/
public String getHeight() {
return this.height;
}
/**
* @return outputFileUrl
*/
public String getOutputFileUrl() {
return this.outputFileUrl;
}
/**
* @return subtitleStreamList
*/
public String getSubtitleStreamList() {
return this.subtitleStreamList;
}
/**
* @return videoStreamList
*/
public String getVideoStreamList() {
return this.videoStreamList;
}
/**
* @return watermarkIdList
*/
public java.util.List<String> getWatermarkIdList() {
return this.watermarkIdList;
}
/**
* @return width
*/
public String getWidth() {
return this.width;
}
public static final class Builder {
private String audioStreamList;
private String bitrate;
private String duration;
private String encryption;
private Long filesize;
private String format;
private String fps;
private String height;
private String outputFileUrl;
private String subtitleStreamList;
private String videoStreamList;
private java.util.List<String> watermarkIdList;
private String width;
private Builder() {
}
private Builder(TranscodeJobInfoListOutputFile model) {
this.audioStreamList = model.audioStreamList;
this.bitrate = model.bitrate;
this.duration = model.duration;
this.encryption = model.encryption;
this.filesize = model.filesize;
this.format = model.format;
this.fps = model.fps;
this.height = model.height;
this.outputFileUrl = model.outputFileUrl;
this.subtitleStreamList = model.subtitleStreamList;
this.videoStreamList = model.videoStreamList;
this.watermarkIdList = model.watermarkIdList;
this.width = model.width;
}
/**
* <p>The audio streams.</p>
*
* <strong>example:</strong>
* <p>"AudioStreamList": "[{"Bitrate":"64.533","ChannelLayout":"stereo","Channels":"2","CodecLongName":"AAC (Advanced Audio Coding)","CodecName":"aac","CodecTag":"0x6134706d","CodecTagString":"mp4a","CodecTimeBase":"1/44100","Duration":"12.615533","Index":"1","Lang":"und","SampleFmt":"fltp","Samplerate":"44100","StartTime":"-0.046440","Timebase":"1/44100"}]</p>
*/
public Builder audioStreamList(String audioStreamList) {
this.audioStreamList = audioStreamList;
return this;
}
/**
* <p>The average bitrate of the output file. Unit: Kbit/s.</p>
*
* <strong>example:</strong>
* <p>964</p>
*/
public Builder bitrate(String bitrate) {
this.bitrate = bitrate;
return this;
}
/**
* <p>The length of the output file. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder duration(String duration) {
this.duration = duration;
return this;
}
/**
* <p>The encryption method of the output file. Valid values:</p>
* <ul>
* <li><strong>AliyunVoDEncryption</strong>: Alibaba Cloud proprietary cryptography</li>
* <li><strong>HLSEncryption</strong>: HTTP Live Streaming (HLS) encryption</li>
* </ul>
*
* <strong>example:</strong>
* <p>{"EncryptType":"AliyunVoDEncryption"}</p>
*/
public Builder encryption(String encryption) {
this.encryption = encryption;
return this;
}
/**
* <p>The size of the output file. Unit: byte.</p>
*
* <strong>example:</strong>
* <p>851076</p>
*/
public Builder filesize(Long filesize) {
this.filesize = filesize;
return this;
}
/**
* <p>The container format of the output file.</p>
*
* <strong>example:</strong>
* <p>m3u8</p>
*/
public Builder format(String format) {
this.format = format;
return this;
}
/**
* <p>The frame rate of the output file. Unit: frames per second.</p>
*
* <strong>example:</strong>
* <p>25</p>
*/
public Builder fps(String fps) {
this.fps = fps;
return this;
}
/**
* <p>The height of the output video. Unit: pixels.</p>
*
* <strong>example:</strong>
* <p>360</p>
*/
public Builder height(String height) {
this.height = height;
return this;
}
/**
* <p>The OSS URL of the output file.</p>
*
* <strong>example:</strong>
* <p><a href="http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/883f5d*****f20aaa352f/c3be4f073*****7d5193ec8-%7BDestMd5%7D-od-S00000001-200000.mp4">http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/883f5d*****f20aaa352f/c3be4f073*****7d5193ec8-{DestMd5}-od-S00000001-200000.mp4</a></p>
*/
public Builder outputFileUrl(String outputFileUrl) {
this.outputFileUrl = outputFileUrl;
return this;
}
/**
* <p>The subtitle streams.</p>
*
* <strong>example:</strong>
* <p>[]</p>
*/
public Builder subtitleStreamList(String subtitleStreamList) {
this.subtitleStreamList = subtitleStreamList;
return this;
}
/**
* <p>The video streams.</p>
*
* <strong>example:</strong>
* <p>[{"AvgFPS":"30.0","Bitrate":"933.814","CodecLongName":"H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10","CodecName":"h264","CodecTag":"0x31637661","CodecTagString":"avc1","CodecTimeBase":"1/60","Dar":"9:16","Duration":"12.033333","Fps":"30.0","HasBFrames":"2","Height":"360","Index":"0","Lang":"und","Level":"30","PixFmt":"yuv420p","Profile":"High","Sar":"81:256","StartTime":"0.000000","Timebase":"1/15360","Width":"640"}]</p>
*/
public Builder videoStreamList(String videoStreamList) {
this.videoStreamList = videoStreamList;
return this;
}
/**
* <p>The IDs of the watermarks used by the output file.</p>
*/
public Builder watermarkIdList(java.util.List<String> watermarkIdList) {
this.watermarkIdList = watermarkIdList;
return this;
}
/**
* <p>The width of the output video. Unit: pixels.</p>
*
* <strong>example:</strong>
* <p>640</p>
*/
public Builder width(String width) {
this.width = width;
return this;
}
public TranscodeJobInfoListOutputFile build() {
return new TranscodeJobInfoListOutputFile(this);
}
}
}
/**
*
* {@link GetTranscodeTaskResponseBody} extends {@link TeaModel}
*
* <p>GetTranscodeTaskResponseBody</p>
*/
public static class TranscodeTaskTranscodeJobInfoList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CompleteTime")
private String completeTime;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("Definition")
private String definition;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("ErrorMessage")
private String errorMessage;
@com.aliyun.core.annotation.NameInMap("InputFileUrl")
private String inputFileUrl;
@com.aliyun.core.annotation.NameInMap("OutputFile")
private TranscodeJobInfoListOutputFile outputFile;
@com.aliyun.core.annotation.NameInMap("Priority")
private String priority;
@com.aliyun.core.annotation.NameInMap("TranscodeJobId")
private String transcodeJobId;
@com.aliyun.core.annotation.NameInMap("TranscodeJobStatus")
private String transcodeJobStatus;
@com.aliyun.core.annotation.NameInMap("TranscodeProgress")
private Long transcodeProgress;
@com.aliyun.core.annotation.NameInMap("TranscodeTemplateId")
private String transcodeTemplateId;
private TranscodeTaskTranscodeJobInfoList(Builder builder) {
this.completeTime = builder.completeTime;
this.creationTime = builder.creationTime;
this.definition = builder.definition;
this.errorCode = builder.errorCode;
this.errorMessage = builder.errorMessage;
this.inputFileUrl = builder.inputFileUrl;
this.outputFile = builder.outputFile;
this.priority = builder.priority;
this.transcodeJobId = builder.transcodeJobId;
this.transcodeJobStatus = builder.transcodeJobStatus;
this.transcodeProgress = builder.transcodeProgress;
this.transcodeTemplateId = builder.transcodeTemplateId;
}
public static Builder builder() {
return new Builder();
}
public static TranscodeTaskTranscodeJobInfoList create() {
return builder().build();
}
/**
* @return completeTime
*/
public String getCompleteTime() {
return this.completeTime;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return definition
*/
public String getDefinition() {
return this.definition;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return errorMessage
*/
public String getErrorMessage() {
return this.errorMessage;
}
/**
* @return inputFileUrl
*/
public String getInputFileUrl() {
return this.inputFileUrl;
}
/**
* @return outputFile
*/
public TranscodeJobInfoListOutputFile getOutputFile() {
return this.outputFile;
}
/**
* @return priority
*/
public String getPriority() {
return this.priority;
}
/**
* @return transcodeJobId
*/
public String getTranscodeJobId() {
return this.transcodeJobId;
}
/**
* @return transcodeJobStatus
*/
public String getTranscodeJobStatus() {
return this.transcodeJobStatus;
}
/**
* @return transcodeProgress
*/
public Long getTranscodeProgress() {
return this.transcodeProgress;
}
/**
* @return transcodeTemplateId
*/
public String getTranscodeTemplateId() {
return this.transcodeTemplateId;
}
public static final class Builder {
private String completeTime;
private String creationTime;
private String definition;
private String errorCode;
private String errorMessage;
private String inputFileUrl;
private TranscodeJobInfoListOutputFile outputFile;
private String priority;
private String transcodeJobId;
private String transcodeJobStatus;
private Long transcodeProgress;
private String transcodeTemplateId;
private Builder() {
}
private Builder(TranscodeTaskTranscodeJobInfoList model) {
this.completeTime = model.completeTime;
this.creationTime = model.creationTime;
this.definition = model.definition;
this.errorCode = model.errorCode;
this.errorMessage = model.errorMessage;
this.inputFileUrl = model.inputFileUrl;
this.outputFile = model.outputFile;
this.priority = model.priority;
this.transcodeJobId = model.transcodeJobId;
this.transcodeJobStatus = model.transcodeJobStatus;
this.transcodeProgress = model.transcodeProgress;
this.transcodeTemplateId = model.transcodeTemplateId;
}
/**
* <p>The time when the transcoding job was complete. 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>2019-02-26T08:30:16Z</p>
*/
public Builder completeTime(String completeTime) {
this.completeTime = completeTime;
return this;
}
/**
* <p>The time when the transcoding job 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>2019-02-26T08:27:16Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The video resolution. Valid values:</p>
* <ul>
* <li><strong>LD</strong>: low definition</li>
* <li><strong>SD</strong>: standard definition</li>
* <li><strong>HD</strong>: high definition</li>
* <li><strong>FHD</strong>: ultra high definition</li>
* <li><strong>OD</strong>: original definition</li>
* <li><strong>2K</strong>: 2K</li>
* <li><strong>4K</strong>: 4K</li>
* <li><strong>SQ</strong>: standard sound quality</li>
* <li><strong>HQ</strong>: high sound quality</li>
* <li><strong>AUTO</strong>: adaptive bitrate Adaptive bitrate streams are returned only if PackageSetting is set in the transcoding template. For more information, see <a href="https://help.aliyun.com/document_detail/52839.html">Basic structures</a>.</li>
* </ul>
* <blockquote>
* <p>This parameter indicates the definition that is configured in the transcoding template and does not indicate the actual resolution of the output video.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>LD</p>
*/
public Builder definition(String definition) {
this.definition = definition;
return this;
}
/**
* <p>The error code returned when the transcoding job failed.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The error message returned when the transcoding job failed.</p>
*
* <strong>example:</strong>
* <p>ErrorMessage</p>
*/
public Builder errorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
/**
* <p>The Object Storage Service (OSS) URL of the input file.</p>
*
* <strong>example:</strong>
* <p><a href="http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/customerTrans/5b95e568f8e*****47f38e/31f1184c-*****b2a2-f94-c213f.wmv">http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/customerTrans/5b95e568f8e*****47f38e/31f1184c-*****b2a2-f94-c213f.wmv</a></p>
*/
public Builder inputFileUrl(String inputFileUrl) {
this.inputFileUrl = inputFileUrl;
return this;
}
/**
* <p>The information about the output file.</p>
*/
public Builder outputFile(TranscodeJobInfoListOutputFile outputFile) {
this.outputFile = outputFile;
return this;
}
/**
* <p>The priority of the transcoding job.</p>
*
* <strong>example:</strong>
* <p>6</p>
*/
public Builder priority(String priority) {
this.priority = priority;
return this;
}
/**
* <p>The ID of the transcoding job.</p>
*
* <strong>example:</strong>
* <p>38f0e513c88*****85515f9d50be188</p>
*/
public Builder transcodeJobId(String transcodeJobId) {
this.transcodeJobId = transcodeJobId;
return this;
}
/**
* <p>The status of the transcoding job.</p>
* <ul>
* <li><strong>Transcoding</strong></li>
* <li><strong>TranscodeSuccess</strong></li>
* <li><strong>TranscodeFail</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Transcoding</p>
*/
public Builder transcodeJobStatus(String transcodeJobStatus) {
this.transcodeJobStatus = transcodeJobStatus;
return this;
}
/**
* <p>The progress of the transcoding job. Valid values: <code>[0,100]</code>.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder transcodeProgress(Long transcodeProgress) {
this.transcodeProgress = transcodeProgress;
return this;
}
/**
* <p>The ID of the transcoding template.</p>
*
* <strong>example:</strong>
* <p>174b0534fea3*****b51c8f0ad1374</p>
*/
public Builder transcodeTemplateId(String transcodeTemplateId) {
this.transcodeTemplateId = transcodeTemplateId;
return this;
}
public TranscodeTaskTranscodeJobInfoList build() {
return new TranscodeTaskTranscodeJobInfoList(this);
}
}
}
/**
*
* {@link GetTranscodeTaskResponseBody} extends {@link TeaModel}
*
* <p>GetTranscodeTaskResponseBody</p>
*/
public static class TranscodeTask extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CompleteTime")
private String completeTime;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("TaskStatus")
private String taskStatus;
@com.aliyun.core.annotation.NameInMap("TranscodeJobInfoList")
private java.util.List<TranscodeTaskTranscodeJobInfoList> transcodeJobInfoList;
@com.aliyun.core.annotation.NameInMap("TranscodeTaskId")
private String transcodeTaskId;
@com.aliyun.core.annotation.NameInMap("TranscodeTemplateGroupId")
private String transcodeTemplateGroupId;
@com.aliyun.core.annotation.NameInMap("Trigger")
private String trigger;
@com.aliyun.core.annotation.NameInMap("VideoId")
private String videoId;
private TranscodeTask(Builder builder) {
this.completeTime = builder.completeTime;
this.creationTime = builder.creationTime;
this.taskStatus = builder.taskStatus;
this.transcodeJobInfoList = builder.transcodeJobInfoList;
this.transcodeTaskId = builder.transcodeTaskId;
this.transcodeTemplateGroupId = builder.transcodeTemplateGroupId;
this.trigger = builder.trigger;
this.videoId = builder.videoId;
}
public static Builder builder() {
return new Builder();
}
public static TranscodeTask create() {
return builder().build();
}
/**
* @return completeTime
*/
public String getCompleteTime() {
return this.completeTime;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return taskStatus
*/
public String getTaskStatus() {
return this.taskStatus;
}
/**
* @return transcodeJobInfoList
*/
public java.util.List<TranscodeTaskTranscodeJobInfoList> getTranscodeJobInfoList() {
return this.transcodeJobInfoList;
}
/**
* @return transcodeTaskId
*/
public String getTranscodeTaskId() {
return this.transcodeTaskId;
}
/**
* @return transcodeTemplateGroupId
*/
public String getTranscodeTemplateGroupId() {
return this.transcodeTemplateGroupId;
}
/**
* @return trigger
*/
public String getTrigger() {
return this.trigger;
}
/**
* @return videoId
*/
public String getVideoId() {
return this.videoId;
}
public static final class Builder {
private String completeTime;
private String creationTime;
private String taskStatus;
private java.util.List<TranscodeTaskTranscodeJobInfoList> transcodeJobInfoList;
private String transcodeTaskId;
private String transcodeTemplateGroupId;
private String trigger;
private String videoId;
private Builder() {
}
private Builder(TranscodeTask model) {
this.completeTime = model.completeTime;
this.creationTime = model.creationTime;
this.taskStatus = model.taskStatus;
this.transcodeJobInfoList = model.transcodeJobInfoList;
this.transcodeTaskId = model.transcodeTaskId;
this.transcodeTemplateGroupId = model.transcodeTemplateGroupId;
this.trigger = model.trigger;
this.videoId = model.videoId;
}
/**
* <p>The time when the transcoding task was complete. 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>2019-01-23T12:40:12Z</p>
*/
public Builder completeTime(String completeTime) {
this.completeTime = completeTime;
return this;
}
/**
* <p>The time when the transcoding task 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>2019-01-23T12:35:12Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The status of the transcoding task. Valid values:</p>
* <ul>
* <li><strong>Processing</strong>: In progress.</li>
* <li><strong>Partial</strong>: Some transcoding jobs were complete.</li>
* <li><strong>CompleteAllSucc</strong>: All transcoding jobs were successful.</li>
* <li><strong>CompleteAllFail</strong>: All transcoding jobs failed. If an exception occurs in the source file, no transcoding job is initiated and the transcoding task fails.</li>
* <li><strong>CompletePartialSucc</strong>: All transcoding jobs were complete but only some were successful.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Processing</p>
*/
public Builder taskStatus(String taskStatus) {
this.taskStatus = taskStatus;
return this;
}
/**
* <p>Details about transcoding jobs.</p>
*/
public Builder transcodeJobInfoList(java.util.List<TranscodeTaskTranscodeJobInfoList> transcodeJobInfoList) {
this.transcodeJobInfoList = transcodeJobInfoList;
return this;
}
/**
* <p>The ID of the transcoding task.</p>
*
* <strong>example:</strong>
* <p>b1b65ab107e14*****3dbb900f6c1fe0</p>
*/
public Builder transcodeTaskId(String transcodeTaskId) {
this.transcodeTaskId = transcodeTaskId;
return this;
}
/**
* <p>The ID of the transcoding template group.</p>
*
* <strong>example:</strong>
* <p>b500c7094bd241*****3e9900752d7c3</p>
*/
public Builder transcodeTemplateGroupId(String transcodeTemplateGroupId) {
this.transcodeTemplateGroupId = transcodeTemplateGroupId;
return this;
}
/**
* <p>The mode in which the transcoding task is triggered. Valid values:</p>
* <ul>
* <li><strong>Auto</strong>: The transcoding task is automatically triggered when the video is uploaded.</li>
* <li><strong>Manual</strong>: The transcoding task is triggered by calling the SubmitTranscodeJobs operation.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Auto</p>
*/
public Builder trigger(String trigger) {
this.trigger = trigger;
return this;
}
/**
* <p>The ID of the audio or video file.</p>
*
* <strong>example:</strong>
* <p>883f5d98107*****b7f20aaa352f</p>
*/
public Builder videoId(String videoId) {
this.videoId = videoId;
return this;
}
public TranscodeTask build() {
return new TranscodeTask(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/GetTranscodeTemplateGroupRequest.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 GetTranscodeTemplateGroupRequest} extends {@link RequestModel}
*
* <p>GetTranscodeTemplateGroupRequest</p>
*/
public class GetTranscodeTemplateGroupRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TranscodeTemplateGroupId")
@com.aliyun.core.annotation.Validation(required = true)
private String transcodeTemplateGroupId;
private GetTranscodeTemplateGroupRequest(Builder builder) {
super(builder);
this.transcodeTemplateGroupId = builder.transcodeTemplateGroupId;
}
public static Builder builder() {
return new Builder();
}
public static GetTranscodeTemplateGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return transcodeTemplateGroupId
*/
public String getTranscodeTemplateGroupId() {
return this.transcodeTemplateGroupId;
}
public static final class Builder extends Request.Builder<GetTranscodeTemplateGroupRequest, Builder> {
private String transcodeTemplateGroupId;
private Builder() {
super();
}
private Builder(GetTranscodeTemplateGroupRequest request) {
super(request);
this.transcodeTemplateGroupId = request.transcodeTemplateGroupId;
}
/**
* <p>The ID of the transcoding template group.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>a591f697c7167*****6ae1502142d0</p>
*/
public Builder transcodeTemplateGroupId(String transcodeTemplateGroupId) {
this.putQueryParameter("TranscodeTemplateGroupId", transcodeTemplateGroupId);
this.transcodeTemplateGroupId = transcodeTemplateGroupId;
return this;
}
@Override
public GetTranscodeTemplateGroupRequest build() {
return new GetTranscodeTemplateGroupRequest(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/GetTranscodeTemplateGroupResponse.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 GetTranscodeTemplateGroupResponse} extends {@link TeaModel}
*
* <p>GetTranscodeTemplateGroupResponse</p>
*/
public class GetTranscodeTemplateGroupResponse 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 GetTranscodeTemplateGroupResponseBody body;
private GetTranscodeTemplateGroupResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetTranscodeTemplateGroupResponse 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 GetTranscodeTemplateGroupResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetTranscodeTemplateGroupResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetTranscodeTemplateGroupResponseBody body);
@Override
GetTranscodeTemplateGroupResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetTranscodeTemplateGroupResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetTranscodeTemplateGroupResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetTranscodeTemplateGroupResponse 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(GetTranscodeTemplateGroupResponseBody body) {
this.body = body;
return this;
}
@Override
public GetTranscodeTemplateGroupResponse build() {
return new GetTranscodeTemplateGroupResponse(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/GetTranscodeTemplateGroupResponseBody.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 GetTranscodeTemplateGroupResponseBody} extends {@link TeaModel}
*
* <p>GetTranscodeTemplateGroupResponseBody</p>
*/
public class GetTranscodeTemplateGroupResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TranscodeTemplateGroup")
private TranscodeTemplateGroup transcodeTemplateGroup;
private GetTranscodeTemplateGroupResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.transcodeTemplateGroup = builder.transcodeTemplateGroup;
}
public static Builder builder() {
return new Builder();
}
public static GetTranscodeTemplateGroupResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return transcodeTemplateGroup
*/
public TranscodeTemplateGroup getTranscodeTemplateGroup() {
return this.transcodeTemplateGroup;
}
public static final class Builder {
private String requestId;
private TranscodeTemplateGroup transcodeTemplateGroup;
private Builder() {
}
private Builder(GetTranscodeTemplateGroupResponseBody model) {
this.requestId = model.requestId;
this.transcodeTemplateGroup = model.transcodeTemplateGroup;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>6730AC93-7B12-4B*****7F-49EE1FE8BC49</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information about the transcoding template group.</p>
*/
public Builder transcodeTemplateGroup(TranscodeTemplateGroup transcodeTemplateGroup) {
this.transcodeTemplateGroup = transcodeTemplateGroup;
return this;
}
public GetTranscodeTemplateGroupResponseBody build() {
return new GetTranscodeTemplateGroupResponseBody(this);
}
}
/**
*
* {@link GetTranscodeTemplateGroupResponseBody} extends {@link TeaModel}
*
* <p>GetTranscodeTemplateGroupResponseBody</p>
*/
public static class TranscodeTemplateList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Audio")
private String audio;
@com.aliyun.core.annotation.NameInMap("Clip")
private String clip;
@com.aliyun.core.annotation.NameInMap("Container")
private String container;
@com.aliyun.core.annotation.NameInMap("CopyrightMark")
private String copyrightMark;
@com.aliyun.core.annotation.NameInMap("Definition")
private String definition;
@com.aliyun.core.annotation.NameInMap("EncryptSetting")
private String encryptSetting;
@com.aliyun.core.annotation.NameInMap("MuxConfig")
private String muxConfig;
@com.aliyun.core.annotation.NameInMap("PackageSetting")
private String packageSetting;
@com.aliyun.core.annotation.NameInMap("Rotate")
private String rotate;
@com.aliyun.core.annotation.NameInMap("SubtitleList")
private String subtitleList;
@com.aliyun.core.annotation.NameInMap("TemplateName")
private String templateName;
@com.aliyun.core.annotation.NameInMap("TraceMark")
private String traceMark;
@com.aliyun.core.annotation.NameInMap("TransConfig")
private String transConfig;
@com.aliyun.core.annotation.NameInMap("TranscodeFileRegular")
private String transcodeFileRegular;
@com.aliyun.core.annotation.NameInMap("TranscodeTemplateId")
private String transcodeTemplateId;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("Video")
private String video;
@com.aliyun.core.annotation.NameInMap("WatermarkIds")
private java.util.List<String> watermarkIds;
private TranscodeTemplateList(Builder builder) {
this.audio = builder.audio;
this.clip = builder.clip;
this.container = builder.container;
this.copyrightMark = builder.copyrightMark;
this.definition = builder.definition;
this.encryptSetting = builder.encryptSetting;
this.muxConfig = builder.muxConfig;
this.packageSetting = builder.packageSetting;
this.rotate = builder.rotate;
this.subtitleList = builder.subtitleList;
this.templateName = builder.templateName;
this.traceMark = builder.traceMark;
this.transConfig = builder.transConfig;
this.transcodeFileRegular = builder.transcodeFileRegular;
this.transcodeTemplateId = builder.transcodeTemplateId;
this.type = builder.type;
this.video = builder.video;
this.watermarkIds = builder.watermarkIds;
}
public static Builder builder() {
return new Builder();
}
public static TranscodeTemplateList create() {
return builder().build();
}
/**
* @return audio
*/
public String getAudio() {
return this.audio;
}
/**
* @return clip
*/
public String getClip() {
return this.clip;
}
/**
* @return container
*/
public String getContainer() {
return this.container;
}
/**
* @return copyrightMark
*/
public String getCopyrightMark() {
return this.copyrightMark;
}
/**
* @return definition
*/
public String getDefinition() {
return this.definition;
}
/**
* @return encryptSetting
*/
public String getEncryptSetting() {
return this.encryptSetting;
}
/**
* @return muxConfig
*/
public String getMuxConfig() {
return this.muxConfig;
}
/**
* @return packageSetting
*/
public String getPackageSetting() {
return this.packageSetting;
}
/**
* @return rotate
*/
public String getRotate() {
return this.rotate;
}
/**
* @return subtitleList
*/
public String getSubtitleList() {
return this.subtitleList;
}
/**
* @return templateName
*/
public String getTemplateName() {
return this.templateName;
}
/**
* @return traceMark
*/
public String getTraceMark() {
return this.traceMark;
}
/**
* @return transConfig
*/
public String getTransConfig() {
return this.transConfig;
}
/**
* @return transcodeFileRegular
*/
public String getTranscodeFileRegular() {
return this.transcodeFileRegular;
}
/**
* @return transcodeTemplateId
*/
public String getTranscodeTemplateId() {
return this.transcodeTemplateId;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return video
*/
public String getVideo() {
return this.video;
}
/**
* @return watermarkIds
*/
public java.util.List<String> getWatermarkIds() {
return this.watermarkIds;
}
public static final class Builder {
private String audio;
private String clip;
private String container;
private String copyrightMark;
private String definition;
private String encryptSetting;
private String muxConfig;
private String packageSetting;
private String rotate;
private String subtitleList;
private String templateName;
private String traceMark;
private String transConfig;
private String transcodeFileRegular;
private String transcodeTemplateId;
private String type;
private String video;
private java.util.List<String> watermarkIds;
private Builder() {
}
private Builder(TranscodeTemplateList model) {
this.audio = model.audio;
this.clip = model.clip;
this.container = model.container;
this.copyrightMark = model.copyrightMark;
this.definition = model.definition;
this.encryptSetting = model.encryptSetting;
this.muxConfig = model.muxConfig;
this.packageSetting = model.packageSetting;
this.rotate = model.rotate;
this.subtitleList = model.subtitleList;
this.templateName = model.templateName;
this.traceMark = model.traceMark;
this.transConfig = model.transConfig;
this.transcodeFileRegular = model.transcodeFileRegular;
this.transcodeTemplateId = model.transcodeTemplateId;
this.type = model.type;
this.video = model.video;
this.watermarkIds = model.watermarkIds;
}
/**
* <p>The transcoding configurations of the audio stream. The value is a JSON string.</p>
*
* <strong>example:</strong>
* <p>{"Codec":"AAC","Remove":"false","Bitrate":"44","Samplerate":"32000","Channels":"2","Profile":"aac_low"}</p>
*/
public Builder audio(String audio) {
this.audio = audio;
return this;
}
/**
* <p>The clipping configurations of the video. The value is a JSON string. For example, this parameter is returned if you extract 5 seconds of content from a video to generate a new video.</p>
*
* <strong>example:</strong>
* <p>{"TimeSpan":{"Seek":"1","Duration":"5"}</p>
*/
public Builder clip(String clip) {
this.clip = clip;
return this;
}
/**
* <p>The format of the container used to encapsulate audio and video streams. The value is a JSON string.</p>
*
* <strong>example:</strong>
* <p>"Format":"m3u8"</p>
*/
public Builder container(String container) {
this.container = container;
return this;
}
/**
* <p>The content of the copyright watermark.</p>
*
* <strong>example:</strong>
* <p>{
* "Content": "test"
* }</p>
*/
public Builder copyrightMark(String copyrightMark) {
this.copyrightMark = copyrightMark;
return this;
}
/**
* <p>Valid values for the definition of a common transcoding template:</p>
* <ul>
* <li><strong>LD</strong>: low definition.</li>
* <li><strong>SD</strong>: standard definition.</li>
* <li><strong>HD</strong>: high definition.</li>
* <li><strong>FHD</strong>: ultra high definition.</li>
* <li><strong>OD</strong>: original quality.</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>
* </ul>
* <p>Valid values for the definition of a Narrowband HD™ 1.0 transcoding template:</p>
* <ul>
* <li><strong>LD-NBV1</strong>: low definition.</li>
* <li><strong>SD-NBV1</strong>: standard definition.</li>
* <li><strong>HD-NBV1</strong>: high definition.</li>
* <li><strong>FHD-NBV1</strong>: ultra high definition.</li>
* <li><strong>2K-NBV1</strong></li>
* <li><strong>4K-NBV1</strong></li>
* </ul>
* <blockquote>
* <ul>
* <li>You cannot change the definition of a transcoding template.</li>
* <li>You cannot modify the system parameters, such as the video resolution, audio resolution, and bitrate, of Narrowband HD™ 1.0 transcoding templates.</li>
* <li>You can create only Narrowband HD™ 1.0 transcoding templates that support the FLV, M3U8 (HLS), and MP4 output formats.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>SD</p>
*/
public Builder definition(String definition) {
this.definition = definition;
return this;
}
/**
* <p>The encryption configuration for transcoding.</p>
*
* <strong>example:</strong>
* <p>"EncryptType":"Private"</p>
*/
public Builder encryptSetting(String encryptSetting) {
this.encryptSetting = encryptSetting;
return this;
}
/**
* <p>The transcoding segment configurations. This parameter must be returned if HTTP-Live-Streaming (HLS) encryption is used. The value is a JSON string.</p>
*
* <strong>example:</strong>
* <p>"Segment": { "Duration":"6" }</p>
*/
public Builder muxConfig(String muxConfig) {
this.muxConfig = muxConfig;
return this;
}
/**
* <p>The packaging configuration. Only HLS packaging and DASH packaging are supported. The value is a JSON string.</p>
*
* <strong>example:</strong>
* <p>"PackageType":"HLSPackage","PackageConfig":{ "BandWidth":"900000" }</p>
*/
public Builder packageSetting(String packageSetting) {
this.packageSetting = packageSetting;
return this;
}
/**
* <p>The video rotation identifier. It is used to control the image rotation angle. For example, if you set this parameter to 180, the video image is turned upside down. Valid values: <code>[0,360]</code>.</p>
*
* <strong>example:</strong>
* <p>90</p>
*/
public Builder rotate(String rotate) {
this.rotate = rotate;
return this;
}
/**
* <p>The subtitle configurations. The value is a JSON string.</p>
*
* <strong>example:</strong>
* <p>[{"SubtitleUrl":"<a href="http://outin-test.oss-cn-shanghai.aliyuncs.com/subtitles/c737fece-14f1-4364-b107-d5f7f8edde0e.ass%22,%22CharEncode%22:%22utf-8%22%7D%5D">http://outin-test.oss-cn-shanghai.aliyuncs.com/subtitles/c737fece-14f1-4364-b107-d5f7f8edde0e.ass","CharEncode":"utf-8"}]</a></p>
*/
public Builder subtitleList(String subtitleList) {
this.subtitleList = subtitleList;
return this;
}
/**
* <p>The name of the transcoding template.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder templateName(String templateName) {
this.templateName = templateName;
return this;
}
/**
* <p>The content of the tracing watermark.</p>
*
* <strong>example:</strong>
* <p>{
* "Enable": true
* }</p>
*/
public Builder traceMark(String traceMark) {
this.traceMark = traceMark;
return this;
}
/**
* <p>The conditional transcoding configurations. This parameter can be used if you want to determine the basic logic based on the bitrate and resolution of the source file before the video is transcoded. The value is a JSON-formatted string.</p>
*
* <strong>example:</strong>
* <p>{"IsCheckReso":"true","IsCheckResoFail":"false","IsCheckVideoBitrate":"false","IsCheckVideoBitrateFail":"false","IsCheckAudioBitrate":"false","IsCheckAudioBitrateFail":"false"}</p>
*/
public Builder transConfig(String transConfig) {
this.transConfig = transConfig;
return this;
}
/**
* <p>The custom path used to store the output files.</p>
*
* <strong>example:</strong>
* <p>{MediaId}/transcoce_1</p>
*/
public Builder transcodeFileRegular(String transcodeFileRegular) {
this.transcodeFileRegular = transcodeFileRegular;
return this;
}
/**
* <p>The transcoding template ID.</p>
*
* <strong>example:</strong>
* <p>696d29a11erc057*****a3acc398d02f4</p>
*/
public Builder transcodeTemplateId(String transcodeTemplateId) {
this.transcodeTemplateId = transcodeTemplateId;
return this;
}
/**
* <p>The type of the transcoding template. Valid values:</p>
* <ul>
* <li><strong>Normal</strong> (default): a common transcoding template. The PackageSetting parameter cannot be set for this type of template.</li>
* <li><strong>VideoPackage</strong>: a video stream package template. If this type of template is used, ApsaraVideo VOD transcodes a video into video streams in different bitrates and packages these video streams with a file. The PackageSetting parameter must be set for this type of template.</li>
* <li><strong>SubtitlePackage</strong>: a subtitle package template. If this type of template is used, ApsaraVideo VOD adds the subtitle information to the output file generated by packaging the multi-bitrate video streams of the corresponding video without transcoding. You must set the PackageSetting parameter for a subtitle package template and associate the subtitle package template with a video stream package template. A template group can contain only one subtitle package template.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The transcoding configurations of the video stream. The value is a JSON string.</p>
*
* <strong>example:</strong>
* <p>{"Codec":"H.264","Bitrate":"900","Width":"960","Remove":"false","Fps":"30"}</p>
*/
public Builder video(String video) {
this.video = video;
return this;
}
/**
* <p>The IDs of the associated watermarks.</p>
*/
public Builder watermarkIds(java.util.List<String> watermarkIds) {
this.watermarkIds = watermarkIds;
return this;
}
public TranscodeTemplateList build() {
return new TranscodeTemplateList(this);
}
}
}
/**
*
* {@link GetTranscodeTemplateGroupResponseBody} extends {@link TeaModel}
*
* <p>GetTranscodeTemplateGroupResponseBody</p>
*/
public static class TranscodeTemplateGroup extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("IsDefault")
private String isDefault;
@com.aliyun.core.annotation.NameInMap("Locked")
private String locked;
@com.aliyun.core.annotation.NameInMap("ModifyTime")
private String modifyTime;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("TranscodeTemplateGroupId")
private String transcodeTemplateGroupId;
@com.aliyun.core.annotation.NameInMap("TranscodeTemplateList")
private java.util.List<TranscodeTemplateList> transcodeTemplateList;
private TranscodeTemplateGroup(Builder builder) {
this.appId = builder.appId;
this.creationTime = builder.creationTime;
this.isDefault = builder.isDefault;
this.locked = builder.locked;
this.modifyTime = builder.modifyTime;
this.name = builder.name;
this.transcodeTemplateGroupId = builder.transcodeTemplateGroupId;
this.transcodeTemplateList = builder.transcodeTemplateList;
}
public static Builder builder() {
return new Builder();
}
public static TranscodeTemplateGroup create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return isDefault
*/
public String getIsDefault() {
return this.isDefault;
}
/**
* @return locked
*/
public String getLocked() {
return this.locked;
}
/**
* @return modifyTime
*/
public String getModifyTime() {
return this.modifyTime;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return transcodeTemplateGroupId
*/
public String getTranscodeTemplateGroupId() {
return this.transcodeTemplateGroupId;
}
/**
* @return transcodeTemplateList
*/
public java.util.List<TranscodeTemplateList> getTranscodeTemplateList() {
return this.transcodeTemplateList;
}
public static final class Builder {
private String appId;
private String creationTime;
private String isDefault;
private String locked;
private String modifyTime;
private String name;
private String transcodeTemplateGroupId;
private java.util.List<TranscodeTemplateList> transcodeTemplateList;
private Builder() {
}
private Builder(TranscodeTemplateGroup model) {
this.appId = model.appId;
this.creationTime = model.creationTime;
this.isDefault = model.isDefault;
this.locked = model.locked;
this.modifyTime = model.modifyTime;
this.name = model.name;
this.transcodeTemplateGroupId = model.transcodeTemplateGroupId;
this.transcodeTemplateList = model.transcodeTemplateList;
}
/**
* <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 time when the transcoding template group 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-12-12T10:20:51Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>Indicates whether the template group 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>Indicates whether the transcoding template group is locked. Valid values:</p>
* <ul>
* <li><strong>Disabled</strong>: The template group is not locked.</li>
* <li><strong>Enabled</strong>: The template group is locked.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Enabled</p>
*/
public Builder locked(String locked) {
this.locked = locked;
return this;
}
/**
* <p>The time when the transcoding template group 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>2018-12-12T11:20:51Z</p>
*/
public Builder modifyTime(String modifyTime) {
this.modifyTime = modifyTime;
return this;
}
/**
* <p>The name of the transcoding template group.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The ID of the transcoding template group.</p>
*
* <strong>example:</strong>
* <p>a59b11f697c716*****6ae1502142d0</p>
*/
public Builder transcodeTemplateGroupId(String transcodeTemplateGroupId) {
this.transcodeTemplateGroupId = transcodeTemplateGroupId;
return this;
}
/**
* <p>The information about the transcoding templates.</p>
*/
public Builder transcodeTemplateList(java.util.List<TranscodeTemplateList> transcodeTemplateList) {
this.transcodeTemplateList = transcodeTemplateList;
return this;
}
public TranscodeTemplateGroup build() {
return new TranscodeTemplateGroup(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/GetURLUploadInfosRequest.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 GetURLUploadInfosRequest} extends {@link RequestModel}
*
* <p>GetURLUploadInfosRequest</p>
*/
public class GetURLUploadInfosRequest 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 GetURLUploadInfosRequest(Builder builder) {
super(builder);
this.jobIds = builder.jobIds;
this.uploadURLs = builder.uploadURLs;
}
public static Builder builder() {
return new Builder();
}
public static GetURLUploadInfosRequest 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<GetURLUploadInfosRequest, Builder> {
private String jobIds;
private String uploadURLs;
private Builder() {
super();
}
private Builder(GetURLUploadInfosRequest request) {
super(request);
this.jobIds = request.jobIds;
this.uploadURLs = request.uploadURLs;
}
/**
* <p>The one or more IDs of upload jobs. You can obtain the job IDs in the response parameter JobId of the <a href="https://help.aliyun.com/document_detail/86311.html">UploadMediaByURL</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 set one of the JobIds and the UploadURLs parameters. If you set both the JobIds and UploadURLs parameters, only the value of the JobIds parameter takes effect.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>86c1925fba0****,7afb201e7fa****,2cc4997378****</p>
*/
public Builder jobIds(String jobIds) {
this.putQueryParameter("JobIds", jobIds);
this.jobIds = jobIds;
return this;
}
/**
* <p>The one or more upload URLs of the source 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>If a media file is uploaded multiple times, pass the URL of the media file to this parameter only once.</li>
* <li>You must set one of the JobIds and the UploadURLs parameters. If you set both the JobIds and UploadURLs parameters, only the value of the JobIds parameter takes effect.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>http://****.mp4</p>
*/
public Builder uploadURLs(String uploadURLs) {
this.putQueryParameter("UploadURLs", uploadURLs);
this.uploadURLs = uploadURLs;
return this;
}
@Override
public GetURLUploadInfosRequest build() {
return new GetURLUploadInfosRequest(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/GetURLUploadInfosResponse.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 GetURLUploadInfosResponse} extends {@link TeaModel}
*
* <p>GetURLUploadInfosResponse</p>
*/
public class GetURLUploadInfosResponse 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 GetURLUploadInfosResponseBody body;
private GetURLUploadInfosResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetURLUploadInfosResponse 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 GetURLUploadInfosResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetURLUploadInfosResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetURLUploadInfosResponseBody body);
@Override
GetURLUploadInfosResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetURLUploadInfosResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetURLUploadInfosResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetURLUploadInfosResponse 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(GetURLUploadInfosResponseBody body) {
this.body = body;
return this;
}
@Override
public GetURLUploadInfosResponse build() {
return new GetURLUploadInfosResponse(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/GetURLUploadInfosResponseBody.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 GetURLUploadInfosResponseBody} extends {@link TeaModel}
*
* <p>GetURLUploadInfosResponseBody</p>
*/
public class GetURLUploadInfosResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NonExists")
private java.util.List<String> nonExists;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("URLUploadInfoList")
private java.util.List<URLUploadInfoList> URLUploadInfoList;
private GetURLUploadInfosResponseBody(Builder builder) {
this.nonExists = builder.nonExists;
this.requestId = builder.requestId;
this.URLUploadInfoList = builder.URLUploadInfoList;
}
public static Builder builder() {
return new Builder();
}
public static GetURLUploadInfosResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return nonExists
*/
public java.util.List<String> getNonExists() {
return this.nonExists;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return URLUploadInfoList
*/
public java.util.List<URLUploadInfoList> getURLUploadInfoList() {
return this.URLUploadInfoList;
}
public static final class Builder {
private java.util.List<String> nonExists;
private String requestId;
private java.util.List<URLUploadInfoList> URLUploadInfoList;
private Builder() {
}
private Builder(GetURLUploadInfosResponseBody model) {
this.nonExists = model.nonExists;
this.requestId = model.requestId;
this.URLUploadInfoList = model.URLUploadInfoList;
}
/**
* <p>The job IDs or upload URLs 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-4AF6-D7393642CA58****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information about URL-based upload jobs. For more information, see the "URLUploadInfo: the information about a URL-based upload job" section of the <a href="https://help.aliyun.com/document_detail/52839.html">Basic structures</a> topic.</p>
*/
public Builder URLUploadInfoList(java.util.List<URLUploadInfoList> URLUploadInfoList) {
this.URLUploadInfoList = URLUploadInfoList;
return this;
}
public GetURLUploadInfosResponseBody build() {
return new GetURLUploadInfosResponseBody(this);
}
}
/**
*
* {@link GetURLUploadInfosResponseBody} extends {@link TeaModel}
*
* <p>GetURLUploadInfosResponseBody</p>
*/
public static class URLUploadInfoList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CompleteTime")
private String completeTime;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("ErrorMessage")
private String errorMessage;
@com.aliyun.core.annotation.NameInMap("FileSize")
private String fileSize;
@com.aliyun.core.annotation.NameInMap("JobId")
private String jobId;
@com.aliyun.core.annotation.NameInMap("MediaId")
private String mediaId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("UploadURL")
private String uploadURL;
@com.aliyun.core.annotation.NameInMap("UserData")
private String userData;
private URLUploadInfoList(Builder builder) {
this.completeTime = builder.completeTime;
this.creationTime = builder.creationTime;
this.errorCode = builder.errorCode;
this.errorMessage = builder.errorMessage;
this.fileSize = builder.fileSize;
this.jobId = builder.jobId;
this.mediaId = builder.mediaId;
this.status = builder.status;
this.uploadURL = builder.uploadURL;
this.userData = builder.userData;
}
public static Builder builder() {
return new Builder();
}
public static URLUploadInfoList create() {
return builder().build();
}
/**
* @return completeTime
*/
public String getCompleteTime() {
return this.completeTime;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return errorMessage
*/
public String getErrorMessage() {
return this.errorMessage;
}
/**
* @return fileSize
*/
public String getFileSize() {
return this.fileSize;
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
/**
* @return mediaId
*/
public String getMediaId() {
return this.mediaId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return uploadURL
*/
public String getUploadURL() {
return this.uploadURL;
}
/**
* @return userData
*/
public String getUserData() {
return this.userData;
}
public static final class Builder {
private String completeTime;
private String creationTime;
private String errorCode;
private String errorMessage;
private String fileSize;
private String jobId;
private String mediaId;
private String status;
private String uploadURL;
private String userData;
private Builder() {
}
private Builder(URLUploadInfoList model) {
this.completeTime = model.completeTime;
this.creationTime = model.creationTime;
this.errorCode = model.errorCode;
this.errorMessage = model.errorMessage;
this.fileSize = model.fileSize;
this.jobId = model.jobId;
this.mediaId = model.mediaId;
this.status = model.status;
this.uploadURL = model.uploadURL;
this.userData = model.userData;
}
/**
* <p>The time when the upload job was complete. 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>2019-01-01T01:11:01Z</p>
*/
public Builder completeTime(String completeTime) {
this.completeTime = completeTime;
return this;
}
/**
* <p>The time when the upload job 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>2019-01-01T01:01:01Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The error code returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The error message returned.</p>
*
* <strong>example:</strong>
* <p>error_message</p>
*/
public Builder errorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
/**
* <p>The size of the uploaded media file. Unit: byte.</p>
*
* <strong>example:</strong>
* <p>24</p>
*/
public Builder fileSize(String fileSize) {
this.fileSize = fileSize;
return this;
}
/**
* <p>The ID of the upload job.</p>
*
* <strong>example:</strong>
* <p>86c1925fba0****</p>
*/
public Builder jobId(String jobId) {
this.jobId = jobId;
return this;
}
/**
* <p>The ID of the uploaded media file.</p>
*
* <strong>example:</strong>
* <p>93ab850b4f6f54b6e91d24d81d4****</p>
*/
public Builder mediaId(String mediaId) {
this.mediaId = mediaId;
return this;
}
/**
* <p>The status of the URL-based upload job. For more information about the valid values and value description of the parameter, see the "Status: the status of a video" section of the <a href="https://help.aliyun.com/document_detail/52839.html">Basic structures</a> topic.</p>
*
* <strong>example:</strong>
* <p>SUCCESS</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The upload URL of the source file.</p>
* <blockquote>
* <p>A maximum of 100 URLs can be returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>http://****.mp4</p>
*/
public Builder uploadURL(String uploadURL) {
this.uploadURL = uploadURL;
return this;
}
/**
* <p>The custom configurations. The value is 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>
*
* <strong>example:</strong>
* <p>{"MessageCallback":"{"CallbackURL":"<a href="http://example.aliyundoc.com%22%7D">http://example.aliyundoc.com"}</a>", "Extend":"{"localId":"***", "test":"www"}"}</p>
*/
public Builder userData(String userData) {
this.userData = userData;
return this;
}
public URLUploadInfoList build() {
return new URLUploadInfoList(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/GetUploadDetailsRequest.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 GetUploadDetailsRequest} extends {@link RequestModel}
*
* <p>GetUploadDetailsRequest</p>
*/
public class GetUploadDetailsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MediaIds")
@com.aliyun.core.annotation.Validation(required = true)
private String mediaIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MediaType")
private String mediaType;
private GetUploadDetailsRequest(Builder builder) {
super(builder);
this.mediaIds = builder.mediaIds;
this.mediaType = builder.mediaType;
}
public static Builder builder() {
return new Builder();
}
public static GetUploadDetailsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return mediaIds
*/
public String getMediaIds() {
return this.mediaIds;
}
/**
* @return mediaType
*/
public String getMediaType() {
return this.mediaType;
}
public static final class Builder extends Request.Builder<GetUploadDetailsRequest, Builder> {
private String mediaIds;
private String mediaType;
private Builder() {
super();
}
private Builder(GetUploadDetailsRequest request) {
super(request);
this.mediaIds = request.mediaIds;
this.mediaType = request.mediaType;
}
/**
* <p>The ID of the media file, namely, the audio or video ID. You can specify a maximum of 20 IDs. Separate multiple IDs with commas (,). You can use one of the following methods to obtain the audio or video ID:</p>
* <ul>
* <li>Log on to the <a href="https://vod.console.aliyun.com">ApsaraVideo VOD</a> console. In the left-side navigation pane, choose <strong>Media Files</strong> > <strong>Audio/Video</strong>. On the Video and Audio page, you can view the audio or video ID. Use this method if the audio or video file is uploaded by using the ApsaraVideo VOD console.</li>
* <li>View the value of the VideoId parameter returned by the <a href="https://help.aliyun.com/document_detail/55407.html">CreateUploadVideo</a> operation that you called to obtain an upload URL and credential.</li>
* <li>View the value of the VideoId parameter returned by the <a href="https://help.aliyun.com/document_detail/86044.html">SearchMedia</a> operation that you called to query media information after the audio or video file 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;
}
/**
* <p>The type of the media file. Set the value to <strong>video</strong>, which indicates audio and video files.</p>
*
* <strong>example:</strong>
* <p>video</p>
*/
public Builder mediaType(String mediaType) {
this.putQueryParameter("MediaType", mediaType);
this.mediaType = mediaType;
return this;
}
@Override
public GetUploadDetailsRequest build() {
return new GetUploadDetailsRequest(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/GetUploadDetailsResponse.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 GetUploadDetailsResponse} extends {@link TeaModel}
*
* <p>GetUploadDetailsResponse</p>
*/
public class GetUploadDetailsResponse 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 GetUploadDetailsResponseBody body;
private GetUploadDetailsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetUploadDetailsResponse 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 GetUploadDetailsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetUploadDetailsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetUploadDetailsResponseBody body);
@Override
GetUploadDetailsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetUploadDetailsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetUploadDetailsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetUploadDetailsResponse 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(GetUploadDetailsResponseBody body) {
this.body = body;
return this;
}
@Override
public GetUploadDetailsResponse build() {
return new GetUploadDetailsResponse(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/GetUploadDetailsResponseBody.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 GetUploadDetailsResponseBody} extends {@link TeaModel}
*
* <p>GetUploadDetailsResponseBody</p>
*/
public class GetUploadDetailsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ForbiddenMediaIds")
private java.util.List<String> forbiddenMediaIds;
@com.aliyun.core.annotation.NameInMap("NonExistMediaIds")
private java.util.List<String> nonExistMediaIds;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("UploadDetails")
private java.util.List<UploadDetails> uploadDetails;
private GetUploadDetailsResponseBody(Builder builder) {
this.forbiddenMediaIds = builder.forbiddenMediaIds;
this.nonExistMediaIds = builder.nonExistMediaIds;
this.requestId = builder.requestId;
this.uploadDetails = builder.uploadDetails;
}
public static Builder builder() {
return new Builder();
}
public static GetUploadDetailsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return forbiddenMediaIds
*/
public java.util.List<String> getForbiddenMediaIds() {
return this.forbiddenMediaIds;
}
/**
* @return nonExistMediaIds
*/
public java.util.List<String> getNonExistMediaIds() {
return this.nonExistMediaIds;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return uploadDetails
*/
public java.util.List<UploadDetails> getUploadDetails() {
return this.uploadDetails;
}
public static final class Builder {
private java.util.List<String> forbiddenMediaIds;
private java.util.List<String> nonExistMediaIds;
private String requestId;
private java.util.List<UploadDetails> uploadDetails;
private Builder() {
}
private Builder(GetUploadDetailsResponseBody model) {
this.forbiddenMediaIds = model.forbiddenMediaIds;
this.nonExistMediaIds = model.nonExistMediaIds;
this.requestId = model.requestId;
this.uploadDetails = model.uploadDetails;
}
/**
* <p>The IDs of the media files that cannot be accessed.</p>
*/
public Builder forbiddenMediaIds(java.util.List<String> forbiddenMediaIds) {
this.forbiddenMediaIds = forbiddenMediaIds;
return this;
}
/**
* <p>The IDs of the media files that do not exist.</p>
*/
public Builder nonExistMediaIds(java.util.List<String> nonExistMediaIds) {
this.nonExistMediaIds = nonExistMediaIds;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>9E290613-04F4-47F4-795D30732077****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The upload details.</p>
*/
public Builder uploadDetails(java.util.List<UploadDetails> uploadDetails) {
this.uploadDetails = uploadDetails;
return this;
}
public GetUploadDetailsResponseBody build() {
return new GetUploadDetailsResponseBody(this);
}
}
/**
*
* {@link GetUploadDetailsResponseBody} extends {@link TeaModel}
*
* <p>GetUploadDetailsResponseBody</p>
*/
public static class UploadDetails extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CompletionTime")
private String completionTime;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("DeviceModel")
private String deviceModel;
@com.aliyun.core.annotation.NameInMap("FileSize")
private Long fileSize;
@com.aliyun.core.annotation.NameInMap("MediaId")
private String mediaId;
@com.aliyun.core.annotation.NameInMap("ModificationTime")
private String modificationTime;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Title")
private String title;
@com.aliyun.core.annotation.NameInMap("UploadIP")
private String uploadIP;
@com.aliyun.core.annotation.NameInMap("UploadRatio")
private Float uploadRatio;
@com.aliyun.core.annotation.NameInMap("UploadSize")
private Long uploadSize;
@com.aliyun.core.annotation.NameInMap("UploadSource")
private String uploadSource;
@com.aliyun.core.annotation.NameInMap("UploadStatus")
private String uploadStatus;
private UploadDetails(Builder builder) {
this.completionTime = builder.completionTime;
this.creationTime = builder.creationTime;
this.deviceModel = builder.deviceModel;
this.fileSize = builder.fileSize;
this.mediaId = builder.mediaId;
this.modificationTime = builder.modificationTime;
this.status = builder.status;
this.title = builder.title;
this.uploadIP = builder.uploadIP;
this.uploadRatio = builder.uploadRatio;
this.uploadSize = builder.uploadSize;
this.uploadSource = builder.uploadSource;
this.uploadStatus = builder.uploadStatus;
}
public static Builder builder() {
return new Builder();
}
public static UploadDetails create() {
return builder().build();
}
/**
* @return completionTime
*/
public String getCompletionTime() {
return this.completionTime;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return deviceModel
*/
public String getDeviceModel() {
return this.deviceModel;
}
/**
* @return fileSize
*/
public Long getFileSize() {
return this.fileSize;
}
/**
* @return mediaId
*/
public String getMediaId() {
return this.mediaId;
}
/**
* @return modificationTime
*/
public String getModificationTime() {
return this.modificationTime;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return title
*/
public String getTitle() {
return this.title;
}
/**
* @return uploadIP
*/
public String getUploadIP() {
return this.uploadIP;
}
/**
* @return uploadRatio
*/
public Float getUploadRatio() {
return this.uploadRatio;
}
/**
* @return uploadSize
*/
public Long getUploadSize() {
return this.uploadSize;
}
/**
* @return uploadSource
*/
public String getUploadSource() {
return this.uploadSource;
}
/**
* @return uploadStatus
*/
public String getUploadStatus() {
return this.uploadStatus;
}
public static final class Builder {
private String completionTime;
private String creationTime;
private String deviceModel;
private Long fileSize;
private String mediaId;
private String modificationTime;
private String status;
private String title;
private String uploadIP;
private Float uploadRatio;
private Long uploadSize;
private String uploadSource;
private String uploadStatus;
private Builder() {
}
private Builder(UploadDetails model) {
this.completionTime = model.completionTime;
this.creationTime = model.creationTime;
this.deviceModel = model.deviceModel;
this.fileSize = model.fileSize;
this.mediaId = model.mediaId;
this.modificationTime = model.modificationTime;
this.status = model.status;
this.title = model.title;
this.uploadIP = model.uploadIP;
this.uploadRatio = model.uploadRatio;
this.uploadSize = model.uploadSize;
this.uploadSource = model.uploadSource;
this.uploadStatus = model.uploadStatus;
}
/**
* <p>The time when the upload job was complete. 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>2019-04-28T09:45:07Z</p>
*/
public Builder completionTime(String completionTime) {
this.completionTime = completionTime;
return this;
}
/**
* <p>The time when the upload job 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>2019-04-28T09:42:07Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The device model.</p>
*
* <strong>example:</strong>
* <p>Chrome</p>
*/
public Builder deviceModel(String deviceModel) {
this.deviceModel = deviceModel;
return this;
}
/**
* <p>The size of the uploaded file. Unit: byte.</p>
*
* <strong>example:</strong>
* <p>46</p>
*/
public Builder fileSize(Long fileSize) {
this.fileSize = fileSize;
return this;
}
/**
* <p>The ID of the uploaded audio or video.</p>
*
* <strong>example:</strong>
* <p>61ccbdb06fa83012be4d8083f6****</p>
*/
public Builder mediaId(String mediaId) {
this.mediaId = mediaId;
return this;
}
/**
* <p>The time when the information about the media file was 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>2019-04-28T09:43:12Z</p>
*/
public Builder modificationTime(String modificationTime) {
this.modificationTime = modificationTime;
return this;
}
/**
* <p>The status of the video. For more information about the valid values and value description of the parameter, see the "Status: the status of a video" section of the <a href="https://help.aliyun.com/document_detail/52839.html">Basic structures</a> topic.</p>
*
* <strong>example:</strong>
* <p>Uploading</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The title of the media file.</p>
*
* <strong>example:</strong>
* <p>Test details</p>
*/
public Builder title(String title) {
this.title = title;
return this;
}
/**
* <p>The IP address of the server that uploads the media file.</p>
*
* <strong>example:</strong>
* <p>192.168.0.1</p>
*/
public Builder uploadIP(String uploadIP) {
this.uploadIP = uploadIP;
return this;
}
/**
* <p>The upload ratio.</p>
*
* <strong>example:</strong>
* <p>0.038</p>
*/
public Builder uploadRatio(Float uploadRatio) {
this.uploadRatio = uploadRatio;
return this;
}
/**
* <p>The upload size. Unit: byte.</p>
*
* <strong>example:</strong>
* <p>346</p>
*/
public Builder uploadSize(Long uploadSize) {
this.uploadSize = uploadSize;
return this;
}
/**
* <p>The method that is used to upload the media file.</p>
*
* <strong>example:</strong>
* <p>WebSDK</p>
*/
public Builder uploadSource(String uploadSource) {
this.uploadSource = uploadSource;
return this;
}
/**
* <p>The status of the upload job. For more information about the valid values and value description of the parameter, see the "Status: the status of a URL-based upload job" section of the <a href="https://help.aliyun.com/document_detail/52839.html">Basic structures</a> topic.</p>
*
* <strong>example:</strong>
* <p>Uploading</p>
*/
public Builder uploadStatus(String uploadStatus) {
this.uploadStatus = uploadStatus;
return this;
}
public UploadDetails build() {
return new UploadDetails(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/GetVideoInfoRequest.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 GetVideoInfoRequest} extends {@link RequestModel}
*
* <p>GetVideoInfoRequest</p>
*/
public class GetVideoInfoRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VideoId")
@com.aliyun.core.annotation.Validation(required = true)
private String videoId;
private GetVideoInfoRequest(Builder builder) {
super(builder);
this.videoId = builder.videoId;
}
public static Builder builder() {
return new Builder();
}
public static GetVideoInfoRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return videoId
*/
public String getVideoId() {
return this.videoId;
}
public static final class Builder extends Request.Builder<GetVideoInfoRequest, Builder> {
private String videoId;
private Builder() {
super();
}
private Builder(GetVideoInfoRequest request) {
super(request);
this.videoId = request.videoId;
}
/**
* <p>The ID of the audio or video file. You can specify only one ID in each call. 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>Media Files</strong> > <strong>Audio/Video</strong>. On the Video and Audio page, view the ID of the audio or video file. 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 <a href="https://help.aliyun.com/document_detail/55407.html">CreateUploadVideo</a> operation that you called to obtain the upload URL and credential.</li>
* <li>Obtain the value of VideoId from the response to the <a href="https://help.aliyun.com/document_detail/86044.html">SearchMedia</a> operation that you called to query the media ID after the media file is uploaded.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>9b73864d75f1d231e9001cd5f8****</p>
*/
public Builder videoId(String videoId) {
this.putQueryParameter("VideoId", videoId);
this.videoId = videoId;
return this;
}
@Override
public GetVideoInfoRequest build() {
return new GetVideoInfoRequest(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/GetVideoInfoResponse.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 GetVideoInfoResponse} extends {@link TeaModel}
*
* <p>GetVideoInfoResponse</p>
*/
public class GetVideoInfoResponse 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 GetVideoInfoResponseBody body;
private GetVideoInfoResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetVideoInfoResponse 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 GetVideoInfoResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetVideoInfoResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetVideoInfoResponseBody body);
@Override
GetVideoInfoResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetVideoInfoResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetVideoInfoResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetVideoInfoResponse 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(GetVideoInfoResponseBody body) {
this.body = body;
return this;
}
@Override
public GetVideoInfoResponse build() {
return new GetVideoInfoResponse(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/GetVideoInfoResponseBody.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 GetVideoInfoResponseBody} extends {@link TeaModel}
*
* <p>GetVideoInfoResponseBody</p>
*/
public class GetVideoInfoResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Video")
private Video video;
private GetVideoInfoResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.video = builder.video;
}
public static Builder builder() {
return new Builder();
}
public static GetVideoInfoResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return video
*/
public Video getVideo() {
return this.video;
}
public static final class Builder {
private String requestId;
private Video video;
private Builder() {
}
private Builder(GetVideoInfoResponseBody model) {
this.requestId = model.requestId;
this.video = model.video;
}
/**
* <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;
}
/**
* <p>The information about the audio or video file.</p>
*/
public Builder video(Video video) {
this.video = video;
return this;
}
public GetVideoInfoResponseBody build() {
return new GetVideoInfoResponseBody(this);
}
}
/**
*
* {@link GetVideoInfoResponseBody} extends {@link TeaModel}
*
* <p>GetVideoInfoResponseBody</p>
*/
public static class Snapshots extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Snapshot")
private java.util.List<String> snapshot;
private Snapshots(Builder builder) {
this.snapshot = builder.snapshot;
}
public static Builder builder() {
return new Builder();
}
public static Snapshots create() {
return builder().build();
}
/**
* @return snapshot
*/
public java.util.List<String> getSnapshot() {
return this.snapshot;
}
public static final class Builder {
private java.util.List<String> snapshot;
private Builder() {
}
private Builder(Snapshots model) {
this.snapshot = model.snapshot;
}
/**
* Snapshot.
*/
public Builder snapshot(java.util.List<String> snapshot) {
this.snapshot = snapshot;
return this;
}
public Snapshots build() {
return new Snapshots(this);
}
}
}
/**
*
* {@link GetVideoInfoResponseBody} extends {@link TeaModel}
*
* <p>GetVideoInfoResponseBody</p>
*/
public static class Video extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("AuditStatus")
private String auditStatus;
@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("CustomMediaInfo")
private String customMediaInfo;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("DownloadSwitch")
private String downloadSwitch;
@com.aliyun.core.annotation.NameInMap("Duration")
private Float duration;
@com.aliyun.core.annotation.NameInMap("ModificationTime")
private String modificationTime;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RestoreExpiration")
private String restoreExpiration;
@com.aliyun.core.annotation.NameInMap("RestoreStatus")
private String restoreStatus;
@com.aliyun.core.annotation.NameInMap("Size")
private Long size;
@com.aliyun.core.annotation.NameInMap("Snapshots")
private Snapshots 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;
@com.aliyun.core.annotation.NameInMap("VideoId")
private String videoId;
private Video(Builder builder) {
this.appId = builder.appId;
this.auditStatus = builder.auditStatus;
this.cateId = builder.cateId;
this.cateName = builder.cateName;
this.coverURL = builder.coverURL;
this.creationTime = builder.creationTime;
this.customMediaInfo = builder.customMediaInfo;
this.description = builder.description;
this.downloadSwitch = builder.downloadSwitch;
this.duration = builder.duration;
this.modificationTime = builder.modificationTime;
this.regionId = builder.regionId;
this.restoreExpiration = builder.restoreExpiration;
this.restoreStatus = builder.restoreStatus;
this.size = builder.size;
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;
this.videoId = builder.videoId;
}
public static Builder builder() {
return new Builder();
}
public static Video create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return auditStatus
*/
public String getAuditStatus() {
return this.auditStatus;
}
/**
* @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 customMediaInfo
*/
public String getCustomMediaInfo() {
return this.customMediaInfo;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return downloadSwitch
*/
public String getDownloadSwitch() {
return this.downloadSwitch;
}
/**
* @return duration
*/
public Float getDuration() {
return this.duration;
}
/**
* @return modificationTime
*/
public String getModificationTime() {
return this.modificationTime;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return restoreExpiration
*/
public String getRestoreExpiration() {
return this.restoreExpiration;
}
/**
* @return restoreStatus
*/
public String getRestoreStatus() {
return this.restoreStatus;
}
/**
* @return size
*/
public Long getSize() {
return this.size;
}
/**
* @return snapshots
*/
public Snapshots 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;
}
/**
* @return videoId
*/
public String getVideoId() {
return this.videoId;
}
public static final class Builder {
private String appId;
private String auditStatus;
private Long cateId;
private String cateName;
private String coverURL;
private String creationTime;
private String customMediaInfo;
private String description;
private String downloadSwitch;
private Float duration;
private String modificationTime;
private String regionId;
private String restoreExpiration;
private String restoreStatus;
private Long size;
private Snapshots snapshots;
private String status;
private String storageClass;
private String storageLocation;
private String tags;
private String templateGroupId;
private String title;
private String userData;
private String videoId;
private Builder() {
}
private Builder(Video model) {
this.appId = model.appId;
this.auditStatus = model.auditStatus;
this.cateId = model.cateId;
this.cateName = model.cateName;
this.coverURL = model.coverURL;
this.creationTime = model.creationTime;
this.customMediaInfo = model.customMediaInfo;
this.description = model.description;
this.downloadSwitch = model.downloadSwitch;
this.duration = model.duration;
this.modificationTime = model.modificationTime;
this.regionId = model.regionId;
this.restoreExpiration = model.restoreExpiration;
this.restoreStatus = model.restoreStatus;
this.size = model.size;
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;
this.videoId = model.videoId;
}
/**
* <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 final review result of the audio or video file. Valid values:</p>
* <ul>
* <li><strong>Normal</strong>: pass</li>
* <li><strong>Blocked</strong>: blocked</li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder auditStatus(String auditStatus) {
this.auditStatus = auditStatus;
return this;
}
/**
* <p>The category ID of the media file.</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>Category name</p>
*/
public Builder cateName(String cateName) {
this.cateName = cateName;
return this;
}
/**
* <p>The thumbnail URL of the media file.</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 file 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-11-14T09:15:50Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The custom information about the media file.\n\n> This parameter has been deprecated. This parameter is no longer returned after you call the operation.</p>
*
* <strong>example:</strong>
* <p>{"aaa":"test"}</p>
*/
public Builder customMediaInfo(String customMediaInfo) {
this.customMediaInfo = customMediaInfo;
return this;
}
/**
* <p>The description of the media file.</p>
*
* <strong>example:</strong>
* <p>Video description in ApsaraVideo VOD</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>: the offline download feature is enabled.</li>
* <li><strong>off</strong>: the offline download feature is not enabled.</li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder downloadSwitch(String downloadSwitch) {
this.downloadSwitch = downloadSwitch;
return this;
}
/**
* <p>The duration of the media file. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>135.6</p>
*/
public Builder duration(Float duration) {
this.duration = duration;
return this;
}
/**
* <p>The time when the audio or video file was last updated. 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-11-14T10:15:50Z</p>
*/
public Builder modificationTime(String modificationTime) {
this.modificationTime = modificationTime;
return this;
}
/**
* <p>The region where the media file is stored.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The period of time in which the object 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 audio or video file. 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 size of the source file. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>10897890</p>
*/
public Builder size(Long size) {
this.size = size;
return this;
}
/**
* <p>The video snapshot URLs.</p>
*/
public Builder snapshots(Snapshots snapshots) {
this.snapshots = snapshots;
return this;
}
/**
* <p>The status of the media file. For more information about the operations that you can perform on files in different statuses and usage limits, see <a href="~~52839#title-vqg-8cz-7p8~~">Status: the status of a video</a>. 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 class of the audio or video file. Valid values:</p>
* <ul>
* <li><strong>Standard</strong>: All media resources are stored as Standard objects.</li>
* <li><strong>IA</strong>: All media resources are stored as IA objects.</li>
* <li><strong>Archive</strong>: All media resources are stored as Archive objects.</li>
* <li><strong>ColdArchive</strong>: All media resources 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 files are Cold Archive objects.</li>
* <li><strong>Changing</strong>: The storage class of the audio or video file is being changed.</li>
* <li><strong>SourceChanging</strong>: The storage class of the source file 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 file.</p>
*
* <strong>example:</strong>
* <p>out-201703232251****.oss-cn-shanghai.aliyuncs.com</p>
*/
public Builder storageLocation(String storageLocation) {
this.storageLocation = storageLocation;
return this;
}
/**
* <p>The tags of the audio or video file. Multiple tags are separated by commas (,).</p>
*
* <strong>example:</strong>
* <p>Tag 1,Tag 2</p>
*/
public Builder tags(String tags) {
this.tags = tags;
return this;
}
/**
* <p>The ID of the transcoding template group.</p>
*
* <strong>example:</strong>
* <p>9ae2af636ca64835b0c10412f448****</p>
*/
public Builder templateGroupId(String templateGroupId) {
this.templateGroupId = templateGroupId;
return this;
}
/**
* <p>The title of the media file.</p>
*
* <strong>example:</strong>
* <p>Video title in ApsaraVideo VOD</p>
*/
public Builder title(String title) {
this.title = title;
return this;
}
/**
* <p>Custom settings. This is a JSON string that supports settings such as message callbacks and upload acceleration. For more information, please refer to <a href="https://help.aliyun.com/document_detail/86952.html">UserData</a>.</p>
*
* <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.userData = userData;
return this;
}
/**
* <p>The ID of the media file.</p>
*
* <strong>example:</strong>
* <p>9b73864d75f1d231e9001cd5f8****</p>
*/
public Builder videoId(String videoId) {
this.videoId = videoId;
return this;
}
public Video build() {
return new Video(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/GetVideoInfosRequest.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 GetVideoInfosRequest} extends {@link RequestModel}
*
* <p>GetVideoInfosRequest</p>
*/
public class GetVideoInfosRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VideoIds")
@com.aliyun.core.annotation.Validation(required = true)
private String videoIds;
private GetVideoInfosRequest(Builder builder) {
super(builder);
this.videoIds = builder.videoIds;
}
public static Builder builder() {
return new Builder();
}
public static GetVideoInfosRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return videoIds
*/
public String getVideoIds() {
return this.videoIds;
}
public static final class Builder extends Request.Builder<GetVideoInfosRequest, Builder> {
private String videoIds;
private Builder() {
super();
}
private Builder(GetVideoInfosRequest request) {
super(request);
this.videoIds = request.videoIds;
}
/**
* <p>The list of video IDs. Separate multiple IDs with commas (,). A maximum of 20 IDs can be specified.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>7753d144efd8e649c6c45fe0579****,7753d144efd74d6c45fe0570****</p>
*/
public Builder videoIds(String videoIds) {
this.putQueryParameter("VideoIds", videoIds);
this.videoIds = videoIds;
return this;
}
@Override
public GetVideoInfosRequest build() {
return new GetVideoInfosRequest(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/GetVideoInfosResponse.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 GetVideoInfosResponse} extends {@link TeaModel}
*
* <p>GetVideoInfosResponse</p>
*/
public class GetVideoInfosResponse 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 GetVideoInfosResponseBody body;
private GetVideoInfosResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetVideoInfosResponse 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 GetVideoInfosResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetVideoInfosResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetVideoInfosResponseBody body);
@Override
GetVideoInfosResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetVideoInfosResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetVideoInfosResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetVideoInfosResponse 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(GetVideoInfosResponseBody body) {
this.body = body;
return this;
}
@Override
public GetVideoInfosResponse build() {
return new GetVideoInfosResponse(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/GetVideoInfosResponseBody.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 GetVideoInfosResponseBody} extends {@link TeaModel}
*
* <p>GetVideoInfosResponseBody</p>
*/
public class GetVideoInfosResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NonExistVideoIds")
private java.util.List<String> nonExistVideoIds;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("VideoList")
private java.util.List<VideoList> videoList;
private GetVideoInfosResponseBody(Builder builder) {
this.nonExistVideoIds = builder.nonExistVideoIds;
this.requestId = builder.requestId;
this.videoList = builder.videoList;
}
public static Builder builder() {
return new Builder();
}
public static GetVideoInfosResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return nonExistVideoIds
*/
public java.util.List<String> getNonExistVideoIds() {
return this.nonExistVideoIds;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return videoList
*/
public java.util.List<VideoList> getVideoList() {
return this.videoList;
}
public static final class Builder {
private java.util.List<String> nonExistVideoIds;
private String requestId;
private java.util.List<VideoList> videoList;
private Builder() {
}
private Builder(GetVideoInfosResponseBody model) {
this.nonExistVideoIds = model.nonExistVideoIds;
this.requestId = model.requestId;
this.videoList = model.videoList;
}
/**
* <p>The IDs of the videos that do not exist.</p>
*/
public Builder nonExistVideoIds(java.util.List<String> nonExistVideoIds) {
this.nonExistVideoIds = nonExistVideoIds;
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;
}
/**
* <p>The information about the audio or video files.</p>
*/
public Builder videoList(java.util.List<VideoList> videoList) {
this.videoList = videoList;
return this;
}
public GetVideoInfosResponseBody build() {
return new GetVideoInfosResponseBody(this);
}
}
/**
*
* {@link GetVideoInfosResponseBody} extends {@link TeaModel}
*
* <p>GetVideoInfosResponseBody</p>
*/
public static class VideoList 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("Duration")
private Float duration;
@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("Size")
private Long size;
@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;
@com.aliyun.core.annotation.NameInMap("VideoId")
private String videoId;
private VideoList(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.duration = builder.duration;
this.modificationTime = builder.modificationTime;
this.restoreExpiration = builder.restoreExpiration;
this.restoreStatus = builder.restoreStatus;
this.size = builder.size;
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;
this.videoId = builder.videoId;
}
public static Builder builder() {
return new Builder();
}
public static VideoList 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 duration
*/
public Float getDuration() {
return this.duration;
}
/**
* @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 size
*/
public Long getSize() {
return this.size;
}
/**
* @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;
}
/**
* @return videoId
*/
public String getVideoId() {
return this.videoId;
}
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 Float duration;
private String modificationTime;
private String restoreExpiration;
private String restoreStatus;
private Long size;
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 String videoId;
private Builder() {
}
private Builder(VideoList 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.duration = model.duration;
this.modificationTime = model.modificationTime;
this.restoreExpiration = model.restoreExpiration;
this.restoreStatus = model.restoreStatus;
this.size = model.size;
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;
this.videoId = model.videoId;
}
/**
* <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>This is a category name.</p>
*/
public Builder cateName(String cateName) {
this.cateName = cateName;
return this;
}
/**
* <p>The thumbnail URL of the audio or video file.</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 file was created. The time is 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-06-26T05:38:48Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The description of the audio or video file.</p>
*
* <strong>example:</strong>
* <p>This is a category 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>: the offline download feature is enabled.</li>
* <li><strong>off</strong>: the offline download feature is not enabled.</li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder downloadSwitch(String downloadSwitch) {
this.downloadSwitch = downloadSwitch;
return this;
}
/**
* <p>The duration of the audio or video file. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>120</p>
*/
public Builder duration(Float duration) {
this.duration = duration;
return this;
}
/**
* <p>The time when the audio or video file was last updated. The time is 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-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 audio file. 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 size of the source file. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>453</p>
*/
public Builder size(Long size) {
this.size = size;
return this;
}
/**
* <p>The 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 class of the audio file. Valid values:</p>
* <ul>
* <li><strong>Standard</strong>: All media resources are stored as Standard objects.</li>
* <li><strong>IA</strong>: All media resources are stored as IA objects.</li>
* <li><strong>Archive</strong>: All media resources are stored as Archive objects.</li>
* <li><strong>ColdArchive</strong>: All media resources 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 video file is being changed.</li>
* <li><strong>SourceChanging</strong>: The storage class of the source file 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 audio or video file.</p>
*
* <strong>example:</strong>
* <p>out-****.oss-cn-shanghai.aliyuncs.com</p>
*/
public Builder storageLocation(String storageLocation) {
this.storageLocation = storageLocation;
return this;
}
/**
* <p>The tags of the audio or video file. 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 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 audio or video file.</p>
*
* <strong>example:</strong>
* <p>Video tiltle</p>
*/
public Builder title(String title) {
this.title = title;
return this;
}
/**
* <p>Custom settings. This is a JSON string that supports settings such as message callbacks and upload acceleration. For more information, please refer to <a href="https://help.aliyun.com/document_detail/86952.html">UserData</a>.</p>
*
* <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.userData = userData;
return this;
}
/**
* <p>The ID of the audio or video file.</p>
*
* <strong>example:</strong>
* <p>7753d144efd74d6c45fe0570****</p>
*/
public Builder videoId(String videoId) {
this.videoId = videoId;
return this;
}
public VideoList build() {
return new VideoList(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/GetVideoListRequest.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 GetVideoListRequest} extends {@link RequestModel}
*
* <p>GetVideoListRequest</p>
*/
public class GetVideoListRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CateId")
private Long cateId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndTime")
private String endTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNo")
private Integer pageNo;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SortBy")
private String sortBy;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
private String startTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StorageLocation")
private String storageLocation;
private GetVideoListRequest(Builder builder) {
super(builder);
this.cateId = builder.cateId;
this.endTime = builder.endTime;
this.pageNo = builder.pageNo;
this.pageSize = builder.pageSize;
this.sortBy = builder.sortBy;
this.startTime = builder.startTime;
this.status = builder.status;
this.storageLocation = builder.storageLocation;
}
public static Builder builder() {
return new Builder();
}
public static GetVideoListRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return cateId
*/
public Long getCateId() {
return this.cateId;
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return pageNo
*/
public Integer getPageNo() {
return this.pageNo;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return sortBy
*/
public String getSortBy() {
return this.sortBy;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return storageLocation
*/
public String getStorageLocation() {
return this.storageLocation;
}
public static final class Builder extends Request.Builder<GetVideoListRequest, Builder> {
private Long cateId;
private String endTime;
private Integer pageNo;
private Integer pageSize;
private String sortBy;
private String startTime;
private String status;
private String storageLocation;
private Builder() {
super();
}
private Builder(GetVideoListRequest request) {
super(request);
this.cateId = request.cateId;
this.endTime = request.endTime;
this.pageNo = request.pageNo;
this.pageSize = request.pageSize;
this.sortBy = request.sortBy;
this.startTime = request.startTime;
this.status = request.status;
this.storageLocation = request.storageLocation;
}
/**
* <p>The ID of the category. 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> to view the category ID.</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>781111</p>
*/
public Builder cateId(Long cateId) {
this.putQueryParameter("CateId", cateId);
this.cateId = cateId;
return this;
}
/**
* <p>The end of the time range to query. The end time must be later than the start time. Specify the time in the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm:ss</em>Z format. The time must be in UTC.</p>
*
* <strong>example:</strong>
* <p>2017-01-11T12:59:00Z</p>
*/
public Builder endTime(String endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* <p>The number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNo(Integer pageNo) {
this.putQueryParameter("PageNo", pageNo);
this.pageNo = pageNo;
return this;
}
/**
* <p>The number of entries to return on each page. Default value: <strong>10</strong>. Maximum value: <strong>100</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The sorting method of the results. Valid values:</p>
* <ul>
* <li><strong>CreationTime:Desc</strong> (default): The results are sorted in reverse chronological order based on the creation time.</li>
* <li><strong>CreationTime:Asc</strong>: The results are sorted in chronological order based on the creation time.</li>
* </ul>
*
* <strong>example:</strong>
* <p>CreationTime:Asc</p>
*/
public Builder sortBy(String sortBy) {
this.putQueryParameter("SortBy", sortBy);
this.sortBy = sortBy;
return this;
}
/**
* <p>The beginning of the time range to query. Specify the time in the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm:ss</em>Z format. The time must be in UTC.</p>
*
* <strong>example:</strong>
* <p>2017-01-11T12:00:00Z</p>
*/
public Builder startTime(String startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
/**
* <p>The status of the video. You can specify multiple video statuses and separate them with commas (,). Valid values:</p>
* <ul>
* <li><strong>Uploading</strong>: The video is being uploaded.</li>
* <li><strong>UploadFail</strong>: The video failed to be uploaded.</li>
* <li><strong>UploadSucc</strong>: The video has been uploaded.</li>
* <li><strong>Transcoding</strong>: The video is being transcoded.</li>
* <li><strong>TranscodeFail</strong>: The video failed to be transcoded.</li>
* <li><strong>checking</strong>: The video is being reviewed.</li>
* <li><strong>Blocked</strong>: The video is blocked.</li>
* <li><strong>Normal</strong>: The video is normal.</li>
* <li><strong>ProduceFail</strong>: The video failed to be produced.</li>
* </ul>
* <p>For more information about each video status, see the "Status: the status of a video" section of the <a href="~~52839#section-p7c-jgy-070~~">Basic data types</a> topic.</p>
*
* <strong>example:</strong>
* <p>Uploading,Normal</p>
*/
public Builder status(String status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
/**
* <p>The storage address of the media file.</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;
}
@Override
public GetVideoListRequest build() {
return new GetVideoListRequest(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/GetVideoListResponse.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 GetVideoListResponse} extends {@link TeaModel}
*
* <p>GetVideoListResponse</p>
*/
public class GetVideoListResponse 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 GetVideoListResponseBody body;
private GetVideoListResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetVideoListResponse 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 GetVideoListResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetVideoListResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetVideoListResponseBody body);
@Override
GetVideoListResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetVideoListResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetVideoListResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetVideoListResponse 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(GetVideoListResponseBody body) {
this.body = body;
return this;
}
@Override
public GetVideoListResponse build() {
return new GetVideoListResponse(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/GetVideoListResponseBody.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 GetVideoListResponseBody} extends {@link TeaModel}
*
* <p>GetVideoListResponseBody</p>
*/
public class GetVideoListResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Total")
private Integer total;
@com.aliyun.core.annotation.NameInMap("VideoList")
private VideoList videoList;
private GetVideoListResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.total = builder.total;
this.videoList = builder.videoList;
}
public static Builder builder() {
return new Builder();
}
public static GetVideoListResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return total
*/
public Integer getTotal() {
return this.total;
}
/**
* @return videoList
*/
public VideoList getVideoList() {
return this.videoList;
}
public static final class Builder {
private String requestId;
private Integer total;
private VideoList videoList;
private Builder() {
}
private Builder(GetVideoListResponseBody model) {
this.requestId = model.requestId;
this.total = model.total;
this.videoList = model.videoList;
}
/**
* <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;
}
/**
* <p>The total number of media files returned.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder total(Integer total) {
this.total = total;
return this;
}
/**
* <p>The information about the audio or video files. Information about a maximum of 5,000 audio or video files can be returned.</p>
*/
public Builder videoList(VideoList videoList) {
this.videoList = videoList;
return this;
}
public GetVideoListResponseBody build() {
return new GetVideoListResponseBody(this);
}
}
/**
*
* {@link GetVideoListResponseBody} extends {@link TeaModel}
*
* <p>GetVideoListResponseBody</p>
*/
public static class Snapshots extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Snapshot")
private java.util.List<String> snapshot;
private Snapshots(Builder builder) {
this.snapshot = builder.snapshot;
}
public static Builder builder() {
return new Builder();
}
public static Snapshots create() {
return builder().build();
}
/**
* @return snapshot
*/
public java.util.List<String> getSnapshot() {
return this.snapshot;
}
public static final class Builder {
private java.util.List<String> snapshot;
private Builder() {
}
private Builder(Snapshots model) {
this.snapshot = model.snapshot;
}
/**
* Snapshot.
*/
public Builder snapshot(java.util.List<String> snapshot) {
this.snapshot = snapshot;
return this;
}
public Snapshots build() {
return new Snapshots(this);
}
}
}
/**
*
* {@link GetVideoListResponseBody} extends {@link TeaModel}
*
* <p>GetVideoListResponseBody</p>
*/
public static class Video 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("Duration")
private Float duration;
@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("Size")
private Long size;
@com.aliyun.core.annotation.NameInMap("Snapshots")
private Snapshots 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("Title")
private String title;
@com.aliyun.core.annotation.NameInMap("UserData")
private String userData;
@com.aliyun.core.annotation.NameInMap("VideoId")
private String videoId;
private Video(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.duration = builder.duration;
this.modificationTime = builder.modificationTime;
this.restoreExpiration = builder.restoreExpiration;
this.restoreStatus = builder.restoreStatus;
this.size = builder.size;
this.snapshots = builder.snapshots;
this.status = builder.status;
this.storageClass = builder.storageClass;
this.storageLocation = builder.storageLocation;
this.tags = builder.tags;
this.title = builder.title;
this.userData = builder.userData;
this.videoId = builder.videoId;
}
public static Builder builder() {
return new Builder();
}
public static Video 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 duration
*/
public Float getDuration() {
return this.duration;
}
/**
* @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 size
*/
public Long getSize() {
return this.size;
}
/**
* @return snapshots
*/
public Snapshots 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 title
*/
public String getTitle() {
return this.title;
}
/**
* @return userData
*/
public String getUserData() {
return this.userData;
}
/**
* @return videoId
*/
public String getVideoId() {
return this.videoId;
}
public static final class Builder {
private String appId;
private Long cateId;
private String cateName;
private String coverURL;
private String creationTime;
private String description;
private Float duration;
private String modificationTime;
private String restoreExpiration;
private String restoreStatus;
private Long size;
private Snapshots snapshots;
private String status;
private String storageClass;
private String storageLocation;
private String tags;
private String title;
private String userData;
private String videoId;
private Builder() {
}
private Builder(Video 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.duration = model.duration;
this.modificationTime = model.modificationTime;
this.restoreExpiration = model.restoreExpiration;
this.restoreStatus = model.restoreStatus;
this.size = model.size;
this.snapshots = model.snapshots;
this.status = model.status;
this.storageClass = model.storageClass;
this.storageLocation = model.storageLocation;
this.tags = model.tags;
this.title = model.title;
this.userData = model.userData;
this.videoId = model.videoId;
}
/**
* <p>The ID of the application. Default value: <strong>app-1000000</strong>.</p>
*
* <strong>example:</strong>
* <p>app-1000000</p>
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* <p>The category ID of the audio or video file.</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>Category name</p>
*/
public Builder cateName(String cateName) {
this.cateName = cateName;
return this;
}
/**
* <p>The thumbnail URL of the audio or video file.</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 audio or video file 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-11-14T09:15:50Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The description of the audio or video file.</p>
*
* <strong>example:</strong>
* <p>Video description in ApsaraVideo VOD</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The duration of the audio or video file. Unit: seconds. 86,400 seconds is equivalent to 24 hours.</p>
*
* <strong>example:</strong>
* <p>135.6</p>
*/
public Builder duration(Float duration) {
this.duration = duration;
return this;
}
/**
* <p>The time when the video was updated. 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-11-14T09:16:50Z</p>
*/
public Builder modificationTime(String modificationTime) {
this.modificationTime = modificationTime;
return this;
}
/**
* <p>The period of time in which the audio or video 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 audio or video file. 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 size of the source file. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>10897890</p>
*/
public Builder size(Long size) {
this.size = size;
return this;
}
/**
* <p>The URL array of video snapshots.</p>
*/
public Builder snapshots(Snapshots snapshots) {
this.snapshots = snapshots;
return this;
}
/**
* <p>The status of the audio or video file. Valid values:</p>
* <ul>
* <li><strong>Uploading</strong>: The video is being uploaded.</li>
* <li><strong>UploadFail</strong>: The video failed to be uploaded.</li>
* <li><strong>UploadSucc</strong>: The video is uploaded.</li>
* <li><strong>Transcoding</strong>: The video is being transcoded.</li>
* <li><strong>TranscodeFail</strong>: The video failed to be transcoded.</li>
* <li><strong>checking</strong>: The video is being reviewed.</li>
* <li><strong>Blocked</strong>: The video is blocked.</li>
* <li><strong>Normal</strong>: The video is normal.</li>
* <li><strong>ProduceFail</strong>: The video failed to be produced.</li>
* </ul>
* <p>For more information about each video status, see the "Status: the status of a video" section of the <a href="~~52839#section-p7c-jgy-070~~">Basic data types</a> topic.</p>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The storage class of the audio or video file. Valid values:</p>
* <ul>
* <li><strong>Standard</strong>: All media resources are stored as Standard objects.</li>
* <li><strong>IA</strong>: All media resources are stored as IA objects.</li>
* <li><strong>Archive</strong>: All media resources are stored as Archive objects.</li>
* <li><strong>ColdArchive</strong>: All media resources 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 files are Cold Archive objects.</li>
* <li><strong>Changing</strong>: The storage class of the audio or video file is being changed.</li>
* <li><strong>SourceChanging</strong>: The storage class of the source file 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 audio or video file.</p>
*
* <strong>example:</strong>
* <p>out-****.oss-cn-shanghai.aliyuncs.com</p>
*/
public Builder storageLocation(String storageLocation) {
this.storageLocation = storageLocation;
return this;
}
/**
* <p>The tags of the audio or video file. Multiple tags are separated by commas (,).</p>
*
* <strong>example:</strong>
* <p>Tag 1,Tag 2</p>
*/
public Builder tags(String tags) {
this.tags = tags;
return this;
}
/**
* <p>The title of the audio or video file.</p>
*
* <strong>example:</strong>
* <p>Video title in ApsaraVideo VOD</p>
*/
public Builder title(String title) {
this.title = title;
return this;
}
/**
* UserData.
*/
public Builder userData(String userData) {
this.userData = userData;
return this;
}
/**
* <p>The ID of the audio or video file.</p>
*
* <strong>example:</strong>
* <p>9ae2af636ca6c10412f44891fc****</p>
*/
public Builder videoId(String videoId) {
this.videoId = videoId;
return this;
}
public Video build() {
return new Video(this);
}
}
}
/**
*
* {@link GetVideoListResponseBody} extends {@link TeaModel}
*
* <p>GetVideoListResponseBody</p>
*/
public static class VideoList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Video")
private java.util.List<Video> video;
private VideoList(Builder builder) {
this.video = builder.video;
}
public static Builder builder() {
return new Builder();
}
public static VideoList create() {
return builder().build();
}
/**
* @return video
*/
public java.util.List<Video> getVideo() {
return this.video;
}
public static final class Builder {
private java.util.List<Video> video;
private Builder() {
}
private Builder(VideoList model) {
this.video = model.video;
}
/**
* Video.
*/
public Builder video(java.util.List<Video> video) {
this.video = video;
return this;
}
public VideoList build() {
return new VideoList(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/GetVideoPlayAuthRequest.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 GetVideoPlayAuthRequest} extends {@link RequestModel}
*
* <p>GetVideoPlayAuthRequest</p>
*/
public class GetVideoPlayAuthRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ApiVersion")
private String apiVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AuthInfoTimeout")
private Long authInfoTimeout;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VideoId")
@com.aliyun.core.annotation.Validation(required = true)
private String videoId;
private GetVideoPlayAuthRequest(Builder builder) {
super(builder);
this.apiVersion = builder.apiVersion;
this.authInfoTimeout = builder.authInfoTimeout;
this.videoId = builder.videoId;
}
public static Builder builder() {
return new Builder();
}
public static GetVideoPlayAuthRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return apiVersion
*/
public String getApiVersion() {
return this.apiVersion;
}
/**
* @return authInfoTimeout
*/
public Long getAuthInfoTimeout() {
return this.authInfoTimeout;
}
/**
* @return videoId
*/
public String getVideoId() {
return this.videoId;
}
public static final class Builder extends Request.Builder<GetVideoPlayAuthRequest, Builder> {
private String apiVersion;
private Long authInfoTimeout;
private String videoId;
private Builder() {
super();
}
private Builder(GetVideoPlayAuthRequest request) {
super(request);
this.apiVersion = request.apiVersion;
this.authInfoTimeout = request.authInfoTimeout;
this.videoId = request.videoId;
}
/**
* <p>The API version. Set the value to <strong>1.0.0</strong>.</p>
*
* <strong>example:</strong>
* <p>1.0.0</p>
*/
public Builder apiVersion(String apiVersion) {
this.putQueryParameter("ApiVersion", apiVersion);
this.apiVersion = apiVersion;
return this;
}
/**
* <p>The validity period of the playback credential. Unit: <strong>seconds</strong>. You cannot obtain the playback URL of a video by using a credential that has expired. A new credential is required.</p>
* <ul>
* <li>Default value: <strong>100</strong>.</li>
* <li>Valid values: <code>[100,3000]</code>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder authInfoTimeout(Long authInfoTimeout) {
this.putQueryParameter("AuthInfoTimeout", authInfoTimeout);
this.authInfoTimeout = authInfoTimeout;
return this;
}
/**
* <p>The ID of the media file. You can specify only one ID. You can use one of the following methods to obtain the ID of the file:</p>
* <ul>
* <li>Log on to the <a href="https://vod.console.aliyun.com">ApsaraVideo VOD</a> console. In the left-side navigation pane, choose <strong>Media Files</strong> > <strong>Audio/Video</strong>. On the Video and Audio page, view the ID of the media file. This method is applicable to files that are uploaded by using the ApsaraVideo VOD console.</li>
* <li>Obtain the value of the VideoId parameter from the response to the <a href="https://help.aliyun.com/document_detail/55407.html">CreateUploadVideo</a> operation.</li>
* <li>Obtain the value of the VideoId parameter from the response to the <a href="https://help.aliyun.com/document_detail/86044.html">SearchMedia</a> operation. This method is applicable to files that have been uploaded.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>dfde02284a5c46622a097adaf44a****</p>
*/
public Builder videoId(String videoId) {
this.putQueryParameter("VideoId", videoId);
this.videoId = videoId;
return this;
}
@Override
public GetVideoPlayAuthRequest build() {
return new GetVideoPlayAuthRequest(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/GetVideoPlayAuthResponse.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 GetVideoPlayAuthResponse} extends {@link TeaModel}
*
* <p>GetVideoPlayAuthResponse</p>
*/
public class GetVideoPlayAuthResponse 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 GetVideoPlayAuthResponseBody body;
private GetVideoPlayAuthResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetVideoPlayAuthResponse 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 GetVideoPlayAuthResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetVideoPlayAuthResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetVideoPlayAuthResponseBody body);
@Override
GetVideoPlayAuthResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetVideoPlayAuthResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetVideoPlayAuthResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetVideoPlayAuthResponse 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(GetVideoPlayAuthResponseBody body) {
this.body = body;
return this;
}
@Override
public GetVideoPlayAuthResponse build() {
return new GetVideoPlayAuthResponse(this);
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.