
commonMain.aws.sdk.kotlin.services.apptest.model.M2ManagedApplicationSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.apptest.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Specifies the AWS Mainframe Modernization managed application summary.
*/
public class M2ManagedApplicationSummary private constructor(builder: Builder) {
/**
* The application ID of the AWS Mainframe Modernization managed application summary.
*/
public val applicationId: kotlin.String = requireNotNull(builder.applicationId) { "A non-null value must be provided for applicationId" }
/**
* The listener port of the AWS Mainframe Modernization managed application summary.
*/
public val listenerPort: kotlin.Int? = builder.listenerPort
/**
* The runtime of the AWS Mainframe Modernization managed application summary.
*/
public val runtime: aws.sdk.kotlin.services.apptest.model.M2ManagedRuntime = requireNotNull(builder.runtime) { "A non-null value must be provided for runtime" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.apptest.model.M2ManagedApplicationSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("M2ManagedApplicationSummary(")
append("applicationId=$applicationId,")
append("listenerPort=$listenerPort,")
append("runtime=$runtime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationId.hashCode()
result = 31 * result + (listenerPort ?: 0)
result = 31 * result + (runtime.hashCode())
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 M2ManagedApplicationSummary
if (applicationId != other.applicationId) return false
if (listenerPort != other.listenerPort) return false
if (runtime != other.runtime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.apptest.model.M2ManagedApplicationSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The application ID of the AWS Mainframe Modernization managed application summary.
*/
public var applicationId: kotlin.String? = null
/**
* The listener port of the AWS Mainframe Modernization managed application summary.
*/
public var listenerPort: kotlin.Int? = null
/**
* The runtime of the AWS Mainframe Modernization managed application summary.
*/
public var runtime: aws.sdk.kotlin.services.apptest.model.M2ManagedRuntime? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.apptest.model.M2ManagedApplicationSummary) : this() {
this.applicationId = x.applicationId
this.listenerPort = x.listenerPort
this.runtime = x.runtime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.apptest.model.M2ManagedApplicationSummary = M2ManagedApplicationSummary(this)
internal fun correctErrors(): Builder {
if (applicationId == null) applicationId = ""
if (runtime == null) runtime = M2ManagedRuntime.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy