public void marshall(ConsumerDescription consumerDescription, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(consumerDescription.getConsumerName(), CONSUMERNAME_BINDING);
            protocolMarshaller.marshall(consumerDescription.getConsumerARN(), CONSUMERARN_BINDING);
            protocolMarshaller.marshall(consumerDescription.getConsumerStatus(), CONSUMERSTATUS_BINDING);
            protocolMarshaller.marshall(consumerDescription.getConsumerCreationTimestamp(), CONSUMERCREATIONTIMESTAMP_BINDING);
            protocolMarshaller.marshall(consumerDescription.getStreamARN(), STREAMARN_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( ConsumerDescription consumerDescription , ProtocolMarshaller protocolMarshaller ) { if ( consumerDescription == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( consumerDescription . getConsumerName ( ) , CONSUMERNAME_BINDING ) ; protocolMarshaller . marshall ( consumerDescription . getConsumerARN ( ) , CONSUMERARN_BINDING ) ; protocolMarshaller . marshall ( consumerDescription . getConsumerStatus ( ) , CONSUMERSTATUS_BINDING ) ; protocolMarshaller . marshall ( consumerDescription . getConsumerCreationTimestamp ( ) , CONSUMERCREATIONTIMESTAMP_BINDING ) ; protocolMarshaller . marshall ( consumerDescription . getStreamARN ( ) , STREAMARN_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.