Hay I'm trying to modify the snapshot policy attributes
And I'm doing it like that :
volumeSnapshotAttributs.setSnapshotPolicy(policy name);
VolumeAttributes.setVolumeSnapshotAttributes(volumeSnapshotAttrobutes);
VolumeToModifyAttributes=this.getvolume(volumename,vserver) //getting the volume attributes
VolumeModifyItrRequest.setAttributes(volumeSnapshotAttributes);
VolumeModifyItrRequest.setQuery(volumeToModifyAttributes);
ExecutionManager.instance().execute(cluster,volumeModifyItrRequest);//this function contact the cluster and runs the query