Skip to content

Commit

Permalink
增加DescribeVodDomainMax95BpsData
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Aug 20, 2024
1 parent e6338d0 commit c9cfe67
Show file tree
Hide file tree
Showing 5 changed files with 331 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-vod/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-08-20 Version: 2.16.26
增加DescribeVodDomainMax95BpsData

2024-08-13 Version: 2.16.25
-DescribeVodCertificateDetail, DescribeVodCertificateList增加返回参数

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-vod/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-vod</artifactId>
<packaging>jar</packaging>
<version>2.16.25</version>
<version>2.16.26</version>
<name>aliyun-java-sdk-vod</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/*
* 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.aliyuncs.vod.model.v20170321;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.ProtocolType;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.vod.Endpoint;

/**
* @author auto create
* @version
*/
public class DescribeVodDomainMax95BpsDataRequest extends RpcAcsRequest<DescribeVodDomainMax95BpsDataResponse> {


private String startTime;

private String cycle;

private String domainName;

private String endTime;

private Long ownerId;

private String timePoint;
public DescribeVodDomainMax95BpsDataRequest() {
super("vod", "2017-03-21", "DescribeVodDomainMax95BpsData", "vod");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.GET);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}

public String getStartTime() {
return this.startTime;
}

public void setStartTime(String startTime) {
this.startTime = startTime;
if(startTime != null){
putQueryParameter("StartTime", startTime);
}
}

public String getCycle() {
return this.cycle;
}

public void setCycle(String cycle) {
this.cycle = cycle;
if(cycle != null){
putQueryParameter("Cycle", cycle);
}
}

public String getDomainName() {
return this.domainName;
}

public void setDomainName(String domainName) {
this.domainName = domainName;
if(domainName != null){
putQueryParameter("DomainName", domainName);
}
}

public String getEndTime() {
return this.endTime;
}

public void setEndTime(String endTime) {
this.endTime = endTime;
if(endTime != null){
putQueryParameter("EndTime", endTime);
}
}

public Long getOwnerId() {
return this.ownerId;
}

public void setOwnerId(Long ownerId) {
this.ownerId = ownerId;
if(ownerId != null){
putQueryParameter("OwnerId", ownerId.toString());
}
}

public String getTimePoint() {
return this.timePoint;
}

public void setTimePoint(String timePoint) {
this.timePoint = timePoint;
if(timePoint != null){
putQueryParameter("TimePoint", timePoint);
}
}

@Override
public Class<DescribeVodDomainMax95BpsDataResponse> getResponseClass() {
return DescribeVodDomainMax95BpsDataResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
/*
* 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.aliyuncs.vod.model.v20170321;

import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.vod.transform.v20170321.DescribeVodDomainMax95BpsDataResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
* @author auto create
* @version
*/
public class DescribeVodDomainMax95BpsDataResponse extends AcsResponse {

private String requestId;

private String domainName;

private String endTime;

private String startTime;

private String domesticMax95Bps;

private String overseasMax95Bps;

private String max95Bps;

private List<Max95Detail> detailData;

public String getRequestId() {
return this.requestId;
}

public void setRequestId(String requestId) {
this.requestId = requestId;
}

public String getDomainName() {
return this.domainName;
}

public void setDomainName(String domainName) {
this.domainName = domainName;
}

public String getEndTime() {
return this.endTime;
}

public void setEndTime(String endTime) {
this.endTime = endTime;
}

public String getStartTime() {
return this.startTime;
}

public void setStartTime(String startTime) {
this.startTime = startTime;
}

public String getDomesticMax95Bps() {
return this.domesticMax95Bps;
}

public void setDomesticMax95Bps(String domesticMax95Bps) {
this.domesticMax95Bps = domesticMax95Bps;
}

public String getOverseasMax95Bps() {
return this.overseasMax95Bps;
}

public void setOverseasMax95Bps(String overseasMax95Bps) {
this.overseasMax95Bps = overseasMax95Bps;
}

public String getMax95Bps() {
return this.max95Bps;
}

public void setMax95Bps(String max95Bps) {
this.max95Bps = max95Bps;
}

public List<Max95Detail> getDetailData() {
return this.detailData;
}

public void setDetailData(List<Max95Detail> detailData) {
this.detailData = detailData;
}

public static class Max95Detail {

private String timeStamp;

private String area;

private String max95BpsPeakTime;

private Float max95Bps;

public String getTimeStamp() {
return this.timeStamp;
}

public void setTimeStamp(String timeStamp) {
this.timeStamp = timeStamp;
}

public String getArea() {
return this.area;
}

public void setArea(String area) {
this.area = area;
}

public String getMax95BpsPeakTime() {
return this.max95BpsPeakTime;
}

public void setMax95BpsPeakTime(String max95BpsPeakTime) {
this.max95BpsPeakTime = max95BpsPeakTime;
}

public Float getMax95Bps() {
return this.max95Bps;
}

public void setMax95Bps(Float max95Bps) {
this.max95Bps = max95Bps;
}
}

@Override
public DescribeVodDomainMax95BpsDataResponse getInstance(UnmarshallerContext context) {
return DescribeVodDomainMax95BpsDataResponseUnmarshaller.unmarshall(this, context);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* 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.aliyuncs.vod.transform.v20170321;

import java.util.ArrayList;
import java.util.List;

import com.aliyuncs.vod.model.v20170321.DescribeVodDomainMax95BpsDataResponse;
import com.aliyuncs.vod.model.v20170321.DescribeVodDomainMax95BpsDataResponse.Max95Detail;
import com.aliyuncs.transform.UnmarshallerContext;


public class DescribeVodDomainMax95BpsDataResponseUnmarshaller {

public static DescribeVodDomainMax95BpsDataResponse unmarshall(DescribeVodDomainMax95BpsDataResponse describeVodDomainMax95BpsDataResponse, UnmarshallerContext _ctx) {

describeVodDomainMax95BpsDataResponse.setRequestId(_ctx.stringValue("DescribeVodDomainMax95BpsDataResponse.RequestId"));
describeVodDomainMax95BpsDataResponse.setDomainName(_ctx.stringValue("DescribeVodDomainMax95BpsDataResponse.DomainName"));
describeVodDomainMax95BpsDataResponse.setEndTime(_ctx.stringValue("DescribeVodDomainMax95BpsDataResponse.EndTime"));
describeVodDomainMax95BpsDataResponse.setStartTime(_ctx.stringValue("DescribeVodDomainMax95BpsDataResponse.StartTime"));
describeVodDomainMax95BpsDataResponse.setDomesticMax95Bps(_ctx.stringValue("DescribeVodDomainMax95BpsDataResponse.DomesticMax95Bps"));
describeVodDomainMax95BpsDataResponse.setOverseasMax95Bps(_ctx.stringValue("DescribeVodDomainMax95BpsDataResponse.OverseasMax95Bps"));
describeVodDomainMax95BpsDataResponse.setMax95Bps(_ctx.stringValue("DescribeVodDomainMax95BpsDataResponse.Max95Bps"));

List<Max95Detail> detailData = new ArrayList<Max95Detail>();
for (int i = 0; i < _ctx.lengthValue("DescribeVodDomainMax95BpsDataResponse.DetailData.Length"); i++) {
Max95Detail max95Detail = new Max95Detail();
max95Detail.setTimeStamp(_ctx.stringValue("DescribeVodDomainMax95BpsDataResponse.DetailData["+ i +"].TimeStamp"));
max95Detail.setArea(_ctx.stringValue("DescribeVodDomainMax95BpsDataResponse.DetailData["+ i +"].Area"));
max95Detail.setMax95BpsPeakTime(_ctx.stringValue("DescribeVodDomainMax95BpsDataResponse.DetailData["+ i +"].Max95BpsPeakTime"));
max95Detail.setMax95Bps(_ctx.floatValue("DescribeVodDomainMax95BpsDataResponse.DetailData["+ i +"].Max95Bps"));

detailData.add(max95Detail);
}
describeVodDomainMax95BpsDataResponse.setDetailData(detailData);

return describeVodDomainMax95BpsDataResponse;
}
}

0 comments on commit c9cfe67

Please sign in to comment.