com.tencentcloudapi.mdl.v20200326.models.HlsRemuxSettingsInfo 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 HlsRemuxSettingsInfo extends AbstractModel{
/**
* Segment duration in ms. Value range: [1000,30000]. Default value: 4000. The value can only be a multiple of 1,000.
*/
@SerializedName("SegmentDuration")
@Expose
private Long SegmentDuration;
/**
* Number of segments. Value range: [1,30]. Default value: 5.
*/
@SerializedName("SegmentNumber")
@Expose
private Long SegmentNumber;
/**
* Whether to enable PDT insertion. Valid values: CLOSE/OPEN. Default value: CLOSE.
*/
@SerializedName("PdtInsertion")
@Expose
private String PdtInsertion;
/**
* PDT duration in seconds. Value range: (0,3000]. Default value: 600.
*/
@SerializedName("PdtDuration")
@Expose
private Long PdtDuration;
/**
* Get Segment duration in ms. Value range: [1000,30000]. Default value: 4000. The value can only be a multiple of 1,000.
* @return SegmentDuration Segment duration in ms. Value range: [1000,30000]. Default value: 4000. The value can only be a multiple of 1,000.
*/
public Long getSegmentDuration() {
return this.SegmentDuration;
}
/**
* Set Segment duration in ms. Value range: [1000,30000]. Default value: 4000. The value can only be a multiple of 1,000.
* @param SegmentDuration Segment duration in ms. Value range: [1000,30000]. Default value: 4000. The value can only be a multiple of 1,000.
*/
public void setSegmentDuration(Long SegmentDuration) {
this.SegmentDuration = SegmentDuration;
}
/**
* Get Number of segments. Value range: [1,30]. Default value: 5.
* @return SegmentNumber Number of segments. Value range: [1,30]. Default value: 5.
*/
public Long getSegmentNumber() {
return this.SegmentNumber;
}
/**
* Set Number of segments. Value range: [1,30]. Default value: 5.
* @param SegmentNumber Number of segments. Value range: [1,30]. Default value: 5.
*/
public void setSegmentNumber(Long SegmentNumber) {
this.SegmentNumber = SegmentNumber;
}
/**
* Get Whether to enable PDT insertion. Valid values: CLOSE/OPEN. Default value: CLOSE.
* @return PdtInsertion Whether to enable PDT insertion. Valid values: CLOSE/OPEN. Default value: CLOSE.
*/
public String getPdtInsertion() {
return this.PdtInsertion;
}
/**
* Set Whether to enable PDT insertion. Valid values: CLOSE/OPEN. Default value: CLOSE.
* @param PdtInsertion Whether to enable PDT insertion. Valid values: CLOSE/OPEN. Default value: CLOSE.
*/
public void setPdtInsertion(String PdtInsertion) {
this.PdtInsertion = PdtInsertion;
}
/**
* Get PDT duration in seconds. Value range: (0,3000]. Default value: 600.
* @return PdtDuration PDT duration in seconds. Value range: (0,3000]. Default value: 600.
*/
public Long getPdtDuration() {
return this.PdtDuration;
}
/**
* Set PDT duration in seconds. Value range: (0,3000]. Default value: 600.
* @param PdtDuration PDT duration in seconds. Value range: (0,3000]. Default value: 600.
*/
public void setPdtDuration(Long PdtDuration) {
this.PdtDuration = PdtDuration;
}
public HlsRemuxSettingsInfo() {
}
/**
* 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 HlsRemuxSettingsInfo(HlsRemuxSettingsInfo source) {
if (source.SegmentDuration != null) {
this.SegmentDuration = new Long(source.SegmentDuration);
}
if (source.SegmentNumber != null) {
this.SegmentNumber = new Long(source.SegmentNumber);
}
if (source.PdtInsertion != null) {
this.PdtInsertion = new String(source.PdtInsertion);
}
if (source.PdtDuration != null) {
this.PdtDuration = new Long(source.PdtDuration);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "SegmentDuration", this.SegmentDuration);
this.setParamSimple(map, prefix + "SegmentNumber", this.SegmentNumber);
this.setParamSimple(map, prefix + "PdtInsertion", this.PdtInsertion);
this.setParamSimple(map, prefix + "PdtDuration", this.PdtDuration);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy