public void marshall(AttachTypedLinkRequest attachTypedLinkRequest, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(attachTypedLinkRequest.getDirectoryArn(), DIRECTORYARN_BINDING);
            protocolMarshaller.marshall(attachTypedLinkRequest.getSourceObjectReference(), SOURCEOBJECTREFERENCE_BINDING);
            protocolMarshaller.marshall(attachTypedLinkRequest.getTargetObjectReference(), TARGETOBJECTREFERENCE_BINDING);
            protocolMarshaller.marshall(attachTypedLinkRequest.getTypedLinkFacet(), TYPEDLINKFACET_BINDING);
            protocolMarshaller.marshall(attachTypedLinkRequest.getAttributes(), ATTRIBUTES_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( AttachTypedLinkRequest attachTypedLinkRequest , ProtocolMarshaller protocolMarshaller ) { if ( attachTypedLinkRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( attachTypedLinkRequest . getDirectoryArn ( ) , DIRECTORYARN_BINDING ) ; protocolMarshaller . marshall ( attachTypedLinkRequest . getSourceObjectReference ( ) , SOURCEOBJECTREFERENCE_BINDING ) ; protocolMarshaller . marshall ( attachTypedLinkRequest . getTargetObjectReference ( ) , TARGETOBJECTREFERENCE_BINDING ) ; protocolMarshaller . marshall ( attachTypedLinkRequest . getTypedLinkFacet ( ) , TYPEDLINKFACET_BINDING ) ; protocolMarshaller . marshall ( attachTypedLinkRequest . getAttributes ( ) , ATTRIBUTES_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.