public void marshall(ServerReplicationParameters serverReplicationParameters, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(serverReplicationParameters.getSeedTime(), SEEDTIME_BINDING);
            protocolMarshaller.marshall(serverReplicationParameters.getFrequency(), FREQUENCY_BINDING);
            protocolMarshaller.marshall(serverReplicationParameters.getRunOnce(), RUNONCE_BINDING);
            protocolMarshaller.marshall(serverReplicationParameters.getLicenseType(), LICENSETYPE_BINDING);
            protocolMarshaller.marshall(serverReplicationParameters.getNumberOfRecentAmisToKeep(), NUMBEROFRECENTAMISTOKEEP_BINDING);
            protocolMarshaller.marshall(serverReplicationParameters.getEncrypted(), ENCRYPTED_BINDING);
            protocolMarshaller.marshall(serverReplicationParameters.getKmsKeyId(), KMSKEYID_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( ServerReplicationParameters serverReplicationParameters , ProtocolMarshaller protocolMarshaller ) { if ( serverReplicationParameters == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( serverReplicationParameters . getSeedTime ( ) , SEEDTIME_BINDING ) ; protocolMarshaller . marshall ( serverReplicationParameters . getFrequency ( ) , FREQUENCY_BINDING ) ; protocolMarshaller . marshall ( serverReplicationParameters . getRunOnce ( ) , RUNONCE_BINDING ) ; protocolMarshaller . marshall ( serverReplicationParameters . getLicenseType ( ) , LICENSETYPE_BINDING ) ; protocolMarshaller . marshall ( serverReplicationParameters . getNumberOfRecentAmisToKeep ( ) , NUMBEROFRECENTAMISTOKEEP_BINDING ) ; protocolMarshaller . marshall ( serverReplicationParameters . getEncrypted ( ) , ENCRYPTED_BINDING ) ; protocolMarshaller . marshall ( serverReplicationParameters . getKmsKeyId ( ) , KMSKEYID_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.