com.aliyuncs.ecs.transform.v20140526.DescribeSendFileResultsResponseUnmarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-java-sdk-ecs Show documentation
Show all versions of aliyun-java-sdk-ecs Show documentation
Aliyun Open API SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
The 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.ecs.transform.v20140526;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.ecs.model.v20140526.DescribeSendFileResultsResponse;
import com.aliyuncs.ecs.model.v20140526.DescribeSendFileResultsResponse.Invocation;
import com.aliyuncs.ecs.model.v20140526.DescribeSendFileResultsResponse.Invocation.InvokeInstance;
import com.aliyuncs.ecs.model.v20140526.DescribeSendFileResultsResponse.Invocation.Tag;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeSendFileResultsResponseUnmarshaller {
public static DescribeSendFileResultsResponse unmarshall(DescribeSendFileResultsResponse describeSendFileResultsResponse, UnmarshallerContext _ctx) {
describeSendFileResultsResponse.setRequestId(_ctx.stringValue("DescribeSendFileResultsResponse.RequestId"));
describeSendFileResultsResponse.setPageSize(_ctx.longValue("DescribeSendFileResultsResponse.PageSize"));
describeSendFileResultsResponse.setPageNumber(_ctx.longValue("DescribeSendFileResultsResponse.PageNumber"));
describeSendFileResultsResponse.setTotalCount(_ctx.longValue("DescribeSendFileResultsResponse.TotalCount"));
describeSendFileResultsResponse.setNextToken(_ctx.stringValue("DescribeSendFileResultsResponse.NextToken"));
List invocations = new ArrayList();
for (int i = 0; i < _ctx.lengthValue("DescribeSendFileResultsResponse.Invocations.Length"); i++) {
Invocation invocation = new Invocation();
invocation.setCreationTime(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].CreationTime"));
invocation.setInvocationStatus(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].InvocationStatus"));
invocation.setContentType(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].ContentType"));
invocation.setTargetDir(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].TargetDir"));
invocation.setFileOwner(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].FileOwner"));
invocation.setDescription(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].Description"));
invocation.setVmCount(_ctx.integerValue("DescribeSendFileResultsResponse.Invocations["+ i +"].VmCount"));
invocation.setFileMode(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].FileMode"));
invocation.setFileGroup(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].FileGroup"));
invocation.setInvokeId(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].InvokeId"));
invocation.setName(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].Name"));
invocation.setContent(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].Content"));
invocation.setOverwrite(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].Overwrite"));
List invokeInstances = new ArrayList();
for (int j = 0; j < _ctx.lengthValue("DescribeSendFileResultsResponse.Invocations["+ i +"].InvokeInstances.Length"); j++) {
InvokeInstance invokeInstance = new InvokeInstance();
invokeInstance.setCreationTime(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].CreationTime"));
invokeInstance.setStartTime(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].StartTime"));
invokeInstance.setInvocationStatus(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].InvocationStatus"));
invokeInstance.setFinishTime(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].FinishTime"));
invokeInstance.setUpdateTime(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].UpdateTime"));
invokeInstance.setErrorInfo(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].ErrorInfo"));
invokeInstance.setErrorCode(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].ErrorCode"));
invokeInstance.setInstanceId(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].InstanceId"));
invokeInstances.add(invokeInstance);
}
invocation.setInvokeInstances(invokeInstances);
List tags = new ArrayList();
for (int j = 0; j < _ctx.lengthValue("DescribeSendFileResultsResponse.Invocations["+ i +"].Tags.Length"); j++) {
Tag tag = new Tag();
tag.setTagKey(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].Tags["+ j +"].TagKey"));
tag.setTagValue(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].Tags["+ j +"].TagValue"));
tags.add(tag);
}
invocation.setTags(tags);
invocations.add(invocation);
}
describeSendFileResultsResponse.setInvocations(invocations);
return describeSendFileResultsResponse;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy