public void marshall(CreateModelRequest createModelRequest, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(createModelRequest.getModelName(), MODELNAME_BINDING);
            protocolMarshaller.marshall(createModelRequest.getPrimaryContainer(), PRIMARYCONTAINER_BINDING);
            protocolMarshaller.marshall(createModelRequest.getContainers(), CONTAINERS_BINDING);
            protocolMarshaller.marshall(createModelRequest.getExecutionRoleArn(), EXECUTIONROLEARN_BINDING);
            protocolMarshaller.marshall(createModelRequest.getTags(), TAGS_BINDING);
            protocolMarshaller.marshall(createModelRequest.getVpcConfig(), VPCCONFIG_BINDING);
            protocolMarshaller.marshall(createModelRequest.getEnableNetworkIsolation(), ENABLENETWORKISOLATION_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( CreateModelRequest createModelRequest , ProtocolMarshaller protocolMarshaller ) { if ( createModelRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( createModelRequest . getModelName ( ) , MODELNAME_BINDING ) ; protocolMarshaller . marshall ( createModelRequest . getPrimaryContainer ( ) , PRIMARYCONTAINER_BINDING ) ; protocolMarshaller . marshall ( createModelRequest . getContainers ( ) , CONTAINERS_BINDING ) ; protocolMarshaller . marshall ( createModelRequest . getExecutionRoleArn ( ) , EXECUTIONROLEARN_BINDING ) ; protocolMarshaller . marshall ( createModelRequest . getTags ( ) , TAGS_BINDING ) ; protocolMarshaller . marshall ( createModelRequest . getVpcConfig ( ) , VPCCONFIG_BINDING ) ; protocolMarshaller . marshall ( createModelRequest . getEnableNetworkIsolation ( ) , ENABLENETWORKISOLATION_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.