com.tencentcloudapi.mps.v20190612.models.ProcessLiveStreamRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.mps.v20190612.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ProcessLiveStreamRequest extends AbstractModel{
/**
* Live stream URL, which must be a live stream file address. RTMP, HLS, and FLV are supported.
*/
@SerializedName("Url")
@Expose
private String Url;
/**
* Event notification information of a task, which is used to specify the live stream processing result.
*/
@SerializedName("TaskNotifyConfig")
@Expose
private LiveStreamTaskNotifyConfig TaskNotifyConfig;
/**
* Target bucket of a live stream processing output file. This parameter is required if a file will be output.
*/
@SerializedName("OutputStorage")
@Expose
private TaskOutputStorage OutputStorage;
/**
* Target directory of a live stream processing output file, such as `/movie/201909/`. If this parameter is left empty, the `/` directory will be used.
*/
@SerializedName("OutputDir")
@Expose
private String OutputDir;
/**
* Type parameter of a video content audit task.
*/
@SerializedName("AiContentReviewTask")
@Expose
private AiContentReviewTaskInput AiContentReviewTask;
/**
* Type parameter of video content recognition task.
*/
@SerializedName("AiRecognitionTask")
@Expose
private AiRecognitionTaskInput AiRecognitionTask;
/**
* The ID used for deduplication. If there was a request with the same ID in the last seven days, the current request will return an error. The ID can contain up to 50 characters. If this parameter is left empty or an empty string is entered, no deduplication will be performed.
*/
@SerializedName("SessionId")
@Expose
private String SessionId;
/**
* The source context which is used to pass through the user request information. The task flow status change callback will return the value of this field. It can contain up to 1,000 characters.
*/
@SerializedName("SessionContext")
@Expose
private String SessionContext;
/**
* Get Live stream URL, which must be a live stream file address. RTMP, HLS, and FLV are supported.
* @return Url Live stream URL, which must be a live stream file address. RTMP, HLS, and FLV are supported.
*/
public String getUrl() {
return this.Url;
}
/**
* Set Live stream URL, which must be a live stream file address. RTMP, HLS, and FLV are supported.
* @param Url Live stream URL, which must be a live stream file address. RTMP, HLS, and FLV are supported.
*/
public void setUrl(String Url) {
this.Url = Url;
}
/**
* Get Event notification information of a task, which is used to specify the live stream processing result.
* @return TaskNotifyConfig Event notification information of a task, which is used to specify the live stream processing result.
*/
public LiveStreamTaskNotifyConfig getTaskNotifyConfig() {
return this.TaskNotifyConfig;
}
/**
* Set Event notification information of a task, which is used to specify the live stream processing result.
* @param TaskNotifyConfig Event notification information of a task, which is used to specify the live stream processing result.
*/
public void setTaskNotifyConfig(LiveStreamTaskNotifyConfig TaskNotifyConfig) {
this.TaskNotifyConfig = TaskNotifyConfig;
}
/**
* Get Target bucket of a live stream processing output file. This parameter is required if a file will be output.
* @return OutputStorage Target bucket of a live stream processing output file. This parameter is required if a file will be output.
*/
public TaskOutputStorage getOutputStorage() {
return this.OutputStorage;
}
/**
* Set Target bucket of a live stream processing output file. This parameter is required if a file will be output.
* @param OutputStorage Target bucket of a live stream processing output file. This parameter is required if a file will be output.
*/
public void setOutputStorage(TaskOutputStorage OutputStorage) {
this.OutputStorage = OutputStorage;
}
/**
* Get Target directory of a live stream processing output file, such as `/movie/201909/`. If this parameter is left empty, the `/` directory will be used.
* @return OutputDir Target directory of a live stream processing output file, such as `/movie/201909/`. If this parameter is left empty, the `/` directory will be used.
*/
public String getOutputDir() {
return this.OutputDir;
}
/**
* Set Target directory of a live stream processing output file, such as `/movie/201909/`. If this parameter is left empty, the `/` directory will be used.
* @param OutputDir Target directory of a live stream processing output file, such as `/movie/201909/`. If this parameter is left empty, the `/` directory will be used.
*/
public void setOutputDir(String OutputDir) {
this.OutputDir = OutputDir;
}
/**
* Get Type parameter of a video content audit task.
* @return AiContentReviewTask Type parameter of a video content audit task.
*/
public AiContentReviewTaskInput getAiContentReviewTask() {
return this.AiContentReviewTask;
}
/**
* Set Type parameter of a video content audit task.
* @param AiContentReviewTask Type parameter of a video content audit task.
*/
public void setAiContentReviewTask(AiContentReviewTaskInput AiContentReviewTask) {
this.AiContentReviewTask = AiContentReviewTask;
}
/**
* Get Type parameter of video content recognition task.
* @return AiRecognitionTask Type parameter of video content recognition task.
*/
public AiRecognitionTaskInput getAiRecognitionTask() {
return this.AiRecognitionTask;
}
/**
* Set Type parameter of video content recognition task.
* @param AiRecognitionTask Type parameter of video content recognition task.
*/
public void setAiRecognitionTask(AiRecognitionTaskInput AiRecognitionTask) {
this.AiRecognitionTask = AiRecognitionTask;
}
/**
* Get The ID used for deduplication. If there was a request with the same ID in the last seven days, the current request will return an error. The ID can contain up to 50 characters. If this parameter is left empty or an empty string is entered, no deduplication will be performed.
* @return SessionId The ID used for deduplication. If there was a request with the same ID in the last seven days, the current request will return an error. The ID can contain up to 50 characters. If this parameter is left empty or an empty string is entered, no deduplication will be performed.
*/
public String getSessionId() {
return this.SessionId;
}
/**
* Set The ID used for deduplication. If there was a request with the same ID in the last seven days, the current request will return an error. The ID can contain up to 50 characters. If this parameter is left empty or an empty string is entered, no deduplication will be performed.
* @param SessionId The ID used for deduplication. If there was a request with the same ID in the last seven days, the current request will return an error. The ID can contain up to 50 characters. If this parameter is left empty or an empty string is entered, no deduplication will be performed.
*/
public void setSessionId(String SessionId) {
this.SessionId = SessionId;
}
/**
* Get The source context which is used to pass through the user request information. The task flow status change callback will return the value of this field. It can contain up to 1,000 characters.
* @return SessionContext The source context which is used to pass through the user request information. The task flow status change callback will return the value of this field. It can contain up to 1,000 characters.
*/
public String getSessionContext() {
return this.SessionContext;
}
/**
* Set The source context which is used to pass through the user request information. The task flow status change callback will return the value of this field. It can contain up to 1,000 characters.
* @param SessionContext The source context which is used to pass through the user request information. The task flow status change callback will return the value of this field. It can contain up to 1,000 characters.
*/
public void setSessionContext(String SessionContext) {
this.SessionContext = SessionContext;
}
public ProcessLiveStreamRequest() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public ProcessLiveStreamRequest(ProcessLiveStreamRequest source) {
if (source.Url != null) {
this.Url = new String(source.Url);
}
if (source.TaskNotifyConfig != null) {
this.TaskNotifyConfig = new LiveStreamTaskNotifyConfig(source.TaskNotifyConfig);
}
if (source.OutputStorage != null) {
this.OutputStorage = new TaskOutputStorage(source.OutputStorage);
}
if (source.OutputDir != null) {
this.OutputDir = new String(source.OutputDir);
}
if (source.AiContentReviewTask != null) {
this.AiContentReviewTask = new AiContentReviewTaskInput(source.AiContentReviewTask);
}
if (source.AiRecognitionTask != null) {
this.AiRecognitionTask = new AiRecognitionTaskInput(source.AiRecognitionTask);
}
if (source.SessionId != null) {
this.SessionId = new String(source.SessionId);
}
if (source.SessionContext != null) {
this.SessionContext = new String(source.SessionContext);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Url", this.Url);
this.setParamObj(map, prefix + "TaskNotifyConfig.", this.TaskNotifyConfig);
this.setParamObj(map, prefix + "OutputStorage.", this.OutputStorage);
this.setParamSimple(map, prefix + "OutputDir", this.OutputDir);
this.setParamObj(map, prefix + "AiContentReviewTask.", this.AiContentReviewTask);
this.setParamObj(map, prefix + "AiRecognitionTask.", this.AiRecognitionTask);
this.setParamSimple(map, prefix + "SessionId", this.SessionId);
this.setParamSimple(map, prefix + "SessionContext", this.SessionContext);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy