com.aliyuncs.domain.transform.v20180129.PollTaskResultResponseUnmarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-java-sdk-domain Show documentation
Show all versions of aliyun-java-sdk-domain Show documentation
Aliyun Open API SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
/*
* 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.domain.transform.v20180129;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.domain.model.v20180129.PollTaskResultResponse;
import com.aliyuncs.domain.model.v20180129.PollTaskResultResponse.TaskDetail;
import com.aliyuncs.transform.UnmarshallerContext;
public class PollTaskResultResponseUnmarshaller {
public static PollTaskResultResponse unmarshall(PollTaskResultResponse pollTaskResultResponse, UnmarshallerContext _ctx) {
pollTaskResultResponse.setRequestId(_ctx.stringValue("PollTaskResultResponse.RequestId"));
pollTaskResultResponse.setTotalItemNum(_ctx.integerValue("PollTaskResultResponse.TotalItemNum"));
pollTaskResultResponse.setCurrentPageNum(_ctx.integerValue("PollTaskResultResponse.CurrentPageNum"));
pollTaskResultResponse.setTotalPageNum(_ctx.integerValue("PollTaskResultResponse.TotalPageNum"));
pollTaskResultResponse.setPageSize(_ctx.integerValue("PollTaskResultResponse.PageSize"));
pollTaskResultResponse.setPrePage(_ctx.booleanValue("PollTaskResultResponse.PrePage"));
pollTaskResultResponse.setNextPage(_ctx.booleanValue("PollTaskResultResponse.NextPage"));
List data = new ArrayList();
for (int i = 0; i < _ctx.lengthValue("PollTaskResultResponse.Data.Length"); i++) {
TaskDetail taskDetail = new TaskDetail();
taskDetail.setTaskNo(_ctx.stringValue("PollTaskResultResponse.Data["+ i +"].TaskNo"));
taskDetail.setTaskDetailNo(_ctx.stringValue("PollTaskResultResponse.Data["+ i +"].TaskDetailNo"));
taskDetail.setTaskType(_ctx.stringValue("PollTaskResultResponse.Data["+ i +"].TaskType"));
taskDetail.setInstanceId(_ctx.stringValue("PollTaskResultResponse.Data["+ i +"].InstanceId"));
taskDetail.setDomainName(_ctx.stringValue("PollTaskResultResponse.Data["+ i +"].DomainName"));
taskDetail.setTaskStatus(_ctx.stringValue("PollTaskResultResponse.Data["+ i +"].TaskStatus"));
taskDetail.setUpdateTime(_ctx.stringValue("PollTaskResultResponse.Data["+ i +"].UpdateTime"));
taskDetail.setCreateTime(_ctx.stringValue("PollTaskResultResponse.Data["+ i +"].CreateTime"));
taskDetail.setTryCount(_ctx.integerValue("PollTaskResultResponse.Data["+ i +"].TryCount"));
taskDetail.setErrorMsg(_ctx.stringValue("PollTaskResultResponse.Data["+ i +"].ErrorMsg"));
taskDetail.setTaskStatusCode(_ctx.integerValue("PollTaskResultResponse.Data["+ i +"].TaskStatusCode"));
taskDetail.setTaskResult(_ctx.stringValue("PollTaskResultResponse.Data["+ i +"].TaskResult"));
taskDetail.setTaskTypeDescription(_ctx.stringValue("PollTaskResultResponse.Data["+ i +"].TaskTypeDescription"));
data.add(taskDetail);
}
pollTaskResultResponse.setData(data);
return pollTaskResultResponse;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy