public FileSMBShare(String name,String description,String permissionType,String permission,String maxUsers,String nativeId,String path){
  this._name=name;
  this._description=description;
  this._path=path;
  try {
    this._permissionType=Enum.valueOf(PermissionType.class,permissionType.toLowerCase());
  }
 catch (  Exception e) {
    throw new IllegalArgumentException("Invalid Permission Type:  Must be one of \"allow\" or \"deny\"");
  }
  try {
    this._permission=Enum.valueOf(Permission.class,permission.toLowerCase());
  }
 catch (  Exception e) {
    throw new IllegalArgumentException("Invalid Permission:  Must be one of \"read\" or \"change\" or \"full\"");
  }
  this._maxUsers=Integer.parseInt(maxUsers);
  this._nativeId=nativeId;
}

public FileSMBShare ( String name , String description , String permissionType , String permission , String maxUsers , String nativeId , String path ) { this . _name = name ; this . _description = description ; this . _path = path ; try { this . _permissionType = Enum . valueOf ( PermissionType . class , permissionType . toLowerCase ( ) ) ; } catch ( Exception e ) { throw new IllegalArgumentException ( "Invalid Permission Type:  Must be one of \"allow\" or \"deny\"" ) ; } try { this . _permission = Enum . valueOf ( Permission . class , permission . toLowerCase ( ) ) ; } catch ( Exception e ) { throw new IllegalArgumentException ( "Invalid Permission:  Must be one of \"read\" or \"change\" or \"full\"" ) ; } this . _maxUsers = Integer . parseInt ( maxUsers ) ; this . _nativeId = nativeId ; }
construction of smb share
