![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.live.v20180801.models.CreateRecordTaskRequest 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.live.v20180801.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CreateRecordTaskRequest extends AbstractModel {
/**
* Stream name.
*/
@SerializedName("StreamName")
@Expose
private String StreamName;
/**
* Push domain name.
*/
@SerializedName("DomainName")
@Expose
private String DomainName;
/**
* Push path.
*/
@SerializedName("AppName")
@Expose
private String AppName;
/**
* Recording end time in UNIX timestamp format. `EndTime` should be later than `StartTime` and the current time, and the duration between `EndTime` and `StartTime` is up to 24 hours.
*/
@SerializedName("EndTime")
@Expose
private Long EndTime;
/**
* Recording start time in UNIX timestamp format. Leaving this parameter empty means starting recording now. `StartTime` cannot be later than the current time plus 6 days.
*/
@SerializedName("StartTime")
@Expose
private Long StartTime;
/**
* Push type. Default value: 0. Valid values:
0: LVB push.
1: mixed stream, i.e., A + B = C mixed stream.
*/
@SerializedName("StreamType")
@Expose
private Long StreamType;
/**
* Recording template ID, which is the returned value of `CreateLiveRecordTemplate`. If this parameter is left empty or incorrect, the stream will be recorded in HLS format and retained permanently by default.
*/
@SerializedName("TemplateId")
@Expose
private Long TemplateId;
/**
* Extension field which is not defined now. It is empty by default.
*/
@SerializedName("Extension")
@Expose
private String Extension;
/**
* Get Stream name.
* @return StreamName Stream name.
*/
public String getStreamName() {
return this.StreamName;
}
/**
* Set Stream name.
* @param StreamName Stream name.
*/
public void setStreamName(String StreamName) {
this.StreamName = StreamName;
}
/**
* Get Push domain name.
* @return DomainName Push domain name.
*/
public String getDomainName() {
return this.DomainName;
}
/**
* Set Push domain name.
* @param DomainName Push domain name.
*/
public void setDomainName(String DomainName) {
this.DomainName = DomainName;
}
/**
* Get Push path.
* @return AppName Push path.
*/
public String getAppName() {
return this.AppName;
}
/**
* Set Push path.
* @param AppName Push path.
*/
public void setAppName(String AppName) {
this.AppName = AppName;
}
/**
* Get Recording end time in UNIX timestamp format. `EndTime` should be later than `StartTime` and the current time, and the duration between `EndTime` and `StartTime` is up to 24 hours.
* @return EndTime Recording end time in UNIX timestamp format. `EndTime` should be later than `StartTime` and the current time, and the duration between `EndTime` and `StartTime` is up to 24 hours.
*/
public Long getEndTime() {
return this.EndTime;
}
/**
* Set Recording end time in UNIX timestamp format. `EndTime` should be later than `StartTime` and the current time, and the duration between `EndTime` and `StartTime` is up to 24 hours.
* @param EndTime Recording end time in UNIX timestamp format. `EndTime` should be later than `StartTime` and the current time, and the duration between `EndTime` and `StartTime` is up to 24 hours.
*/
public void setEndTime(Long EndTime) {
this.EndTime = EndTime;
}
/**
* Get Recording start time in UNIX timestamp format. Leaving this parameter empty means starting recording now. `StartTime` cannot be later than the current time plus 6 days.
* @return StartTime Recording start time in UNIX timestamp format. Leaving this parameter empty means starting recording now. `StartTime` cannot be later than the current time plus 6 days.
*/
public Long getStartTime() {
return this.StartTime;
}
/**
* Set Recording start time in UNIX timestamp format. Leaving this parameter empty means starting recording now. `StartTime` cannot be later than the current time plus 6 days.
* @param StartTime Recording start time in UNIX timestamp format. Leaving this parameter empty means starting recording now. `StartTime` cannot be later than the current time plus 6 days.
*/
public void setStartTime(Long StartTime) {
this.StartTime = StartTime;
}
/**
* Get Push type. Default value: 0. Valid values:
0: LVB push.
1: mixed stream, i.e., A + B = C mixed stream.
* @return StreamType Push type. Default value: 0. Valid values:
0: LVB push.
1: mixed stream, i.e., A + B = C mixed stream.
*/
public Long getStreamType() {
return this.StreamType;
}
/**
* Set Push type. Default value: 0. Valid values:
0: LVB push.
1: mixed stream, i.e., A + B = C mixed stream.
* @param StreamType Push type. Default value: 0. Valid values:
0: LVB push.
1: mixed stream, i.e., A + B = C mixed stream.
*/
public void setStreamType(Long StreamType) {
this.StreamType = StreamType;
}
/**
* Get Recording template ID, which is the returned value of `CreateLiveRecordTemplate`. If this parameter is left empty or incorrect, the stream will be recorded in HLS format and retained permanently by default.
* @return TemplateId Recording template ID, which is the returned value of `CreateLiveRecordTemplate`. If this parameter is left empty or incorrect, the stream will be recorded in HLS format and retained permanently by default.
*/
public Long getTemplateId() {
return this.TemplateId;
}
/**
* Set Recording template ID, which is the returned value of `CreateLiveRecordTemplate`. If this parameter is left empty or incorrect, the stream will be recorded in HLS format and retained permanently by default.
* @param TemplateId Recording template ID, which is the returned value of `CreateLiveRecordTemplate`. If this parameter is left empty or incorrect, the stream will be recorded in HLS format and retained permanently by default.
*/
public void setTemplateId(Long TemplateId) {
this.TemplateId = TemplateId;
}
/**
* Get Extension field which is not defined now. It is empty by default.
* @return Extension Extension field which is not defined now. It is empty by default.
*/
public String getExtension() {
return this.Extension;
}
/**
* Set Extension field which is not defined now. It is empty by default.
* @param Extension Extension field which is not defined now. It is empty by default.
*/
public void setExtension(String Extension) {
this.Extension = Extension;
}
public CreateRecordTaskRequest() {
}
/**
* 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 CreateRecordTaskRequest(CreateRecordTaskRequest source) {
if (source.StreamName != null) {
this.StreamName = new String(source.StreamName);
}
if (source.DomainName != null) {
this.DomainName = new String(source.DomainName);
}
if (source.AppName != null) {
this.AppName = new String(source.AppName);
}
if (source.EndTime != null) {
this.EndTime = new Long(source.EndTime);
}
if (source.StartTime != null) {
this.StartTime = new Long(source.StartTime);
}
if (source.StreamType != null) {
this.StreamType = new Long(source.StreamType);
}
if (source.TemplateId != null) {
this.TemplateId = new Long(source.TemplateId);
}
if (source.Extension != null) {
this.Extension = new String(source.Extension);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "StreamName", this.StreamName);
this.setParamSimple(map, prefix + "DomainName", this.DomainName);
this.setParamSimple(map, prefix + "AppName", this.AppName);
this.setParamSimple(map, prefix + "EndTime", this.EndTime);
this.setParamSimple(map, prefix + "StartTime", this.StartTime);
this.setParamSimple(map, prefix + "StreamType", this.StreamType);
this.setParamSimple(map, prefix + "TemplateId", this.TemplateId);
this.setParamSimple(map, prefix + "Extension", this.Extension);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy