
commonMain.aws.sdk.kotlin.services.directconnect.model.UpdateLagRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.directconnect.model
public class UpdateLagRequest private constructor(builder: Builder) {
/**
* The LAG MAC Security (MACsec) encryption mode.
*
* Amazon Web Services applies the value to all connections which are part of the LAG.
*/
public val encryptionMode: kotlin.String? = builder.encryptionMode
/**
* The ID of the LAG.
*/
public val lagId: kotlin.String? = builder.lagId
/**
* The name of the LAG.
*/
public val lagName: kotlin.String? = builder.lagName
/**
* The minimum number of physical connections that must be operational for the LAG itself to be operational.
*/
public val minimumLinks: kotlin.Int = builder.minimumLinks
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.directconnect.model.UpdateLagRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateLagRequest(")
append("encryptionMode=$encryptionMode,")
append("lagId=$lagId,")
append("lagName=$lagName,")
append("minimumLinks=$minimumLinks")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = encryptionMode?.hashCode() ?: 0
result = 31 * result + (lagId?.hashCode() ?: 0)
result = 31 * result + (lagName?.hashCode() ?: 0)
result = 31 * result + (minimumLinks)
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 UpdateLagRequest
if (encryptionMode != other.encryptionMode) return false
if (lagId != other.lagId) return false
if (lagName != other.lagName) return false
if (minimumLinks != other.minimumLinks) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.directconnect.model.UpdateLagRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The LAG MAC Security (MACsec) encryption mode.
*
* Amazon Web Services applies the value to all connections which are part of the LAG.
*/
public var encryptionMode: kotlin.String? = null
/**
* The ID of the LAG.
*/
public var lagId: kotlin.String? = null
/**
* The name of the LAG.
*/
public var lagName: kotlin.String? = null
/**
* The minimum number of physical connections that must be operational for the LAG itself to be operational.
*/
public var minimumLinks: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.directconnect.model.UpdateLagRequest) : this() {
this.encryptionMode = x.encryptionMode
this.lagId = x.lagId
this.lagName = x.lagName
this.minimumLinks = x.minimumLinks
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.directconnect.model.UpdateLagRequest = UpdateLagRequest(this)
internal fun correctErrors(): Builder {
if (lagId == null) lagId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy