com.dahuatech.icc.brm.model.v202010.person.BrmPersonBatchUpdateImgRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk-brm Show documentation
Show all versions of java-sdk-brm Show documentation
Dahua ICC Open API SDK for Java
package com.dahuatech.icc.brm.model.v202010.person;
import com.dahuatech.hutool.http.Method;
import com.dahuatech.icc.brm.constant.BrmConstant;
import com.dahuatech.icc.brm.constant.ParamConstant;
import com.dahuatech.icc.brm.exception.BusinessException;
import com.dahuatech.icc.exception.ClientException;
import com.dahuatech.icc.oauth.http.AbstractIccRequest;
import java.util.List;
/**
* 批量更新人员头像信息
*
* @author 232676
* @since 1.0.0 2020/11/9 11:19
*/
public class BrmPersonBatchUpdateImgRequest
extends AbstractIccRequest {
private List personBiosignatures;
private BrmPersonBatchUpdateImgRequest(Builder builder) {
super(BrmConstant.url(BrmConstant.BRM_URL_PERSON_FACE_BATCH_UPDATE_PUT), Method.PUT);
this.personBiosignatures = builder.personBiosignatures;
putBodyParameter("personBiosignatures", personBiosignatures);
}
public BrmPersonBatchUpdateImgRequest(){
super(BrmConstant.url(BrmConstant.BRM_URL_PERSON_FACE_BATCH_UPDATE_PUT), Method.PUT);
}
public static Builder builder() {
return new Builder();
}
public List getPersonBiosignatures() {
return personBiosignatures;
}
public void setPersonBiosignatures(List personBiosignatures) {
this.personBiosignatures = personBiosignatures;
putBodyParameter("personBiosignatures", personBiosignatures);
}
@Override
public Class getResponseClass() {
return BrmPersonBatchUpdateImgResponse.class;
}
public static class Builder {
private List personBiosignatures;
public Builder personBiosignatures(List personBiosignatures) {
this.personBiosignatures = personBiosignatures;
return this;
}
public BrmPersonBatchUpdateImgRequest build() throws ClientException {
return new BrmPersonBatchUpdateImgRequest(this);
}
}
public void businessValid() {
}
}