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

com.aliyun.openservices.log.response.ListProjectCnameResponse Maven / Gradle / Ivy

There is a newer version: 0.6.115
Show newest version
package com.aliyun.openservices.log.response;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.aliyun.openservices.log.common.CnameConfiguration;

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

public class ListProjectCnameResponse extends Response {

    private List cnameConfigurations;

    public ListProjectCnameResponse(Map headers) {
        super(headers);
    }

    public List getCnameConfigurations() {
        return cnameConfigurations;
    }

    public void setCnameConfigurations(List cnameConfigurations) {
        this.cnameConfigurations = cnameConfigurations;
    }

    public void unmarshal(JSONArray marshalled) {
        int n = marshalled.size();
        cnameConfigurations = new ArrayList(n);
        for (int i = 0; i < n; ++i) {
            JSONObject item = marshalled.getJSONObject(i);
            CnameConfiguration cnameConfiguration = new CnameConfiguration();
            cnameConfiguration.unmarshal(item);
            cnameConfigurations.add(cnameConfiguration);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy