
commonMain.aws.sdk.kotlin.services.ssm.model.GetPatchBaselineForPatchGroupRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
public class GetPatchBaselineForPatchGroupRequest private constructor(builder: Builder) {
/**
* Returns the operating system rule specified for patch groups using the patch baseline.
*/
public val operatingSystem: aws.sdk.kotlin.services.ssm.model.OperatingSystem? = builder.operatingSystem
/**
* The name of the patch group whose patch baseline should be retrieved.
*/
public val patchGroup: kotlin.String? = builder.patchGroup
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.GetPatchBaselineForPatchGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetPatchBaselineForPatchGroupRequest(")
append("operatingSystem=$operatingSystem,")
append("patchGroup=$patchGroup")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = operatingSystem?.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 GetPatchBaselineForPatchGroupRequest
if (operatingSystem != other.operatingSystem) return false
if (patchGroup != other.patchGroup) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.GetPatchBaselineForPatchGroupRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Returns the operating system rule specified for patch groups using the patch baseline.
*/
public var operatingSystem: aws.sdk.kotlin.services.ssm.model.OperatingSystem? = null
/**
* The name of the patch group whose patch baseline should be retrieved.
*/
public var patchGroup: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.GetPatchBaselineForPatchGroupRequest) : this() {
this.operatingSystem = x.operatingSystem
this.patchGroup = x.patchGroup
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.GetPatchBaselineForPatchGroupRequest = GetPatchBaselineForPatchGroupRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy