aws.sdk.kotlin.services.migrationhubrefactorspaces.model.DeleteRouteRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of migrationhubrefactorspaces Show documentation
Show all versions of migrationhubrefactorspaces Show documentation
AWS Migration Hub Refactor Spaces
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.migrationhubrefactorspaces.model
class DeleteRouteRequest private constructor(builder: Builder) {
/**
* The ID of the application to delete the route from.
*/
val applicationIdentifier: kotlin.String? = builder.applicationIdentifier
/**
* The ID of the environment to delete the route from.
*/
val environmentIdentifier: kotlin.String? = builder.environmentIdentifier
/**
* The ID of the route to delete.
*/
val routeIdentifier: kotlin.String? = builder.routeIdentifier
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.migrationhubrefactorspaces.model.DeleteRouteRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteRouteRequest(")
append("applicationIdentifier=$applicationIdentifier,")
append("environmentIdentifier=$environmentIdentifier,")
append("routeIdentifier=$routeIdentifier)")
}
override fun hashCode(): kotlin.Int {
var result = applicationIdentifier?.hashCode() ?: 0
result = 31 * result + (environmentIdentifier?.hashCode() ?: 0)
result = 31 * result + (routeIdentifier?.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 DeleteRouteRequest
if (applicationIdentifier != other.applicationIdentifier) return false
if (environmentIdentifier != other.environmentIdentifier) return false
if (routeIdentifier != other.routeIdentifier) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.migrationhubrefactorspaces.model.DeleteRouteRequest = Builder(this).apply(block).build()
class Builder {
/**
* The ID of the application to delete the route from.
*/
var applicationIdentifier: kotlin.String? = null
/**
* The ID of the environment to delete the route from.
*/
var environmentIdentifier: kotlin.String? = null
/**
* The ID of the route to delete.
*/
var routeIdentifier: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.migrationhubrefactorspaces.model.DeleteRouteRequest) : this() {
this.applicationIdentifier = x.applicationIdentifier
this.environmentIdentifier = x.environmentIdentifier
this.routeIdentifier = x.routeIdentifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.migrationhubrefactorspaces.model.DeleteRouteRequest = DeleteRouteRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy