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.0.1034
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{

    /**
    * Start date in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I).
    */
    @SerializedName("StartTime")
    @Expose
    private String StartTime;

    /**
    * End date in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I). The end date must be after the start date.
    */
    @SerializedName("EndTime")
    @Expose
    private String EndTime;

    /**
    * CDN statistics type. Valid values:
  • Flux: traffic in bytes.
  • Bandwidth: bandwidth in bps.
  • */ @SerializedName("DataType") @Expose private String DataType; /** * Time granularity of usage data in minutes. Valid values:
  • 5: 5-minute granularity. The data at 5-minute granularity in the query period will be returned.
  • 60: 1-hour granularity. The data at 1-hour granularity in the query period will be returned.
  • 1440: 1-day granularity. The data at 1-day granularity in the query period will be returned.
  • Default value: 1440. Data at 1-day granularity will be returned. */ @SerializedName("DataInterval") @Expose private Long DataInterval; /** * List of domain names. The usage data of up to 20 domain names can be queried at a time. You can specify multiple domain names and query their combined usage data. The usage data of all domain names will be returned by default. */ @SerializedName("DomainNames") @Expose private String [] DomainNames; /** * ID of a [subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty. When the value of this field is 1, the total usage of all subapplications (including primary application) are queried by an admin. In this case, only 1-day granularity is supported. */ @SerializedName("SubAppId") @Expose private Long SubAppId; /** * Get Start date in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I). * @return StartTime Start date in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I). */ public String getStartTime() { return this.StartTime; } /** * Set Start date in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I). * @param StartTime Start date in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I). */ public void setStartTime(String StartTime) { this.StartTime = StartTime; } /** * Get End date in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I). The end date must be after the start date. * @return EndTime End date in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I). The end date must be after the start date. */ public String getEndTime() { return this.EndTime; } /** * Set End date in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I). The end date must be after the start date. * @param EndTime End date in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I). The end date must be after the start date. */ public void setEndTime(String EndTime) { this.EndTime = EndTime; } /** * Get CDN statistics type. Valid values:
  • Flux: traffic in bytes.
  • Bandwidth: bandwidth in bps.
  • * @return DataType CDN statistics type. Valid values:
  • Flux: traffic in bytes.
  • Bandwidth: bandwidth in bps.
  • */ public String getDataType() { return this.DataType; } /** * Set CDN statistics type. Valid values:
  • Flux: traffic in bytes.
  • Bandwidth: bandwidth in bps.
  • * @param DataType CDN statistics type. Valid values:
  • Flux: traffic in bytes.
  • Bandwidth: bandwidth in bps.
  • */ public void setDataType(String DataType) { this.DataType = DataType; } /** * Get Time granularity of usage data in minutes. Valid values:
  • 5: 5-minute granularity. The data at 5-minute granularity in the query period will be returned.
  • 60: 1-hour granularity. The data at 1-hour granularity in the query period will be returned.
  • 1440: 1-day granularity. The data at 1-day granularity in the query period will be returned.
  • Default value: 1440. Data at 1-day granularity will be returned. * @return DataInterval Time granularity of usage data in minutes. Valid values:
  • 5: 5-minute granularity. The data at 5-minute granularity in the query period will be returned.
  • 60: 1-hour granularity. The data at 1-hour granularity in the query period will be returned.
  • 1440: 1-day granularity. The data at 1-day granularity in the query period will be returned.
  • Default value: 1440. Data at 1-day granularity will be returned. */ public Long getDataInterval() { return this.DataInterval; } /** * Set Time granularity of usage data in minutes. Valid values:
  • 5: 5-minute granularity. The data at 5-minute granularity in the query period will be returned.
  • 60: 1-hour granularity. The data at 1-hour granularity in the query period will be returned.
  • 1440: 1-day granularity. The data at 1-day granularity in the query period will be returned.
  • Default value: 1440. Data at 1-day granularity will be returned. * @param DataInterval Time granularity of usage data in minutes. Valid values:
  • 5: 5-minute granularity. The data at 5-minute granularity in the query period will be returned.
  • 60: 1-hour granularity. The data at 1-hour granularity in the query period will be returned.
  • 1440: 1-day granularity. The data at 1-day granularity in the query period will be returned.
  • Default value: 1440. Data at 1-day granularity will be returned. */ public void setDataInterval(Long DataInterval) { this.DataInterval = DataInterval; } /** * Get List of domain names. The usage data of up to 20 domain names can be queried at a time. You can specify multiple domain names and query their combined usage data. The usage data of all domain names will be returned by default. * @return DomainNames List of domain names. The usage data of up to 20 domain names can be queried at a time. You can specify multiple domain names and query their combined usage data. The usage data of all domain names will be returned by default. */ public String [] getDomainNames() { return this.DomainNames; } /** * Set List of domain names. The usage data of up to 20 domain names can be queried at a time. You can specify multiple domain names and query their combined usage data. The usage data of all domain names will be returned by default. * @param DomainNames List of domain names. The usage data of up to 20 domain names can be queried at a time. You can specify multiple domain names and query their combined usage data. The usage data of all domain names will be returned by default. */ public void setDomainNames(String [] DomainNames) { this.DomainNames = DomainNames; } /** * Get ID of a [subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty. When the value of this field is 1, the total usage of all subapplications (including primary application) are queried by an admin. In this case, only 1-day granularity is supported. * @return SubAppId ID of a [subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty. When the value of this field is 1, the total usage of all subapplications (including primary application) are queried by an admin. In this case, only 1-day granularity is supported. */ public Long getSubAppId() { return this.SubAppId; } /** * Set ID of a [subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty. When the value of this field is 1, the total usage of all subapplications (including primary application) are queried by an admin. In this case, only 1-day granularity is supported. * @param SubAppId ID of a [subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty. When the value of this field is 1, the total usage of all subapplications (including primary application) are queried by an admin. In this case, only 1-day granularity is supported. */ 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 - 2025 Weber Informatics LLC | Privacy Policy