
commonMain.aws.sdk.kotlin.services.directconnect.model.StopBgpFailoverTestRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.directconnect.model
public class StopBgpFailoverTestRequest private constructor(builder: Builder) {
/**
* The ID of the virtual interface you no longer want to test.
*/
public val virtualInterfaceId: kotlin.String? = builder.virtualInterfaceId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.directconnect.model.StopBgpFailoverTestRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StopBgpFailoverTestRequest(")
append("virtualInterfaceId=$virtualInterfaceId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = virtualInterfaceId?.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 StopBgpFailoverTestRequest
if (virtualInterfaceId != other.virtualInterfaceId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.directconnect.model.StopBgpFailoverTestRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the virtual interface you no longer want to test.
*/
public var virtualInterfaceId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.directconnect.model.StopBgpFailoverTestRequest) : this() {
this.virtualInterfaceId = x.virtualInterfaceId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.directconnect.model.StopBgpFailoverTestRequest = StopBgpFailoverTestRequest(this)
internal fun correctErrors(): Builder {
if (virtualInterfaceId == null) virtualInterfaceId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy