
commonMain.aws.sdk.kotlin.services.gamelift.model.VpcPeeringConnectionStatus.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
/**
* Represents status information for a VPC peering connection. Status codes and messages are provided from EC2 (see [VpcPeeringConnectionStateReason](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_VpcPeeringConnectionStateReason.html)). Connection status information is also communicated as a fleet event.
*/
public class VpcPeeringConnectionStatus private constructor(builder: Builder) {
/**
* Code indicating the status of a VPC peering connection.
*/
public val code: kotlin.String? = builder.code
/**
* Additional messaging associated with the connection status.
*/
public val message: kotlin.String? = builder.message
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.VpcPeeringConnectionStatus = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("VpcPeeringConnectionStatus(")
append("code=$code,")
append("message=$message")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = code?.hashCode() ?: 0
result = 31 * result + (message?.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 VpcPeeringConnectionStatus
if (code != other.code) return false
if (message != other.message) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.VpcPeeringConnectionStatus = Builder(this).apply(block).build()
public class Builder {
/**
* Code indicating the status of a VPC peering connection.
*/
public var code: kotlin.String? = null
/**
* Additional messaging associated with the connection status.
*/
public var message: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.VpcPeeringConnectionStatus) : this() {
this.code = x.code
this.message = x.message
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.VpcPeeringConnectionStatus = VpcPeeringConnectionStatus(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy