
commonMain.aws.sdk.kotlin.services.ssmsap.model.StopApplicationRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssmsap.model
import aws.smithy.kotlin.runtime.SdkDsl
public class StopApplicationRequest private constructor(builder: Builder) {
/**
* The ID of the application.
*/
public val applicationId: kotlin.String? = builder.applicationId
/**
* Boolean. If included and if set to `True`, the StopApplication operation will shut down the associated Amazon EC2 instance in addition to the application.
*/
public val includeEc2InstanceShutdown: kotlin.Boolean? = builder.includeEc2InstanceShutdown
/**
* Specify the `ConnectedEntityType`. Accepted type is `DBMS`.
*
* If this parameter is included, the connected DBMS (Database Management System) will be stopped.
*/
public val stopConnectedEntity: aws.sdk.kotlin.services.ssmsap.model.ConnectedEntityType? = builder.stopConnectedEntity
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmsap.model.StopApplicationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StopApplicationRequest(")
append("applicationId=$applicationId,")
append("includeEc2InstanceShutdown=$includeEc2InstanceShutdown,")
append("stopConnectedEntity=$stopConnectedEntity")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationId?.hashCode() ?: 0
result = 31 * result + (includeEc2InstanceShutdown?.hashCode() ?: 0)
result = 31 * result + (stopConnectedEntity?.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 StopApplicationRequest
if (applicationId != other.applicationId) return false
if (includeEc2InstanceShutdown != other.includeEc2InstanceShutdown) return false
if (stopConnectedEntity != other.stopConnectedEntity) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmsap.model.StopApplicationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the application.
*/
public var applicationId: kotlin.String? = null
/**
* Boolean. If included and if set to `True`, the StopApplication operation will shut down the associated Amazon EC2 instance in addition to the application.
*/
public var includeEc2InstanceShutdown: kotlin.Boolean? = null
/**
* Specify the `ConnectedEntityType`. Accepted type is `DBMS`.
*
* If this parameter is included, the connected DBMS (Database Management System) will be stopped.
*/
public var stopConnectedEntity: aws.sdk.kotlin.services.ssmsap.model.ConnectedEntityType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmsap.model.StopApplicationRequest) : this() {
this.applicationId = x.applicationId
this.includeEc2InstanceShutdown = x.includeEc2InstanceShutdown
this.stopConnectedEntity = x.stopConnectedEntity
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmsap.model.StopApplicationRequest = StopApplicationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy