![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.vod.v20180717.models.PlayStatInfo 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.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class PlayStatInfo extends AbstractModel {
/**
* The start time (in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I)) of the data returned. For example, if the granularity is a day, `2018-12-01T00:00:00+08:00` indicates that the data is for the period between December 1, 2018 (inclusive) and December 2, 2018 (exclusive).
If the granularity is an hour, `2019-08-22T00:00:00+08:00` indicates the data is for the period between 00:00 and 01:00 AM on August 22, 2019.
If the granularity is a day, `2019-08-22T00:00:00+08:00` indicates the data is for August 22, 2019.
*/
@SerializedName("Time")
@Expose
private String Time;
/**
* The ID of the media file.
*/
@SerializedName("FileId")
@Expose
private String FileId;
/**
* The playback times.
*/
@SerializedName("PlayTimes")
@Expose
private Long PlayTimes;
/**
* The traffic (in bytes) consumed for playback.
*/
@SerializedName("Traffic")
@Expose
private Long Traffic;
/**
* Get The start time (in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I)) of the data returned. For example, if the granularity is a day, `2018-12-01T00:00:00+08:00` indicates that the data is for the period between December 1, 2018 (inclusive) and December 2, 2018 (exclusive).
If the granularity is an hour, `2019-08-22T00:00:00+08:00` indicates the data is for the period between 00:00 and 01:00 AM on August 22, 2019.
If the granularity is a day, `2019-08-22T00:00:00+08:00` indicates the data is for August 22, 2019.
* @return Time The start time (in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I)) of the data returned. For example, if the granularity is a day, `2018-12-01T00:00:00+08:00` indicates that the data is for the period between December 1, 2018 (inclusive) and December 2, 2018 (exclusive).
If the granularity is an hour, `2019-08-22T00:00:00+08:00` indicates the data is for the period between 00:00 and 01:00 AM on August 22, 2019.
If the granularity is a day, `2019-08-22T00:00:00+08:00` indicates the data is for August 22, 2019.
*/
public String getTime() {
return this.Time;
}
/**
* Set The start time (in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I)) of the data returned. For example, if the granularity is a day, `2018-12-01T00:00:00+08:00` indicates that the data is for the period between December 1, 2018 (inclusive) and December 2, 2018 (exclusive).
If the granularity is an hour, `2019-08-22T00:00:00+08:00` indicates the data is for the period between 00:00 and 01:00 AM on August 22, 2019.
If the granularity is a day, `2019-08-22T00:00:00+08:00` indicates the data is for August 22, 2019.
* @param Time The start time (in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I)) of the data returned. For example, if the granularity is a day, `2018-12-01T00:00:00+08:00` indicates that the data is for the period between December 1, 2018 (inclusive) and December 2, 2018 (exclusive).
If the granularity is an hour, `2019-08-22T00:00:00+08:00` indicates the data is for the period between 00:00 and 01:00 AM on August 22, 2019.
If the granularity is a day, `2019-08-22T00:00:00+08:00` indicates the data is for August 22, 2019.
*/
public void setTime(String Time) {
this.Time = Time;
}
/**
* Get The ID of the media file.
* @return FileId The ID of the media file.
*/
public String getFileId() {
return this.FileId;
}
/**
* Set The ID of the media file.
* @param FileId The ID of the media file.
*/
public void setFileId(String FileId) {
this.FileId = FileId;
}
/**
* Get The playback times.
* @return PlayTimes The playback times.
*/
public Long getPlayTimes() {
return this.PlayTimes;
}
/**
* Set The playback times.
* @param PlayTimes The playback times.
*/
public void setPlayTimes(Long PlayTimes) {
this.PlayTimes = PlayTimes;
}
/**
* Get The traffic (in bytes) consumed for playback.
* @return Traffic The traffic (in bytes) consumed for playback.
*/
public Long getTraffic() {
return this.Traffic;
}
/**
* Set The traffic (in bytes) consumed for playback.
* @param Traffic The traffic (in bytes) consumed for playback.
*/
public void setTraffic(Long Traffic) {
this.Traffic = Traffic;
}
public PlayStatInfo() {
}
/**
* 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 PlayStatInfo(PlayStatInfo source) {
if (source.Time != null) {
this.Time = new String(source.Time);
}
if (source.FileId != null) {
this.FileId = new String(source.FileId);
}
if (source.PlayTimes != null) {
this.PlayTimes = new Long(source.PlayTimes);
}
if (source.Traffic != null) {
this.Traffic = new Long(source.Traffic);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Time", this.Time);
this.setParamSimple(map, prefix + "FileId", this.FileId);
this.setParamSimple(map, prefix + "PlayTimes", this.PlayTimes);
this.setParamSimple(map, prefix + "Traffic", this.Traffic);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy