commonMain.aws.sdk.kotlin.services.autoscaling.model.CancelInstanceRefreshResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of autoscaling-jvm Show documentation
Show all versions of autoscaling-jvm Show documentation
The AWS SDK for Kotlin client for Auto Scaling
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.autoscaling.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CancelInstanceRefreshResponse private constructor(builder: Builder) {
/**
* The instance refresh ID associated with the request. This is the unique ID assigned to the instance refresh when it was started.
*/
public val instanceRefreshId: kotlin.String? = builder.instanceRefreshId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.autoscaling.model.CancelInstanceRefreshResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CancelInstanceRefreshResponse(")
append("instanceRefreshId=$instanceRefreshId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = instanceRefreshId?.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 CancelInstanceRefreshResponse
if (instanceRefreshId != other.instanceRefreshId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.autoscaling.model.CancelInstanceRefreshResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The instance refresh ID associated with the request. This is the unique ID assigned to the instance refresh when it was started.
*/
public var instanceRefreshId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.autoscaling.model.CancelInstanceRefreshResponse) : this() {
this.instanceRefreshId = x.instanceRefreshId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.autoscaling.model.CancelInstanceRefreshResponse = CancelInstanceRefreshResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}