
commonMain.aws.sdk.kotlin.services.ssm.model.GetDeployablePatchSnapshotForInstanceResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
public class GetDeployablePatchSnapshotForInstanceResponse private constructor(builder: Builder) {
/**
* The managed node ID.
*/
public val instanceId: kotlin.String? = builder.instanceId
/**
* Returns the specific operating system (for example Windows Server 2012 or Amazon Linux 2015.09) on the managed node for the specified patch snapshot.
*/
public val product: kotlin.String? = builder.product
/**
* A pre-signed Amazon Simple Storage Service (Amazon S3) URL that can be used to download the patch snapshot.
*/
public val snapshotDownloadUrl: kotlin.String? = builder.snapshotDownloadUrl
/**
* The user-defined snapshot ID.
*/
public val snapshotId: kotlin.String? = builder.snapshotId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.GetDeployablePatchSnapshotForInstanceResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDeployablePatchSnapshotForInstanceResponse(")
append("instanceId=$instanceId,")
append("product=$product,")
append("snapshotDownloadUrl=$snapshotDownloadUrl,")
append("snapshotId=$snapshotId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = instanceId?.hashCode() ?: 0
result = 31 * result + (product?.hashCode() ?: 0)
result = 31 * result + (snapshotDownloadUrl?.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 GetDeployablePatchSnapshotForInstanceResponse
if (instanceId != other.instanceId) return false
if (product != other.product) return false
if (snapshotDownloadUrl != other.snapshotDownloadUrl) return false
if (snapshotId != other.snapshotId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.GetDeployablePatchSnapshotForInstanceResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The managed node ID.
*/
public var instanceId: kotlin.String? = null
/**
* Returns the specific operating system (for example Windows Server 2012 or Amazon Linux 2015.09) on the managed node for the specified patch snapshot.
*/
public var product: kotlin.String? = null
/**
* A pre-signed Amazon Simple Storage Service (Amazon S3) URL that can be used to download the patch snapshot.
*/
public var snapshotDownloadUrl: kotlin.String? = null
/**
* The user-defined snapshot ID.
*/
public var snapshotId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.GetDeployablePatchSnapshotForInstanceResponse) : this() {
this.instanceId = x.instanceId
this.product = x.product
this.snapshotDownloadUrl = x.snapshotDownloadUrl
this.snapshotId = x.snapshotId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.GetDeployablePatchSnapshotForInstanceResponse = GetDeployablePatchSnapshotForInstanceResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy