code: public void marshall(CreateNotebookInstanceRequest createNotebookInstanceRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (createNotebookInstanceRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(createNotebookInstanceRequest.getNotebookInstanceName(), NOTEBOOKINSTANCENAME_BINDING);
              protocolMarshaller.marshall(createNotebookInstanceRequest.getInstanceType(), INSTANCETYPE_BINDING);
              protocolMarshaller.marshall(createNotebookInstanceRequest.getSubnetId(), SUBNETID_BINDING);
              protocolMarshaller.marshall(createNotebookInstanceRequest.getSecurityGroupIds(), SECURITYGROUPIDS_BINDING);
              protocolMarshaller.marshall(createNotebookInstanceRequest.getRoleArn(), ROLEARN_BINDING);
              protocolMarshaller.marshall(createNotebookInstanceRequest.getKmsKeyId(), KMSKEYID_BINDING);
              protocolMarshaller.marshall(createNotebookInstanceRequest.getTags(), TAGS_BINDING);
              protocolMarshaller.marshall(createNotebookInstanceRequest.getLifecycleConfigName(), LIFECYCLECONFIGNAME_BINDING);
              protocolMarshaller.marshall(createNotebookInstanceRequest.getDirectInternetAccess(), DIRECTINTERNETACCESS_BINDING);
              protocolMarshaller.marshall(createNotebookInstanceRequest.getVolumeSizeInGB(), VOLUMESIZEINGB_BINDING);
              protocolMarshaller.marshall(createNotebookInstanceRequest.getAcceleratorTypes(), ACCELERATORTYPES_BINDING);
              protocolMarshaller.marshall(createNotebookInstanceRequest.getDefaultCodeRepository(), DEFAULTCODEREPOSITORY_BINDING);
              protocolMarshaller.marshall(createNotebookInstanceRequest.getAdditionalCodeRepositories(), ADDITIONALCODEREPOSITORIES_BINDING);
              protocolMarshaller.marshall(createNotebookInstanceRequest.getRootAccess(), ROOTACCESS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.