com.tencentcloudapi.vod.v20180717.models.SimpleHlsClipRequest 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.vod.v20180717.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class SimpleHlsClipRequest extends AbstractModel{
/**
* URL of the HLS video in VOD that needs to be clipped.
*/
@SerializedName("Url")
@Expose
private String Url;
/**
* Start offset time of clipping in seconds. Default value: 0, which means to clip from the beginning of the video. A negative number indicates how many seconds from the end of the video clipping will start at. For example, -10 means that clipping will start at the 10th second from the end.
*/
@SerializedName("StartTimeOffset")
@Expose
private Float StartTimeOffset;
/**
* End offset time of clipping in seconds. Default value: 0, which means to clip till the end of the video. A negative number indicates how many seconds from the end of the video clipping will end. For example, -10 means that clipping will end at the 10th second from the end.
*/
@SerializedName("EndTimeOffset")
@Expose
private Float EndTimeOffset;
/**
* Whether to store the video clip persistently. 0: no (default), 1: yes.
*/
@SerializedName("IsPersistence")
@Expose
private Long IsPersistence;
/**
* [Subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
*/
@SerializedName("SubAppId")
@Expose
private Long SubAppId;
/**
* Get URL of the HLS video in VOD that needs to be clipped.
* @return Url URL of the HLS video in VOD that needs to be clipped.
*/
public String getUrl() {
return this.Url;
}
/**
* Set URL of the HLS video in VOD that needs to be clipped.
* @param Url URL of the HLS video in VOD that needs to be clipped.
*/
public void setUrl(String Url) {
this.Url = Url;
}
/**
* Get Start offset time of clipping in seconds. Default value: 0, which means to clip from the beginning of the video. A negative number indicates how many seconds from the end of the video clipping will start at. For example, -10 means that clipping will start at the 10th second from the end.
* @return StartTimeOffset Start offset time of clipping in seconds. Default value: 0, which means to clip from the beginning of the video. A negative number indicates how many seconds from the end of the video clipping will start at. For example, -10 means that clipping will start at the 10th second from the end.
*/
public Float getStartTimeOffset() {
return this.StartTimeOffset;
}
/**
* Set Start offset time of clipping in seconds. Default value: 0, which means to clip from the beginning of the video. A negative number indicates how many seconds from the end of the video clipping will start at. For example, -10 means that clipping will start at the 10th second from the end.
* @param StartTimeOffset Start offset time of clipping in seconds. Default value: 0, which means to clip from the beginning of the video. A negative number indicates how many seconds from the end of the video clipping will start at. For example, -10 means that clipping will start at the 10th second from the end.
*/
public void setStartTimeOffset(Float StartTimeOffset) {
this.StartTimeOffset = StartTimeOffset;
}
/**
* Get End offset time of clipping in seconds. Default value: 0, which means to clip till the end of the video. A negative number indicates how many seconds from the end of the video clipping will end. For example, -10 means that clipping will end at the 10th second from the end.
* @return EndTimeOffset End offset time of clipping in seconds. Default value: 0, which means to clip till the end of the video. A negative number indicates how many seconds from the end of the video clipping will end. For example, -10 means that clipping will end at the 10th second from the end.
*/
public Float getEndTimeOffset() {
return this.EndTimeOffset;
}
/**
* Set End offset time of clipping in seconds. Default value: 0, which means to clip till the end of the video. A negative number indicates how many seconds from the end of the video clipping will end. For example, -10 means that clipping will end at the 10th second from the end.
* @param EndTimeOffset End offset time of clipping in seconds. Default value: 0, which means to clip till the end of the video. A negative number indicates how many seconds from the end of the video clipping will end. For example, -10 means that clipping will end at the 10th second from the end.
*/
public void setEndTimeOffset(Float EndTimeOffset) {
this.EndTimeOffset = EndTimeOffset;
}
/**
* Get Whether to store the video clip persistently. 0: no (default), 1: yes.
* @return IsPersistence Whether to store the video clip persistently. 0: no (default), 1: yes.
*/
public Long getIsPersistence() {
return this.IsPersistence;
}
/**
* Set Whether to store the video clip persistently. 0: no (default), 1: yes.
* @param IsPersistence Whether to store the video clip persistently. 0: no (default), 1: yes.
*/
public void setIsPersistence(Long IsPersistence) {
this.IsPersistence = IsPersistence;
}
/**
* Get [Subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
* @return SubAppId [Subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
*/
public Long getSubAppId() {
return this.SubAppId;
}
/**
* Set [Subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
* @param SubAppId [Subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
*/
public void setSubAppId(Long SubAppId) {
this.SubAppId = SubAppId;
}
public SimpleHlsClipRequest() {
}
/**
* 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 SimpleHlsClipRequest(SimpleHlsClipRequest source) {
if (source.Url != null) {
this.Url = new String(source.Url);
}
if (source.StartTimeOffset != null) {
this.StartTimeOffset = new Float(source.StartTimeOffset);
}
if (source.EndTimeOffset != null) {
this.EndTimeOffset = new Float(source.EndTimeOffset);
}
if (source.IsPersistence != null) {
this.IsPersistence = new Long(source.IsPersistence);
}
if (source.SubAppId != null) {
this.SubAppId = new Long(source.SubAppId);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Url", this.Url);
this.setParamSimple(map, prefix + "StartTimeOffset", this.StartTimeOffset);
this.setParamSimple(map, prefix + "EndTimeOffset", this.EndTimeOffset);
this.setParamSimple(map, prefix + "IsPersistence", this.IsPersistence);
this.setParamSimple(map, prefix + "SubAppId", this.SubAppId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy