code: public void marshall(AddPermissionRequest addPermissionRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (addPermissionRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(addPermissionRequest.getFunctionName(), FUNCTIONNAME_BINDING);
              protocolMarshaller.marshall(addPermissionRequest.getStatementId(), STATEMENTID_BINDING);
              protocolMarshaller.marshall(addPermissionRequest.getAction(), ACTION_BINDING);
              protocolMarshaller.marshall(addPermissionRequest.getPrincipal(), PRINCIPAL_BINDING);
              protocolMarshaller.marshall(addPermissionRequest.getSourceArn(), SOURCEARN_BINDING);
              protocolMarshaller.marshall(addPermissionRequest.getSourceAccount(), SOURCEACCOUNT_BINDING);
              protocolMarshaller.marshall(addPermissionRequest.getEventSourceToken(), EVENTSOURCETOKEN_BINDING);
              protocolMarshaller.marshall(addPermissionRequest.getQualifier(), QUALIFIER_BINDING);
              protocolMarshaller.marshall(addPermissionRequest.getRevisionId(), REVISIONID_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.