public void marshall(ImageFailure imageFailure, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(imageFailure.getImageId(), IMAGEID_BINDING);
            protocolMarshaller.marshall(imageFailure.getFailureCode(), FAILURECODE_BINDING);
            protocolMarshaller.marshall(imageFailure.getFailureReason(), FAILUREREASON_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( ImageFailure imageFailure , ProtocolMarshaller protocolMarshaller ) { if ( imageFailure == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( imageFailure . getImageId ( ) , IMAGEID_BINDING ) ; protocolMarshaller . marshall ( imageFailure . getFailureCode ( ) , FAILURECODE_BINDING ) ; protocolMarshaller . marshall ( imageFailure . getFailureReason ( ) , FAILUREREASON_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.