
commonMain.aws.sdk.kotlin.services.lightsail.model.DestinationInfo.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
/**
* Describes the destination of a record.
*/
public class DestinationInfo private constructor(builder: Builder) {
/**
* The ID of the resource created at the destination.
*/
public val id: kotlin.String? = builder.id
/**
* The destination service of the record.
*/
public val service: kotlin.String? = builder.service
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.DestinationInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DestinationInfo(")
append("id=$id,")
append("service=$service")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = id?.hashCode() ?: 0
result = 31 * result + (service?.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 DestinationInfo
if (id != other.id) return false
if (service != other.service) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.DestinationInfo = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the resource created at the destination.
*/
public var id: kotlin.String? = null
/**
* The destination service of the record.
*/
public var service: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.DestinationInfo) : this() {
this.id = x.id
this.service = x.service
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.DestinationInfo = DestinationInfo(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy