withLayerName method

SecurityResult withLayerName(
  1. String name
)

Returns a copy of this result with the given layerName attached.

Implementation

SecurityResult withLayerName(String name) {
  return SecurityResult(
    allowed: allowed,
    riskScore: riskScore,
    flags: flags,
    message: message,
    verdict: verdict,
    layerName: name,
  );
}