commonMain.aws.sdk.kotlin.services.codegurusecurity.model.FindingMetricsValuePerSeverity.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codegurusecurity-jvm Show documentation
Show all versions of codegurusecurity-jvm Show documentation
The AWS SDK for Kotlin client for CodeGuru Security
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codegurusecurity.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A numeric value corresponding to the severity of a finding, such as the number of open findings or the average time it takes to close findings of a given severity.
*/
public class FindingMetricsValuePerSeverity private constructor(builder: Builder) {
/**
* A numeric value corresponding to a critical finding.
*/
public val critical: kotlin.Double? = builder.critical
/**
* A numeric value corresponding to a high severity finding.
*/
public val high: kotlin.Double? = builder.high
/**
* A numeric value corresponding to an informational finding.
*/
public val info: kotlin.Double? = builder.info
/**
* A numeric value corresponding to a low severity finding.
*/
public val low: kotlin.Double? = builder.low
/**
* A numeric value corresponding to a medium severity finding.
*/
public val medium: kotlin.Double? = builder.medium
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codegurusecurity.model.FindingMetricsValuePerSeverity = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FindingMetricsValuePerSeverity(")
append("critical=$critical,")
append("high=$high,")
append("info=$info,")
append("low=$low,")
append("medium=$medium")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = critical?.hashCode() ?: 0
result = 31 * result + (high?.hashCode() ?: 0)
result = 31 * result + (info?.hashCode() ?: 0)
result = 31 * result + (low?.hashCode() ?: 0)
result = 31 * result + (medium?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as FindingMetricsValuePerSeverity
if (!(critical?.equals(other.critical) ?: (other.critical == null))) return false
if (!(high?.equals(other.high) ?: (other.high == null))) return false
if (!(info?.equals(other.info) ?: (other.info == null))) return false
if (!(low?.equals(other.low) ?: (other.low == null))) return false
if (!(medium?.equals(other.medium) ?: (other.medium == null))) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codegurusecurity.model.FindingMetricsValuePerSeverity = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A numeric value corresponding to a critical finding.
*/
public var critical: kotlin.Double? = null
/**
* A numeric value corresponding to a high severity finding.
*/
public var high: kotlin.Double? = null
/**
* A numeric value corresponding to an informational finding.
*/
public var info: kotlin.Double? = null
/**
* A numeric value corresponding to a low severity finding.
*/
public var low: kotlin.Double? = null
/**
* A numeric value corresponding to a medium severity finding.
*/
public var medium: kotlin.Double? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codegurusecurity.model.FindingMetricsValuePerSeverity) : this() {
this.critical = x.critical
this.high = x.high
this.info = x.info
this.low = x.low
this.medium = x.medium
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codegurusecurity.model.FindingMetricsValuePerSeverity = FindingMetricsValuePerSeverity(this)
internal fun correctErrors(): Builder {
return this
}
}
}