public Map GetAllParams()

in src/main/java/com/aliyun/openservices/log/request/ListTopostoreRelationRequest.java [197:244]


    public Map<String, String> GetAllParams() {
        if (offset != null) {
            SetParam(Consts.CONST_OFFSET, offset.toString());
        }

        if (size != null) {
            SetParam(Consts.CONST_SIZE, size.toString());
        }

        if(relationIds != null && !relationIds.isEmpty()){
            SetParam(Consts.TOPOSTORE_RELATION_ID_LIST, Utils.join(",", Utils.removeNullItems(relationIds)));
        }

        if(relationTypes != null && !relationTypes.isEmpty()){
            SetParam(Consts.TOPOSTORE_RELATION_TYPE_LIST, Utils.join(",", Utils.removeNullItems(relationTypes)));
        }

        if(srcNodeIds != null && !srcNodeIds.isEmpty()){
            SetParam(Consts.TOPOSTORE_RELATION_SRC_NODE_ID_LIST, Utils.join(",", Utils.removeNullItems(srcNodeIds)));
        }

        if(dstNodeIds != null && !dstNodeIds.isEmpty()){
            SetParam(Consts.TOPOSTORE_RELATION_DST_NODE_ID_LIST, Utils.join(",", Utils.removeNullItems(dstNodeIds)));
        }

        if(propertyKey!=null&&propertyKey.length()>0){
            SetParam(Consts.TOPOSTORE_RELATION_PROPERTY_KEY, propertyKey);
        }

        if(propertyValue!=null&&propertyValue.length()>0){
            SetParam(Consts.TOPOSTORE_RELATION_PROPERTY_VALUE, propertyValue);
        }

        if(properties!=null && !properties.isEmpty()){
            JSONObject proObj = new JSONObject();
            for(Map.Entry<String, String> kv : properties.entrySet()){
                proObj.put(kv.getKey(), kv.getValue());
            }
            
            try{
                SetParam(Consts.TOPOSTORE_RELATION_PROPERTIES, URLEncoder.encode(new String(
                    Base64.getEncoder().encodeToString(proObj.toJSONString().getBytes())), "utf-8"));
            } catch(UnsupportedEncodingException e){
                throw new RuntimeException(e);
            }
        }
        return super.GetAllParams();
    }