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

commonMain.aws.sdk.kotlin.services.lightsail.model.CreateContainerServiceDeploymentRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.lightsail.model



public class CreateContainerServiceDeploymentRequest private constructor(builder: Builder) {
    /**
     * An object that describes the settings of the containers that will be launched on the container service.
     */
    public val containers: Map? = builder.containers
    /**
     * An object that describes the settings of the public endpoint for the container service.
     */
    public val publicEndpoint: aws.sdk.kotlin.services.lightsail.model.EndpointRequest? = builder.publicEndpoint
    /**
     * The name of the container service for which to create the deployment.
     */
    public val serviceName: kotlin.String? = builder.serviceName

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

    override fun toString(): kotlin.String = buildString {
        append("CreateContainerServiceDeploymentRequest(")
        append("containers=$containers,")
        append("publicEndpoint=$publicEndpoint,")
        append("serviceName=$serviceName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = containers?.hashCode() ?: 0
        result = 31 * result + (publicEndpoint?.hashCode() ?: 0)
        result = 31 * result + (serviceName?.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 CreateContainerServiceDeploymentRequest

        if (containers != other.containers) return false
        if (publicEndpoint != other.publicEndpoint) return false
        if (serviceName != other.serviceName) return false

        return true
    }

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

    public class Builder {
        /**
         * An object that describes the settings of the containers that will be launched on the container service.
         */
        public var containers: Map? = null
        /**
         * An object that describes the settings of the public endpoint for the container service.
         */
        public var publicEndpoint: aws.sdk.kotlin.services.lightsail.model.EndpointRequest? = null
        /**
         * The name of the container service for which to create the deployment.
         */
        public var serviceName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lightsail.model.CreateContainerServiceDeploymentRequest) : this() {
            this.containers = x.containers
            this.publicEndpoint = x.publicEndpoint
            this.serviceName = x.serviceName
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy