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

com.aliyun.openservices.log.request.DeleteResourceRecordRequest Maven / Gradle / Ivy

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

import com.aliyun.openservices.log.common.Consts;
import com.aliyun.openservices.log.util.Utils;

import java.util.Collections;
import java.util.List;
import java.util.Map;

public class DeleteResourceRecordRequest extends RecordRequest {
    private List recordIds;

    public DeleteResourceRecordRequest(String resourceName, List recordIds) {
        super(resourceName);
        this.recordIds = recordIds;
    }

    public DeleteResourceRecordRequest(String resourceName, String recordId) {
        this(resourceName, Collections.singletonList(recordId));
    }

    @Override
    public Map GetAllParams() {
        SetParam(Consts.RESOURCE_RECORD_IDS, Utils.join(",", recordIds));
        return super.GetAllParams();
    }

    public List getRecordIds() {
        return recordIds;
    }

    public void setRecordIds(List recordIds) {
        this.recordIds = recordIds;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy