Interface KubernetesPolicyViolation.Builder

  • Method Details

    • violationType

      KubernetesPolicyViolation.Builder violationType(String violationType)

      The type of the violation.

      Parameters:
      violationType - The type of the violation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • affectedResource

      KubernetesPolicyViolation.Builder affectedResource(String affectedResource)

      The Kubernetes resource that the violation affects.

      Parameters:
      affectedResource - The Kubernetes resource that the violation affects.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subject

      The Kubernetes subject, such as a user, a group, or a service account, that the violation involves.

      Parameters:
      subject - The Kubernetes subject, such as a user, a group, or a service account, that the violation involves.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • grantedAccess

      KubernetesPolicyViolation.Builder grantedAccess(String grantedAccess)

      The access that the violation grants.

      Parameters:
      grantedAccess - The access that the violation grants.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • exposureVector

      KubernetesPolicyViolation.Builder exposureVector(String exposureVector)

      How the misconfiguration exposes the resource.

      Parameters:
      exposureVector - How the misconfiguration exposes the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • misconfigurationImpact

      KubernetesPolicyViolation.Builder misconfigurationImpact(String misconfigurationImpact)

      The potential impact of the misconfiguration.

      Parameters:
      misconfigurationImpact - The potential impact of the misconfiguration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.