public void marshall(HierarchyPath hierarchyPath, ProtocolMarshaller protocolMarshaller) {

        if (hierarchyPath == null) {
            throw new SdkClientException("Invalid argument passed to marshall(...)");
        }

        try {
            protocolMarshaller.marshall(hierarchyPath.getLevelOne(), LEVELONE_BINDING);
            protocolMarshaller.marshall(hierarchyPath.getLevelTwo(), LEVELTWO_BINDING);
            protocolMarshaller.marshall(hierarchyPath.getLevelThree(), LEVELTHREE_BINDING);
            protocolMarshaller.marshall(hierarchyPath.getLevelFour(), LEVELFOUR_BINDING);
            protocolMarshaller.marshall(hierarchyPath.getLevelFive(), LEVELFIVE_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( HierarchyPath hierarchyPath , ProtocolMarshaller protocolMarshaller ) { if ( hierarchyPath == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( hierarchyPath . getLevelOne ( ) , LEVELONE_BINDING ) ; protocolMarshaller . marshall ( hierarchyPath . getLevelTwo ( ) , LEVELTWO_BINDING ) ; protocolMarshaller . marshall ( hierarchyPath . getLevelThree ( ) , LEVELTHREE_BINDING ) ; protocolMarshaller . marshall ( hierarchyPath . getLevelFour ( ) , LEVELFOUR_BINDING ) ; protocolMarshaller . marshall ( hierarchyPath . getLevelFive ( ) , LEVELFIVE_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.