commonMain.aws.sdk.kotlin.services.vpclattice.model.PathMatch.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vpclattice-jvm Show documentation
Show all versions of vpclattice-jvm Show documentation
The AWS SDK for Kotlin client for VPC Lattice
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.vpclattice.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Describes the conditions that can be applied when matching a path for incoming requests.
*/
public class PathMatch private constructor(builder: Builder) {
/**
* Indicates whether the match is case sensitive.
*/
public val caseSensitive: kotlin.Boolean? = builder.caseSensitive
/**
* The type of path match.
*/
public val match: aws.sdk.kotlin.services.vpclattice.model.PathMatchType? = builder.match
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.vpclattice.model.PathMatch = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PathMatch(")
append("caseSensitive=$caseSensitive,")
append("match=$match")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = caseSensitive?.hashCode() ?: 0
result = 31 * result + (match?.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 PathMatch
if (caseSensitive != other.caseSensitive) return false
if (match != other.match) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.vpclattice.model.PathMatch = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Indicates whether the match is case sensitive.
*/
public var caseSensitive: kotlin.Boolean? = null
/**
* The type of path match.
*/
public var match: aws.sdk.kotlin.services.vpclattice.model.PathMatchType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.vpclattice.model.PathMatch) : this() {
this.caseSensitive = x.caseSensitive
this.match = x.match
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.vpclattice.model.PathMatch = PathMatch(this)
internal fun correctErrors(): Builder {
return this
}
}
}