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

commonMain.aws.sdk.kotlin.services.proton.model.ServicePipelineState.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.proton.model



/**
 * The detailed data about the current state of the service pipeline.
 */
public class ServicePipelineState private constructor(builder: Builder) {
    /**
     * The service spec that was used to create the service pipeline.
     */
    public val spec: kotlin.String? = builder.spec
    /**
     * The major version of the service template that was used to create the service pipeline.
     */
    public val templateMajorVersion: kotlin.String? = builder.templateMajorVersion
    /**
     * The minor version of the service template that was used to create the service pipeline.
     */
    public val templateMinorVersion: kotlin.String? = builder.templateMinorVersion
    /**
     * The name of the service template that was used to create the service pipeline.
     */
    public val templateName: kotlin.String? = builder.templateName

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

    override fun toString(): kotlin.String = buildString {
        append("ServicePipelineState(")
        append("spec=*** Sensitive Data Redacted ***,")
        append("templateMajorVersion=$templateMajorVersion,")
        append("templateMinorVersion=$templateMinorVersion,")
        append("templateName=$templateName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = spec?.hashCode() ?: 0
        result = 31 * result + (templateMajorVersion?.hashCode() ?: 0)
        result = 31 * result + (templateMinorVersion?.hashCode() ?: 0)
        result = 31 * result + (templateName?.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 ServicePipelineState

        if (spec != other.spec) return false
        if (templateMajorVersion != other.templateMajorVersion) return false
        if (templateMinorVersion != other.templateMinorVersion) return false
        if (templateName != other.templateName) return false

        return true
    }

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

    public class Builder {
        /**
         * The service spec that was used to create the service pipeline.
         */
        public var spec: kotlin.String? = null
        /**
         * The major version of the service template that was used to create the service pipeline.
         */
        public var templateMajorVersion: kotlin.String? = null
        /**
         * The minor version of the service template that was used to create the service pipeline.
         */
        public var templateMinorVersion: kotlin.String? = null
        /**
         * The name of the service template that was used to create the service pipeline.
         */
        public var templateName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.proton.model.ServicePipelineState) : this() {
            this.spec = x.spec
            this.templateMajorVersion = x.templateMajorVersion
            this.templateMinorVersion = x.templateMinorVersion
            this.templateName = x.templateName
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.proton.model.ServicePipelineState = ServicePipelineState(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy