public void marshall(Preset preset, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(preset.getArn(), ARN_BINDING);
            protocolMarshaller.marshall(preset.getCategory(), CATEGORY_BINDING);
            protocolMarshaller.marshall(preset.getCreatedAt(), CREATEDAT_BINDING);
            protocolMarshaller.marshall(preset.getDescription(), DESCRIPTION_BINDING);
            protocolMarshaller.marshall(preset.getLastUpdated(), LASTUPDATED_BINDING);
            protocolMarshaller.marshall(preset.getName(), NAME_BINDING);
            protocolMarshaller.marshall(preset.getSettings(), SETTINGS_BINDING);
            protocolMarshaller.marshall(preset.getType(), TYPE_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( Preset preset , ProtocolMarshaller protocolMarshaller ) { if ( preset == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( preset . getArn ( ) , ARN_BINDING ) ; protocolMarshaller . marshall ( preset . getCategory ( ) , CATEGORY_BINDING ) ; protocolMarshaller . marshall ( preset . getCreatedAt ( ) , CREATEDAT_BINDING ) ; protocolMarshaller . marshall ( preset . getDescription ( ) , DESCRIPTION_BINDING ) ; protocolMarshaller . marshall ( preset . getLastUpdated ( ) , LASTUPDATED_BINDING ) ; protocolMarshaller . marshall ( preset . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( preset . getSettings ( ) , SETTINGS_BINDING ) ; protocolMarshaller . marshall ( preset . getType ( ) , TYPE_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.