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