docs: public void marshall(ResourceShare resourceShare, ProtocolMarshaller protocolMarshaller) {
  
          if (resourceShare == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(resourceShare.getResourceShareArn(), RESOURCESHAREARN_BINDING);
              protocolMarshaller.marshall(resourceShare.getName(), NAME_BINDING);
              protocolMarshaller.marshall(resourceShare.getOwningAccountId(), OWNINGACCOUNTID_BINDING);
              protocolMarshaller.marshall(resourceShare.getAllowExternalPrincipals(), ALLOWEXTERNALPRINCIPALS_BINDING);
              protocolMarshaller.marshall(resourceShare.getStatus(), STATUS_BINDING);
              protocolMarshaller.marshall(resourceShare.getStatusMessage(), STATUSMESSAGE_BINDING);
              protocolMarshaller.marshall(resourceShare.getTags(), TAGS_BINDING);
              protocolMarshaller.marshall(resourceShare.getCreationTime(), CREATIONTIME_BINDING);
              protocolMarshaller.marshall(resourceShare.getLastUpdatedTime(), LASTUPDATEDTIME_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }