All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyuncs.domain.transform.v20180129.QueryTaskDetailListResponseUnmarshaller Maven / Gradle / Ivy

Go to download

Aliyun Open API SDK for Java Copyright (C) Alibaba Cloud Computing All rights reserved. 版权所有 (C)阿里云计算有限公司 http://www.aliyun.com

There is a newer version: 3.15.10
Show newest version
/*
 * 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.QueryTaskDetailListResponse;
import com.aliyuncs.domain.model.v20180129.QueryTaskDetailListResponse.TaskDetail;
import com.aliyuncs.transform.UnmarshallerContext;


public class QueryTaskDetailListResponseUnmarshaller {

	public static QueryTaskDetailListResponse unmarshall(QueryTaskDetailListResponse queryTaskDetailListResponse, UnmarshallerContext _ctx) {
		
		queryTaskDetailListResponse.setRequestId(_ctx.stringValue("QueryTaskDetailListResponse.RequestId"));
		queryTaskDetailListResponse.setTotalItemNum(_ctx.integerValue("QueryTaskDetailListResponse.TotalItemNum"));
		queryTaskDetailListResponse.setCurrentPageNum(_ctx.integerValue("QueryTaskDetailListResponse.CurrentPageNum"));
		queryTaskDetailListResponse.setTotalPageNum(_ctx.integerValue("QueryTaskDetailListResponse.TotalPageNum"));
		queryTaskDetailListResponse.setPageSize(_ctx.integerValue("QueryTaskDetailListResponse.PageSize"));
		queryTaskDetailListResponse.setPrePage(_ctx.booleanValue("QueryTaskDetailListResponse.PrePage"));
		queryTaskDetailListResponse.setNextPage(_ctx.booleanValue("QueryTaskDetailListResponse.NextPage"));

		List data = new ArrayList();
		for (int i = 0; i < _ctx.lengthValue("QueryTaskDetailListResponse.Data.Length"); i++) {
			TaskDetail taskDetail = new TaskDetail();
			taskDetail.setTaskNo(_ctx.stringValue("QueryTaskDetailListResponse.Data["+ i +"].TaskNo"));
			taskDetail.setTaskDetailNo(_ctx.stringValue("QueryTaskDetailListResponse.Data["+ i +"].TaskDetailNo"));
			taskDetail.setTaskType(_ctx.stringValue("QueryTaskDetailListResponse.Data["+ i +"].TaskType"));
			taskDetail.setInstanceId(_ctx.stringValue("QueryTaskDetailListResponse.Data["+ i +"].InstanceId"));
			taskDetail.setDomainName(_ctx.stringValue("QueryTaskDetailListResponse.Data["+ i +"].DomainName"));
			taskDetail.setTaskStatus(_ctx.stringValue("QueryTaskDetailListResponse.Data["+ i +"].TaskStatus"));
			taskDetail.setUpdateTime(_ctx.stringValue("QueryTaskDetailListResponse.Data["+ i +"].UpdateTime"));
			taskDetail.setCreateTime(_ctx.stringValue("QueryTaskDetailListResponse.Data["+ i +"].CreateTime"));
			taskDetail.setTryCount(_ctx.integerValue("QueryTaskDetailListResponse.Data["+ i +"].TryCount"));
			taskDetail.setErrorMsg(_ctx.stringValue("QueryTaskDetailListResponse.Data["+ i +"].ErrorMsg"));
			taskDetail.setTaskStatusCode(_ctx.integerValue("QueryTaskDetailListResponse.Data["+ i +"].TaskStatusCode"));
			taskDetail.setTaskResult(_ctx.stringValue("QueryTaskDetailListResponse.Data["+ i +"].TaskResult"));
			taskDetail.setTaskTypeDescription(_ctx.stringValue("QueryTaskDetailListResponse.Data["+ i +"].TaskTypeDescription"));

			data.add(taskDetail);
		}
		queryTaskDetailListResponse.setData(data);
	 
	 	return queryTaskDetailListResponse;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy