public StoragePolicyCreateRequest createStoragePolicyCreateRequest(StoragePolicyKey storagePolicyKey,String storagePolicyRuleType,Integer storagePolicyRuleValue,String businessObjectDefinitionNamespace,String businessObjectDefinitionName,String businessObjectFormatUsage,String businessObjectFormatFileType,String storageName,String destinationStorageName,String storagePolicyStatus){
  StoragePolicyCreateRequest request=new StoragePolicyCreateRequest();
  request.setStoragePolicyKey(storagePolicyKey);
  StoragePolicyRule storagePolicyRule=new StoragePolicyRule();
  request.setStoragePolicyRule(storagePolicyRule);
  storagePolicyRule.setRuleType(storagePolicyRuleType);
  storagePolicyRule.setRuleValue(storagePolicyRuleValue);
  StoragePolicyFilter storagePolicyFilter=new StoragePolicyFilter();
  request.setStoragePolicyFilter(storagePolicyFilter);
  storagePolicyFilter.setNamespace(businessObjectDefinitionNamespace);
  storagePolicyFilter.setBusinessObjectDefinitionName(businessObjectDefinitionName);
  storagePolicyFilter.setBusinessObjectFormatUsage(businessObjectFormatUsage);
  storagePolicyFilter.setBusinessObjectFormatFileType(businessObjectFormatFileType);
  storagePolicyFilter.setStorageName(storageName);
  StoragePolicyTransition storagePolicyTransition=new StoragePolicyTransition();
  request.setStoragePolicyTransition(storagePolicyTransition);
  storagePolicyTransition.setDestinationStorageName(destinationStorageName);
  request.setStatus(storagePolicyStatus);
  return request;
}

public StoragePolicyCreateRequest createStoragePolicyCreateRequest ( StoragePolicyKey storagePolicyKey , String storagePolicyRuleType , Integer storagePolicyRuleValue , String businessObjectDefinitionNamespace , String businessObjectDefinitionName , String businessObjectFormatUsage , String businessObjectFormatFileType , String storageName , String destinationStorageName , String storagePolicyStatus ) { StoragePolicyCreateRequest request = new StoragePolicyCreateRequest ( ) ; request . setStoragePolicyKey ( storagePolicyKey ) ; StoragePolicyRule storagePolicyRule = new StoragePolicyRule ( ) ; request . setStoragePolicyRule ( storagePolicyRule ) ; storagePolicyRule . setRuleType ( storagePolicyRuleType ) ; storagePolicyRule . setRuleValue ( storagePolicyRuleValue ) ; StoragePolicyFilter storagePolicyFilter = new StoragePolicyFilter ( ) ; request . setStoragePolicyFilter ( storagePolicyFilter ) ; storagePolicyFilter . setNamespace ( businessObjectDefinitionNamespace ) ; storagePolicyFilter . setBusinessObjectDefinitionName ( businessObjectDefinitionName ) ; storagePolicyFilter . setBusinessObjectFormatUsage ( businessObjectFormatUsage ) ; storagePolicyFilter . setBusinessObjectFormatFileType ( businessObjectFormatFileType ) ; storagePolicyFilter . setStorageName ( storageName ) ; StoragePolicyTransition storagePolicyTransition = new StoragePolicyTransition ( ) ; request . setStoragePolicyTransition ( storagePolicyTransition ) ; storagePolicyTransition . setDestinationStorageName ( destinationStorageName ) ; request . setStatus ( storagePolicyStatus ) ; return request ; }
creates a storage policy create request .
