code: public void marshall(SetPermissionRequest setPermissionRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (setPermissionRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(setPermissionRequest.getStackId(), STACKID_BINDING);
              protocolMarshaller.marshall(setPermissionRequest.getIamUserArn(), IAMUSERARN_BINDING);
              protocolMarshaller.marshall(setPermissionRequest.getAllowSsh(), ALLOWSSH_BINDING);
              protocolMarshaller.marshall(setPermissionRequest.getAllowSudo(), ALLOWSUDO_BINDING);
              protocolMarshaller.marshall(setPermissionRequest.getLevel(), LEVEL_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.