All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.lightsail.model.ResetDistributionCacheResponse.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.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

public class ResetDistributionCacheResponse private constructor(builder: Builder) {
    /**
     * The timestamp of the reset cache request (`1479734909.17`) in Unix time format.
     */
    public val createTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createTime
    /**
     * An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
     */
    public val operation: aws.sdk.kotlin.services.lightsail.model.Operation? = builder.operation
    /**
     * The status of the reset cache request.
     */
    public val status: kotlin.String? = builder.status

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.ResetDistributionCacheResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("ResetDistributionCacheResponse(")
        append("createTime=$createTime,")
        append("operation=$operation,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createTime?.hashCode() ?: 0
        result = 31 * result + (operation?.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 ResetDistributionCacheResponse

        if (createTime != other.createTime) return false
        if (operation != other.operation) return false
        if (status != other.status) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.ResetDistributionCacheResponse = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The timestamp of the reset cache request (`1479734909.17`) in Unix time format.
         */
        public var createTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
         */
        public var operation: aws.sdk.kotlin.services.lightsail.model.Operation? = null
        /**
         * The status of the reset cache request.
         */
        public var status: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lightsail.model.ResetDistributionCacheResponse) : this() {
            this.createTime = x.createTime
            this.operation = x.operation
            this.status = x.status
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.lightsail.model.ResetDistributionCacheResponse = ResetDistributionCacheResponse(this)

        /**
         * construct an [aws.sdk.kotlin.services.lightsail.model.Operation] inside the given [block]
         */
        public fun operation(block: aws.sdk.kotlin.services.lightsail.model.Operation.Builder.() -> kotlin.Unit) {
            this.operation = aws.sdk.kotlin.services.lightsail.model.Operation.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy