private void createFASTPolicy(String policyID,AutoTieringPolicy policy,String policyRuleName,URI storageSystemURI,String policyEnabled,String provisioningType) throws IOException {
  boolean newPolicy=false;
  if (null == policy) {
    newPolicy=true;
    policy=new AutoTieringPolicy();
    policy.setId(URIUtil.createId(AutoTieringPolicy.class));
    policy.setStorageSystem(storageSystemURI);
    policy.setNativeGuid(policyID);
    policy.setSystemType(getDeviceType(storageSystemURI));
  }
  policy.setLabel(policyRuleName);
  policy.setPolicyName(policyRuleName);
  policy.setPolicyEnabled(policyEnabled.equalsIgnoreCase("1"));
  policy.setProvisioningType(provisioningType);
  if (newPolicy) {
    _newFastPolicies.add(policy);
  }
 else {
    _updateFastPolicies.add(policy);
  }
}

private void createFASTPolicy ( String policyID , AutoTieringPolicy policy , String policyRuleName , URI storageSystemURI , String policyEnabled , String provisioningType ) throws IOException { boolean newPolicy = false ; if ( null == policy ) { newPolicy = true ; policy = new AutoTieringPolicy ( ) ; policy . setId ( URIUtil . createId ( AutoTieringPolicy . class ) ) ; policy . setStorageSystem ( storageSystemURI ) ; policy . setNativeGuid ( policyID ) ; policy . setSystemType ( getDeviceType ( storageSystemURI ) ) ; } policy . setLabel ( policyRuleName ) ; policy . setPolicyName ( policyRuleName ) ; policy . setPolicyEnabled ( policyEnabled . equalsIgnoreCase ( "1" ) ) ; policy . setProvisioningType ( provisioningType ) ; if ( newPolicy ) { _newFastPolicies . add ( policy ) ; } else { _updateFastPolicies . add ( policy ) ; } }
create fast policy object s
