Skip to content

Commit

Permalink
Generated 2019-09-10 for waf-openapi.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jun 15, 2020
1 parent 1c9b4c1 commit 40d9de0
Show file tree
Hide file tree
Showing 4 changed files with 283 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-waf-openapi/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2020-06-15 Version: 1.0.2
- Generated 2019-09-10 for `waf-openapi`.

2020-05-20 Version: 1.0.2
- Generated 2019-09-10 for `waf-openapi`.

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/*
* 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.waf_openapi.model.v20190910;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.waf_openapi.Endpoint;

/**
* @author auto create
* @version
*/
public class DescribeInstanceInfosRequest extends RpcAcsRequest<DescribeInstanceInfosResponse> {


private String resourceGroupId;

private String instanceId;

private String instanceSource;
public DescribeInstanceInfosRequest() {
super("waf-openapi", "2019-09-10", "DescribeInstanceInfos", "waf");
setMethod(MethodType.POST);
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 getResourceGroupId() {
return this.resourceGroupId;
}

public void setResourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
if(resourceGroupId != null){
putQueryParameter("ResourceGroupId", resourceGroupId);
}
}

public String getInstanceId() {
return this.instanceId;
}

public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
if(instanceId != null){
putQueryParameter("InstanceId", instanceId);
}
}

public String getInstanceSource() {
return this.instanceSource;
}

public void setInstanceSource(String instanceSource) {
this.instanceSource = instanceSource;
if(instanceSource != null){
putQueryParameter("InstanceSource", instanceSource);
}
}

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
/*
* 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.waf_openapi.model.v20190910;

import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.waf_openapi.transform.v20190910.DescribeInstanceInfosResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

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

private String requestId;

private List<InstanceInfo> instanceInfos;

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

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

public List<InstanceInfo> getInstanceInfos() {
return this.instanceInfos;
}

public void setInstanceInfos(List<InstanceInfo> instanceInfos) {
this.instanceInfos = instanceInfos;
}

public static class InstanceInfo {

private Integer inDebt;

private String instanceId;

private Integer payType;

private Long endDate;

private Integer remainDay;

private String region;

private Integer trial;

private Integer status;

private String subscriptionType;

public Integer getInDebt() {
return this.inDebt;
}

public void setInDebt(Integer inDebt) {
this.inDebt = inDebt;
}

public String getInstanceId() {
return this.instanceId;
}

public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}

public Integer getPayType() {
return this.payType;
}

public void setPayType(Integer payType) {
this.payType = payType;
}

public Long getEndDate() {
return this.endDate;
}

public void setEndDate(Long endDate) {
this.endDate = endDate;
}

public Integer getRemainDay() {
return this.remainDay;
}

public void setRemainDay(Integer remainDay) {
this.remainDay = remainDay;
}

public String getRegion() {
return this.region;
}

public void setRegion(String region) {
this.region = region;
}

public Integer getTrial() {
return this.trial;
}

public void setTrial(Integer trial) {
this.trial = trial;
}

public Integer getStatus() {
return this.status;
}

public void setStatus(Integer status) {
this.status = status;
}

public String getSubscriptionType() {
return this.subscriptionType;
}

public void setSubscriptionType(String subscriptionType) {
this.subscriptionType = subscriptionType;
}
}

@Override
public DescribeInstanceInfosResponse getInstance(UnmarshallerContext context) {
return DescribeInstanceInfosResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*
* 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.waf_openapi.transform.v20190910;

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

import com.aliyuncs.waf_openapi.model.v20190910.DescribeInstanceInfosResponse;
import com.aliyuncs.waf_openapi.model.v20190910.DescribeInstanceInfosResponse.InstanceInfo;
import com.aliyuncs.transform.UnmarshallerContext;


public class DescribeInstanceInfosResponseUnmarshaller {

public static DescribeInstanceInfosResponse unmarshall(DescribeInstanceInfosResponse describeInstanceInfosResponse, UnmarshallerContext _ctx) {

describeInstanceInfosResponse.setRequestId(_ctx.stringValue("DescribeInstanceInfosResponse.RequestId"));

List<InstanceInfo> instanceInfos = new ArrayList<InstanceInfo>();
for (int i = 0; i < _ctx.lengthValue("DescribeInstanceInfosResponse.InstanceInfos.Length"); i++) {
InstanceInfo instanceInfo = new InstanceInfo();
instanceInfo.setInDebt(_ctx.integerValue("DescribeInstanceInfosResponse.InstanceInfos["+ i +"].InDebt"));
instanceInfo.setInstanceId(_ctx.stringValue("DescribeInstanceInfosResponse.InstanceInfos["+ i +"].InstanceId"));
instanceInfo.setPayType(_ctx.integerValue("DescribeInstanceInfosResponse.InstanceInfos["+ i +"].PayType"));
instanceInfo.setEndDate(_ctx.longValue("DescribeInstanceInfosResponse.InstanceInfos["+ i +"].EndDate"));
instanceInfo.setRemainDay(_ctx.integerValue("DescribeInstanceInfosResponse.InstanceInfos["+ i +"].RemainDay"));
instanceInfo.setRegion(_ctx.stringValue("DescribeInstanceInfosResponse.InstanceInfos["+ i +"].Region"));
instanceInfo.setTrial(_ctx.integerValue("DescribeInstanceInfosResponse.InstanceInfos["+ i +"].Trial"));
instanceInfo.setStatus(_ctx.integerValue("DescribeInstanceInfosResponse.InstanceInfos["+ i +"].Status"));
instanceInfo.setSubscriptionType(_ctx.stringValue("DescribeInstanceInfosResponse.InstanceInfos["+ i +"].SubscriptionType"));

instanceInfos.add(instanceInfo);
}
describeInstanceInfosResponse.setInstanceInfos(instanceInfos);

return describeInstanceInfosResponse;
}
}

0 comments on commit 40d9de0

Please sign in to comment.