com.aliyuncs.domain.transform.v20180129.ListServerLockResponseUnmarshaller 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.ListServerLockResponse;
import com.aliyuncs.domain.model.v20180129.ListServerLockResponse.QueryTransferInResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListServerLockResponseUnmarshaller {
public static ListServerLockResponse unmarshall(ListServerLockResponse listServerLockResponse, UnmarshallerContext _ctx) {
listServerLockResponse.setRequestId(_ctx.stringValue("ListServerLockResponse.RequestId"));
listServerLockResponse.setTotalItemNum(_ctx.integerValue("ListServerLockResponse.TotalItemNum"));
listServerLockResponse.setCurrentPageNum(_ctx.integerValue("ListServerLockResponse.CurrentPageNum"));
listServerLockResponse.setTotalPageNum(_ctx.integerValue("ListServerLockResponse.TotalPageNum"));
listServerLockResponse.setPageSize(_ctx.integerValue("ListServerLockResponse.PageSize"));
listServerLockResponse.setPrePage(_ctx.booleanValue("ListServerLockResponse.PrePage"));
listServerLockResponse.setNextPage(_ctx.booleanValue("ListServerLockResponse.NextPage"));
List data = new ArrayList();
for (int i = 0; i < _ctx.lengthValue("ListServerLockResponse.Data.Length"); i++) {
QueryTransferInResponse queryTransferInResponse = new QueryTransferInResponse();
queryTransferInResponse.setGmtCreate(_ctx.stringValue("ListServerLockResponse.Data["+ i +"].GmtCreate"));
queryTransferInResponse.setGmtModified(_ctx.stringValue("ListServerLockResponse.Data["+ i +"].GmtModified"));
queryTransferInResponse.setUserId(_ctx.stringValue("ListServerLockResponse.Data["+ i +"].UserId"));
queryTransferInResponse.setDomainName(_ctx.stringValue("ListServerLockResponse.Data["+ i +"].DomainName"));
queryTransferInResponse.setDomainInstanceId(_ctx.stringValue("ListServerLockResponse.Data["+ i +"].DomainInstanceId"));
queryTransferInResponse.setLockProductId(_ctx.stringValue("ListServerLockResponse.Data["+ i +"].LockProductId"));
queryTransferInResponse.setStartDate(_ctx.stringValue("ListServerLockResponse.Data["+ i +"].StartDate"));
queryTransferInResponse.setExpireDate(_ctx.stringValue("ListServerLockResponse.Data["+ i +"].ExpireDate"));
queryTransferInResponse.setLockInstanceId(_ctx.stringValue("ListServerLockResponse.Data["+ i +"].LockInstanceId"));
queryTransferInResponse.setServerLockStatus(_ctx.stringValue("ListServerLockResponse.Data["+ i +"].ServerLockStatus"));
data.add(queryTransferInResponse);
}
listServerLockResponse.setData(data);
return listServerLockResponse;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy