
commonMain.aws.sdk.kotlin.services.ssm.model.PatchGroupPatchBaselineMapping.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The mapping between a patch group and the patch baseline the patch group is registered with.
*/
public class PatchGroupPatchBaselineMapping private constructor(builder: Builder) {
/**
* The patch baseline the patch group is registered with.
*/
public val baselineIdentity: aws.sdk.kotlin.services.ssm.model.PatchBaselineIdentity? = builder.baselineIdentity
/**
* The name of the patch group registered with the patch baseline.
*/
public val patchGroup: kotlin.String? = builder.patchGroup
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.PatchGroupPatchBaselineMapping = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PatchGroupPatchBaselineMapping(")
append("baselineIdentity=$baselineIdentity,")
append("patchGroup=$patchGroup")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = baselineIdentity?.hashCode() ?: 0
result = 31 * result + (patchGroup?.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 PatchGroupPatchBaselineMapping
if (baselineIdentity != other.baselineIdentity) return false
if (patchGroup != other.patchGroup) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.PatchGroupPatchBaselineMapping = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The patch baseline the patch group is registered with.
*/
public var baselineIdentity: aws.sdk.kotlin.services.ssm.model.PatchBaselineIdentity? = null
/**
* The name of the patch group registered with the patch baseline.
*/
public var patchGroup: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.PatchGroupPatchBaselineMapping) : this() {
this.baselineIdentity = x.baselineIdentity
this.patchGroup = x.patchGroup
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.PatchGroupPatchBaselineMapping = PatchGroupPatchBaselineMapping(this)
/**
* construct an [aws.sdk.kotlin.services.ssm.model.PatchBaselineIdentity] inside the given [block]
*/
public fun baselineIdentity(block: aws.sdk.kotlin.services.ssm.model.PatchBaselineIdentity.Builder.() -> kotlin.Unit) {
this.baselineIdentity = aws.sdk.kotlin.services.ssm.model.PatchBaselineIdentity.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy