code: public void marshall(ViolationEvent violationEvent, ProtocolMarshaller protocolMarshaller) {
  
          if (violationEvent == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(violationEvent.getViolationId(), VIOLATIONID_BINDING);
              protocolMarshaller.marshall(violationEvent.getThingName(), THINGNAME_BINDING);
              protocolMarshaller.marshall(violationEvent.getSecurityProfileName(), SECURITYPROFILENAME_BINDING);
              protocolMarshaller.marshall(violationEvent.getBehavior(), BEHAVIOR_BINDING);
              protocolMarshaller.marshall(violationEvent.getMetricValue(), METRICVALUE_BINDING);
              protocolMarshaller.marshall(violationEvent.getViolationEventType(), VIOLATIONEVENTTYPE_BINDING);
              protocolMarshaller.marshall(violationEvent.getViolationEventTime(), VIOLATIONEVENTTIME_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.