com.aliyuncs.baas.transform.v20181221.DescribeFabricOrganizationsResponseUnmarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-java-sdk-baas Show documentation
Show all versions of aliyun-java-sdk-baas 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.baas.transform.v20181221;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.baas.model.v20181221.DescribeFabricOrganizationsResponse;
import com.aliyuncs.baas.model.v20181221.DescribeFabricOrganizationsResponse.ResultItem;
import com.aliyuncs.baas.model.v20181221.DescribeFabricOrganizationsResponse.ResultItem.TagsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeFabricOrganizationsResponseUnmarshaller {
public static DescribeFabricOrganizationsResponse unmarshall(DescribeFabricOrganizationsResponse describeFabricOrganizationsResponse, UnmarshallerContext _ctx) {
describeFabricOrganizationsResponse.setRequestId(_ctx.stringValue("DescribeFabricOrganizationsResponse.RequestId"));
describeFabricOrganizationsResponse.setErrorCode(_ctx.integerValue("DescribeFabricOrganizationsResponse.ErrorCode"));
describeFabricOrganizationsResponse.setSuccess(_ctx.booleanValue("DescribeFabricOrganizationsResponse.Success"));
List result = new ArrayList();
for (int i = 0; i < _ctx.lengthValue("DescribeFabricOrganizationsResponse.Result.Length"); i++) {
ResultItem resultItem = new ResultItem();
resultItem.setDomain(_ctx.stringValue("DescribeFabricOrganizationsResponse.Result["+ i +"].Domain"));
resultItem.setPeerCount(_ctx.integerValue("DescribeFabricOrganizationsResponse.Result["+ i +"].PeerCount"));
resultItem.setState(_ctx.stringValue("DescribeFabricOrganizationsResponse.Result["+ i +"].State"));
resultItem.setCreateTime(_ctx.stringValue("DescribeFabricOrganizationsResponse.Result["+ i +"].CreateTime"));
resultItem.setConsortiumCount(_ctx.integerValue("DescribeFabricOrganizationsResponse.Result["+ i +"].ConsortiumCount"));
resultItem.setSpecName(_ctx.stringValue("DescribeFabricOrganizationsResponse.Result["+ i +"].SpecName"));
resultItem.setOwnerName(_ctx.stringValue("DescribeFabricOrganizationsResponse.Result["+ i +"].OwnerName"));
resultItem.setOwnerUid(_ctx.longValue("DescribeFabricOrganizationsResponse.Result["+ i +"].OwnerUid"));
resultItem.setOwnerBid(_ctx.stringValue("DescribeFabricOrganizationsResponse.Result["+ i +"].OwnerBid"));
resultItem.setCodeName(_ctx.stringValue("DescribeFabricOrganizationsResponse.Result["+ i +"].CodeName"));
resultItem.setOrganizationDescription(_ctx.stringValue("DescribeFabricOrganizationsResponse.Result["+ i +"].OrganizationDescription"));
resultItem.setRegionId(_ctx.stringValue("DescribeFabricOrganizationsResponse.Result["+ i +"].RegionId"));
resultItem.setOrganizationId(_ctx.stringValue("DescribeFabricOrganizationsResponse.Result["+ i +"].OrganizationId"));
resultItem.setRequestId(_ctx.stringValue("DescribeFabricOrganizationsResponse.Result["+ i +"].RequestId"));
resultItem.setZoneId(_ctx.stringValue("DescribeFabricOrganizationsResponse.Result["+ i +"].ZoneId"));
resultItem.setUserCount(_ctx.integerValue("DescribeFabricOrganizationsResponse.Result["+ i +"].UserCount"));
resultItem.setOrganizationName(_ctx.stringValue("DescribeFabricOrganizationsResponse.Result["+ i +"].OrganizationName"));
List tags = new ArrayList();
for (int j = 0; j < _ctx.lengthValue("DescribeFabricOrganizationsResponse.Result["+ i +"].Tags.Length"); j++) {
TagsItem tagsItem = new TagsItem();
tagsItem.setKey(_ctx.stringValue("DescribeFabricOrganizationsResponse.Result["+ i +"].Tags["+ j +"].Key"));
tagsItem.setValue(_ctx.stringValue("DescribeFabricOrganizationsResponse.Result["+ i +"].Tags["+ j +"].Value"));
tags.add(tagsItem);
}
resultItem.setTags(tags);
result.add(resultItem);
}
describeFabricOrganizationsResponse.setResult(result);
return describeFabricOrganizationsResponse;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy