public void marshall(Reservation reservation, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(reservation.getArn(), ARN_BINDING);
            protocolMarshaller.marshall(reservation.getCount(), COUNT_BINDING);
            protocolMarshaller.marshall(reservation.getCurrencyCode(), CURRENCYCODE_BINDING);
            protocolMarshaller.marshall(reservation.getDuration(), DURATION_BINDING);
            protocolMarshaller.marshall(reservation.getDurationUnits(), DURATIONUNITS_BINDING);
            protocolMarshaller.marshall(reservation.getEnd(), END_BINDING);
            protocolMarshaller.marshall(reservation.getFixedPrice(), FIXEDPRICE_BINDING);
            protocolMarshaller.marshall(reservation.getName(), NAME_BINDING);
            protocolMarshaller.marshall(reservation.getOfferingDescription(), OFFERINGDESCRIPTION_BINDING);
            protocolMarshaller.marshall(reservation.getOfferingId(), OFFERINGID_BINDING);
            protocolMarshaller.marshall(reservation.getOfferingType(), OFFERINGTYPE_BINDING);
            protocolMarshaller.marshall(reservation.getRegion(), REGION_BINDING);
            protocolMarshaller.marshall(reservation.getReservationId(), RESERVATIONID_BINDING);
            protocolMarshaller.marshall(reservation.getResourceSpecification(), RESOURCESPECIFICATION_BINDING);
            protocolMarshaller.marshall(reservation.getStart(), START_BINDING);
            protocolMarshaller.marshall(reservation.getState(), STATE_BINDING);
            protocolMarshaller.marshall(reservation.getTags(), TAGS_BINDING);
            protocolMarshaller.marshall(reservation.getUsagePrice(), USAGEPRICE_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( Reservation reservation , ProtocolMarshaller protocolMarshaller ) { if ( reservation == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( reservation . getArn ( ) , ARN_BINDING ) ; protocolMarshaller . marshall ( reservation . getCount ( ) , COUNT_BINDING ) ; protocolMarshaller . marshall ( reservation . getCurrencyCode ( ) , CURRENCYCODE_BINDING ) ; protocolMarshaller . marshall ( reservation . getDuration ( ) , DURATION_BINDING ) ; protocolMarshaller . marshall ( reservation . getDurationUnits ( ) , DURATIONUNITS_BINDING ) ; protocolMarshaller . marshall ( reservation . getEnd ( ) , END_BINDING ) ; protocolMarshaller . marshall ( reservation . getFixedPrice ( ) , FIXEDPRICE_BINDING ) ; protocolMarshaller . marshall ( reservation . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( reservation . getOfferingDescription ( ) , OFFERINGDESCRIPTION_BINDING ) ; protocolMarshaller . marshall ( reservation . getOfferingId ( ) , OFFERINGID_BINDING ) ; protocolMarshaller . marshall ( reservation . getOfferingType ( ) , OFFERINGTYPE_BINDING ) ; protocolMarshaller . marshall ( reservation . getRegion ( ) , REGION_BINDING ) ; protocolMarshaller . marshall ( reservation . getReservationId ( ) , RESERVATIONID_BINDING ) ; protocolMarshaller . marshall ( reservation . getResourceSpecification ( ) , RESOURCESPECIFICATION_BINDING ) ; protocolMarshaller . marshall ( reservation . getStart ( ) , START_BINDING ) ; protocolMarshaller . marshall ( reservation . getState ( ) , STATE_BINDING ) ; protocolMarshaller . marshall ( reservation . getTags ( ) , TAGS_BINDING ) ; protocolMarshaller . marshall ( reservation . getUsagePrice ( ) , USAGEPRICE_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.