com.baidubce.services.iothisk.model
Class BatchCreateClientCertRequest
java.lang.Object
com.baidubce.model.AbstractBceRequest
com.baidubce.services.iothisk.model.IotPkiManageRequest
com.baidubce.services.iothisk.model.BatchCreateClientCertRequest
public class BatchCreateClientCertRequest
- extends IotPkiManageRequest
Represent the request for batch create client cert.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BatchCreateClientCertRequest
public BatchCreateClientCertRequest()
create
public static BatchCreateClientCertRequest create(String groupId,
int duration,
Map<String,String> deviceIdAndCsr)
throws Exception
- Create a batch create client cert request.
Recommend to use this method to create batch create request.
- Parameters:
groupId - Cert group ID of the certs which will be created.duration - Validity period of sub certs in days.deviceIdAndCsr - A map which maps device ID and csr.
- Returns:
- Batch create client cert request.
- Throws:
Exception - If input arguments are illegal.
getGroupId
public String getGroupId()
setGroupId
public void setGroupId(String groupId)
withGroupId
public BatchCreateClientCertRequest withGroupId(String groupId)
getDeviceIds
public List<String> getDeviceIds()
setDeviceIds
public void setDeviceIds(List<String> deviceIds)
withDeviceIds
public BatchCreateClientCertRequest withDeviceIds(List<String> deviceIds)
getDuration
public int getDuration()
setDuration
public void setDuration(int duration)
withDuration
public BatchCreateClientCertRequest withDuration(int duration)
getCsrs
public String getCsrs()
setCsrs
public void setCsrs(String csrs)
withCsrs
public BatchCreateClientCertRequest withCsrs(String csrs)
Copyright © 2020. All rights reserved.