public VNXeCommandJob createLunsInConsistencyGroup(List<String> names,String poolId,Long size,boolean isThin,String tieringPolicy,String cgId){
  _logger.info("creating luns in the consistencyGroup group: {}",cgId);
  LunGroupModifyParam param=new LunGroupModifyParam();
  List<LunCreateParam> lunCreates=new ArrayList<LunCreateParam>();
  boolean isPolicyOn=false;
  FastVPParam fastVP=new FastVPParam();
  if (tieringPolicy != null && !tieringPolicy.isEmpty()) {
    TieringPolicyEnum tierValue=TieringPolicyEnum.valueOf(tieringPolicy);
    if (tierValue != null) {
      fastVP.setTieringPolicy(tierValue.getValue());
      isPolicyOn=true;
    }
  }
  for (  String lunName : names) {
    LunParam lunParam=new LunParam();
    lunParam.setIsThinEnabled(isThin);
    lunParam.setSize(size);
    lunParam.setPool(new VNXeBase(poolId));
    LunCreateParam createParam=new LunCreateParam();
    createParam.setName(lunName);
    createParam.setLunParameters(lunParam);
    if (isPolicyOn) {
      lunParam.setFastVPParameters(fastVP);
    }
    lunCreates.add(createParam);
  }
  param.setLunCreate(lunCreates);
  ConsistencyGroupRequests req=new ConsistencyGroupRequests(_khClient);
  return req.modifyConsistencyGroupAsync(cgId,param);
}

public VNXeCommandJob createLunsInConsistencyGroup ( List < String > names , String poolId , Long size , boolean isThin , String tieringPolicy , String cgId ) { _logger . info ( "creating luns in the consistencyGroup group: {}" , cgId ) ; LunGroupModifyParam param = new LunGroupModifyParam ( ) ; List < LunCreateParam > lunCreates = new ArrayList < LunCreateParam > ( ) ; boolean isPolicyOn = false ; FastVPParam fastVP = new FastVPParam ( ) ; if ( tieringPolicy != null && ! tieringPolicy . isEmpty ( ) ) { TieringPolicyEnum tierValue = TieringPolicyEnum . valueOf ( tieringPolicy ) ; if ( tierValue != null ) { fastVP . setTieringPolicy ( tierValue . getValue ( ) ) ; isPolicyOn = true ; } } for ( String lunName : names ) { LunParam lunParam = new LunParam ( ) ; lunParam . setIsThinEnabled ( isThin ) ; lunParam . setSize ( size ) ; lunParam . setPool ( new VNXeBase ( poolId ) ) ; LunCreateParam createParam = new LunCreateParam ( ) ; createParam . setName ( lunName ) ; createParam . setLunParameters ( lunParam ) ; if ( isPolicyOn ) { lunParam . setFastVPParameters ( fastVP ) ; } lunCreates . add ( createParam ) ; } param . setLunCreate ( lunCreates ) ; ConsistencyGroupRequests req = new ConsistencyGroupRequests ( _khClient ) ; return req . modifyConsistencyGroupAsync ( cgId , param ) ; }
create multiple volumes in a lun group
