commonMain.aws.sdk.kotlin.services.fms.model.Route.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
/**
* Describes a route in a route table.
*/
public class Route private constructor(builder: Builder) {
/**
* The destination of the route.
*/
public val destination: kotlin.String? = builder.destination
/**
* The type of destination for the route.
*/
public val destinationType: aws.sdk.kotlin.services.fms.model.DestinationType? = builder.destinationType
/**
* The route's target.
*/
public val target: kotlin.String? = builder.target
/**
* The type of target for the route.
*/
public val targetType: aws.sdk.kotlin.services.fms.model.TargetType? = builder.targetType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fms.model.Route = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Route(")
append("destination=$destination,")
append("destinationType=$destinationType,")
append("target=$target,")
append("targetType=$targetType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = destination?.hashCode() ?: 0
result = 31 * result + (destinationType?.hashCode() ?: 0)
result = 31 * result + (target?.hashCode() ?: 0)
result = 31 * result + (targetType?.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 Route
if (destination != other.destination) return false
if (destinationType != other.destinationType) return false
if (target != other.target) return false
if (targetType != other.targetType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fms.model.Route = Builder(this).apply(block).build()
public class Builder {
/**
* The destination of the route.
*/
public var destination: kotlin.String? = null
/**
* The type of destination for the route.
*/
public var destinationType: aws.sdk.kotlin.services.fms.model.DestinationType? = null
/**
* The route's target.
*/
public var target: kotlin.String? = null
/**
* The type of target for the route.
*/
public var targetType: aws.sdk.kotlin.services.fms.model.TargetType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fms.model.Route) : this() {
this.destination = x.destination
this.destinationType = x.destinationType
this.target = x.target
this.targetType = x.targetType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.Route = Route(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy