
commonMain.aws.sdk.kotlin.services.ecr.model.RegistryScanningConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ecr.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The scanning configuration for a private registry.
*/
public class RegistryScanningConfiguration private constructor(builder: Builder) {
/**
* The scanning rules associated with the registry.
*/
public val rules: List? = builder.rules
/**
* The type of scanning configured for the registry.
*/
public val scanType: aws.sdk.kotlin.services.ecr.model.ScanType? = builder.scanType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ecr.model.RegistryScanningConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RegistryScanningConfiguration(")
append("rules=$rules,")
append("scanType=$scanType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = rules?.hashCode() ?: 0
result = 31 * result + (scanType?.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 RegistryScanningConfiguration
if (rules != other.rules) return false
if (scanType != other.scanType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ecr.model.RegistryScanningConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The scanning rules associated with the registry.
*/
public var rules: List? = null
/**
* The type of scanning configured for the registry.
*/
public var scanType: aws.sdk.kotlin.services.ecr.model.ScanType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ecr.model.RegistryScanningConfiguration) : this() {
this.rules = x.rules
this.scanType = x.scanType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ecr.model.RegistryScanningConfiguration = RegistryScanningConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy