com.tencentcloudapi.ecdn.v20191012.models.DescribeEcdnDomainStatisticsRequest 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.ecdn.v20191012.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DescribeEcdnDomainStatisticsRequest extends AbstractModel{
/**
* Query start time, such as 2019-12-13 00:00:00.
The time span cannot exceed 90 days.
*/
@SerializedName("StartTime")
@Expose
private String StartTime;
/**
* Query end time, such as 2019-12-13 23:59:59.
The time span cannot exceed 90 days.
*/
@SerializedName("EndTime")
@Expose
private String EndTime;
/**
* Statistical metric names:
flux: traffic (in bytes)
bandwidth: bandwidth (in bps)
request: number of requests
*/
@SerializedName("Metrics")
@Expose
private String [] Metrics;
/**
* Specifies the list of domain names to be queried
*/
@SerializedName("Domains")
@Expose
private String [] Domains;
/**
* Specifies the project ID to be queried, which can be viewed [here](https://console.cloud.tencent.com/project)
If no domain name is entered, the specified project will be queried; otherwise, the domain name will prevail
*/
@SerializedName("Projects")
@Expose
private Long [] Projects;
/**
* Pagination offset. Default value: 0.
*/
@SerializedName("Offset")
@Expose
private Long Offset;
/**
* Number of entries per page. Default value: 1000. Maximum value: 3,000.
*/
@SerializedName("Limit")
@Expose
private Long Limit;
/**
* Statistical areas:
mainland: Chinese mainland
oversea: outside the Chinese mainland
global: global
Default value: global
*/
@SerializedName("Area")
@Expose
private String Area;
/**
* Get Query start time, such as 2019-12-13 00:00:00.
The time span cannot exceed 90 days.
* @return StartTime Query start time, such as 2019-12-13 00:00:00.
The time span cannot exceed 90 days.
*/
public String getStartTime() {
return this.StartTime;
}
/**
* Set Query start time, such as 2019-12-13 00:00:00.
The time span cannot exceed 90 days.
* @param StartTime Query start time, such as 2019-12-13 00:00:00.
The time span cannot exceed 90 days.
*/
public void setStartTime(String StartTime) {
this.StartTime = StartTime;
}
/**
* Get Query end time, such as 2019-12-13 23:59:59.
The time span cannot exceed 90 days.
* @return EndTime Query end time, such as 2019-12-13 23:59:59.
The time span cannot exceed 90 days.
*/
public String getEndTime() {
return this.EndTime;
}
/**
* Set Query end time, such as 2019-12-13 23:59:59.
The time span cannot exceed 90 days.
* @param EndTime Query end time, such as 2019-12-13 23:59:59.
The time span cannot exceed 90 days.
*/
public void setEndTime(String EndTime) {
this.EndTime = EndTime;
}
/**
* Get Statistical metric names:
flux: traffic (in bytes)
bandwidth: bandwidth (in bps)
request: number of requests
* @return Metrics Statistical metric names:
flux: traffic (in bytes)
bandwidth: bandwidth (in bps)
request: number of requests
*/
public String [] getMetrics() {
return this.Metrics;
}
/**
* Set Statistical metric names:
flux: traffic (in bytes)
bandwidth: bandwidth (in bps)
request: number of requests
* @param Metrics Statistical metric names:
flux: traffic (in bytes)
bandwidth: bandwidth (in bps)
request: number of requests
*/
public void setMetrics(String [] Metrics) {
this.Metrics = Metrics;
}
/**
* Get Specifies the list of domain names to be queried
* @return Domains Specifies the list of domain names to be queried
*/
public String [] getDomains() {
return this.Domains;
}
/**
* Set Specifies the list of domain names to be queried
* @param Domains Specifies the list of domain names to be queried
*/
public void setDomains(String [] Domains) {
this.Domains = Domains;
}
/**
* Get Specifies the project ID to be queried, which can be viewed [here](https://console.cloud.tencent.com/project)
If no domain name is entered, the specified project will be queried; otherwise, the domain name will prevail
* @return Projects Specifies the project ID to be queried, which can be viewed [here](https://console.cloud.tencent.com/project)
If no domain name is entered, the specified project will be queried; otherwise, the domain name will prevail
*/
public Long [] getProjects() {
return this.Projects;
}
/**
* Set Specifies the project ID to be queried, which can be viewed [here](https://console.cloud.tencent.com/project)
If no domain name is entered, the specified project will be queried; otherwise, the domain name will prevail
* @param Projects Specifies the project ID to be queried, which can be viewed [here](https://console.cloud.tencent.com/project)
If no domain name is entered, the specified project will be queried; otherwise, the domain name will prevail
*/
public void setProjects(Long [] Projects) {
this.Projects = Projects;
}
/**
* Get Pagination offset. Default value: 0.
* @return Offset Pagination offset. Default value: 0.
*/
public Long getOffset() {
return this.Offset;
}
/**
* Set Pagination offset. Default value: 0.
* @param Offset Pagination offset. Default value: 0.
*/
public void setOffset(Long Offset) {
this.Offset = Offset;
}
/**
* Get Number of entries per page. Default value: 1000. Maximum value: 3,000.
* @return Limit Number of entries per page. Default value: 1000. Maximum value: 3,000.
*/
public Long getLimit() {
return this.Limit;
}
/**
* Set Number of entries per page. Default value: 1000. Maximum value: 3,000.
* @param Limit Number of entries per page. Default value: 1000. Maximum value: 3,000.
*/
public void setLimit(Long Limit) {
this.Limit = Limit;
}
/**
* Get Statistical areas:
mainland: Chinese mainland
oversea: outside the Chinese mainland
global: global
Default value: global
* @return Area Statistical areas:
mainland: Chinese mainland
oversea: outside the Chinese mainland
global: global
Default value: global
*/
public String getArea() {
return this.Area;
}
/**
* Set Statistical areas:
mainland: Chinese mainland
oversea: outside the Chinese mainland
global: global
Default value: global
* @param Area Statistical areas:
mainland: Chinese mainland
oversea: outside the Chinese mainland
global: global
Default value: global
*/
public void setArea(String Area) {
this.Area = Area;
}
public DescribeEcdnDomainStatisticsRequest() {
}
/**
* 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 DescribeEcdnDomainStatisticsRequest(DescribeEcdnDomainStatisticsRequest source) {
if (source.StartTime != null) {
this.StartTime = new String(source.StartTime);
}
if (source.EndTime != null) {
this.EndTime = new String(source.EndTime);
}
if (source.Metrics != null) {
this.Metrics = new String[source.Metrics.length];
for (int i = 0; i < source.Metrics.length; i++) {
this.Metrics[i] = new String(source.Metrics[i]);
}
}
if (source.Domains != null) {
this.Domains = new String[source.Domains.length];
for (int i = 0; i < source.Domains.length; i++) {
this.Domains[i] = new String(source.Domains[i]);
}
}
if (source.Projects != null) {
this.Projects = new Long[source.Projects.length];
for (int i = 0; i < source.Projects.length; i++) {
this.Projects[i] = new Long(source.Projects[i]);
}
}
if (source.Offset != null) {
this.Offset = new Long(source.Offset);
}
if (source.Limit != null) {
this.Limit = new Long(source.Limit);
}
if (source.Area != null) {
this.Area = new String(source.Area);
}
}
/**
* 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.setParamArraySimple(map, prefix + "Metrics.", this.Metrics);
this.setParamArraySimple(map, prefix + "Domains.", this.Domains);
this.setParamArraySimple(map, prefix + "Projects.", this.Projects);
this.setParamSimple(map, prefix + "Offset", this.Offset);
this.setParamSimple(map, prefix + "Limit", this.Limit);
this.setParamSimple(map, prefix + "Area", this.Area);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy