code: public void marshall(PatchRule patchRule, ProtocolMarshaller protocolMarshaller) {
  
          if (patchRule == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(patchRule.getPatchFilterGroup(), PATCHFILTERGROUP_BINDING);
              protocolMarshaller.marshall(patchRule.getComplianceLevel(), COMPLIANCELEVEL_BINDING);
              protocolMarshaller.marshall(patchRule.getApproveAfterDays(), APPROVEAFTERDAYS_BINDING);
              protocolMarshaller.marshall(patchRule.getEnableNonSecurity(), ENABLENONSECURITY_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.