commonMain.aws.sdk.kotlin.services.finspacedata.model.DatasetOwnerInfo.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.finspacedata.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A structure for Dataset owner info.
*/
public class DatasetOwnerInfo private constructor(builder: Builder) {
/**
* Email address for the Dataset owner.
*/
public val email: kotlin.String? = builder.email
/**
* The name of the Dataset owner.
*/
public val name: kotlin.String? = builder.name
/**
* Phone number for the Dataset owner.
*/
public val phoneNumber: kotlin.String? = builder.phoneNumber
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.finspacedata.model.DatasetOwnerInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DatasetOwnerInfo(")
append("email=*** Sensitive Data Redacted ***,")
append("name=$name,")
append("phoneNumber=$phoneNumber")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = email?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (phoneNumber?.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 DatasetOwnerInfo
if (email != other.email) return false
if (name != other.name) return false
if (phoneNumber != other.phoneNumber) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspacedata.model.DatasetOwnerInfo = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Email address for the Dataset owner.
*/
public var email: kotlin.String? = null
/**
* The name of the Dataset owner.
*/
public var name: kotlin.String? = null
/**
* Phone number for the Dataset owner.
*/
public var phoneNumber: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.finspacedata.model.DatasetOwnerInfo) : this() {
this.email = x.email
this.name = x.name
this.phoneNumber = x.phoneNumber
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.finspacedata.model.DatasetOwnerInfo = DatasetOwnerInfo(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy