
commonMain.aws.sdk.kotlin.services.lightsail.model.GetDistributionLatestCacheResetResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
import aws.smithy.kotlin.runtime.time.Instant
public class GetDistributionLatestCacheResetResponse private constructor(builder: Builder) {
/**
* The timestamp of the last cache reset (e.g., `1479734909.17`) in Unix time format.
*/
public val createTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createTime
/**
* The status of the last cache reset.
*/
public val status: kotlin.String? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.GetDistributionLatestCacheResetResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDistributionLatestCacheResetResponse(")
append("createTime=$createTime,")
append("status=$status)")
}
override fun hashCode(): kotlin.Int {
var result = createTime?.hashCode() ?: 0
result = 31 * result + (status?.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 GetDistributionLatestCacheResetResponse
if (createTime != other.createTime) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.GetDistributionLatestCacheResetResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The timestamp of the last cache reset (e.g., `1479734909.17`) in Unix time format.
*/
public var createTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The status of the last cache reset.
*/
public var status: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.GetDistributionLatestCacheResetResponse) : this() {
this.createTime = x.createTime
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.GetDistributionLatestCacheResetResponse = GetDistributionLatestCacheResetResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy