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

commonMain.aws.sdk.kotlin.services.pipes.model.UpdatePipeResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.pipes.model

import aws.smithy.kotlin.runtime.time.Instant

public class UpdatePipeResponse private constructor(builder: Builder) {
    /**
     * The ARN of the pipe.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * The time the pipe was created.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * The state the pipe is in.
     */
    public val currentState: aws.sdk.kotlin.services.pipes.model.PipeState? = builder.currentState
    /**
     * The state the pipe should be in.
     */
    public val desiredState: aws.sdk.kotlin.services.pipes.model.RequestedPipeState? = builder.desiredState
    /**
     * When the pipe was last updated, in [ISO-8601 format](https://www.w3.org/TR/NOTE-datetime) (YYYY-MM-DDThh:mm:ss.sTZD).
     */
    public val lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedTime
    /**
     * The name of the pipe.
     */
    public val name: kotlin.String? = builder.name

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

    override fun toString(): kotlin.String = buildString {
        append("UpdatePipeResponse(")
        append("arn=$arn,")
        append("creationTime=$creationTime,")
        append("currentState=$currentState,")
        append("desiredState=$desiredState,")
        append("lastModifiedTime=$lastModifiedTime,")
        append("name=$name")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (creationTime?.hashCode() ?: 0)
        result = 31 * result + (currentState?.hashCode() ?: 0)
        result = 31 * result + (desiredState?.hashCode() ?: 0)
        result = 31 * result + (lastModifiedTime?.hashCode() ?: 0)
        result = 31 * result + (name?.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 UpdatePipeResponse

        if (arn != other.arn) return false
        if (creationTime != other.creationTime) return false
        if (currentState != other.currentState) return false
        if (desiredState != other.desiredState) return false
        if (lastModifiedTime != other.lastModifiedTime) return false
        if (name != other.name) return false

        return true
    }

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

    public class Builder {
        /**
         * The ARN of the pipe.
         */
        public var arn: kotlin.String? = null
        /**
         * The time the pipe was created.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The state the pipe is in.
         */
        public var currentState: aws.sdk.kotlin.services.pipes.model.PipeState? = null
        /**
         * The state the pipe should be in.
         */
        public var desiredState: aws.sdk.kotlin.services.pipes.model.RequestedPipeState? = null
        /**
         * When the pipe was last updated, in [ISO-8601 format](https://www.w3.org/TR/NOTE-datetime) (YYYY-MM-DDThh:mm:ss.sTZD).
         */
        public var lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name of the pipe.
         */
        public var name: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pipes.model.UpdatePipeResponse) : this() {
            this.arn = x.arn
            this.creationTime = x.creationTime
            this.currentState = x.currentState
            this.desiredState = x.desiredState
            this.lastModifiedTime = x.lastModifiedTime
            this.name = x.name
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy