public void marshall(ThingGroupDocument thingGroupDocument, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(thingGroupDocument.getThingGroupName(), THINGGROUPNAME_BINDING);
            protocolMarshaller.marshall(thingGroupDocument.getThingGroupId(), THINGGROUPID_BINDING);
            protocolMarshaller.marshall(thingGroupDocument.getThingGroupDescription(), THINGGROUPDESCRIPTION_BINDING);
            protocolMarshaller.marshall(thingGroupDocument.getAttributes(), ATTRIBUTES_BINDING);
            protocolMarshaller.marshall(thingGroupDocument.getParentGroupNames(), PARENTGROUPNAMES_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( ThingGroupDocument thingGroupDocument , ProtocolMarshaller protocolMarshaller ) { if ( thingGroupDocument == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( thingGroupDocument . getThingGroupName ( ) , THINGGROUPNAME_BINDING ) ; protocolMarshaller . marshall ( thingGroupDocument . getThingGroupId ( ) , THINGGROUPID_BINDING ) ; protocolMarshaller . marshall ( thingGroupDocument . getThingGroupDescription ( ) , THINGGROUPDESCRIPTION_BINDING ) ; protocolMarshaller . marshall ( thingGroupDocument . getAttributes ( ) , ATTRIBUTES_BINDING ) ; protocolMarshaller . marshall ( thingGroupDocument . getParentGroupNames ( ) , PARENTGROUPNAMES_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.