code: public void marshall(AffectedEntity affectedEntity, ProtocolMarshaller protocolMarshaller) {
  
          if (affectedEntity == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(affectedEntity.getEntityArn(), ENTITYARN_BINDING);
              protocolMarshaller.marshall(affectedEntity.getEventArn(), EVENTARN_BINDING);
              protocolMarshaller.marshall(affectedEntity.getEntityValue(), ENTITYVALUE_BINDING);
              protocolMarshaller.marshall(affectedEntity.getEntityUrl(), ENTITYURL_BINDING);
              protocolMarshaller.marshall(affectedEntity.getAwsAccountId(), AWSACCOUNTID_BINDING);
              protocolMarshaller.marshall(affectedEntity.getLastUpdatedTime(), LASTUPDATEDTIME_BINDING);
              protocolMarshaller.marshall(affectedEntity.getStatusCode(), STATUSCODE_BINDING);
              protocolMarshaller.marshall(affectedEntity.getTags(), TAGS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.