com.baidubce.services.iothisk.model
Class BatchCreateClientCertRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.services.iothisk.model.IotPkiManageRequest
          extended by com.baidubce.services.iothisk.model.BatchCreateClientCertRequest

public class BatchCreateClientCertRequest
extends IotPkiManageRequest

Represent the request for batch create client cert.


Constructor Summary
BatchCreateClientCertRequest()
           
 
Method Summary
static BatchCreateClientCertRequest create(String groupId, int duration, Map<String,String> deviceIdAndCsr)
          Create a batch create client cert request.
 String getCsrs()
           
 List<String> getDeviceIds()
           
 int getDuration()
           
 String getGroupId()
           
 void setCsrs(String csrs)
           
 void setDeviceIds(List<String> deviceIds)
           
 void setDuration(int duration)
           
 void setGroupId(String groupId)
           
 BatchCreateClientCertRequest withCsrs(String csrs)
           
 BatchCreateClientCertRequest withDeviceIds(List<String> deviceIds)
           
 BatchCreateClientCertRequest withDuration(int duration)
           
 BatchCreateClientCertRequest withGroupId(String groupId)
           
 
Methods inherited from class com.baidubce.services.iothisk.model.IotPkiManageRequest
withRequestCredentials
 
Methods inherited from class com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchCreateClientCertRequest

public BatchCreateClientCertRequest()
Method Detail

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 © 2018. All rights reserved.