
commonMain.aws.sdk.kotlin.services.groundstation.model.DescribeContactRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.groundstation.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
*
*/
public class DescribeContactRequest private constructor(builder: Builder) {
/**
* UUID of a contact.
*/
public val contactId: kotlin.String = requireNotNull(builder.contactId) { "A non-null value must be provided for contactId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.groundstation.model.DescribeContactRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeContactRequest(")
append("contactId=$contactId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = contactId.hashCode()
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 DescribeContactRequest
if (contactId != other.contactId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.groundstation.model.DescribeContactRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* UUID of a contact.
*/
public var contactId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.groundstation.model.DescribeContactRequest) : this() {
this.contactId = x.contactId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.groundstation.model.DescribeContactRequest = DescribeContactRequest(this)
internal fun correctErrors(): Builder {
if (contactId == null) contactId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy