
com.tencentcloudapi.mdl.v20200326.models.CreateStreamLiveChannelRequest Maven / Gradle / Ivy
/*
* 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.mdl.v20200326.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CreateStreamLiveChannelRequest extends AbstractModel{
/**
* Channel name, which can contain 1-32 case-sensitive letters, digits, and underscores and must be unique at the region level
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* Inputs to attach. You can attach 1 to 5 inputs.
*/
@SerializedName("AttachedInputs")
@Expose
private AttachedInput [] AttachedInputs;
/**
* Configuration information of the channel’s output groups. Quantity: [1, 10]
*/
@SerializedName("OutputGroups")
@Expose
private StreamLiveOutputGroupsInfo [] OutputGroups;
/**
* Audio transcoding templates. Quantity: [1, 20]
*/
@SerializedName("AudioTemplates")
@Expose
private AudioTemplateInfo [] AudioTemplates;
/**
* Video transcoding templates. Quantity: [1, 10]
*/
@SerializedName("VideoTemplates")
@Expose
private VideoTemplateInfo [] VideoTemplates;
/**
* Audio/Video transcoding templates. Quantity: [1, 10]
*/
@SerializedName("AVTemplates")
@Expose
private AVTemplate [] AVTemplates;
/**
* Event settings
*/
@SerializedName("PlanSettings")
@Expose
private PlanSettings PlanSettings;
/**
* Get Channel name, which can contain 1-32 case-sensitive letters, digits, and underscores and must be unique at the region level
* @return Name Channel name, which can contain 1-32 case-sensitive letters, digits, and underscores and must be unique at the region level
*/
public String getName() {
return this.Name;
}
/**
* Set Channel name, which can contain 1-32 case-sensitive letters, digits, and underscores and must be unique at the region level
* @param Name Channel name, which can contain 1-32 case-sensitive letters, digits, and underscores and must be unique at the region level
*/
public void setName(String Name) {
this.Name = Name;
}
/**
* Get Inputs to attach. You can attach 1 to 5 inputs.
* @return AttachedInputs Inputs to attach. You can attach 1 to 5 inputs.
*/
public AttachedInput [] getAttachedInputs() {
return this.AttachedInputs;
}
/**
* Set Inputs to attach. You can attach 1 to 5 inputs.
* @param AttachedInputs Inputs to attach. You can attach 1 to 5 inputs.
*/
public void setAttachedInputs(AttachedInput [] AttachedInputs) {
this.AttachedInputs = AttachedInputs;
}
/**
* Get Configuration information of the channel’s output groups. Quantity: [1, 10]
* @return OutputGroups Configuration information of the channel’s output groups. Quantity: [1, 10]
*/
public StreamLiveOutputGroupsInfo [] getOutputGroups() {
return this.OutputGroups;
}
/**
* Set Configuration information of the channel’s output groups. Quantity: [1, 10]
* @param OutputGroups Configuration information of the channel’s output groups. Quantity: [1, 10]
*/
public void setOutputGroups(StreamLiveOutputGroupsInfo [] OutputGroups) {
this.OutputGroups = OutputGroups;
}
/**
* Get Audio transcoding templates. Quantity: [1, 20]
* @return AudioTemplates Audio transcoding templates. Quantity: [1, 20]
*/
public AudioTemplateInfo [] getAudioTemplates() {
return this.AudioTemplates;
}
/**
* Set Audio transcoding templates. Quantity: [1, 20]
* @param AudioTemplates Audio transcoding templates. Quantity: [1, 20]
*/
public void setAudioTemplates(AudioTemplateInfo [] AudioTemplates) {
this.AudioTemplates = AudioTemplates;
}
/**
* Get Video transcoding templates. Quantity: [1, 10]
* @return VideoTemplates Video transcoding templates. Quantity: [1, 10]
*/
public VideoTemplateInfo [] getVideoTemplates() {
return this.VideoTemplates;
}
/**
* Set Video transcoding templates. Quantity: [1, 10]
* @param VideoTemplates Video transcoding templates. Quantity: [1, 10]
*/
public void setVideoTemplates(VideoTemplateInfo [] VideoTemplates) {
this.VideoTemplates = VideoTemplates;
}
/**
* Get Audio/Video transcoding templates. Quantity: [1, 10]
* @return AVTemplates Audio/Video transcoding templates. Quantity: [1, 10]
*/
public AVTemplate [] getAVTemplates() {
return this.AVTemplates;
}
/**
* Set Audio/Video transcoding templates. Quantity: [1, 10]
* @param AVTemplates Audio/Video transcoding templates. Quantity: [1, 10]
*/
public void setAVTemplates(AVTemplate [] AVTemplates) {
this.AVTemplates = AVTemplates;
}
/**
* Get Event settings
* @return PlanSettings Event settings
*/
public PlanSettings getPlanSettings() {
return this.PlanSettings;
}
/**
* Set Event settings
* @param PlanSettings Event settings
*/
public void setPlanSettings(PlanSettings PlanSettings) {
this.PlanSettings = PlanSettings;
}
public CreateStreamLiveChannelRequest() {
}
/**
* 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 CreateStreamLiveChannelRequest(CreateStreamLiveChannelRequest source) {
if (source.Name != null) {
this.Name = new String(source.Name);
}
if (source.AttachedInputs != null) {
this.AttachedInputs = new AttachedInput[source.AttachedInputs.length];
for (int i = 0; i < source.AttachedInputs.length; i++) {
this.AttachedInputs[i] = new AttachedInput(source.AttachedInputs[i]);
}
}
if (source.OutputGroups != null) {
this.OutputGroups = new StreamLiveOutputGroupsInfo[source.OutputGroups.length];
for (int i = 0; i < source.OutputGroups.length; i++) {
this.OutputGroups[i] = new StreamLiveOutputGroupsInfo(source.OutputGroups[i]);
}
}
if (source.AudioTemplates != null) {
this.AudioTemplates = new AudioTemplateInfo[source.AudioTemplates.length];
for (int i = 0; i < source.AudioTemplates.length; i++) {
this.AudioTemplates[i] = new AudioTemplateInfo(source.AudioTemplates[i]);
}
}
if (source.VideoTemplates != null) {
this.VideoTemplates = new VideoTemplateInfo[source.VideoTemplates.length];
for (int i = 0; i < source.VideoTemplates.length; i++) {
this.VideoTemplates[i] = new VideoTemplateInfo(source.VideoTemplates[i]);
}
}
if (source.AVTemplates != null) {
this.AVTemplates = new AVTemplate[source.AVTemplates.length];
for (int i = 0; i < source.AVTemplates.length; i++) {
this.AVTemplates[i] = new AVTemplate(source.AVTemplates[i]);
}
}
if (source.PlanSettings != null) {
this.PlanSettings = new PlanSettings(source.PlanSettings);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Name", this.Name);
this.setParamArrayObj(map, prefix + "AttachedInputs.", this.AttachedInputs);
this.setParamArrayObj(map, prefix + "OutputGroups.", this.OutputGroups);
this.setParamArrayObj(map, prefix + "AudioTemplates.", this.AudioTemplates);
this.setParamArrayObj(map, prefix + "VideoTemplates.", this.VideoTemplates);
this.setParamArrayObj(map, prefix + "AVTemplates.", this.AVTemplates);
this.setParamObj(map, prefix + "PlanSettings.", this.PlanSettings);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy