code: public void marshall(DirectoryLimits directoryLimits, ProtocolMarshaller protocolMarshaller) {
  
          if (directoryLimits == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(directoryLimits.getCloudOnlyDirectoriesLimit(), CLOUDONLYDIRECTORIESLIMIT_BINDING);
              protocolMarshaller.marshall(directoryLimits.getCloudOnlyDirectoriesCurrentCount(), CLOUDONLYDIRECTORIESCURRENTCOUNT_BINDING);
              protocolMarshaller.marshall(directoryLimits.getCloudOnlyDirectoriesLimitReached(), CLOUDONLYDIRECTORIESLIMITREACHED_BINDING);
              protocolMarshaller.marshall(directoryLimits.getCloudOnlyMicrosoftADLimit(), CLOUDONLYMICROSOFTADLIMIT_BINDING);
              protocolMarshaller.marshall(directoryLimits.getCloudOnlyMicrosoftADCurrentCount(), CLOUDONLYMICROSOFTADCURRENTCOUNT_BINDING);
              protocolMarshaller.marshall(directoryLimits.getCloudOnlyMicrosoftADLimitReached(), CLOUDONLYMICROSOFTADLIMITREACHED_BINDING);
              protocolMarshaller.marshall(directoryLimits.getConnectedDirectoriesLimit(), CONNECTEDDIRECTORIESLIMIT_BINDING);
              protocolMarshaller.marshall(directoryLimits.getConnectedDirectoriesCurrentCount(), CONNECTEDDIRECTORIESCURRENTCOUNT_BINDING);
              protocolMarshaller.marshall(directoryLimits.getConnectedDirectoriesLimitReached(), CONNECTEDDIRECTORIESLIMITREACHED_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.