commonMain.aws.sdk.kotlin.services.codegurusecurity.model.GetScanRequest.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
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codegurusecurity.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetScanRequest private constructor(builder: Builder) {
/**
* UUID that identifies the individual scan run you want to view details about. You retrieve this when you call the `CreateScan` operation. Defaults to the latest scan run if missing.
*/
public val runId: kotlin.String? = builder.runId
/**
* The name of the scan you want to view details about.
*/
public val scanName: kotlin.String? = builder.scanName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codegurusecurity.model.GetScanRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetScanRequest(")
append("runId=$runId,")
append("scanName=$scanName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = runId?.hashCode() ?: 0
result = 31 * result + (scanName?.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 GetScanRequest
if (runId != other.runId) return false
if (scanName != other.scanName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codegurusecurity.model.GetScanRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* UUID that identifies the individual scan run you want to view details about. You retrieve this when you call the `CreateScan` operation. Defaults to the latest scan run if missing.
*/
public var runId: kotlin.String? = null
/**
* The name of the scan you want to view details about.
*/
public var scanName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codegurusecurity.model.GetScanRequest) : this() {
this.runId = x.runId
this.scanName = x.scanName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codegurusecurity.model.GetScanRequest = GetScanRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}