
commonMain.aws.sdk.kotlin.services.ssm.model.PatchRuleGroup.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
/**
* A set of rules defining the approval rules for a patch baseline.
*/
public class PatchRuleGroup private constructor(builder: Builder) {
/**
* The rules that make up the rule group.
*/
public val patchRules: List = requireNotNull(builder.patchRules) { "A non-null value must be provided for patchRules" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.PatchRuleGroup = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PatchRuleGroup(")
append("patchRules=$patchRules")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = patchRules.hashCode()
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 PatchRuleGroup
if (patchRules != other.patchRules) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.PatchRuleGroup = Builder(this).apply(block).build()
public class Builder {
/**
* The rules that make up the rule group.
*/
public var patchRules: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.PatchRuleGroup) : this() {
this.patchRules = x.patchRules
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.PatchRuleGroup = PatchRuleGroup(this)
internal fun correctErrors(): Builder {
if (patchRules == null) patchRules = emptyList()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy