commonMain.aws.sdk.kotlin.services.fms.model.ExpectedRoute.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
/**
* Information about the expected route in the route table.
*/
public class ExpectedRoute private constructor(builder: Builder) {
/**
* Information about the allowed targets.
*/
public val allowedTargets: List? = builder.allowedTargets
/**
* Information about the contributing subnets.
*/
public val contributingSubnets: List? = builder.contributingSubnets
/**
* Information about the IPv4 CIDR block.
*/
public val ipV4Cidr: kotlin.String? = builder.ipV4Cidr
/**
* Information about the IPv6 CIDR block.
*/
public val ipV6Cidr: kotlin.String? = builder.ipV6Cidr
/**
* Information about the ID of the prefix list for the route.
*/
public val prefixListId: kotlin.String? = builder.prefixListId
/**
* Information about the route table ID.
*/
public val routeTableId: kotlin.String? = builder.routeTableId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fms.model.ExpectedRoute = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ExpectedRoute(")
append("allowedTargets=$allowedTargets,")
append("contributingSubnets=$contributingSubnets,")
append("ipV4Cidr=$ipV4Cidr,")
append("ipV6Cidr=$ipV6Cidr,")
append("prefixListId=$prefixListId,")
append("routeTableId=$routeTableId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = allowedTargets?.hashCode() ?: 0
result = 31 * result + (contributingSubnets?.hashCode() ?: 0)
result = 31 * result + (ipV4Cidr?.hashCode() ?: 0)
result = 31 * result + (ipV6Cidr?.hashCode() ?: 0)
result = 31 * result + (prefixListId?.hashCode() ?: 0)
result = 31 * result + (routeTableId?.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 ExpectedRoute
if (allowedTargets != other.allowedTargets) return false
if (contributingSubnets != other.contributingSubnets) return false
if (ipV4Cidr != other.ipV4Cidr) return false
if (ipV6Cidr != other.ipV6Cidr) return false
if (prefixListId != other.prefixListId) return false
if (routeTableId != other.routeTableId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fms.model.ExpectedRoute = Builder(this).apply(block).build()
public class Builder {
/**
* Information about the allowed targets.
*/
public var allowedTargets: List? = null
/**
* Information about the contributing subnets.
*/
public var contributingSubnets: List? = null
/**
* Information about the IPv4 CIDR block.
*/
public var ipV4Cidr: kotlin.String? = null
/**
* Information about the IPv6 CIDR block.
*/
public var ipV6Cidr: kotlin.String? = null
/**
* Information about the ID of the prefix list for the route.
*/
public var prefixListId: kotlin.String? = null
/**
* Information about the route table ID.
*/
public var routeTableId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fms.model.ExpectedRoute) : this() {
this.allowedTargets = x.allowedTargets
this.contributingSubnets = x.contributingSubnets
this.ipV4Cidr = x.ipV4Cidr
this.ipV6Cidr = x.ipV6Cidr
this.prefixListId = x.prefixListId
this.routeTableId = x.routeTableId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.ExpectedRoute = ExpectedRoute(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy