Interface Cvss.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Cvss.Builder,Cvss>, SdkBuilder<Cvss.Builder,Cvss>, SdkPojo
Enclosing class:
Cvss

@Mutable @NotThreadSafe public static interface Cvss.Builder extends SdkPojo, CopyableBuilder<Cvss.Builder,Cvss>
  • Method Details

    • version

      Cvss.Builder version(String version)

      The version of CVSS for the CVSS score.

      Parameters:
      version - The version of CVSS for the CVSS score.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • baseScore

      Cvss.Builder baseScore(Double baseScore)

      The base CVSS score.

      Parameters:
      baseScore - The base CVSS score.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • baseVector

      Cvss.Builder baseVector(String baseVector)

      The base scoring vector for the CVSS score.

      Parameters:
      baseVector - The base scoring vector for the CVSS score.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • source

      Cvss.Builder source(String source)

      The origin of the original CVSS score and vector.

      Parameters:
      source - The origin of the original CVSS score and vector.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • adjustments

      Cvss.Builder adjustments(Collection<Adjustment> adjustments)

      Adjustments to the CVSS metrics.

      Parameters:
      adjustments - Adjustments to the CVSS metrics.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • adjustments

      Cvss.Builder adjustments(Adjustment... adjustments)

      Adjustments to the CVSS metrics.

      Parameters:
      adjustments - Adjustments to the CVSS metrics.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • adjustments

      Cvss.Builder adjustments(Consumer<Adjustment.Builder>... adjustments)

      Adjustments to the CVSS metrics.

      This is a convenience method that creates an instance of the Adjustment.Builder avoiding the need to create one manually via Adjustment.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to adjustments(List<Adjustment>).

      Parameters:
      adjustments - a consumer that will call methods on Adjustment.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: