commonMain.aws.sdk.kotlin.services.elasticbeanstalk.model.DeletePlatformVersionResponse.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 DeletePlatformVersionResponse private constructor(builder: Builder) {
/**
* Detailed information about the 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.DeletePlatformVersionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeletePlatformVersionResponse(")
append("platformSummary=$platformSummary")
append(")")
}
override fun hashCode(): kotlin.Int {
var 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 DeletePlatformVersionResponse
if (platformSummary != other.platformSummary) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticbeanstalk.model.DeletePlatformVersionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Detailed information about the 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.DeletePlatformVersionResponse) : this() {
this.platformSummary = x.platformSummary
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticbeanstalk.model.DeletePlatformVersionResponse = DeletePlatformVersionResponse(this)
/**
* 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
}
}
}