code: public void marshall(TopicRulePayload topicRulePayload, ProtocolMarshaller protocolMarshaller) {
  
          if (topicRulePayload == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(topicRulePayload.getSql(), SQL_BINDING);
              protocolMarshaller.marshall(topicRulePayload.getDescription(), DESCRIPTION_BINDING);
              protocolMarshaller.marshall(topicRulePayload.getActions(), ACTIONS_BINDING);
              protocolMarshaller.marshall(topicRulePayload.getRuleDisabled(), RULEDISABLED_BINDING);
              protocolMarshaller.marshall(topicRulePayload.getAwsIotSqlVersion(), AWSIOTSQLVERSION_BINDING);
              protocolMarshaller.marshall(topicRulePayload.getErrorAction(), ERRORACTION_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.