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

com.aliyuncs.dbs.transform.v20190306.DescribeFullBackupListResponseUnmarshaller 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.0.39
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.dbs.transform.v20190306;

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

import com.aliyuncs.dbs.model.v20190306.DescribeFullBackupListResponse;
import com.aliyuncs.dbs.model.v20190306.DescribeFullBackupListResponse.FullBackupFile;
import com.aliyuncs.transform.UnmarshallerContext;


public class DescribeFullBackupListResponseUnmarshaller {

	public static DescribeFullBackupListResponse unmarshall(DescribeFullBackupListResponse describeFullBackupListResponse, UnmarshallerContext _ctx) {
		
		describeFullBackupListResponse.setRequestId(_ctx.stringValue("DescribeFullBackupListResponse.RequestId"));
		describeFullBackupListResponse.setSuccess(_ctx.booleanValue("DescribeFullBackupListResponse.Success"));
		describeFullBackupListResponse.setErrCode(_ctx.stringValue("DescribeFullBackupListResponse.ErrCode"));
		describeFullBackupListResponse.setErrMessage(_ctx.stringValue("DescribeFullBackupListResponse.ErrMessage"));
		describeFullBackupListResponse.setHttpStatusCode(_ctx.integerValue("DescribeFullBackupListResponse.HttpStatusCode"));
		describeFullBackupListResponse.setTotalPages(_ctx.integerValue("DescribeFullBackupListResponse.TotalPages"));
		describeFullBackupListResponse.setPageSize(_ctx.integerValue("DescribeFullBackupListResponse.PageSize"));
		describeFullBackupListResponse.setPageNum(_ctx.integerValue("DescribeFullBackupListResponse.PageNum"));
		describeFullBackupListResponse.setTotalElements(_ctx.integerValue("DescribeFullBackupListResponse.TotalElements"));

		List items = new ArrayList();
		for (int i = 0; i < _ctx.lengthValue("DescribeFullBackupListResponse.Items.Length"); i++) {
			FullBackupFile fullBackupFile = new FullBackupFile();
			fullBackupFile.setBackupSetId(_ctx.stringValue("DescribeFullBackupListResponse.Items["+ i +"].BackupSetId"));
			fullBackupFile.setSourceEndpointIpPort(_ctx.stringValue("DescribeFullBackupListResponse.Items["+ i +"].SourceEndpointIpPort"));
			fullBackupFile.setStartTime(_ctx.longValue("DescribeFullBackupListResponse.Items["+ i +"].StartTime"));
			fullBackupFile.setEndTime(_ctx.longValue("DescribeFullBackupListResponse.Items["+ i +"].EndTime"));
			fullBackupFile.setBackupStatus(_ctx.stringValue("DescribeFullBackupListResponse.Items["+ i +"].BackupStatus"));
			fullBackupFile.setBackupSetExpiredTime(_ctx.longValue("DescribeFullBackupListResponse.Items["+ i +"].BackupSetExpiredTime"));
			fullBackupFile.setBackupSize(_ctx.longValue("DescribeFullBackupListResponse.Items["+ i +"].BackupSize"));
			fullBackupFile.setStorageMethod(_ctx.stringValue("DescribeFullBackupListResponse.Items["+ i +"].StorageMethod"));
			fullBackupFile.setErrMessage(_ctx.stringValue("DescribeFullBackupListResponse.Items["+ i +"].ErrMessage"));
			fullBackupFile.setBackupObjects(_ctx.stringValue("DescribeFullBackupListResponse.Items["+ i +"].BackupObjects"));
			fullBackupFile.setCreateTime(_ctx.longValue("DescribeFullBackupListResponse.Items["+ i +"].CreateTime"));
			fullBackupFile.setFinishTime(_ctx.longValue("DescribeFullBackupListResponse.Items["+ i +"].FinishTime"));

			items.add(fullBackupFile);
		}
		describeFullBackupListResponse.setItems(items);
	 
	 	return describeFullBackupListResponse;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy