public void marshall(UpdateDirectConnectGatewayAssociationRequest updateDirectConnectGatewayAssociationRequest, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(updateDirectConnectGatewayAssociationRequest.getAssociationId(), ASSOCIATIONID_BINDING);
            protocolMarshaller.marshall(updateDirectConnectGatewayAssociationRequest.getAddAllowedPrefixesToDirectConnectGateway(),
                    ADDALLOWEDPREFIXESTODIRECTCONNECTGATEWAY_BINDING);
            protocolMarshaller.marshall(updateDirectConnectGatewayAssociationRequest.getRemoveAllowedPrefixesToDirectConnectGateway(),
                    REMOVEALLOWEDPREFIXESTODIRECTCONNECTGATEWAY_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( UpdateDirectConnectGatewayAssociationRequest updateDirectConnectGatewayAssociationRequest , ProtocolMarshaller protocolMarshaller ) { if ( updateDirectConnectGatewayAssociationRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( updateDirectConnectGatewayAssociationRequest . getAssociationId ( ) , ASSOCIATIONID_BINDING ) ; protocolMarshaller . marshall ( updateDirectConnectGatewayAssociationRequest . getAddAllowedPrefixesToDirectConnectGateway ( ) , ADDALLOWEDPREFIXESTODIRECTCONNECTGATEWAY_BINDING ) ; protocolMarshaller . marshall ( updateDirectConnectGatewayAssociationRequest . getRemoveAllowedPrefixesToDirectConnectGateway ( ) , REMOVEALLOWEDPREFIXESTODIRECTCONNECTGATEWAY_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.