docs: public void marshall(ListPrincipalsRequest listPrincipalsRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (listPrincipalsRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(listPrincipalsRequest.getResourceOwner(), RESOURCEOWNER_BINDING);
              protocolMarshaller.marshall(listPrincipalsRequest.getResourceArn(), RESOURCEARN_BINDING);
              protocolMarshaller.marshall(listPrincipalsRequest.getPrincipals(), PRINCIPALS_BINDING);
              protocolMarshaller.marshall(listPrincipalsRequest.getResourceType(), RESOURCETYPE_BINDING);
              protocolMarshaller.marshall(listPrincipalsRequest.getResourceShareArns(), RESOURCESHAREARNS_BINDING);
              protocolMarshaller.marshall(listPrincipalsRequest.getNextToken(), NEXTTOKEN_BINDING);
              protocolMarshaller.marshall(listPrincipalsRequest.getMaxResults(), MAXRESULTS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }