code: public void marshall(BackupRule backupRule, ProtocolMarshaller protocolMarshaller) {
  
          if (backupRule == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(backupRule.getRuleName(), RULENAME_BINDING);
              protocolMarshaller.marshall(backupRule.getTargetBackupVaultName(), TARGETBACKUPVAULTNAME_BINDING);
              protocolMarshaller.marshall(backupRule.getScheduleExpression(), SCHEDULEEXPRESSION_BINDING);
              protocolMarshaller.marshall(backupRule.getStartWindowMinutes(), STARTWINDOWMINUTES_BINDING);
              protocolMarshaller.marshall(backupRule.getCompletionWindowMinutes(), COMPLETIONWINDOWMINUTES_BINDING);
              protocolMarshaller.marshall(backupRule.getLifecycle(), LIFECYCLE_BINDING);
              protocolMarshaller.marshall(backupRule.getRecoveryPointTags(), RECOVERYPOINTTAGS_BINDING);
              protocolMarshaller.marshall(backupRule.getRuleId(), RULEID_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.