
commonMain.aws.sdk.kotlin.services.apptest.model.M2NonManagedApplicationSummary.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 non-managed application summary.
*/
public class M2NonManagedApplicationSummary private constructor(builder: Builder) {
/**
* The listener port of the AWS Mainframe Modernization non-managed application summary.
*/
public val listenerPort: kotlin.Int = requireNotNull(builder.listenerPort) { "A non-null value must be provided for listenerPort" }
/**
* The runtime of the AWS Mainframe Modernization non-managed application summary.
*/
public val runtime: aws.sdk.kotlin.services.apptest.model.M2NonManagedRuntime = requireNotNull(builder.runtime) { "A non-null value must be provided for runtime" }
/**
* The VPC endpoint service name of the AWS Mainframe Modernization non-managed application summary.
*/
public val vpcEndpointServiceName: kotlin.String = requireNotNull(builder.vpcEndpointServiceName) { "A non-null value must be provided for vpcEndpointServiceName" }
/**
* The web application name of the AWS Mainframe Modernization non-managed application summary.
*/
public val webAppName: kotlin.String? = builder.webAppName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.apptest.model.M2NonManagedApplicationSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("M2NonManagedApplicationSummary(")
append("listenerPort=$listenerPort,")
append("runtime=$runtime,")
append("vpcEndpointServiceName=$vpcEndpointServiceName,")
append("webAppName=$webAppName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = listenerPort
result = 31 * result + (runtime.hashCode())
result = 31 * result + (vpcEndpointServiceName.hashCode())
result = 31 * result + (webAppName?.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 M2NonManagedApplicationSummary
if (listenerPort != other.listenerPort) return false
if (runtime != other.runtime) return false
if (vpcEndpointServiceName != other.vpcEndpointServiceName) return false
if (webAppName != other.webAppName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.apptest.model.M2NonManagedApplicationSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The listener port of the AWS Mainframe Modernization non-managed application summary.
*/
public var listenerPort: kotlin.Int? = null
/**
* The runtime of the AWS Mainframe Modernization non-managed application summary.
*/
public var runtime: aws.sdk.kotlin.services.apptest.model.M2NonManagedRuntime? = null
/**
* The VPC endpoint service name of the AWS Mainframe Modernization non-managed application summary.
*/
public var vpcEndpointServiceName: kotlin.String? = null
/**
* The web application name of the AWS Mainframe Modernization non-managed application summary.
*/
public var webAppName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.apptest.model.M2NonManagedApplicationSummary) : this() {
this.listenerPort = x.listenerPort
this.runtime = x.runtime
this.vpcEndpointServiceName = x.vpcEndpointServiceName
this.webAppName = x.webAppName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.apptest.model.M2NonManagedApplicationSummary = M2NonManagedApplicationSummary(this)
internal fun correctErrors(): Builder {
if (listenerPort == null) listenerPort = 0
if (runtime == null) runtime = M2NonManagedRuntime.SdkUnknown("no value provided")
if (vpcEndpointServiceName == null) vpcEndpointServiceName = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy