commonMain.aws.sdk.kotlin.services.elasticbeanstalk.model.DescribePlatformVersionResponse.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
public class DescribePlatformVersionResponse private constructor(builder: Builder) {
/**
* Detailed information about the platform version.
*/
public val platformDescription: aws.sdk.kotlin.services.elasticbeanstalk.model.PlatformDescription? = builder.platformDescription
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticbeanstalk.model.DescribePlatformVersionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribePlatformVersionResponse(")
append("platformDescription=$platformDescription")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = platformDescription?.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 DescribePlatformVersionResponse
if (platformDescription != other.platformDescription) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticbeanstalk.model.DescribePlatformVersionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Detailed information about the platform version.
*/
public var platformDescription: aws.sdk.kotlin.services.elasticbeanstalk.model.PlatformDescription? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticbeanstalk.model.DescribePlatformVersionResponse) : this() {
this.platformDescription = x.platformDescription
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticbeanstalk.model.DescribePlatformVersionResponse = DescribePlatformVersionResponse(this)
/**
* construct an [aws.sdk.kotlin.services.elasticbeanstalk.model.PlatformDescription] inside the given [block]
*/
public fun platformDescription(block: aws.sdk.kotlin.services.elasticbeanstalk.model.PlatformDescription.Builder.() -> kotlin.Unit) {
this.platformDescription = aws.sdk.kotlin.services.elasticbeanstalk.model.PlatformDescription.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}