code: public void marshall(SharedDirectory sharedDirectory, ProtocolMarshaller protocolMarshaller) {
  
          if (sharedDirectory == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(sharedDirectory.getOwnerAccountId(), OWNERACCOUNTID_BINDING);
              protocolMarshaller.marshall(sharedDirectory.getOwnerDirectoryId(), OWNERDIRECTORYID_BINDING);
              protocolMarshaller.marshall(sharedDirectory.getShareMethod(), SHAREMETHOD_BINDING);
              protocolMarshaller.marshall(sharedDirectory.getSharedAccountId(), SHAREDACCOUNTID_BINDING);
              protocolMarshaller.marshall(sharedDirectory.getSharedDirectoryId(), SHAREDDIRECTORYID_BINDING);
              protocolMarshaller.marshall(sharedDirectory.getShareStatus(), SHARESTATUS_BINDING);
              protocolMarshaller.marshall(sharedDirectory.getShareNotes(), SHARENOTES_BINDING);
              protocolMarshaller.marshall(sharedDirectory.getCreatedDateTime(), CREATEDDATETIME_BINDING);
              protocolMarshaller.marshall(sharedDirectory.getLastUpdatedDateTime(), LASTUPDATEDDATETIME_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.