public void marshall(PolicyAttachment policyAttachment, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(policyAttachment.getPolicyId(), POLICYID_BINDING);
            protocolMarshaller.marshall(policyAttachment.getObjectIdentifier(), OBJECTIDENTIFIER_BINDING);
            protocolMarshaller.marshall(policyAttachment.getPolicyType(), POLICYTYPE_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( PolicyAttachment policyAttachment , ProtocolMarshaller protocolMarshaller ) { if ( policyAttachment == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( policyAttachment . getPolicyId ( ) , POLICYID_BINDING ) ; protocolMarshaller . marshall ( policyAttachment . getObjectIdentifier ( ) , OBJECTIDENTIFIER_BINDING ) ; protocolMarshaller . marshall ( policyAttachment . getPolicyType ( ) , POLICYTYPE_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.