
commonMain.aws.sdk.kotlin.services.lightsail.model.IsVpcPeeredResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
public class IsVpcPeeredResponse private constructor(builder: Builder) {
/**
* Returns `true` if the Lightsail VPC is peered; otherwise, `false`.
*/
public val isPeered: kotlin.Boolean? = builder.isPeered
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.IsVpcPeeredResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("IsVpcPeeredResponse(")
append("isPeered=$isPeered)")
}
override fun hashCode(): kotlin.Int {
var result = isPeered?.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 IsVpcPeeredResponse
if (isPeered != other.isPeered) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.IsVpcPeeredResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Returns `true` if the Lightsail VPC is peered; otherwise, `false`.
*/
public var isPeered: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.IsVpcPeeredResponse) : this() {
this.isPeered = x.isPeered
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.IsVpcPeeredResponse = IsVpcPeeredResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy