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

commonMain.aws.sdk.kotlin.services.elasticbeanstalk.model.CreatePlatformVersionResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.elasticbeanstalk.model

import aws.smithy.kotlin.runtime.SdkDsl

public class CreatePlatformVersionResponse private constructor(builder: Builder) {
    /**
     * The builder used to create the custom platform.
     */
    public val builder: aws.sdk.kotlin.services.elasticbeanstalk.model.Builder? = builder.builder
    /**
     * Detailed information about the new version of the custom platform.
     */
    public val platformSummary: aws.sdk.kotlin.services.elasticbeanstalk.model.PlatformSummary? = builder.platformSummary

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

    override fun toString(): kotlin.String = buildString {
        append("CreatePlatformVersionResponse(")
        append("builder=$builder,")
        append("platformSummary=$platformSummary")
        append(")")
    }

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

        if (builder != other.builder) return false
        if (platformSummary != other.platformSummary) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The builder used to create the custom platform.
         */
        public var builder: aws.sdk.kotlin.services.elasticbeanstalk.model.Builder? = null
        /**
         * Detailed information about the new version of the custom platform.
         */
        public var platformSummary: aws.sdk.kotlin.services.elasticbeanstalk.model.PlatformSummary? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.elasticbeanstalk.model.CreatePlatformVersionResponse) : this() {
            this.builder = x.builder
            this.platformSummary = x.platformSummary
        }

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy