commonMain.aws.sdk.kotlin.services.elasticbeanstalk.model.UpdateApplicationVersionResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticbeanstalk-jvm Show documentation
Show all versions of elasticbeanstalk-jvm Show documentation
The AWS SDK for Kotlin client for Elastic Beanstalk
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elasticbeanstalk.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Result message wrapping a single description of an application version.
*/
public class UpdateApplicationVersionResponse private constructor(builder: Builder) {
/**
* The ApplicationVersionDescription of the application version.
*/
public val applicationVersion: aws.sdk.kotlin.services.elasticbeanstalk.model.ApplicationVersionDescription? = builder.applicationVersion
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticbeanstalk.model.UpdateApplicationVersionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateApplicationVersionResponse(")
append("applicationVersion=$applicationVersion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationVersion?.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 UpdateApplicationVersionResponse
if (applicationVersion != other.applicationVersion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticbeanstalk.model.UpdateApplicationVersionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ApplicationVersionDescription of the application version.
*/
public var applicationVersion: aws.sdk.kotlin.services.elasticbeanstalk.model.ApplicationVersionDescription? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticbeanstalk.model.UpdateApplicationVersionResponse) : this() {
this.applicationVersion = x.applicationVersion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticbeanstalk.model.UpdateApplicationVersionResponse = UpdateApplicationVersionResponse(this)
/**
* construct an [aws.sdk.kotlin.services.elasticbeanstalk.model.ApplicationVersionDescription] inside the given [block]
*/
public fun applicationVersion(block: aws.sdk.kotlin.services.elasticbeanstalk.model.ApplicationVersionDescription.Builder.() -> kotlin.Unit) {
this.applicationVersion = aws.sdk.kotlin.services.elasticbeanstalk.model.ApplicationVersionDescription.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}