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