
commonMain.aws.sdk.kotlin.services.ssm.model.GetDeployablePatchSnapshotForInstanceRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
public class GetDeployablePatchSnapshotForInstanceRequest private constructor(builder: Builder) {
/**
* Defines the basic information about a patch baseline override.
*/
public val baselineOverride: aws.sdk.kotlin.services.ssm.model.BaselineOverride? = builder.baselineOverride
/**
* The ID of the managed node for which the appropriate patch snapshot should be retrieved.
*/
public val instanceId: kotlin.String? = builder.instanceId
/**
* The snapshot ID provided by the user when running `AWS-RunPatchBaseline`.
*/
public val snapshotId: kotlin.String? = builder.snapshotId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.GetDeployablePatchSnapshotForInstanceRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDeployablePatchSnapshotForInstanceRequest(")
append("baselineOverride=$baselineOverride,")
append("instanceId=$instanceId,")
append("snapshotId=$snapshotId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = baselineOverride?.hashCode() ?: 0
result = 31 * result + (instanceId?.hashCode() ?: 0)
result = 31 * result + (snapshotId?.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 GetDeployablePatchSnapshotForInstanceRequest
if (baselineOverride != other.baselineOverride) return false
if (instanceId != other.instanceId) return false
if (snapshotId != other.snapshotId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.GetDeployablePatchSnapshotForInstanceRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Defines the basic information about a patch baseline override.
*/
public var baselineOverride: aws.sdk.kotlin.services.ssm.model.BaselineOverride? = null
/**
* The ID of the managed node for which the appropriate patch snapshot should be retrieved.
*/
public var instanceId: kotlin.String? = null
/**
* The snapshot ID provided by the user when running `AWS-RunPatchBaseline`.
*/
public var snapshotId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.GetDeployablePatchSnapshotForInstanceRequest) : this() {
this.baselineOverride = x.baselineOverride
this.instanceId = x.instanceId
this.snapshotId = x.snapshotId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.GetDeployablePatchSnapshotForInstanceRequest = GetDeployablePatchSnapshotForInstanceRequest(this)
/**
* construct an [aws.sdk.kotlin.services.ssm.model.BaselineOverride] inside the given [block]
*/
public fun baselineOverride(block: aws.sdk.kotlin.services.ssm.model.BaselineOverride.Builder.() -> kotlin.Unit) {
this.baselineOverride = aws.sdk.kotlin.services.ssm.model.BaselineOverride.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy