public void marshall(UpdateChapCredentialsRequest updateChapCredentialsRequest, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(updateChapCredentialsRequest.getTargetARN(), TARGETARN_BINDING);
            protocolMarshaller.marshall(updateChapCredentialsRequest.getSecretToAuthenticateInitiator(), SECRETTOAUTHENTICATEINITIATOR_BINDING);
            protocolMarshaller.marshall(updateChapCredentialsRequest.getInitiatorName(), INITIATORNAME_BINDING);
            protocolMarshaller.marshall(updateChapCredentialsRequest.getSecretToAuthenticateTarget(), SECRETTOAUTHENTICATETARGET_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( UpdateChapCredentialsRequest updateChapCredentialsRequest , ProtocolMarshaller protocolMarshaller ) { if ( updateChapCredentialsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( updateChapCredentialsRequest . getTargetARN ( ) , TARGETARN_BINDING ) ; protocolMarshaller . marshall ( updateChapCredentialsRequest . getSecretToAuthenticateInitiator ( ) , SECRETTOAUTHENTICATEINITIATOR_BINDING ) ; protocolMarshaller . marshall ( updateChapCredentialsRequest . getInitiatorName ( ) , INITIATORNAME_BINDING ) ; protocolMarshaller . marshall ( updateChapCredentialsRequest . getSecretToAuthenticateTarget ( ) , SECRETTOAUTHENTICATETARGET_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.