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

commonMain.aws.sdk.kotlin.services.proton.model.DeleteServiceTemplateVersionRequest.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



public class DeleteServiceTemplateVersionRequest private constructor(builder: Builder) {
    /**
     * The service template major version to delete.
     */
    public val majorVersion: kotlin.String? = builder.majorVersion
    /**
     * The service template minor version to delete.
     */
    public val minorVersion: kotlin.String? = builder.minorVersion
    /**
     * The name of the service template.
     */
    public val templateName: kotlin.String? = builder.templateName

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteServiceTemplateVersionRequest(")
        append("majorVersion=$majorVersion,")
        append("minorVersion=$minorVersion,")
        append("templateName=$templateName")
        append(")")
    }

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

        if (majorVersion != other.majorVersion) return false
        if (minorVersion != other.minorVersion) return false
        if (templateName != other.templateName) return false

        return true
    }

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

    public class Builder {
        /**
         * The service template major version to delete.
         */
        public var majorVersion: kotlin.String? = null
        /**
         * The service template minor version to delete.
         */
        public var minorVersion: kotlin.String? = null
        /**
         * The name of the service template.
         */
        public var templateName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.proton.model.DeleteServiceTemplateVersionRequest) : this() {
            this.majorVersion = x.majorVersion
            this.minorVersion = x.minorVersion
            this.templateName = x.templateName
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy