code: public void marshall(ResourceShareAssociation resourceShareAssociation, ProtocolMarshaller protocolMarshaller) {
  
          if (resourceShareAssociation == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(resourceShareAssociation.getResourceShareArn(), RESOURCESHAREARN_BINDING);
              protocolMarshaller.marshall(resourceShareAssociation.getAssociatedEntity(), ASSOCIATEDENTITY_BINDING);
              protocolMarshaller.marshall(resourceShareAssociation.getAssociationType(), ASSOCIATIONTYPE_BINDING);
              protocolMarshaller.marshall(resourceShareAssociation.getStatus(), STATUS_BINDING);
              protocolMarshaller.marshall(resourceShareAssociation.getStatusMessage(), STATUSMESSAGE_BINDING);
              protocolMarshaller.marshall(resourceShareAssociation.getCreationTime(), CREATIONTIME_BINDING);
              protocolMarshaller.marshall(resourceShareAssociation.getLastUpdatedTime(), LASTUPDATEDTIME_BINDING);
              protocolMarshaller.marshall(resourceShareAssociation.getExternal(), EXTERNAL_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.