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

com.aliyuncs.oos.transform.v20190601.ListTemplateVersionsResponseUnmarshaller 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: 1.5.14
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.oos.transform.v20190601;

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

import com.aliyuncs.oos.model.v20190601.ListTemplateVersionsResponse;
import com.aliyuncs.oos.model.v20190601.ListTemplateVersionsResponse.TemplateVersion;
import com.aliyuncs.transform.UnmarshallerContext;


public class ListTemplateVersionsResponseUnmarshaller {

	public static ListTemplateVersionsResponse unmarshall(ListTemplateVersionsResponse listTemplateVersionsResponse, UnmarshallerContext _ctx) {
		
		listTemplateVersionsResponse.setRequestId(_ctx.stringValue("ListTemplateVersionsResponse.RequestId"));
		listTemplateVersionsResponse.setNextToken(_ctx.stringValue("ListTemplateVersionsResponse.NextToken"));
		listTemplateVersionsResponse.setMaxResults(_ctx.integerValue("ListTemplateVersionsResponse.MaxResults"));

		List templateVersions = new ArrayList();
		for (int i = 0; i < _ctx.lengthValue("ListTemplateVersionsResponse.TemplateVersions.Length"); i++) {
			TemplateVersion templateVersion = new TemplateVersion();
			templateVersion.setDescription(_ctx.stringValue("ListTemplateVersionsResponse.TemplateVersions["+ i +"].Description"));
			templateVersion.setUpdatedDate(_ctx.stringValue("ListTemplateVersionsResponse.TemplateVersions["+ i +"].UpdatedDate"));
			templateVersion.setUpdatedBy(_ctx.stringValue("ListTemplateVersionsResponse.TemplateVersions["+ i +"].UpdatedBy"));
			templateVersion.setVersionName(_ctx.stringValue("ListTemplateVersionsResponse.TemplateVersions["+ i +"].VersionName"));
			templateVersion.setTemplateVersion(_ctx.stringValue("ListTemplateVersionsResponse.TemplateVersions["+ i +"].TemplateVersion"));
			templateVersion.setTemplateFormat(_ctx.stringValue("ListTemplateVersionsResponse.TemplateVersions["+ i +"].TemplateFormat"));

			templateVersions.add(templateVersion);
		}
		listTemplateVersionsResponse.setTemplateVersions(templateVersions);
	 
	 	return listTemplateVersionsResponse;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy