code: public void marshall(CreateResourceShareRequest createResourceShareRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (createResourceShareRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(createResourceShareRequest.getName(), NAME_BINDING);
              protocolMarshaller.marshall(createResourceShareRequest.getResourceArns(), RESOURCEARNS_BINDING);
              protocolMarshaller.marshall(createResourceShareRequest.getPrincipals(), PRINCIPALS_BINDING);
              protocolMarshaller.marshall(createResourceShareRequest.getTags(), TAGS_BINDING);
              protocolMarshaller.marshall(createResourceShareRequest.getAllowExternalPrincipals(), ALLOWEXTERNALPRINCIPALS_BINDING);
              protocolMarshaller.marshall(createResourceShareRequest.getClientToken(), CLIENTTOKEN_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.