All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencentcloudapi.vod.v20180717.models.DescribeCDNUsageDataRequest Maven / Gradle / Ivy

There is a newer version: 3.1.1104
Show newest version
/*
 * 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 DescribeCDNUsageDataRequest extends AbstractModel{

    /**
    * 起始日期,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
    */
    @SerializedName("StartTime")
    @Expose
    private String StartTime;

    /**
    * 结束日期,需大于开始日期,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
    */
    @SerializedName("EndTime")
    @Expose
    private String EndTime;

    /**
    * CDN 统计数据类型,有效值:
  • Flux:流量,单位为 byte。
  • Bandwidth:带宽,单位为 bps。
  • */ @SerializedName("DataType") @Expose private String DataType; /** * 用量数据的时间粒度,单位:分钟,取值有:
  • 5:5 分钟粒度,返回指定查询时间内5分钟粒度的明细数据。
  • 60:小时粒度,返回指定查询时间内1小时粒度的数据。
  • 1440:天粒度,返回指定查询时间内1天粒度的数据。
  • 默认值为1440,返回天粒度的数据。 */ @SerializedName("DataInterval") @Expose private Long DataInterval; /** * 域名列表。一次最多查询20个域名的用量数据。可以指定多个域名,查询这些域名叠加的用量数据。默认返回所有域名叠加的用量数据。 */ @SerializedName("DomainNames") @Expose private String [] DomainNames; /** * 点播 [子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 当该字段为1时,表示以管理员身份查询所有子应用(含主应用)的用量合计,此时时间粒度只支持天粒度。 */ @SerializedName("SubAppId") @Expose private Long SubAppId; /** * Get 起始日期,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 * @return StartTime 起始日期,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 */ public String getStartTime() { return this.StartTime; } /** * Set 起始日期,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 * @param StartTime 起始日期,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 */ public void setStartTime(String StartTime) { this.StartTime = StartTime; } /** * Get 结束日期,需大于开始日期,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 * @return EndTime 结束日期,需大于开始日期,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 */ public String getEndTime() { return this.EndTime; } /** * Set 结束日期,需大于开始日期,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 * @param EndTime 结束日期,需大于开始日期,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 */ public void setEndTime(String EndTime) { this.EndTime = EndTime; } /** * Get CDN 统计数据类型,有效值:
  • Flux:流量,单位为 byte。
  • Bandwidth:带宽,单位为 bps。
  • * @return DataType CDN 统计数据类型,有效值:
  • Flux:流量,单位为 byte。
  • Bandwidth:带宽,单位为 bps。
  • */ public String getDataType() { return this.DataType; } /** * Set CDN 统计数据类型,有效值:
  • Flux:流量,单位为 byte。
  • Bandwidth:带宽,单位为 bps。
  • * @param DataType CDN 统计数据类型,有效值:
  • Flux:流量,单位为 byte。
  • Bandwidth:带宽,单位为 bps。
  • */ public void setDataType(String DataType) { this.DataType = DataType; } /** * Get 用量数据的时间粒度,单位:分钟,取值有:
  • 5:5 分钟粒度,返回指定查询时间内5分钟粒度的明细数据。
  • 60:小时粒度,返回指定查询时间内1小时粒度的数据。
  • 1440:天粒度,返回指定查询时间内1天粒度的数据。
  • 默认值为1440,返回天粒度的数据。 * @return DataInterval 用量数据的时间粒度,单位:分钟,取值有:
  • 5:5 分钟粒度,返回指定查询时间内5分钟粒度的明细数据。
  • 60:小时粒度,返回指定查询时间内1小时粒度的数据。
  • 1440:天粒度,返回指定查询时间内1天粒度的数据。
  • 默认值为1440,返回天粒度的数据。 */ public Long getDataInterval() { return this.DataInterval; } /** * Set 用量数据的时间粒度,单位:分钟,取值有:
  • 5:5 分钟粒度,返回指定查询时间内5分钟粒度的明细数据。
  • 60:小时粒度,返回指定查询时间内1小时粒度的数据。
  • 1440:天粒度,返回指定查询时间内1天粒度的数据。
  • 默认值为1440,返回天粒度的数据。 * @param DataInterval 用量数据的时间粒度,单位:分钟,取值有:
  • 5:5 分钟粒度,返回指定查询时间内5分钟粒度的明细数据。
  • 60:小时粒度,返回指定查询时间内1小时粒度的数据。
  • 1440:天粒度,返回指定查询时间内1天粒度的数据。
  • 默认值为1440,返回天粒度的数据。 */ public void setDataInterval(Long DataInterval) { this.DataInterval = DataInterval; } /** * Get 域名列表。一次最多查询20个域名的用量数据。可以指定多个域名,查询这些域名叠加的用量数据。默认返回所有域名叠加的用量数据。 * @return DomainNames 域名列表。一次最多查询20个域名的用量数据。可以指定多个域名,查询这些域名叠加的用量数据。默认返回所有域名叠加的用量数据。 */ public String [] getDomainNames() { return this.DomainNames; } /** * Set 域名列表。一次最多查询20个域名的用量数据。可以指定多个域名,查询这些域名叠加的用量数据。默认返回所有域名叠加的用量数据。 * @param DomainNames 域名列表。一次最多查询20个域名的用量数据。可以指定多个域名,查询这些域名叠加的用量数据。默认返回所有域名叠加的用量数据。 */ public void setDomainNames(String [] DomainNames) { this.DomainNames = DomainNames; } /** * Get 点播 [子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 当该字段为1时,表示以管理员身份查询所有子应用(含主应用)的用量合计,此时时间粒度只支持天粒度。 * @return SubAppId 点播 [子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 当该字段为1时,表示以管理员身份查询所有子应用(含主应用)的用量合计,此时时间粒度只支持天粒度。 */ public Long getSubAppId() { return this.SubAppId; } /** * Set 点播 [子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 当该字段为1时,表示以管理员身份查询所有子应用(含主应用)的用量合计,此时时间粒度只支持天粒度。 * @param SubAppId 点播 [子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 当该字段为1时,表示以管理员身份查询所有子应用(含主应用)的用量合计,此时时间粒度只支持天粒度。 */ public void setSubAppId(Long SubAppId) { this.SubAppId = SubAppId; } public DescribeCDNUsageDataRequest() { } /** * 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 DescribeCDNUsageDataRequest(DescribeCDNUsageDataRequest source) { if (source.StartTime != null) { this.StartTime = new String(source.StartTime); } if (source.EndTime != null) { this.EndTime = new String(source.EndTime); } if (source.DataType != null) { this.DataType = new String(source.DataType); } if (source.DataInterval != null) { this.DataInterval = new Long(source.DataInterval); } if (source.DomainNames != null) { this.DomainNames = new String[source.DomainNames.length]; for (int i = 0; i < source.DomainNames.length; i++) { this.DomainNames[i] = new String(source.DomainNames[i]); } } 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 + "StartTime", this.StartTime); this.setParamSimple(map, prefix + "EndTime", this.EndTime); this.setParamSimple(map, prefix + "DataType", this.DataType); this.setParamSimple(map, prefix + "DataInterval", this.DataInterval); this.setParamArraySimple(map, prefix + "DomainNames.", this.DomainNames); this.setParamSimple(map, prefix + "SubAppId", this.SubAppId); } }




    © 2015 - 2024 Weber Informatics LLC | Privacy Policy